securesourcemanager
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package securesourcemanager provides access to the Secure Source Manager API.
For product documentation, see:https://cloud.google.com/secure-source-manager
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/securesourcemanager/v1"...ctx := context.Background()securesourcemanagerService, err := securesourcemanager.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
securesourcemanagerService, err := securesourcemanager.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)securesourcemanagerService, err := securesourcemanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AuditConfig
- type AuditLogConfig
- type BatchCreatePullRequestCommentsRequest
- type Binding
- type Branch
- type BranchRule
- type CancelOperationRequest
- type Check
- type CloseIssueRequest
- type ClosePullRequestRequest
- type Code
- type Comment
- type CreatePullRequestCommentRequest
- type Empty
- type Expr
- type FetchBlobResponse
- type FetchTreeResponse
- type FileDiff
- type Hook
- type HostConfig
- type InitialConfig
- type Instance
- type Issue
- type IssueComment
- type ListBranchRulesResponse
- type ListHooksResponse
- type ListInstancesResponse
- type ListIssueCommentsResponse
- type ListIssuesResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListPullRequestCommentsResponse
- type ListPullRequestFileDiffsResponse
- type ListPullRequestsResponse
- type ListRepositoriesResponse
- type Location
- type MergePullRequestRequest
- type OpenIssueRequest
- type OpenPullRequestRequest
- type Operation
- type OperationMetadata
- type Policy
- type Position
- type PrivateConfig
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.Context) *ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header
- func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *ProjectsLocationsInstancesCreateCall
- func (c *ProjectsLocationsInstancesCreateCall) RequestId(requestId string) *ProjectsLocationsInstancesCreateCall
- type ProjectsLocationsInstancesDeleteCall
- func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInstancesDeleteCall
- func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall
- func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header
- func (c *ProjectsLocationsInstancesDeleteCall) RequestId(requestId string) *ProjectsLocationsInstancesDeleteCall
- type ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance, error)
- func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
- func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
- func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
- type ProjectsLocationsInstancesGetIamPolicyCall
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInstancesGetIamPolicyCall
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetIamPolicyCall
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetIamPolicyCall
- func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInstancesGetIamPolicyCall
- type ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Context(ctx context.Context) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse, error)
- func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Header() http.Header
- func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) OrderBy(orderBy string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
- func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.Context, f func(*ListInstancesResponse) error) error
- type ProjectsLocationsInstancesService
- func (r *ProjectsLocationsInstancesService) Create(parent string, instance *Instance) *ProjectsLocationsInstancesCreateCall
- func (r *ProjectsLocationsInstancesService) Delete(name string) *ProjectsLocationsInstancesDeleteCall
- func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
- func (r *ProjectsLocationsInstancesService) GetIamPolicy(resource string) *ProjectsLocationsInstancesGetIamPolicyCall
- func (r *ProjectsLocationsInstancesService) List(parent string) *ProjectsLocationsInstancesListCall
- func (r *ProjectsLocationsInstancesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsInstancesSetIamPolicyCall
- func (r *ProjectsLocationsInstancesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsInstancesTestIamPermissionsCall
- type ProjectsLocationsInstancesSetIamPolicyCall
- func (c *ProjectsLocationsInstancesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsInstancesSetIamPolicyCall
- func (c *ProjectsLocationsInstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsInstancesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetIamPolicyCall
- func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsInstancesTestIamPermissionsCall
- func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsInstancesTestIamPermissionsCall
- func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesTestIamPermissionsCall
- func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsRepositoriesBranchRulesCreateCall
- func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) BranchRuleId(branchRuleId string) *ProjectsLocationsRepositoriesBranchRulesCreateCall
- func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesBranchRulesCreateCall
- func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesCreateCall
- func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesBranchRulesDeleteCall
- func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
- func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
- func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
- func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesBranchRulesGetCall
- func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesBranchRulesGetCall
- func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Do(opts ...googleapi.CallOption) (*BranchRule, error)
- func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesGetCall
- func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesBranchRulesGetCall
- type ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Do(opts ...googleapi.CallOption) (*ListBranchRulesResponse, error)
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Pages(ctx context.Context, f func(*ListBranchRulesResponse) error) error
- type ProjectsLocationsRepositoriesBranchRulesPatchCall
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesBranchRulesPatchCall
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesPatchCall
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesBranchRulesPatchCall
- func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRepositoriesBranchRulesPatchCall
- type ProjectsLocationsRepositoriesBranchRulesService
- func (r *ProjectsLocationsRepositoriesBranchRulesService) Create(parent string, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesCreateCall
- func (r *ProjectsLocationsRepositoriesBranchRulesService) Delete(name string) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
- func (r *ProjectsLocationsRepositoriesBranchRulesService) Get(name string) *ProjectsLocationsRepositoriesBranchRulesGetCall
- func (r *ProjectsLocationsRepositoriesBranchRulesService) List(parent string) *ProjectsLocationsRepositoriesBranchRulesListCall
- func (r *ProjectsLocationsRepositoriesBranchRulesService) Patch(nameid string, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesPatchCall
- type ProjectsLocationsRepositoriesCreateCall
- func (c *ProjectsLocationsRepositoriesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCreateCall
- func (c *ProjectsLocationsRepositoriesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCreateCall
- func (c *ProjectsLocationsRepositoriesCreateCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryId string) *ProjectsLocationsRepositoriesCreateCall
- type ProjectsLocationsRepositoriesDeleteCall
- func (c *ProjectsLocationsRepositoriesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsRepositoriesDeleteCall
- func (c *ProjectsLocationsRepositoriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesDeleteCall
- func (c *ProjectsLocationsRepositoriesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesDeleteCall
- func (c *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesFetchBlobCall
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchBlobCall
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) Do(opts ...googleapi.CallOption) (*FetchBlobResponse, error)
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchBlobCall
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchBlobCall
- func (c *ProjectsLocationsRepositoriesFetchBlobCall) Sha(sha string) *ProjectsLocationsRepositoriesFetchBlobCall
- type ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Do(opts ...googleapi.CallOption) (*FetchTreeResponse, error)
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Pages(ctx context.Context, f func(*FetchTreeResponse) error) error
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Recursive(recursive bool) *ProjectsLocationsRepositoriesFetchTreeCall
- func (c *ProjectsLocationsRepositoriesFetchTreeCall) Ref(ref string) *ProjectsLocationsRepositoriesFetchTreeCall
- type ProjectsLocationsRepositoriesGetCall
- func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetCall
- func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository, error)
- func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall
- func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall
- type ProjectsLocationsRepositoriesGetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRepositoriesGetIamPolicyCall
- type ProjectsLocationsRepositoriesHooksCreateCall
- func (c *ProjectsLocationsRepositoriesHooksCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesHooksCreateCall
- func (c *ProjectsLocationsRepositoriesHooksCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesHooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksCreateCall
- func (c *ProjectsLocationsRepositoriesHooksCreateCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesHooksCreateCall) HookId(hookId string) *ProjectsLocationsRepositoriesHooksCreateCall
- type ProjectsLocationsRepositoriesHooksDeleteCall
- func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesHooksDeleteCall
- func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksDeleteCall
- func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesHooksGetCall
- func (c *ProjectsLocationsRepositoriesHooksGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesHooksGetCall
- func (c *ProjectsLocationsRepositoriesHooksGetCall) Do(opts ...googleapi.CallOption) (*Hook, error)
- func (c *ProjectsLocationsRepositoriesHooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksGetCall
- func (c *ProjectsLocationsRepositoriesHooksGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesHooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesHooksGetCall
- type ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) Do(opts ...googleapi.CallOption) (*ListHooksResponse, error)
- func (c *ProjectsLocationsRepositoriesHooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesHooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesHooksListCall
- func (c *ProjectsLocationsRepositoriesHooksListCall) Pages(ctx context.Context, f func(*ListHooksResponse) error) error
- type ProjectsLocationsRepositoriesHooksPatchCall
- func (c *ProjectsLocationsRepositoriesHooksPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesHooksPatchCall
- func (c *ProjectsLocationsRepositoriesHooksPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesHooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksPatchCall
- func (c *ProjectsLocationsRepositoriesHooksPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesHooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesHooksPatchCall
- type ProjectsLocationsRepositoriesHooksService
- func (r *ProjectsLocationsRepositoriesHooksService) Create(parent string, hook *Hook) *ProjectsLocationsRepositoriesHooksCreateCall
- func (r *ProjectsLocationsRepositoriesHooksService) Delete(name string) *ProjectsLocationsRepositoriesHooksDeleteCall
- func (r *ProjectsLocationsRepositoriesHooksService) Get(name string) *ProjectsLocationsRepositoriesHooksGetCall
- func (r *ProjectsLocationsRepositoriesHooksService) List(parent string) *ProjectsLocationsRepositoriesHooksListCall
- func (r *ProjectsLocationsRepositoriesHooksService) Patch(nameid string, hook *Hook) *ProjectsLocationsRepositoriesHooksPatchCall
- type ProjectsLocationsRepositoriesIssuesCloseCall
- func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesCloseCall
- func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesCloseCall
- func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Etag(etag string) *ProjectsLocationsRepositoriesIssuesDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesGetCall
- func (c *ProjectsLocationsRepositoriesIssuesGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesGetCall
- func (c *ProjectsLocationsRepositoriesIssuesGetCall) Do(opts ...googleapi.CallOption) (*Issue, error)
- func (c *ProjectsLocationsRepositoriesIssuesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesGetCall
- func (c *ProjectsLocationsRepositoriesIssuesGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesGetCall
- type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Do(opts ...googleapi.CallOption) (*IssueComment, error)
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
- type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Do(opts ...googleapi.CallOption) (*ListIssueCommentsResponse, error)
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Pages(ctx context.Context, f func(*ListIssueCommentsResponse) error) error
- type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
- type ProjectsLocationsRepositoriesIssuesIssueCommentsService
- func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Create(parent string, issuecomment *IssueComment) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
- func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Delete(name string) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
- func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Get(name string) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
- func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) List(parent string) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
- func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Patch(nameid string, issuecomment *IssueComment) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
- type ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Do(opts ...googleapi.CallOption) (*ListIssuesResponse, error)
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Filter(filter string) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesIssuesListCall
- func (c *ProjectsLocationsRepositoriesIssuesListCall) Pages(ctx context.Context, f func(*ListIssuesResponse) error) error
- type ProjectsLocationsRepositoriesIssuesOpenCall
- func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesOpenCall
- func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesOpenCall
- func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Header() http.Header
- type ProjectsLocationsRepositoriesIssuesPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesIssuesPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesPatchCall
- func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesIssuesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesIssuesPatchCall
- type ProjectsLocationsRepositoriesIssuesService
- func (r *ProjectsLocationsRepositoriesIssuesService) Close(name string, closeissuerequest *CloseIssueRequest) *ProjectsLocationsRepositoriesIssuesCloseCall
- func (r *ProjectsLocationsRepositoriesIssuesService) Create(parent string, issue *Issue) *ProjectsLocationsRepositoriesIssuesCreateCall
- func (r *ProjectsLocationsRepositoriesIssuesService) Delete(name string) *ProjectsLocationsRepositoriesIssuesDeleteCall
- func (r *ProjectsLocationsRepositoriesIssuesService) Get(name string) *ProjectsLocationsRepositoriesIssuesGetCall
- func (r *ProjectsLocationsRepositoriesIssuesService) List(parent string) *ProjectsLocationsRepositoriesIssuesListCall
- func (r *ProjectsLocationsRepositoriesIssuesService) Open(name string, openissuerequest *OpenIssueRequest) *ProjectsLocationsRepositoriesIssuesOpenCall
- func (r *ProjectsLocationsRepositoriesIssuesService) Patch(nameid string, issue *Issue) *ProjectsLocationsRepositoriesIssuesPatchCall
- type ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Do(opts ...googleapi.CallOption) (*ListRepositoriesResponse, error)
- func (c *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Filter(filter string) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Instance(instance string) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesListCall
- func (c *ProjectsLocationsRepositoriesListCall) Pages(ctx context.Context, f func(*ListRepositoriesResponse) error) error
- type ProjectsLocationsRepositoriesPatchCall
- func (c *ProjectsLocationsRepositoriesPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPatchCall
- func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPatchCall
- func (c *ProjectsLocationsRepositoriesPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPatchCall
- func (c *ProjectsLocationsRepositoriesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRepositoriesPatchCall
- type ProjectsLocationsRepositoriesPullRequestsCloseCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsCloseCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsCloseCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Do(opts ...googleapi.CallOption) (*PullRequest, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsGetCall
- type ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Do(opts ...googleapi.CallOption) (*ListPullRequestsResponse, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Pages(ctx context.Context, f func(*ListPullRequestsResponse) error) error
- type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Do(opts ...googleapi.CallOption) (*ListPullRequestFileDiffsResponse, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Pages(ctx context.Context, f func(*ListPullRequestFileDiffsResponse) error) error
- type ProjectsLocationsRepositoriesPullRequestsMergeCall
- func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsMergeCall
- func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsMergeCall
- func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsOpenCall
- func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsOpenCall
- func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsOpenCall
- func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPullRequestsPatchCall
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Do(opts ...googleapi.CallOption) (*PullRequestComment, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Do(opts ...googleapi.CallOption) (*ListPullRequestCommentsResponse, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Pages(ctx context.Context, f func(*ListPullRequestCommentsResponse) error) error
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Header() http.Header
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) BatchCreate(parent string, ...) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Create(parent string, pullrequestcomment *PullRequestComment) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Delete(name string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Get(name string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) List(parent string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Patch(nameid string, pullrequestcomment *PullRequestComment) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Resolve(parent string, ...) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
- func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Unresolve(parent string, ...) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
- type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
- func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Header() http.Header
- type ProjectsLocationsRepositoriesPullRequestsService
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Close(name string, closepullrequestrequest *ClosePullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsCloseCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Create(parent string, pullrequest *PullRequest) *ProjectsLocationsRepositoriesPullRequestsCreateCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Get(name string) *ProjectsLocationsRepositoriesPullRequestsGetCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) List(parent string) *ProjectsLocationsRepositoriesPullRequestsListCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) ListFileDiffs(name string) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Merge(name string, mergepullrequestrequest *MergePullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsMergeCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Open(name string, openpullrequestrequest *OpenPullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsOpenCall
- func (r *ProjectsLocationsRepositoriesPullRequestsService) Patch(nameid string, pullrequest *PullRequest) *ProjectsLocationsRepositoriesPullRequestsPatchCall
- type ProjectsLocationsRepositoriesService
- func (r *ProjectsLocationsRepositoriesService) Create(parent string, repository *Repository) *ProjectsLocationsRepositoriesCreateCall
- func (r *ProjectsLocationsRepositoriesService) Delete(name string) *ProjectsLocationsRepositoriesDeleteCall
- func (r *ProjectsLocationsRepositoriesService) FetchBlob(repository string) *ProjectsLocationsRepositoriesFetchBlobCall
- func (r *ProjectsLocationsRepositoriesService) FetchTree(repository string) *ProjectsLocationsRepositoriesFetchTreeCall
- func (r *ProjectsLocationsRepositoriesService) Get(name string) *ProjectsLocationsRepositoriesGetCall
- func (r *ProjectsLocationsRepositoriesService) GetIamPolicy(resource string) *ProjectsLocationsRepositoriesGetIamPolicyCall
- func (r *ProjectsLocationsRepositoriesService) List(parent string) *ProjectsLocationsRepositoriesListCall
- func (r *ProjectsLocationsRepositoriesService) Patch(nameid string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall
- func (r *ProjectsLocationsRepositoriesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRepositoriesSetIamPolicyCall
- func (r *ProjectsLocationsRepositoriesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRepositoriesTestIamPermissionsCall
- type ProjectsLocationsRepositoriesSetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesSetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesSetIamPolicyCall
- func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsRepositoriesTestIamPermissionsCall
- func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesTestIamPermissionsCall
- func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesTestIamPermissionsCall
- func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsService
- type ProjectsService
- type PullRequest
- type PullRequestComment
- type PushOption
- type Repository
- type ResolvePullRequestCommentsRequest
- type Review
- type Service
- type SetIamPolicyRequest
- type Status
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type TreeEntry
- type URIs
- type UnresolvePullRequestCommentsRequest
- type WorkforceIdentityFederationConfig
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAuditConfig¶
type AuditConfig struct {// AuditLogConfigs: The configuration for logging of each type of permission.AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`// Service: Specifies a service that will be enabled for audit logging. For// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`// is a special value that covers all services.Servicestring `json:"service,omitempty"`// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AuditConfig: Specifies the audit configuration for a service. Theconfiguration determines which permission types are logged, and whatidentities, if any, are exempted from logging. An AuditConfig must have oneor more AuditLogConfigs. If there are AuditConfigs for both `allServices`and a specific service, the union of the two AuditConfigs is used for thatservice: the log_types specified in each AuditConfig are enabled, and theexempted_members in each AuditLogConfig are exempted. Example Policy withmultiple AuditConfigs: { "audit_configs": [ { "service": "allServices","audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": ["user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type":"ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com","audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type":"DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } Forsampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READlogging. It also exempts `jose@example.com` from DATA_READ logging, and`aliya@example.com` from DATA_WRITE logging.
func (AuditConfig)MarshalJSON¶
func (sAuditConfig) MarshalJSON() ([]byte,error)
typeAuditLogConfig¶
type AuditLogConfig struct {// ExemptedMembers: Specifies the identities that do not cause logging for this// type of permission. Follows the same format of Binding.members.ExemptedMembers []string `json:"exemptedMembers,omitempty"`// LogType: The log type that this config enables.//// Possible values:// "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.// "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy// "DATA_WRITE" - Data writes. Example: CloudSQL Users create// "DATA_READ" - Data reads. Example: CloudSQL Users listLogTypestring `json:"logType,omitempty"`// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExemptedMembers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AuditLogConfig: Provides the configuration for logging a type ofpermissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ","exempted_members": [ "user:jose@example.com" ] }, { "log_type":"DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, whileexempting jose@example.com from DATA_READ logging.
func (AuditLogConfig)MarshalJSON¶
func (sAuditLogConfig) MarshalJSON() ([]byte,error)
typeBatchCreatePullRequestCommentsRequest¶
type BatchCreatePullRequestCommentsRequest struct {// Requests: Required. The request message specifying the resources to create.// There should be exactly one CreatePullRequestCommentRequest with// CommentDetail being REVIEW in the list, and no more than 100// CreatePullRequestCommentRequests with CommentDetail being CODE in the listRequests []*CreatePullRequestCommentRequest `json:"requests,omitempty"`// ForceSendFields is a list of field names (e.g. "Requests") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Requests") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BatchCreatePullRequestCommentsRequest: The request to batch create pullrequest comments.
func (BatchCreatePullRequestCommentsRequest)MarshalJSON¶
func (sBatchCreatePullRequestCommentsRequest) MarshalJSON() ([]byte,error)
typeBinding¶
type Binding struct {// Condition: The condition that is associated with this binding. If the// condition evaluates to `true`, then this binding applies to the current// request. If the condition evaluates to `false`, then this binding does not// apply to the current request. However, a different role binding might grant// the same role to one or more of the principals in this binding. To learn// which resources support conditions in their IAM policies, see the IAM// documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).Condition *Expr `json:"condition,omitempty"`// Members: Specifies the principals requesting access for a Google Cloud// resource. `members` can have the following values: * `allUsers`: A special// identifier that represents anyone who is on the internet; with or without a// Google account. * `allAuthenticatedUsers`: A special identifier that// represents anyone who is authenticated with a Google account or a service// account. Does not include identities that come from external identity// providers (IdPs) through identity federation. * `user:{emailid}`: An email// address that represents a specific Google account. For example,// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that// represents a Google service account. For example,// `my-other-app@appspot.gserviceaccount.com`. *// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An// identifier for a Kubernetes service account// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *// `group:{emailid}`: An email address that represents a Google group. For// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain// (primary) that represents all the users of that domain. For example,// `google.com` or `example.com`. *// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub// ject/{subject_attribute_value}`: A single identity in a workforce identity// pool. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// group/{group_id}`: All workforce identities in a group. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// attribute.{attribute_name}/{attribute_value}`: All workforce identities with// a specific attribute value. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// *`: All identities in a workforce identity pool. *// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single// identity in a workload identity pool. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool// group. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}// `: All identities in a workload identity pool with a certain attribute. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus// unique identifier) representing a user that has been recently deleted. For// example, `alice@example.com?uid=123456789012345678901`. If the user is// recovered, this value reverts to `user:{emailid}` and the recovered user// retains the role in the binding. *// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus// unique identifier) representing a service account that has been recently// deleted. For example,// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the// service account is undeleted, this value reverts to// `serviceAccount:{emailid}` and the undeleted service account retains the// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email// address (plus unique identifier) representing a Google group that has been// recently deleted. For example,// `admins@example.com?uid=123456789012345678901`. If the group is recovered,// this value reverts to `group:{emailid}` and the recovered group retains the// role in the binding. *// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool// _id}/subject/{subject_attribute_value}`: Deleted single identity in a// workforce identity pool. For example,// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po// ol-id/subject/my-subject-attribute-value`.Members []string `json:"members,omitempty"`// Role: Role that is assigned to the list of `members`, or principals. For// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview// of the IAM roles and permissions, see the IAM documentation// (https://cloud.google.com/iam/docs/roles-overview). For a list of the// available pre-defined roles, see here// (https://cloud.google.com/iam/docs/understanding-roles).Rolestring `json:"role,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Condition") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Binding: Associates `members`, or principals, with a `role`.
func (Binding)MarshalJSON¶
typeBranch¶
type Branch struct {// Ref: Required. Name of the branch.Refstring `json:"ref,omitempty"`// Sha: Output only. The commit at the tip of the branch.Shastring `json:"sha,omitempty"`// ForceSendFields is a list of field names (e.g. "Ref") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Ref") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Branch: Branch represents a branch involved in a pull request.
func (Branch)MarshalJSON¶
typeBranchRule¶
type BranchRule struct {// AllowStaleReviews: Optional. Determines if allow stale reviews or approvals// before merging to the branch.AllowStaleReviewsbool `json:"allowStaleReviews,omitempty"`// Annotations: Optional. User annotations. These attributes can only be set// and used by the user. Seehttps://google.aip.dev/128#annotations for more// details such as format and size limitations.Annotations map[string]string `json:"annotations,omitempty"`// CreateTime: Output only. Create timestamp.CreateTimestring `json:"createTime,omitempty"`// Disabled: Optional. Determines if the branch rule is disabled or not.Disabledbool `json:"disabled,omitempty"`// Etag: Optional. This checksum is computed by the server based on the value// of other fields, and may be sent on update and delete requests to ensure the// client has an up-to-date value before proceeding.Etagstring `json:"etag,omitempty"`// IncludePattern: Optional. The pattern of the branch that can match to this// BranchRule. Specified as regex. .* for all branches. Examples: main,// (main|release.*). Current MVP phase only support `.*` for wildcard.IncludePatternstring `json:"includePattern,omitempty"`// MinimumApprovalsCount: Optional. The minimum number of approvals required// for the branch rule to be matched.MinimumApprovalsCountint64 `json:"minimumApprovalsCount,omitempty"`// MinimumReviewsCount: Optional. The minimum number of reviews required for// the branch rule to be matched.MinimumReviewsCountint64 `json:"minimumReviewsCount,omitempty"`// Name: Optional. A unique identifier for a BranchRule. The name should be of// the format:// `projects/{project}/locations/{location}/repositories/{repository}/branchRule// s/{branch_rule}`Namestring `json:"name,omitempty"`// RequireCommentsResolved: Optional. Determines if require comments resolved// before merging to the branch.RequireCommentsResolvedbool `json:"requireCommentsResolved,omitempty"`// RequireLinearHistory: Optional. Determines if require linear history before// merging to the branch.RequireLinearHistorybool `json:"requireLinearHistory,omitempty"`// RequirePullRequest: Optional. Determines if the branch rule requires a pull// request or not.RequirePullRequestbool `json:"requirePullRequest,omitempty"`// RequiredStatusChecks: Optional. List of required status checks before// merging to the branch.RequiredStatusChecks []*Check `json:"requiredStatusChecks,omitempty"`// Uid: Output only. Unique identifier of the repository.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. Update timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AllowStaleReviews") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowStaleReviews") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}BranchRule: Metadata of a BranchRule. BranchRule is the protection rule toenforce pre-defined rules on designated branches within a repository.
func (BranchRule)MarshalJSON¶
func (sBranchRule) MarshalJSON() ([]byte,error)
typeCancelOperationRequest¶
type CancelOperationRequest struct {}CancelOperationRequest: The request message for Operations.CancelOperation.
typeCheck¶
type Check struct {// Context: Required. The context of the check.Contextstring `json:"context,omitempty"`// ForceSendFields is a list of field names (e.g. "Context") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Context") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Check: Check is a type for status check.
func (Check)MarshalJSON¶
typeCloseIssueRequest¶
type CloseIssueRequest struct {// Etag: Optional. The current etag of the issue. If the etag is provided and// does not match the current etag of the issue, closing will be blocked and an// ABORTED error will be returned.Etagstring `json:"etag,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CloseIssueRequest: The request to close an issue.
func (CloseIssueRequest)MarshalJSON¶
func (sCloseIssueRequest) MarshalJSON() ([]byte,error)
typeClosePullRequestRequest¶
type ClosePullRequestRequest struct {}ClosePullRequestRequest: ClosePullRequestRequest is the request to close apull request.
typeCode¶
type Code struct {// Body: Required. The comment body.Bodystring `json:"body,omitempty"`// EffectiveCommitSha: Output only. The effective commit sha this code comment// is pointing to.EffectiveCommitShastring `json:"effectiveCommitSha,omitempty"`// EffectiveRootComment: Output only. The root comment of the conversation,// derived from the reply field.EffectiveRootCommentstring `json:"effectiveRootComment,omitempty"`// Position: Optional. The position of the comment.Position *Position `json:"position,omitempty"`// Reply: Optional. Input only. The PullRequestComment resource name that this// comment is replying to.Replystring `json:"reply,omitempty"`// Resolved: Output only. Boolean indicator if the comment is resolved.Resolvedbool `json:"resolved,omitempty"`// ForceSendFields is a list of field names (e.g. "Body") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Body") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Code: The comment on a code line.
func (Code)MarshalJSON¶
typeComment¶
type Comment struct {// Body: Required. The comment body.Bodystring `json:"body,omitempty"`// ForceSendFields is a list of field names (e.g. "Body") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Body") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Comment: The general pull request comment.
func (Comment)MarshalJSON¶
typeCreatePullRequestCommentRequest¶
type CreatePullRequestCommentRequest struct {// Parent: Required. The pull request in which to create the pull request// comment. Format:// `projects/{project_number}/locations/{location_id}/repositories/{repository_i// d}/pullRequests/{pull_request_id}`Parentstring `json:"parent,omitempty"`// PullRequestComment: Required. The pull request comment to create.PullRequestComment *PullRequestComment `json:"pullRequestComment,omitempty"`// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Parent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreatePullRequestCommentRequest: The request to create a pull requestcomment.
func (CreatePullRequestCommentRequest)MarshalJSON¶
func (sCreatePullRequestCommentRequest) MarshalJSON() ([]byte,error)
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeExpr¶
type Expr struct {// Description: Optional. Description of the expression. This is a longer text// which describes the expression, e.g. when hovered over it in a UI.Descriptionstring `json:"description,omitempty"`// Expression: Textual representation of an expression in Common Expression// Language syntax.Expressionstring `json:"expression,omitempty"`// Location: Optional. String indicating the location of the expression for// error reporting, e.g. a file name and a position in the file.Locationstring `json:"location,omitempty"`// Title: Optional. Title for the expression, i.e. a short string describing// its purpose. This can be used e.g. in UIs which allow to enter the// expression.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Expr: Represents a textual expression in the Common Expression Language(CEL) syntax. CEL is a C-like expression language. The syntax and semanticsof CEL are documented athttps://github.com/google/cel-spec. Example(Comparison): title: "Summary size limit" description: "Determines if asummary is less than 100 chars" expression: "document.summary.size() < 100"Example (Equality): title: "Requestor is owner" description: "Determines ifrequestor is the document owner" expression: "document.owner ==request.auth.claims.email" Example (Logic): title: "Public documents"description: "Determine whether the document should be publicly visible"expression: "document.type != 'private' && document.type != 'internal'"Example (Data Manipulation): title: "Notification string" description:"Create a notification string with a timestamp." expression: "'New messagereceived at ' + string(document.create_time)" The exact variables andfunctions that may be referenced within an expression are determined by theservice that evaluates it. See the service documentation for additionalinformation.
func (Expr)MarshalJSON¶
typeFetchBlobResponse¶
type FetchBlobResponse struct {// Content: The content of the blob, encoded as base64.Contentstring `json:"content,omitempty"`// Sha: The SHA-1 hash of the blob.Shastring `json:"sha,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Content") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Content") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}FetchBlobResponse: Response message containing the content of a blob.
func (FetchBlobResponse)MarshalJSON¶
func (sFetchBlobResponse) MarshalJSON() ([]byte,error)
typeFetchTreeResponse¶
type FetchTreeResponse struct {// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// TreeEntries: The list of TreeEntry objects.TreeEntries []*TreeEntry `json:"treeEntries,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}FetchTreeResponse: Response message containing a list of TreeEntry objects.
func (FetchTreeResponse)MarshalJSON¶
func (sFetchTreeResponse) MarshalJSON() ([]byte,error)
typeFileDiff¶
type FileDiff struct {// Action: Output only. The action taken on the file (eg. added, modified,// deleted).//// Possible values:// "ACTION_UNSPECIFIED" - Unspecified.// "ADDED" - The file was added.// "MODIFIED" - The file was modified.// "DELETED" - The file was deleted.Actionstring `json:"action,omitempty"`// Name: Output only. The name of the file.Namestring `json:"name,omitempty"`// Patch: Output only. The git patch containing the file changes.Patchstring `json:"patch,omitempty"`// Sha: Output only. The commit pointing to the file changes.Shastring `json:"sha,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Action") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}FileDiff: Metadata of a FileDiff. FileDiff represents a single file diff ina pull request.
func (FileDiff)MarshalJSON¶
typeHook¶
type Hook struct {// CreateTime: Output only. Create timestamp.CreateTimestring `json:"createTime,omitempty"`// Disabled: Optional. Determines if the hook disabled or not. Set to true to// stop sending traffic.Disabledbool `json:"disabled,omitempty"`// Events: Optional. The events that trigger hook on.//// Possible values:// "UNSPECIFIED" - Unspecified.// "PUSH" - Push events are triggered when pushing to the repository.// "PULL_REQUEST" - Pull request events are triggered when a pull request is// opened, closed, reopened, or edited.Events []string `json:"events,omitempty"`// Name: Identifier. A unique identifier for a Hook. The name should be of the// format:// `projects/{project}/locations/{location_id}/repositories/{repository_id}/hook// s/{hook_id}`Namestring `json:"name,omitempty"`// PushOption: Optional. The trigger option for push events.PushOption *PushOption `json:"pushOption,omitempty"`// SensitiveQueryString: Optional. The sensitive query string to be appended to// the target URI.SensitiveQueryStringstring `json:"sensitiveQueryString,omitempty"`// TargetUri: Required. The target URI to which the payloads will be delivered.TargetUristring `json:"targetUri,omitempty"`// Uid: Output only. Unique identifier of the hook.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. Update timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Hook: Metadata of a Secure Source Manager Hook.
func (Hook)MarshalJSON¶
typeHostConfig¶
type HostConfig struct {// Api: Output only. API hostname.Apistring `json:"api,omitempty"`// GitHttp: Output only. Git HTTP hostname.GitHttpstring `json:"gitHttp,omitempty"`// GitSsh: Output only. Git SSH hostname.GitSshstring `json:"gitSsh,omitempty"`// Html: Output only. HTML hostname.Htmlstring `json:"html,omitempty"`// ForceSendFields is a list of field names (e.g. "Api") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Api") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}HostConfig: HostConfig has different instance endpoints.
func (HostConfig)MarshalJSON¶
func (sHostConfig) MarshalJSON() ([]byte,error)
typeInitialConfig¶
type InitialConfig struct {// DefaultBranch: Default branch name of the repository.DefaultBranchstring `json:"defaultBranch,omitempty"`// Gitignores: List of gitignore template names user can choose from. Valid// values: actionscript, ada, agda, android, anjuta, ansible,// appcelerator-titanium, app-engine, archives, arch-linux-packages,// atmel-studio, autotools, backup, bazaar, bazel, bitrix, bricx-cc, c,// cake-php, calabash, cf-wheels, chef-cookbook, clojure, cloud9, c-make,// code-igniter, code-kit, code-sniffer, common-lisp, composer, concrete5, coq,// cordova, cpp, craft-cms, cuda, cvs, d, dart, dart-editor, delphi, diff, dm,// dreamweaver, dropbox, drupal, drupal-7, eagle, eclipse, eiffel-studio,// elisp, elixir, elm, emacs, ensime, epi-server, erlang, esp-idf, espresso,// exercism, expression-engine, ext-js, fancy, finale, flex-builder,// force-dot-com, fortran, fuel-php, gcov, git-book, gnome-shell-extension, go,// godot, gpg, gradle, grails, gwt, haskell, hugo, iar-ewarm, idris, igor-pro,// images, infor-cms, java, jboss, jboss-4, jboss-6, jdeveloper, jekyll,// jenkins-home, jenv, jet-brains, jigsaw, joomla, julia, jupyter-notebooks,// kate, kdevelop4, kentico, ki-cad, kohana, kotlin, lab-view, laravel,// lazarus, leiningen, lemon-stand, libre-office, lilypond, linux, lithium,// logtalk, lua, lyx, mac-os, magento, magento-1, magento-2, matlab, maven,// mercurial, mercury, metals, meta-programming-system, meteor,// microsoft-office, model-sim, momentics, mono-develop, nanoc, net-beans,// nikola, nim, ninja, node, notepad-pp, nwjs, objective--c, ocaml, octave,// opa, open-cart, openssl, oracle-forms, otto, packer, patch, perl, perl6,// phalcon, phoenix, pimcore, play-framework, plone, prestashop, processing,// psoc-creator, puppet, pure-script, putty, python, qooxdoo, qt, r, racket,// rails, raku, red, redcar, redis, rhodes-rhomobile, ros, ruby, rust, sam,// sass, sbt, scala, scheme, scons, scrivener, sdcc, seam-gen, sketch-up,// slick-edit, smalltalk, snap, splunk, stata, stella, sublime-text, sugar-crm,// svn, swift, symfony, symphony-cms, synopsys-vcs, tags, terraform, tex,// text-mate, textpattern, think-php, tortoise-git, turbo-gears-2, typo3,// umbraco, unity, unreal-engine, vagrant, vim, virtual-env, virtuoso,// visual-studio, visual-studio-code, vue, vvvv, waf, web-methods, windows,// word-press, xcode, xilinx, xilinx-ise, xojo, yeoman, yii, zend-framework,// zephir.Gitignores []string `json:"gitignores,omitempty"`// License: License template name user can choose from. Valid values:// license-0bsd, license-389-exception, aal, abstyles, adobe-2006, adobe-glyph,// adsl, afl-1-1, afl-1-2, afl-2-0, afl-2-1, afl-3-0, afmparse, agpl-1-0,// agpl-1-0-only, agpl-1-0-or-later, agpl-3-0-only, agpl-3-0-or-later, aladdin,// amdplpa, aml, ampas, antlr-pd, antlr-pd-fallback, apache-1-0, apache-1-1,// apache-2-0, apafml, apl-1-0, apsl-1-0, apsl-1-1, apsl-1-2, apsl-2-0,// artistic-1-0, artistic-1-0-cl8, artistic-1-0-perl, artistic-2-0,// autoconf-exception-2-0, autoconf-exception-3-0, bahyph, barr, beerware,// bison-exception-2-2, bittorrent-1-0, bittorrent-1-1, blessing,// blueoak-1-0-0, bootloader-exception, borceux, bsd-1-clause, bsd-2-clause,// bsd-2-clause-freebsd, bsd-2-clause-netbsd, bsd-2-clause-patent,// bsd-2-clause-views, bsd-3-clause, bsd-3-clause-attribution,// bsd-3-clause-clear, bsd-3-clause-lbnl, bsd-3-clause-modification,// bsd-3-clause-no-nuclear-license, bsd-3-clause-no-nuclear-license-2014,// bsd-3-clause-no-nuclear-warranty, bsd-3-clause-open-mpi, bsd-4-clause,// bsd-4-clause-shortened, bsd-4-clause-uc, bsd-protection, bsd-source-code,// bsl-1-0, busl-1-1, cal-1-0, cal-1-0-combined-work-exception, caldera,// catosl-1-1, cc0-1-0, cc-by-1-0, cc-by-2-0, cc-by-3-0, cc-by-3-0-at,// cc-by-3-0-us, cc-by-4-0, cc-by-nc-1-0, cc-by-nc-2-0, cc-by-nc-3-0,// cc-by-nc-4-0, cc-by-nc-nd-1-0, cc-by-nc-nd-2-0, cc-by-nc-nd-3-0,// cc-by-nc-nd-3-0-igo, cc-by-nc-nd-4-0, cc-by-nc-sa-1-0, cc-by-nc-sa-2-0,// cc-by-nc-sa-3-0, cc-by-nc-sa-4-0, cc-by-nd-1-0, cc-by-nd-2-0, cc-by-nd-3-0,// cc-by-nd-4-0, cc-by-sa-1-0, cc-by-sa-2-0, cc-by-sa-2-0-uk, cc-by-sa-2-1-jp,// cc-by-sa-3-0, cc-by-sa-3-0-at, cc-by-sa-4-0, cc-pddc, cddl-1-0, cddl-1-1,// cdla-permissive-1-0, cdla-sharing-1-0, cecill-1-0, cecill-1-1, cecill-2-0,// cecill-2-1, cecill-b, cecill-c, cern-ohl-1-1, cern-ohl-1-2, cern-ohl-p-2-0,// cern-ohl-s-2-0, cern-ohl-w-2-0, clartistic, classpath-exception-2-0,// clisp-exception-2-0, cnri-jython, cnri-python, cnri-python-gpl-compatible,// condor-1-1, copyleft-next-0-3-0, copyleft-next-0-3-1, cpal-1-0, cpl-1-0,// cpol-1-02, crossword, crystal-stacker, cua-opl-1-0, cube, c-uda-1-0, curl,// d-fsl-1-0, diffmark, digirule-foss-exception, doc, dotseqn, drl-1-0, dsdp,// dvipdfm, ecl-1-0, ecl-2-0, ecos-exception-2-0, efl-1-0, efl-2-0, egenix,// entessa, epics, epl-1-0, epl-2-0, erlpl-1-1, etalab-2-0, eu-datagrid,// eupl-1-0, eupl-1-1, eupl-1-2, eurosym, fair, fawkes-runtime-exception,// fltk-exception, font-exception-2-0, frameworx-1-0, freebsd-doc, freeimage,// freertos-exception-2-0, fsfap, fsful, fsfullr, ftl, gcc-exception-2-0,// gcc-exception-3-1, gd, gfdl-1-1-invariants-only,// gfdl-1-1-invariants-or-later, gfdl-1-1-no-invariants-only,// gfdl-1-1-no-invariants-or-later, gfdl-1-1-only, gfdl-1-1-or-later,// gfdl-1-2-invariants-only, gfdl-1-2-invariants-or-later,// gfdl-1-2-no-invariants-only, gfdl-1-2-no-invariants-or-later, gfdl-1-2-only,// gfdl-1-2-or-later, gfdl-1-3-invariants-only, gfdl-1-3-invariants-or-later,// gfdl-1-3-no-invariants-only, gfdl-1-3-no-invariants-or-later, gfdl-1-3-only,// gfdl-1-3-or-later, giftware, gl2ps, glide, glulxe, glwtpl,// gnu-javamail-exception, gnuplot, gpl-1-0-only, gpl-1-0-or-later,// gpl-2-0-only, gpl-2-0-or-later, gpl-3-0-linking-exception,// gpl-3-0-linking-source-exception, gpl-3-0-only, gpl-3-0-or-later,// gpl-cc-1-0, gsoap-1-3b, haskell-report, hippocratic-2-1, hpnd,// hpnd-sell-variant, htmltidy, i2p-gpl-java-exception, ibm-pibs, icu, ijg,// image-magick, imatix, imlib2, info-zip, intel, intel-acpi, interbase-1-0,// ipa, ipl-1-0, isc, jasper-2-0, jpnic, json, lal-1-2, lal-1-3, latex2e,// leptonica, lgpl-2-0-only, lgpl-2-0-or-later, lgpl-2-1-only,// lgpl-2-1-or-later, lgpl-3-0-linking-exception, lgpl-3-0-only,// lgpl-3-0-or-later, lgpllr, libpng, libpng-2-0, libselinux-1-0, libtiff,// libtool-exception, liliq-p-1-1, liliq-r-1-1, liliq-rplus-1-1, linux-openib,// linux-syscall-note, llvm-exception, lpl-1-0, lpl-1-02, lppl-1-0, lppl-1-1,// lppl-1-2, lppl-1-3a, lppl-1-3c, lzma-exception, make-index, mif-exception,// miros, mit, mit-0, mit-advertising, mit-cmu, mit-enna, mit-feh,// mit-modern-variant, mitnfa, mit-open-group, motosoto, mpich2, mpl-1-0,// mpl-1-1, mpl-2-0, mpl-2-0-no-copyleft-exception, ms-pl, ms-rl, mtll,// mulanpsl-1-0, mulanpsl-2-0, multics, mup, naist-2003, nasa-1-3, naumen,// nbpl-1-0, ncgl-uk-2-0, ncsa, netcdf, net-snmp, newsletr, ngpl, nist-pd,// nist-pd-fallback, nlod-1-0, nlpl, nokia, nokia-qt-exception-1-1, nosl,// noweb, npl-1-0, npl-1-1, nposl-3-0, nrl, ntp, ntp-0,// ocaml-lgpl-linking-exception, occt-exception-1-0, occt-pl, oclc-2-0,// odbl-1-0, odc-by-1-0, ofl-1-0, ofl-1-0-no-rfn, ofl-1-0-rfn, ofl-1-1,// ofl-1-1-no-rfn, ofl-1-1-rfn, ogc-1-0, ogdl-taiwan-1-0, ogl-canada-2-0,// ogl-uk-1-0, ogl-uk-2-0, ogl-uk-3-0, ogtsl, oldap-1-1, oldap-1-2, oldap-1-3,// oldap-1-4, oldap-2-0, oldap-2-0-1, oldap-2-1, oldap-2-2, oldap-2-2-1,// oldap-2-2-2, oldap-2-3, oldap-2-4, oldap-2-7, oml,// openjdk-assembly-exception-1-0, openssl, openvpn-openssl-exception, opl-1-0,// oset-pl-2-1, osl-1-0, osl-1-1, osl-2-0, osl-2-1, osl-3-0, o-uda-1-0,// parity-6-0-0, parity-7-0-0, pddl-1-0, php-3-0, php-3-01, plexus,// polyform-noncommercial-1-0-0, polyform-small-business-1-0-0, postgresql,// psf-2-0, psfrag, ps-or-pdf-font-exception-20170817, psutils, python-2-0,// qhull, qpl-1-0, qt-gpl-exception-1-0, qt-lgpl-exception-1-1,// qwt-exception-1-0, rdisc, rhecos-1-1, rpl-1-1, rpsl-1-0, rsa-md, rscpl,// ruby, saxpath, sax-pd, scea, sendmail, sendmail-8-23, sgi-b-1-0, sgi-b-1-1,// sgi-b-2-0, shl-0-51, shl-2-0, shl-2-1, simpl-2-0, sissl, sissl-1-2,// sleepycat, smlnj, smppl, snia, spencer-86, spencer-94, spencer-99, spl-1-0,// ssh-openssh, ssh-short, sspl-1-0, sugarcrm-1-1-3, swift-exception, swl,// tapr-ohl-1-0, tcl, tcp-wrappers, tmate, torque-1-1, tosl, tu-berlin-1-0,// tu-berlin-2-0, u-boot-exception-2-0, ucl-1-0, unicode-dfs-2015,// unicode-dfs-2016, unicode-tou, universal-foss-exception-1-0, unlicense,// upl-1-0, vim, vostrom, vsl-1-0, w3c, w3c-19980720, w3c-20150513, watcom-1-0,// wsuipa, wtfpl, wxwindows-exception-3-1, x11, xerox, xfree86-1-1, xinetd,// xnet, xpp, xskat, ypl-1-0, ypl-1-1, zed, zend-2-0, zimbra-1-3, zimbra-1-4,// zlib, zlib-acknowledgement, zpl-1-1, zpl-2-0, zpl-2-1.Licensestring `json:"license,omitempty"`// Readme: README template name. Valid template name(s) are: default.Readmestring `json:"readme,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultBranch") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultBranch") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InitialConfig: Repository initialization configuration.
func (InitialConfig)MarshalJSON¶
func (sInitialConfig) MarshalJSON() ([]byte,error)
typeInstance¶
type Instance struct {// CreateTime: Output only. Create timestamp.CreateTimestring `json:"createTime,omitempty"`// HostConfig: Output only. A list of hostnames for this instance.HostConfig *HostConfig `json:"hostConfig,omitempty"`// KmsKey: Optional. Immutable. Customer-managed encryption key name, in the// format projects/*/locations/*/keyRings/*/cryptoKeys/*.KmsKeystring `json:"kmsKey,omitempty"`// Labels: Optional. Labels as key value pairs.Labels map[string]string `json:"labels,omitempty"`// Name: Optional. A unique identifier for an instance. The name should be of// the format:// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`// `project_number`: Maps to a unique int64 id assigned to each project.// `location_id`: Refers to the region where the instance will be deployed.// Since Secure Source Manager is a regional service, it must be one of the// valid GCP regions. `instance_id`: User provided name for the instance, must// be unique for a project_number and location_id combination.Namestring `json:"name,omitempty"`// PrivateConfig: Optional. Private settings for private instance.PrivateConfig *PrivateConfig `json:"privateConfig,omitempty"`// State: Output only. Current state of the instance.//// Possible values:// "STATE_UNSPECIFIED" - Not set. This should only be the case for incoming// requests.// "CREATING" - Instance is being created.// "ACTIVE" - Instance is ready.// "DELETING" - Instance is being deleted.// "PAUSED" - Instance is paused.// "UNKNOWN" - Instance is unknown, we are not sure if it's functioning.Statestring `json:"state,omitempty"`// StateNote: Output only. An optional field providing information about the// current instance state.//// Possible values:// "STATE_NOTE_UNSPECIFIED" - STATE_NOTE_UNSPECIFIED as the first value of// State.// "PAUSED_CMEK_UNAVAILABLE" - CMEK access is unavailable.// "INSTANCE_RESUMING" - INSTANCE_RESUMING indicates that the instance was// previously paused and is under the process of being brought back.StateNotestring `json:"stateNote,omitempty"`// UpdateTime: Output only. Update timestamp.UpdateTimestring `json:"updateTime,omitempty"`// WorkforceIdentityFederationConfig: Optional. Configuration for Workforce// Identity Federation to support third party identity provider. If unset,// defaults to the Google OIDC IdP.WorkforceIdentityFederationConfig *WorkforceIdentityFederationConfig `json:"workforceIdentityFederationConfig,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Instance: A resource that represents a Secure Source Manager instance.
func (Instance)MarshalJSON¶
typeIssue¶
type Issue struct {// Body: Optional. Issue body. Provides a detailed description of the issue.Bodystring `json:"body,omitempty"`// CloseTime: Output only. Close timestamp (if closed). Cleared when is// re-opened.CloseTimestring `json:"closeTime,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Etag: Optional. This checksum is computed by the server based on the value// of other fields, and may be sent on update and delete requests to ensure the// client has an up-to-date value before proceeding.Etagstring `json:"etag,omitempty"`// Name: Identifier. Unique identifier for an issue. The issue id is generated// by the server. Format:// `projects/{project}/locations/{location}/repositories/{repository}/issues/{is// sue_id}`Namestring `json:"name,omitempty"`// State: Output only. State of the issue.//// Possible values:// "STATE_UNSPECIFIED" - Unspecified.// "OPEN" - An open issue.// "CLOSED" - A closed issue.Statestring `json:"state,omitempty"`// Title: Required. Issue title.Titlestring `json:"title,omitempty"`// UpdateTime: Output only. Last updated timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Body") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Body") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Issue: Metadata of an Issue.
func (Issue)MarshalJSON¶
typeIssueComment¶
type IssueComment struct {// Body: Required. The comment body.Bodystring `json:"body,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Name: Identifier. Unique identifier for an issue comment. The comment id is// generated by the server. Format:// `projects/{project}/locations/{location}/repositories/{repository}/issues/{is// sue}/issueComments/{comment_id}`Namestring `json:"name,omitempty"`// UpdateTime: Output only. Last updated timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Body") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Body") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}IssueComment: IssueComment represents a comment on an issue.
func (IssueComment)MarshalJSON¶
func (sIssueComment) MarshalJSON() ([]byte,error)
typeListBranchRulesResponse¶
type ListBranchRulesResponse struct {// BranchRules: The list of branch rules.BranchRules []*BranchRule `json:"branchRules,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BranchRules") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BranchRules") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListBranchRulesResponse: ListBranchRulesResponse is the response to listingbranchRules.
func (ListBranchRulesResponse)MarshalJSON¶
func (sListBranchRulesResponse) MarshalJSON() ([]byte,error)
typeListHooksResponse¶
type ListHooksResponse struct {// Hooks: The list of hooks.Hooks []*Hook `json:"hooks,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Hooks") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hooks") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListHooksResponse: ListHooksResponse is response to list hooks.
func (ListHooksResponse)MarshalJSON¶
func (sListHooksResponse) MarshalJSON() ([]byte,error)
typeListInstancesResponse¶
type ListInstancesResponse struct {// Instances: The list of instances.Instances []*Instance `json:"instances,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Instances") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Instances") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListInstancesResponse)MarshalJSON¶
func (sListInstancesResponse) MarshalJSON() ([]byte,error)
typeListIssueCommentsResponse¶
type ListIssueCommentsResponse struct {// IssueComments: The list of issue comments.IssueComments []*IssueComment `json:"issueComments,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "IssueComments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IssueComments") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListIssueCommentsResponse: The response to list issue comments.
func (ListIssueCommentsResponse)MarshalJSON¶
func (sListIssueCommentsResponse) MarshalJSON() ([]byte,error)
typeListIssuesResponse¶
type ListIssuesResponse struct {// Issues: The list of issues.Issues []*Issue `json:"issues,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Issues") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Issues") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListIssuesResponse: The response to list issues.
func (ListIssuesResponse)MarshalJSON¶
func (sListIssuesResponse) MarshalJSON() ([]byte,error)
typeListLocationsResponse¶
type ListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*Location `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse)MarshalJSON¶
func (sListLocationsResponse) MarshalJSON() ([]byte,error)
typeListOperationsResponse¶
type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*Operation `json:"operations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse)MarshalJSON¶
func (sListOperationsResponse) MarshalJSON() ([]byte,error)
typeListPullRequestCommentsResponse¶
type ListPullRequestCommentsResponse struct {// NextPageToken: A token to set as page_token to retrieve the next page. If// this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// PullRequestComments: The list of pull request comments.PullRequestComments []*PullRequestComment `json:"pullRequestComments,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListPullRequestCommentsResponse: The response to list pull request comments.
func (ListPullRequestCommentsResponse)MarshalJSON¶
func (sListPullRequestCommentsResponse) MarshalJSON() ([]byte,error)
typeListPullRequestFileDiffsResponse¶
type ListPullRequestFileDiffsResponse struct {// FileDiffs: The list of pull request file diffs.FileDiffs []*FileDiff `json:"fileDiffs,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FileDiffs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FileDiffs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListPullRequestFileDiffsResponse: ListPullRequestFileDiffsResponse is theresponse containing file diffs returned from ListPullRequestFileDiffs.
func (ListPullRequestFileDiffsResponse)MarshalJSON¶
func (sListPullRequestFileDiffsResponse) MarshalJSON() ([]byte,error)
typeListPullRequestsResponse¶
type ListPullRequestsResponse struct {// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// PullRequests: The list of pull requests.PullRequests []*PullRequest `json:"pullRequests,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListPullRequestsResponse: ListPullRequestsResponse is the response to listpull requests.
func (ListPullRequestsResponse)MarshalJSON¶
func (sListPullRequestsResponse) MarshalJSON() ([]byte,error)
typeListRepositoriesResponse¶
type ListRepositoriesResponse struct {// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `json:"nextPageToken,omitempty"`// Repositories: The list of repositories.Repositories []*Repository `json:"repositories,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ListRepositoriesResponse)MarshalJSON¶
func (sListRepositoriesResponse) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Location: A resource that represents a Google Cloud location.
func (Location)MarshalJSON¶
typeMergePullRequestRequest¶
type MergePullRequestRequest struct {}MergePullRequestRequest: MergePullRequestRequest is the request to merge apull request.
typeOpenIssueRequest¶
type OpenIssueRequest struct {// Etag: Optional. The current etag of the issue. If the etag is provided and// does not match the current etag of the issue, opening will be blocked and an// ABORTED error will be returned.Etagstring `json:"etag,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}OpenIssueRequest: The request to open an issue.
func (OpenIssueRequest)MarshalJSON¶
func (sOpenIssueRequest) MarshalJSON() ([]byte,error)
typeOpenPullRequestRequest¶
type OpenPullRequestRequest struct {}OpenPullRequestRequest: OpenPullRequestRequest is the request to open a pullrequest.
typeOperation¶
type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Operation: This resource represents a long-running operation that is theresult of a network API call.
func (Operation)MarshalJSON¶
typeOperationMetadata¶
type OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// RequestedCancellation: Output only. Identifies whether the user has// requested cancellation of the operation. Operations that have successfully// been cancelled have Operation.error value with a google.rpc.Status.code of// 1, corresponding to `Code.CANCELLED`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}OperationMetadata: Represents the metadata of the long-running operation.
func (OperationMetadata)MarshalJSON¶
func (sOperationMetadata) MarshalJSON() ([]byte,error)
typePolicy¶
type Policy struct {// AuditConfigs: Specifies cloud audit logging configuration for this policy.AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`// Bindings: Associates a list of `members`, or principals, with a `role`.// Optionally, may specify a `condition` that determines how and when the// `bindings` are applied. Each of the `bindings` must contain at least one// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;// up to 250 of these principals can be Google groups. Each occurrence of a// principal counts towards these limits. For example, if the `bindings` grant// 50 different roles to `user:alice@example.com`, and not to any other// principal, then you can add another 1,450 principals to the `bindings` in// the `Policy`.Bindings []*Binding `json:"bindings,omitempty"`// Etag: `etag` is used for optimistic concurrency control as a way to help// prevent simultaneous updates of a policy from overwriting each other. It is// strongly suggested that systems make use of the `etag` in the// read-modify-write cycle to perform policy updates in order to avoid race// conditions: An `etag` is returned in the response to `getIamPolicy`, and// systems are expected to put that etag in the request to `setIamPolicy` to// ensure that their change will be applied to the same version of the policy.// **Important:** If you use IAM Conditions, you must include the `etag` field// whenever you call `setIamPolicy`. If you omit this field, then IAM allows// you to overwrite a version `3` policy with a version `1` policy, and all of// the conditions in the version `3` policy are lost.Etagstring `json:"etag,omitempty"`// Version: Specifies the format of the policy. Valid values are `0`, `1`, and// `3`. Requests that specify an invalid value are rejected. Any operation that// affects conditional role bindings must specify version `3`. This requirement// applies to the following operations: * Getting a policy that includes a// conditional role binding * Adding a conditional role binding to a policy *// Changing a conditional role binding in a policy * Removing any role binding,// with or without a condition, from a policy that includes conditions// **Important:** If you use IAM Conditions, you must include the `etag` field// whenever you call `setIamPolicy`. If you omit this field, then IAM allows// you to overwrite a version `3` policy with a version `1` policy, and all of// the conditions in the version `3` policy are lost. If a policy does not// include any conditions, operations on that policy may specify any valid// version or leave the field unset. To learn which resources support// conditions in their IAM policies, see the IAM documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).Versionint64 `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AuditConfigs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuditConfigs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Policy: An Identity and Access Management (IAM) policy, which specifiesaccess controls for Google Cloud resources. A `Policy` is a collection of`bindings`. A `binding` binds one or more `members`, or principals, to asingle `role`. Principals can be user accounts, service accounts, Googlegroups, and domains (such as G Suite). A `role` is a named list ofpermissions; each `role` can be an IAM predefined role or a user-createdcustom role. For some types of Google Cloud resources, a `binding` can alsospecify a `condition`, which is a logical expression that allows access to aresource only if the expression evaluates to `true`. A condition can addconstraints based on attributes of the request, the resource, or both. Tolearn which resources support conditions in their IAM policies, see the IAMdocumentation(https://cloud.google.com/iam/help/conditions/resource-policies). **JSONexample:** ``` { "bindings": [ { "role":"roles/resourcemanager.organizationAdmin", "members": ["user:mike@example.com", "group:admins@example.com", "domain:google.com","serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role":"roles/resourcemanager.organizationViewer", "members": ["user:eve@example.com" ], "condition": { "title": "expirable access","description": "Does not grant access after Sep 2020", "expression":"request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag":"BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: -members: - user:mike@example.com - group:admins@example.com -domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.comrole: roles/resourcemanager.organizationAdmin - members: -user:eve@example.com role: roles/resourcemanager.organizationViewercondition: title: expirable access description: Does not grant access afterSep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z')etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features,see the IAM documentation (https://cloud.google.com/iam/docs/).
func (Policy)MarshalJSON¶
typePosition¶
type Position struct {// Line: Required. The line number of the comment. Positive value means it's on// the new side of the diff, negative value means it's on the old side.Lineint64 `json:"line,omitempty,string"`// Path: Required. The path of the file.Pathstring `json:"path,omitempty"`// ForceSendFields is a list of field names (e.g. "Line") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Line") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Position: The position of the code comment.
func (Position)MarshalJSON¶
typePrivateConfig¶
type PrivateConfig struct {// CaPool: Optional. Immutable. CA pool resource, resource must in the format// of `projects/{project}/locations/{location}/caPools/{ca_pool}`.CaPoolstring `json:"caPool,omitempty"`// HttpServiceAttachment: Output only. Service Attachment for HTTP, resource is// in the format of// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`// .HttpServiceAttachmentstring `json:"httpServiceAttachment,omitempty"`// IsPrivate: Required. Immutable. Indicate if it's private instance.IsPrivatebool `json:"isPrivate,omitempty"`// PscAllowedProjects: Optional. Additional allowed projects for setting up PSC// connections. Instance host project is automatically allowed and does not// need to be included in this list.PscAllowedProjects []string `json:"pscAllowedProjects,omitempty"`// SshServiceAttachment: Output only. Service Attachment for SSH, resource is// in the format of// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`// .SshServiceAttachmentstring `json:"sshServiceAttachment,omitempty"`// ForceSendFields is a list of field names (e.g. "CaPool") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CaPool") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PrivateConfig: PrivateConfig includes settings for private instance.
func (PrivateConfig)MarshalJSON¶
func (sPrivateConfig) MarshalJSON() ([]byte,error)
typeProjectsLocationsGetCall¶
type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGetCall)Context¶
func (c *ProjectsLocationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall)Do¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,error)
Do executes the "securesourcemanager.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall)Fields¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGetCall)Header¶
func (c *ProjectsLocationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInstancesCreateCall¶
type ProjectsLocationsInstancesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesCreateCall)Context¶
func (c *ProjectsLocationsInstancesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesCreateCall)Do¶
func (c *ProjectsLocationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.instances.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesCreateCall)Fields¶
func (c *ProjectsLocationsInstancesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesCreateCall)Header¶
func (c *ProjectsLocationsInstancesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesCreateCall)InstanceId¶
func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceIdstring) *ProjectsLocationsInstancesCreateCall
InstanceId sets the optional parameter "instanceId": Required. ID of theinstance to be created.
func (*ProjectsLocationsInstancesCreateCall)RequestId¶
func (c *ProjectsLocationsInstancesCreateCall) RequestId(requestIdstring) *ProjectsLocationsInstancesCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsInstancesDeleteCall¶
type ProjectsLocationsInstancesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesDeleteCall)Context¶
func (c *ProjectsLocationsInstancesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesDeleteCall)Do¶
func (c *ProjectsLocationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.instances.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesDeleteCall)Fields¶
func (c *ProjectsLocationsInstancesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesDeleteCall)Header¶
func (c *ProjectsLocationsInstancesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesDeleteCall)RequestId¶
func (c *ProjectsLocationsInstancesDeleteCall) RequestId(requestIdstring) *ProjectsLocationsInstancesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsInstancesGetCall¶
type ProjectsLocationsInstancesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesGetCall)Context¶
func (c *ProjectsLocationsInstancesGetCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesGetCall)Do¶
func (c *ProjectsLocationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*Instance,error)
Do executes the "securesourcemanager.projects.locations.instances.get" call.Any non-2xx status code is an error. Response headers are in either*Instance.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesGetCall)Fields¶
func (c *ProjectsLocationsInstancesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesGetCall)Header¶
func (c *ProjectsLocationsInstancesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInstancesGetIamPolicyCall¶
type ProjectsLocationsInstancesGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesGetIamPolicyCall)Context¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesGetIamPolicyCall)Do¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "securesourcemanager.projects.locations.instances.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesGetIamPolicyCall)Fields¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesGetIamPolicyCall)Header¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesGetIamPolicyCall)IfNoneMatch¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsInstancesGetIamPolicyCall)OptionsRequestedPolicyVersion¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsInstancesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).
typeProjectsLocationsInstancesListCall¶
type ProjectsLocationsInstancesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesListCall)Context¶
func (c *ProjectsLocationsInstancesListCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesListCall)Do¶
func (c *ProjectsLocationsInstancesListCall) Do(opts ...googleapi.CallOption) (*ListInstancesResponse,error)
Do executes the "securesourcemanager.projects.locations.instances.list" call.Any non-2xx status code is an error. Response headers are in either*ListInstancesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsInstancesListCall)Fields¶
func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesListCall)Filter¶
func (c *ProjectsLocationsInstancesListCall) Filter(filterstring) *ProjectsLocationsInstancesListCall
Filter sets the optional parameter "filter": Filter for filtering results.
func (*ProjectsLocationsInstancesListCall)Header¶
func (c *ProjectsLocationsInstancesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInstancesListCall)IfNoneMatch¶
func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInstancesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsInstancesListCall)OrderBy¶
func (c *ProjectsLocationsInstancesListCall) OrderBy(orderBystring) *ProjectsLocationsInstancesListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults.
func (*ProjectsLocationsInstancesListCall)PageSize¶
func (c *ProjectsLocationsInstancesListCall) PageSize(pageSizeint64) *ProjectsLocationsInstancesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsInstancesListCall)PageToken¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageTokenstring) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsInstancesListCall)Pages¶
func (c *ProjectsLocationsInstancesListCall) Pages(ctxcontext.Context, f func(*ListInstancesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsInstancesService¶
type ProjectsLocationsInstancesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsInstancesService¶
func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService
func (*ProjectsLocationsInstancesService)Create¶
func (r *ProjectsLocationsInstancesService) Create(parentstring, instance *Instance) *ProjectsLocationsInstancesCreateCall
Create: Creates a new instance in a given project and location.
- parent: Value for parent.
func (*ProjectsLocationsInstancesService)Delete¶
func (r *ProjectsLocationsInstancesService) Delete(namestring) *ProjectsLocationsInstancesDeleteCall
Delete: Deletes a single instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)Get¶
func (r *ProjectsLocationsInstancesService) Get(namestring) *ProjectsLocationsInstancesGetCall
Get: Gets details of a single instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService)GetIamPolicy¶
func (r *ProjectsLocationsInstancesService) GetIamPolicy(resourcestring) *ProjectsLocationsInstancesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns anempty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsInstancesService)List¶
func (r *ProjectsLocationsInstancesService) List(parentstring) *ProjectsLocationsInstancesListCall
List: Lists Instances in a given project and location.
- parent: Parent value for ListInstancesRequest.
func (*ProjectsLocationsInstancesService)SetIamPolicy¶
func (r *ProjectsLocationsInstancesService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsInstancesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource.Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`,and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsInstancesService)TestIamPermissions¶
func (r *ProjectsLocationsInstancesService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsInstancesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specifiedresource. If the resource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to beused for building permission-aware UIs and command-line tools, not forauthorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
typeProjectsLocationsInstancesSetIamPolicyCall¶
type ProjectsLocationsInstancesSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesSetIamPolicyCall)Context¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesSetIamPolicyCall)Do¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "securesourcemanager.projects.locations.instances.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesSetIamPolicyCall)Fields¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesSetIamPolicyCall)Header¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInstancesTestIamPermissionsCall¶
type ProjectsLocationsInstancesTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInstancesTestIamPermissionsCall)Context¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsInstancesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInstancesTestIamPermissionsCall)Do¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
Do executes the "securesourcemanager.projects.locations.instances.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInstancesTestIamPermissionsCall)Fields¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInstancesTestIamPermissionsCall)Header¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsListCall¶
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse,error)
Do executes the "securesourcemanager.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": A listof extra location types that should be used as conditions for controllingthe visibility of the locations.
func (*ProjectsLocationsListCall)Fields¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*ProjectsLocationsListCall)Header¶
func (c *ProjectsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶
func (c *ProjectsLocationsListCall) Pages(ctxcontext.Context, f func(*ListLocationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsOperationsCancelCall¶
type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsCancelCall)Context¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall)Do¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "securesourcemanager.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall)Fields¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsCancelCall)Header¶
func (c *ProjectsLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsDeleteCall¶
type ProjectsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsDeleteCall)Context¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall)Do¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "securesourcemanager.projects.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall)Fields¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsDeleteCall)Header¶
func (c *ProjectsLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall)Fields¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsOperationsListCall¶
type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsListCall)Context¶
func (c *ProjectsLocationsOperationsListCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall)Do¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
Do executes the "securesourcemanager.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsOperationsListCall)Fields¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsListCall)Filter¶
func (c *ProjectsLocationsOperationsListCall) Filter(filterstring) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall)Header¶
func (c *ProjectsLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall)PageSize¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSizeint64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*ProjectsLocationsOperationsListCall)PageToken¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageTokenstring) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*ProjectsLocationsOperationsListCall)Pages¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctxcontext.Context, f func(*ListOperationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Cancel¶
func (r *ProjectsLocationsOperationsService) Cancel(namestring, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService)Delete¶
func (r *ProjectsLocationsOperationsService) Delete(namestring) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe operation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService)Get¶
func (r *ProjectsLocationsOperationsService) Get(namestring) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService)List¶
func (r *ProjectsLocationsOperationsService) List(namestring) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
typeProjectsLocationsRepositoriesBranchRulesCreateCall¶
type ProjectsLocationsRepositoriesBranchRulesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesBranchRulesCreateCall)BranchRuleId¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) BranchRuleId(branchRuleIdstring) *ProjectsLocationsRepositoriesBranchRulesCreateCall
BranchRuleId sets the optional parameter "branchRuleId":
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesBranchRulesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.branchRules.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesBranchRulesDeleteCall¶
type ProjectsLocationsRepositoriesBranchRulesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall)AllowMissing¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) AllowMissing(allowMissingbool) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
AllowMissing sets the optional parameter "allowMissing": If set to true, andthe branch rule is not found, the request will succeed but no action will betaken on the server.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.branchRules.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesBranchRulesGetCall¶
type ProjectsLocationsRepositoriesBranchRulesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesBranchRulesGetCall)Context¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesBranchRulesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall)Do¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Do(opts ...googleapi.CallOption) (*BranchRule,error)
Do executes the "securesourcemanager.projects.locations.repositories.branchRules.get" call.Any non-2xx status code is an error. Response headers are in either*BranchRule.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall)Header¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesBranchRulesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesBranchRulesListCall¶
type ProjectsLocationsRepositoriesBranchRulesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesBranchRulesListCall)Context¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesBranchRulesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesBranchRulesListCall)Do¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Do(opts ...googleapi.CallOption) (*ListBranchRulesResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.branchRules.list" call.Any non-2xx status code is an error. Response headers are in either*ListBranchRulesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesListCall)Fields¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesBranchRulesListCall)Header¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesBranchRulesListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesBranchRulesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesBranchRulesListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesBranchRulesListCall
PageSize sets the optional parameter "pageSize":
func (*ProjectsLocationsRepositoriesBranchRulesListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesBranchRulesListCall
PageToken sets the optional parameter "pageToken":
func (*ProjectsLocationsRepositoriesBranchRulesListCall)Pages¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Pages(ctxcontext.Context, f func(*ListBranchRulesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesBranchRulesPatchCall¶
type ProjectsLocationsRepositoriesBranchRulesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesBranchRulesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.branchRules.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesBranchRulesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask isused to specify the fields to be overwritten in the branchRule resource bythe update. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. The special value "*" means full replacement.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall)ValidateOnly¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) ValidateOnly(validateOnlybool) *ProjectsLocationsRepositoriesBranchRulesPatchCall
ValidateOnly sets the optional parameter "validateOnly": If set, validatethe request and preview the review, but do not actually post it.(https://google.aip.dev/163, for declarative friendly)
typeProjectsLocationsRepositoriesBranchRulesService¶
type ProjectsLocationsRepositoriesBranchRulesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesBranchRulesService¶
func NewProjectsLocationsRepositoriesBranchRulesService(s *Service) *ProjectsLocationsRepositoriesBranchRulesService
func (*ProjectsLocationsRepositoriesBranchRulesService)Create¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Create(parentstring, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesCreateCall
Create: CreateBranchRule creates a branch rule in a given repository.
- parent: .
func (*ProjectsLocationsRepositoriesBranchRulesService)Delete¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Delete(namestring) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
Delete: DeleteBranchRule deletes a branch rule.
- name: .
func (*ProjectsLocationsRepositoriesBranchRulesService)Get¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Get(namestring) *ProjectsLocationsRepositoriesBranchRulesGetCall
Get: GetBranchRule gets a branch rule.
- name: Name of the repository to retrieve. The format is`projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
func (*ProjectsLocationsRepositoriesBranchRulesService)List¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) List(parentstring) *ProjectsLocationsRepositoriesBranchRulesListCall
List: ListBranchRules lists branch rules in a given repository.
- parent: .
func (*ProjectsLocationsRepositoriesBranchRulesService)Patch¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Patch(nameidstring, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesPatchCall
Patch: UpdateBranchRule updates a branch rule.
- name: Optional. A unique identifier for a BranchRule. The name should beof the format:`projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}`.
typeProjectsLocationsRepositoriesCreateCall¶
type ProjectsLocationsRepositoriesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesCreateCall)RepositoryId¶
func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryIdstring) *ProjectsLocationsRepositoriesCreateCall
RepositoryId sets the optional parameter "repositoryId": Required. The ID touse for the repository, which will become the final component of therepository's resource name. This value should be 4-63 characters, and validcharacters are /a-z-/.
typeProjectsLocationsRepositoriesDeleteCall¶
type ProjectsLocationsRepositoriesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesDeleteCall)AllowMissing¶
func (c *ProjectsLocationsRepositoriesDeleteCall) AllowMissing(allowMissingbool) *ProjectsLocationsRepositoriesDeleteCall
AllowMissing sets the optional parameter "allowMissing": If set to true, andthe repository is not found, the request will succeed but no action will betaken on the server.
func (*ProjectsLocationsRepositoriesDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesFetchBlobCall¶
type ProjectsLocationsRepositoriesFetchBlobCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesFetchBlobCall)Context¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesFetchBlobCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesFetchBlobCall)Do¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Do(opts ...googleapi.CallOption) (*FetchBlobResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.fetchBlob" call.Any non-2xx status code is an error. Response headers are in either*FetchBlobResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsRepositoriesFetchBlobCall)Fields¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchBlobCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesFetchBlobCall)Header¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesFetchBlobCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesFetchBlobCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesFetchBlobCall)Sha¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Sha(shastring) *ProjectsLocationsRepositoriesFetchBlobCall
Sha sets the optional parameter "sha": Required. The SHA-1 hash of the blobto retrieve.
typeProjectsLocationsRepositoriesFetchTreeCall¶
type ProjectsLocationsRepositoriesFetchTreeCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesFetchTreeCall)Context¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesFetchTreeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Do¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Do(opts ...googleapi.CallOption) (*FetchTreeResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.fetchTree" call.Any non-2xx status code is an error. Response headers are in either*FetchTreeResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Fields¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchTreeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Header¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesFetchTreeCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesFetchTreeCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesFetchTreeCall)PageSize¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesFetchTreeCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, at most 10,000 itemswill be returned.
func (*ProjectsLocationsRepositoriesFetchTreeCall)PageToken¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesFetchTreeCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Pages¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Pages(ctxcontext.Context, f func(*FetchTreeResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Recursive¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Recursive(recursivebool) *ProjectsLocationsRepositoriesFetchTreeCall
Recursive sets the optional parameter "recursive": If true, include allsubfolders and their files in the response. If false, only the immediatechildren are returned.
func (*ProjectsLocationsRepositoriesFetchTreeCall)Ref¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Ref(refstring) *ProjectsLocationsRepositoriesFetchTreeCall
Ref sets the optional parameter "ref": `ref` can be a SHA-1 hash, a branchname, or a tag. Specifies which tree to fetch. If not specified, the defaultbranch will be used.
typeProjectsLocationsRepositoriesGetCall¶
type ProjectsLocationsRepositoriesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesGetCall)Context¶
func (c *ProjectsLocationsRepositoriesGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesGetCall)Do¶
func (c *ProjectsLocationsRepositoriesGetCall) Do(opts ...googleapi.CallOption) (*Repository,error)
Do executes the "securesourcemanager.projects.locations.repositories.get" call.Any non-2xx status code is an error. Response headers are in either*Repository.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesGetCall)Header¶
func (c *ProjectsLocationsRepositoriesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesGetIamPolicyCall¶
type ProjectsLocationsRepositoriesGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesGetIamPolicyCall)Context¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall)Do¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "securesourcemanager.projects.locations.repositories.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall)Fields¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall)Header¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall)OptionsRequestedPolicyVersion¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersionint64) *ProjectsLocationsRepositoriesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter"options.requestedPolicyVersion": The maximum policy version that will beused to format the policy. Valid values are 0, 1, and 3. Requests specifyingan invalid value will be rejected. Requests for policies with anyconditional role bindings must specify version 3. Policies with noconditional role bindings may specify any valid value or leave the fieldunset. The policy in the response might use the policy version that youspecified, or it might use a lower policy version. For example, if youspecify version 3, but the policy has no conditional role bindings, theresponse uses version 1. To learn which resources support conditions intheir IAM policies, see the IAM documentation(https://cloud.google.com/iam/help/conditions/resource-policies).
typeProjectsLocationsRepositoriesHooksCreateCall¶
type ProjectsLocationsRepositoriesHooksCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesHooksCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesHooksCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesHooksCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.hooks.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesHooksCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesHooksCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesHooksCreateCall)HookId¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) HookId(hookIdstring) *ProjectsLocationsRepositoriesHooksCreateCall
HookId sets the optional parameter "hookId": Required. The ID to use for thehook, which will become the final component of the hook's resource name.This value restricts to lower-case letters, numbers, and hyphen, with thefirst character a letter, the last a letter or a number, and a 63 charactermaximum.
typeProjectsLocationsRepositoriesHooksDeleteCall¶
type ProjectsLocationsRepositoriesHooksDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesHooksDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesHooksDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesHooksDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.hooks.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesHooksDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesHooksDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesHooksGetCall¶
type ProjectsLocationsRepositoriesHooksGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesHooksGetCall)Context¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesHooksGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesHooksGetCall)Do¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Do(opts ...googleapi.CallOption) (*Hook,error)
Do executes the "securesourcemanager.projects.locations.repositories.hooks.get" call.Any non-2xx status code is an error. Response headers are in either*Hook.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesHooksGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesHooksGetCall)Header¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesHooksGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesHooksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesHooksListCall¶
type ProjectsLocationsRepositoriesHooksListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesHooksListCall)Context¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesHooksListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesHooksListCall)Do¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Do(opts ...googleapi.CallOption) (*ListHooksResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.hooks.list" call.Any non-2xx status code is an error. Response headers are in either*ListHooksResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsRepositoriesHooksListCall)Fields¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesHooksListCall)Header¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesHooksListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesHooksListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesHooksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesHooksListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesHooksListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesHooksListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesHooksListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesHooksListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesHooksListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesHooksListCall)Pages¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Pages(ctxcontext.Context, f func(*ListHooksResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesHooksPatchCall¶
type ProjectsLocationsRepositoriesHooksPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesHooksPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesHooksPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesHooksPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.hooks.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesHooksPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesHooksPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesHooksPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesHooksPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask isused to specify the fields to be overwritten in the hook resource by theupdate. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. The special value "*" means full replacement.
typeProjectsLocationsRepositoriesHooksService¶
type ProjectsLocationsRepositoriesHooksService struct {// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesHooksService¶
func NewProjectsLocationsRepositoriesHooksService(s *Service) *ProjectsLocationsRepositoriesHooksService
func (*ProjectsLocationsRepositoriesHooksService)Create¶
func (r *ProjectsLocationsRepositoriesHooksService) Create(parentstring, hook *Hook) *ProjectsLocationsRepositoriesHooksCreateCall
Create: Creates a new hook in a given repository.
- parent: The repository in which to create the hook. Values are of the form`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesHooksService)Delete¶
func (r *ProjectsLocationsRepositoriesHooksService) Delete(namestring) *ProjectsLocationsRepositoriesHooksDeleteCall
Delete: Deletes a Hook.
- name: Name of the hook to delete. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`.
func (*ProjectsLocationsRepositoriesHooksService)Get¶
func (r *ProjectsLocationsRepositoriesHooksService) Get(namestring) *ProjectsLocationsRepositoriesHooksGetCall
Get: Gets metadata of a hook.
- name: Name of the hook to retrieve. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`.
func (*ProjectsLocationsRepositoriesHooksService)List¶
func (r *ProjectsLocationsRepositoriesHooksService) List(parentstring) *ProjectsLocationsRepositoriesHooksListCall
List: Lists hooks in a given repository.
- parent: Parent value for ListHooksRequest.
func (*ProjectsLocationsRepositoriesHooksService)Patch¶
func (r *ProjectsLocationsRepositoriesHooksService) Patch(nameidstring, hook *Hook) *ProjectsLocationsRepositoriesHooksPatchCall
Patch: Updates the metadata of a hook.
- name: Identifier. A unique identifier for a Hook. The name should be ofthe format:`projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`.
typeProjectsLocationsRepositoriesIssuesCloseCall¶
type ProjectsLocationsRepositoriesIssuesCloseCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesCloseCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesCloseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesCloseCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.close" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesCloseCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesCloseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesCloseCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesCreateCall¶
type ProjectsLocationsRepositoriesIssuesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesDeleteCall¶
type ProjectsLocationsRepositoriesIssuesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall)Etag¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Etag(etagstring) *ProjectsLocationsRepositoriesIssuesDeleteCall
Etag sets the optional parameter "etag": The current etag of the issue. Ifthe etag is provided and does not match the current etag of the issue,deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesGetCall¶
type ProjectsLocationsRepositoriesIssuesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesGetCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesGetCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Do(opts ...googleapi.CallOption) (*Issue,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.get" call.Any non-2xx status code is an error. Response headers are in either*Issue.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesGetCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesIssuesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesIssueCommentsGetCall¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Do(opts ...googleapi.CallOption) (*IssueComment,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.get" call.Any non-2xx status code is an error. Response headers are in either*IssueComment.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesIssuesIssueCommentsListCall¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Do(opts ...googleapi.CallOption) (*ListIssueCommentsResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.list" call.Any non-2xx status code is an error. Response headers are in either*ListIssueCommentsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall)Pages¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Pages(ctxcontext.Context, f func(*ListIssueCommentsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used tospecify the fields to be overwritten in the issue comment resource by theupdate. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. The special value "*" means full replacement.
typeProjectsLocationsRepositoriesIssuesIssueCommentsService¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesIssuesIssueCommentsService¶
func NewProjectsLocationsRepositoriesIssuesIssueCommentsService(s *Service) *ProjectsLocationsRepositoriesIssuesIssueCommentsService
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService)Create¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Create(parentstring, issuecomment *IssueComment) *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall
Create: Creates an issue comment.
- parent: The issue in which to create the issue comment. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService)Delete¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Delete(namestring) *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall
Delete: Deletes an issue comment.
- name: Name of the issue comment to delete. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}/issueComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService)Get¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Get(namestring) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
Get: Gets an issue comment.
- name: Name of the issue comment to retrieve. The format is`projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}/issueComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService)List¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) List(parentstring) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
List: Lists comments in an issue.
- parent: The issue in which to list the comments. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService)Patch¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Patch(nameidstring, issuecomment *IssueComment) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
Patch: Updates an issue comment.
- name: Identifier. Unique identifier for an issue comment. The comment idis generated by the server. Format:`projects/{project}/locations/{location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id}`.
typeProjectsLocationsRepositoriesIssuesListCall¶
type ProjectsLocationsRepositoriesIssuesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesListCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesListCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Do(opts ...googleapi.CallOption) (*ListIssuesResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.list" call.Any non-2xx status code is an error. Response headers are in either*ListIssuesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsRepositoriesIssuesListCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesListCall)Filter¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Filter(filterstring) *ProjectsLocationsRepositoriesIssuesListCall
Filter sets the optional parameter "filter": Used to filter the resultingissues list.
func (*ProjectsLocationsRepositoriesIssuesListCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesIssuesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesIssuesListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesIssuesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesIssuesListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesIssuesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesIssuesListCall)Pages¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Pages(ctxcontext.Context, f func(*ListIssuesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesIssuesOpenCall¶
type ProjectsLocationsRepositoriesIssuesOpenCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesOpenCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesOpenCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesOpenCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.open" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesOpenCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesOpenCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesOpenCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesIssuesPatchCall¶
type ProjectsLocationsRepositoriesIssuesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesIssuesPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesIssuesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesIssuesPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.issues.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesIssuesPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesIssuesPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesIssuesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used tospecify the fields to be overwritten in the issue resource by the update.The fields specified in the update_mask are relative to the resource, notthe full request. A field will be overwritten if it is in the mask. Thespecial value "*" means full replacement.
typeProjectsLocationsRepositoriesIssuesService¶
type ProjectsLocationsRepositoriesIssuesService struct {IssueComments *ProjectsLocationsRepositoriesIssuesIssueCommentsService// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesIssuesService¶
func NewProjectsLocationsRepositoriesIssuesService(s *Service) *ProjectsLocationsRepositoriesIssuesService
func (*ProjectsLocationsRepositoriesIssuesService)Close¶
func (r *ProjectsLocationsRepositoriesIssuesService) Close(namestring, closeissuerequest *CloseIssueRequest) *ProjectsLocationsRepositoriesIssuesCloseCall
Close: Closes an issue.
- name: Name of the issue to close. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)Create¶
func (r *ProjectsLocationsRepositoriesIssuesService) Create(parentstring, issue *Issue) *ProjectsLocationsRepositoriesIssuesCreateCall
Create: Creates an issue.
- parent: The repository in which to create the issue. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)Delete¶
func (r *ProjectsLocationsRepositoriesIssuesService) Delete(namestring) *ProjectsLocationsRepositoriesIssuesDeleteCall
Delete: Deletes an issue.
- name: Name of the issue to delete. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)Get¶
func (r *ProjectsLocationsRepositoriesIssuesService) Get(namestring) *ProjectsLocationsRepositoriesIssuesGetCall
Get: Gets an issue.
- name: Name of the issue to retrieve. The format is`projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)List¶
func (r *ProjectsLocationsRepositoriesIssuesService) List(parentstring) *ProjectsLocationsRepositoriesIssuesListCall
List: Lists issues in a repository.
- parent: The repository in which to list issues. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)Open¶
func (r *ProjectsLocationsRepositoriesIssuesService) Open(namestring, openissuerequest *OpenIssueRequest) *ProjectsLocationsRepositoriesIssuesOpenCall
Open: Opens an issue.
- name: Name of the issue to open. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}`.
func (*ProjectsLocationsRepositoriesIssuesService)Patch¶
func (r *ProjectsLocationsRepositoriesIssuesService) Patch(nameidstring, issue *Issue) *ProjectsLocationsRepositoriesIssuesPatchCall
Patch: Updates a issue.
- name: Identifier. Unique identifier for an issue. The issue id isgenerated by the server. Format:`projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`.
typeProjectsLocationsRepositoriesListCall¶
type ProjectsLocationsRepositoriesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesListCall)Context¶
func (c *ProjectsLocationsRepositoriesListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesListCall)Do¶
func (c *ProjectsLocationsRepositoriesListCall) Do(opts ...googleapi.CallOption) (*ListRepositoriesResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.list" call.Any non-2xx status code is an error. Response headers are in either*ListRepositoriesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesListCall)Fields¶
func (c *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesListCall)Filter¶
func (c *ProjectsLocationsRepositoriesListCall) Filter(filterstring) *ProjectsLocationsRepositoriesListCall
Filter sets the optional parameter "filter": Filter results.
func (*ProjectsLocationsRepositoriesListCall)Header¶
func (c *ProjectsLocationsRepositoriesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesListCall)Instance¶
func (c *ProjectsLocationsRepositoriesListCall) Instance(instancestring) *ProjectsLocationsRepositoriesListCall
Instance sets the optional parameter "instance": The name of the instance inwhich the repository is hosted, formatted as`projects/{project_number}/locations/{location_id}/instances/{instance_id}`.When listing repositories via securesourcemanager.googleapis.com, this fieldis required. When listing repositories via *.sourcemanager.dev, this fieldis ignored.
func (*ProjectsLocationsRepositoriesListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesListCall)Pages¶
func (c *ProjectsLocationsRepositoriesListCall) Pages(ctxcontext.Context, f func(*ListRepositoriesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesPatchCall¶
type ProjectsLocationsRepositoriesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used tospecify the fields to be overwritten in the repository resource by theupdate. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. If the user does not provide a mask then all fields will beoverwritten.
func (*ProjectsLocationsRepositoriesPatchCall)ValidateOnly¶
func (c *ProjectsLocationsRepositoriesPatchCall) ValidateOnly(validateOnlybool) *ProjectsLocationsRepositoriesPatchCall
ValidateOnly sets the optional parameter "validateOnly": False by default.If set to true, the request is validated and the user is provided with anexpected result, but no actual change is made.
typeProjectsLocationsRepositoriesPullRequestsCloseCall¶
type ProjectsLocationsRepositoriesPullRequestsCloseCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsCloseCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsCloseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsCloseCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.close" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsCloseCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsCloseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsCloseCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsCreateCall¶
type ProjectsLocationsRepositoriesPullRequestsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsGetCall¶
type ProjectsLocationsRepositoriesPullRequestsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsGetCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Do(opts ...googleapi.CallOption) (*PullRequest,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.get" call.Any non-2xx status code is an error. Response headers are in either*PullRequest.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesPullRequestsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesPullRequestsListCall¶
type ProjectsLocationsRepositoriesPullRequestsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsListCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Do(opts ...googleapi.CallOption) (*ListPullRequestsResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.list" call.Any non-2xx status code is an error. Response headers are in either*ListPullRequestsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesPullRequestsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesPullRequestsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesPullRequestsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsListCall)Pages¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Pages(ctxcontext.Context, f func(*ListPullRequestsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesPullRequestsListFileDiffsCall¶
type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Do(opts ...googleapi.CallOption) (*ListPullRequestFileDiffsResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.listFileDiffs" call.Any non-2xx status code is an error. Response headers are in either*ListPullRequestFileDiffsResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)PageSize¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)PageToken¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall)Pages¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Pages(ctxcontext.Context, f func(*ListPullRequestFileDiffsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesPullRequestsMergeCall¶
type ProjectsLocationsRepositoriesPullRequestsMergeCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsMergeCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsMergeCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsMergeCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.merge" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsMergeCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsMergeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsMergeCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsOpenCall¶
type ProjectsLocationsRepositoriesPullRequestsOpenCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsOpenCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsOpenCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsOpenCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.open" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsOpenCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsOpenCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsOpenCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsPatchCall¶
type ProjectsLocationsRepositoriesPullRequestsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesPullRequestsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used tospecify the fields to be overwritten in the pull request resource by theupdate. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask. The special value "*" means full replacement.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.batchCreate" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Do(opts ...googleapi.CallOption) (*PullRequestComment,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.get" call.Any non-2xx status code is an error. Response headers are in either*PullRequestComment.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Do(opts ...googleapi.CallOption) (*ListPullRequestCommentsResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.list" call.Any non-2xx status code is an error. Response headers are in either*ListPullRequestCommentsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)IfNoneMatch¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)PageSize¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageSize(pageSizeint64) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Ifunspecified, at most 100 pull request comments will be returned. The maximumvalue is 100; values above 100 will be coerced to 100.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)PageToken¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageToken(pageTokenstring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall)Pages¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Pages(ctxcontext.Context, f func(*ListPullRequestCommentsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall)UpdateMask¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used tospecify the fields to be overwritten in the pull request comment resource bythe update. Updatable fields are `body`.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.resolve" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService¶
func NewProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService(s *Service) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)BatchCreate¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) BatchCreate(parentstring, batchcreatepullrequestcommentsrequest *BatchCreatePullRequestCommentsRequest) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall
BatchCreate: Batch creates pull request comments.
- parent: The pull request in which to create the pull request comments.Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Create¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Create(parentstring, pullrequestcomment *PullRequestComment) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall
Create: Creates a pull request comment.
- parent: The pull request in which to create the pull request comment.Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Delete¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Delete(namestring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall
Delete: Deletes a pull request comment.
- name: Name of the pull request comment to delete. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Get¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Get(namestring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
Get: Gets a pull request comment.
- name: Name of the pull request comment to retrieve. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)List¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) List(parentstring) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
List: Lists pull request comments.
- parent: The pull request in which to list pull request comments. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Patch¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Patch(nameidstring, pullrequestcomment *PullRequestComment) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
Patch: Updates a pull request comment.
- name: Identifier. Unique identifier for the pull request comment. Thecomment id is generated by the server. Format:`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Resolve¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Resolve(parentstring, resolvepullrequestcommentsrequest *ResolvePullRequestCommentsRequest) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall
Resolve: Resolves pull request comments.
- parent: The pull request in which to resolve the pull request comments.Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService)Unresolve¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Unresolve(parentstring, unresolvepullrequestcommentsrequest *UnresolvePullRequestCommentsRequest) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
Unresolve: Unresolves pull request comment.
- parent: The pull request in which to resolve the pull request comments.Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
typeProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall)Context¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall)Do¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.unresolve" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall)Fields¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall)Header¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesPullRequestsService¶
type ProjectsLocationsRepositoriesPullRequestsService struct {PullRequestComments *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesPullRequestsService¶
func NewProjectsLocationsRepositoriesPullRequestsService(s *Service) *ProjectsLocationsRepositoriesPullRequestsService
func (*ProjectsLocationsRepositoriesPullRequestsService)Close¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Close(namestring, closepullrequestrequest *ClosePullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsCloseCall
Close: Closes a pull request without merging.
- name: The pull request to close. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)Create¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Create(parentstring, pullrequest *PullRequest) *ProjectsLocationsRepositoriesPullRequestsCreateCall
Create: Creates a pull request.
- parent: The repository that the pull request is created from. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)Get¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Get(namestring) *ProjectsLocationsRepositoriesPullRequestsGetCall
Get: Gets a pull request.
- name: Name of the pull request to retrieve. The format is`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)List¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) List(parentstring) *ProjectsLocationsRepositoriesPullRequestsListCall
List: Lists pull requests in a repository.
- parent: The repository in which to list pull requests. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)ListFileDiffs¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) ListFileDiffs(namestring) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
ListFileDiffs: Lists a pull request's file diffs.
- name: The pull request to list file diffs for. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)Merge¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Merge(namestring, mergepullrequestrequest *MergePullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsMergeCall
Merge: Merges a pull request.
- name: The pull request to merge. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)Open¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Open(namestring, openpullrequestrequest *OpenPullRequestRequest) *ProjectsLocationsRepositoriesPullRequestsOpenCall
Open: Opens a pull request.
- name: The pull request to open. Format:`projects/{project_number}/locations/{location_id}/repositories/{repository_id}/pullRequests/{pull_request_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsService)Patch¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Patch(nameidstring, pullrequest *PullRequest) *ProjectsLocationsRepositoriesPullRequestsPatchCall
Patch: Updates a pull request.
- name: Output only. A unique identifier for a PullRequest. The numberappended at the end is generated by the server. Format:`projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`.
typeProjectsLocationsRepositoriesService¶
type ProjectsLocationsRepositoriesService struct {BranchRules *ProjectsLocationsRepositoriesBranchRulesServiceHooks *ProjectsLocationsRepositoriesHooksServiceIssues *ProjectsLocationsRepositoriesIssuesServicePullRequests *ProjectsLocationsRepositoriesPullRequestsService// contains filtered or unexported fields}funcNewProjectsLocationsRepositoriesService¶
func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService
func (*ProjectsLocationsRepositoriesService)Create¶
func (r *ProjectsLocationsRepositoriesService) Create(parentstring, repository *Repository) *ProjectsLocationsRepositoriesCreateCall
Create: Creates a new repository in a given project and location. TheRepository.Instance field is required in the request body for requests usingthe securesourcemanager.googleapis.com endpoint.
- parent: The project in which to create the repository. Values are of theform `projects/{project_number}/locations/{location_id}`.
func (*ProjectsLocationsRepositoriesService)Delete¶
func (r *ProjectsLocationsRepositoriesService) Delete(namestring) *ProjectsLocationsRepositoriesDeleteCall
Delete: Deletes a Repository.
- name: Name of the repository to delete. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesService)FetchBlob¶
func (r *ProjectsLocationsRepositoriesService) FetchBlob(repositorystring) *ProjectsLocationsRepositoriesFetchBlobCall
FetchBlob: Fetches a blob from a repository.
- repository: The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. Specifies the repository containing the blob.
func (*ProjectsLocationsRepositoriesService)FetchTree¶
func (r *ProjectsLocationsRepositoriesService) FetchTree(repositorystring) *ProjectsLocationsRepositoriesFetchTreeCall
FetchTree: Fetches a tree from a repository.
- repository: The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. Specifies the repository to fetch the tree from.
func (*ProjectsLocationsRepositoriesService)Get¶
func (r *ProjectsLocationsRepositoriesService) Get(namestring) *ProjectsLocationsRepositoriesGetCall
Get: Gets metadata of a repository.
- name: Name of the repository to retrieve. The format is`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesService)GetIamPolicy¶
func (r *ProjectsLocationsRepositoriesService) GetIamPolicy(resourcestring) *ProjectsLocationsRepositoriesGetIamPolicyCall
GetIamPolicy: Get IAM policy for a repository.
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsRepositoriesService)List¶
func (r *ProjectsLocationsRepositoriesService) List(parentstring) *ProjectsLocationsRepositoriesListCall
List: Lists Repositories in a given project and location. The instance fieldis required in the query parameter for requests using thesecuresourcemanager.googleapis.com endpoint.
- parent: Parent value for ListRepositoriesRequest.
func (*ProjectsLocationsRepositoriesService)Patch¶
func (r *ProjectsLocationsRepositoriesService) Patch(nameidstring, repository *Repository) *ProjectsLocationsRepositoriesPatchCall
Patch: Updates the metadata of a repository.
- name: Optional. A unique identifier for a repository. The name should beof the format:`projects/{project}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesService)SetIamPolicy¶
func (r *ProjectsLocationsRepositoriesService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRepositoriesSetIamPolicyCall
SetIamPolicy: Set IAM policy on a repository.
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsRepositoriesService)TestIamPermissions¶
func (r *ProjectsLocationsRepositoriesService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRepositoriesTestIamPermissionsCall
TestIamPermissions: Test IAM permissions on a repository. IAM permissionchecks are not required on this method.
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
typeProjectsLocationsRepositoriesSetIamPolicyCall¶
type ProjectsLocationsRepositoriesSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesSetIamPolicyCall)Context¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesSetIamPolicyCall)Do¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "securesourcemanager.projects.locations.repositories.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesSetIamPolicyCall)Fields¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesSetIamPolicyCall)Header¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRepositoriesTestIamPermissionsCall¶
type ProjectsLocationsRepositoriesTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRepositoriesTestIamPermissionsCall)Context¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsRepositoriesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall)Do¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
Do executes the "securesourcemanager.projects.locations.repositories.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall)Fields¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall)Header¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Instances *ProjectsLocationsInstancesServiceOperations *ProjectsLocationsOperationsServiceRepositories *ProjectsLocationsRepositoriesService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)Get¶
func (r *ProjectsLocationsService) Get(namestring) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService)List¶
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typePullRequest¶
type PullRequest struct {// Base: Required. The branch to merge changes in.Base *Branch `json:"base,omitempty"`// Body: Optional. The pull request body. Provides a detailed description of// the changes.Bodystring `json:"body,omitempty"`// CloseTime: Output only. Close timestamp (if closed or merged). Cleared when// pull request is re-opened.CloseTimestring `json:"closeTime,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Head: Immutable. The branch containing the changes to be merged.Head *Branch `json:"head,omitempty"`// Name: Output only. A unique identifier for a PullRequest. The number// appended at the end is generated by the server. Format:// `projects/{project}/locations/{location}/repositories/{repository}/pullReques// ts/{pull_request_id}`Namestring `json:"name,omitempty"`// State: Output only. State of the pull request (open, closed or merged).//// Possible values:// "STATE_UNSPECIFIED" - Unspecified.// "OPEN" - An open pull request.// "CLOSED" - A closed pull request.// "MERGED" - A merged pull request.Statestring `json:"state,omitempty"`// Title: Required. The pull request title.Titlestring `json:"title,omitempty"`// UpdateTime: Output only. Last updated timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Base") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Base") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PullRequest: Metadata of a PullRequest. PullRequest is the request from auser to merge a branch (head) into another branch (base).
func (PullRequest)MarshalJSON¶
func (sPullRequest) MarshalJSON() ([]byte,error)
typePullRequestComment¶
type PullRequestComment struct {// Code: Optional. The comment on a code line.Code *Code `json:"code,omitempty"`// Comment: Optional. The general pull request comment.Comment *Comment `json:"comment,omitempty"`// CreateTime: Output only. Creation timestamp.CreateTimestring `json:"createTime,omitempty"`// Name: Identifier. Unique identifier for the pull request comment. The// comment id is generated by the server. Format:// `projects/{project}/locations/{location}/repositories/{repository}/pullReques// ts/{pull_request}/pullRequestComments/{comment_id}`Namestring `json:"name,omitempty"`// Review: Optional. The review summary comment.Review *Review `json:"review,omitempty"`// UpdateTime: Output only. Last updated timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PullRequestComment: PullRequestComment represents a comment on a pullrequest.
func (PullRequestComment)MarshalJSON¶
func (sPullRequestComment) MarshalJSON() ([]byte,error)
typePushOption¶
type PushOption struct {// BranchFilter: Optional. Trigger hook for matching branches only. Specified// as glob pattern. If empty or *, events for all branches are reported.// Examples: main, {main,release*}. See//https://pkg.go.dev/github.com/gobwas/glob documentation.BranchFilterstring `json:"branchFilter,omitempty"`// ForceSendFields is a list of field names (e.g. "BranchFilter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BranchFilter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (PushOption)MarshalJSON¶
func (sPushOption) MarshalJSON() ([]byte,error)
typeRepository¶
type Repository struct {// CreateTime: Output only. Create timestamp.CreateTimestring `json:"createTime,omitempty"`// Description: Optional. Description of the repository, which cannot exceed// 500 characters.Descriptionstring `json:"description,omitempty"`// Etag: Optional. This checksum is computed by the server based on the value// of other fields, and may be sent on update and delete requests to ensure the// client has an up-to-date value before proceeding.Etagstring `json:"etag,omitempty"`// InitialConfig: Input only. Initial configurations for the repository.InitialConfig *InitialConfig `json:"initialConfig,omitempty"`// Instance: Optional. The name of the instance in which the repository is// hosted, formatted as// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`// When creating repository via securesourcemanager.googleapis.com, this field// is used as input. When creating repository via *.sourcemanager.dev, this// field is output only.Instancestring `json:"instance,omitempty"`// Name: Optional. A unique identifier for a repository. The name should be of// the format:// `projects/{project}/locations/{location_id}/repositories/{repository_id}`Namestring `json:"name,omitempty"`// Uid: Output only. Unique identifier of the repository.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. Update timestamp.UpdateTimestring `json:"updateTime,omitempty"`// Uris: Output only. URIs for the repository.Uris *URIs `json:"uris,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Repository: Metadata of a Secure Source Manager repository.
func (Repository)MarshalJSON¶
func (sRepository) MarshalJSON() ([]byte,error)
typeResolvePullRequestCommentsRequest¶
type ResolvePullRequestCommentsRequest struct {// AutoFill: Optional. If set, at least one comment in a thread is required,// rest of the comments in the same thread will be automatically updated to// resolved. If unset, all comments in the same thread need be present.AutoFillbool `json:"autoFill,omitempty"`// Names: Required. The names of the pull request comments to resolve. Format:// `projects/{project_number}/locations/{location_id}/repositories/{repository_i// d}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only// comments from the same threads are allowed in the same request.Names []string `json:"names,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoFill") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoFill") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ResolvePullRequestCommentsRequest: The request to resolve multiple pullrequest comments.
func (ResolvePullRequestCommentsRequest)MarshalJSON¶
func (sResolvePullRequestCommentsRequest) MarshalJSON() ([]byte,error)
typeReview¶
type Review struct {// ActionType: Required. The review action type.//// Possible values:// "ACTION_TYPE_UNSPECIFIED" - Unspecified.// "COMMENT" - A general review comment.// "CHANGE_REQUESTED" - Change required from this review.// "APPROVED" - Change approved from this review.ActionTypestring `json:"actionType,omitempty"`// Body: Optional. The comment body.Bodystring `json:"body,omitempty"`// EffectiveCommitSha: Output only. The effective commit sha this review is// pointing to.EffectiveCommitShastring `json:"effectiveCommitSha,omitempty"`// ForceSendFields is a list of field names (e.g. "ActionType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Review: The review summary comment.
func (Review)MarshalJSON¶
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeSetIamPolicyRequest¶
type SetIamPolicyRequest struct {// Policy: REQUIRED: The complete policy to be applied to the `resource`. The// size of the policy is limited to a few 10s of KB. An empty policy is a valid// policy but certain Google Cloud services (such as Projects) might reject// them.Policy *Policy `json:"policy,omitempty"`// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to// modify. Only the fields in the mask will be modified. If no mask is// provided, the following default mask is used: `paths: "bindings, etag"UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Policy") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SetIamPolicyRequest: Request message for `SetIamPolicy` method.
func (SetIamPolicyRequest)MarshalJSON¶
func (sSetIamPolicyRequest) MarshalJSON() ([]byte,error)
typeStatus¶
type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶
typeTestIamPermissionsRequest¶
type TestIamPermissionsRequest struct {// Permissions: The set of permissions to check for the `resource`. Permissions// with wildcards (such as `*` or `storage.*`) are not allowed. For more// information see IAM Overview// (https://cloud.google.com/iam/docs/overview#permissions).Permissions []string `json:"permissions,omitempty"`// ForceSendFields is a list of field names (e.g. "Permissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
func (TestIamPermissionsRequest)MarshalJSON¶
func (sTestIamPermissionsRequest) MarshalJSON() ([]byte,error)
typeTestIamPermissionsResponse¶
type TestIamPermissionsResponse struct {// Permissions: A subset of `TestPermissionsRequest.permissions` that the// caller is allowed.Permissions []string `json:"permissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TestIamPermissionsResponse: Response message for `TestIamPermissions`method.
func (TestIamPermissionsResponse)MarshalJSON¶
func (sTestIamPermissionsResponse) MarshalJSON() ([]byte,error)
typeTreeEntry¶
type TreeEntry struct {// Mode: Output only. The file mode as a string (e.g., "100644"). Indicates// file type. Output-only.Modestring `json:"mode,omitempty"`// Path: Output only. The path of the file or directory within the tree (e.g.,// "src/main/java/MyClass.java"). Output-only.Pathstring `json:"path,omitempty"`// Sha: Output only. The SHA-1 hash of the object (unique identifier).// Output-only.Shastring `json:"sha,omitempty"`// Size: Output only. The size of the object in bytes (only for blobs).// Output-only.Sizeint64 `json:"size,omitempty,string"`// Type: Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.//// Possible values:// "OBJECT_TYPE_UNSPECIFIED" - Default value, indicating the object type is// unspecified.// "TREE" - Represents a directory (folder).// "BLOB" - Represents a file (contains file data).// "COMMIT" - Represents a pointer to another repository (submodule).Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Mode") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TreeEntry: Represents an entry within a tree structure (like a Git tree).
func (TreeEntry)MarshalJSON¶
typeURIs¶
type URIs struct {// Api: Output only. API is the URI for API access.Apistring `json:"api,omitempty"`// GitHttps: Output only. git_https is the git HTTPS URI for git operations.GitHttpsstring `json:"gitHttps,omitempty"`// Html: Output only. HTML is the URI for user to view the repository in a// browser.Htmlstring `json:"html,omitempty"`// ForceSendFields is a list of field names (e.g. "Api") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Api") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}URIs: URIs for the repository.
func (URIs)MarshalJSON¶
typeUnresolvePullRequestCommentsRequest¶
type UnresolvePullRequestCommentsRequest struct {// AutoFill: Optional. If set, at least one comment in a thread is required,// rest of the comments in the same thread will be automatically updated to// unresolved. If unset, all comments in the same thread need be present.AutoFillbool `json:"autoFill,omitempty"`// Names: Required. The names of the pull request comments to unresolve.// Format:// `projects/{project_number}/locations/{location_id}/repositories/{repository_i// d}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only// comments from the same threads are allowed in the same request.Names []string `json:"names,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoFill") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoFill") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}UnresolvePullRequestCommentsRequest: The request to unresolve multiple pullrequest comments.
func (UnresolvePullRequestCommentsRequest)MarshalJSON¶
func (sUnresolvePullRequestCommentsRequest) MarshalJSON() ([]byte,error)
typeWorkforceIdentityFederationConfig¶
type WorkforceIdentityFederationConfig struct {// Enabled: Optional. Immutable. Whether Workforce Identity Federation is// enabled.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}WorkforceIdentityFederationConfig: WorkforceIdentityFederationConfig allowsthis instance to support users from external identity providers.
func (WorkforceIdentityFederationConfig)MarshalJSON¶
func (sWorkforceIdentityFederationConfig) MarshalJSON() ([]byte,error)