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, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any 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 for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use google.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 OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) securesourcemanagerService, err := securesourcemanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.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 ¶
type AuditConfig ¶
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. Service string `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. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple 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" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
func (AuditConfig) MarshalJSON ¶
func (s AuditConfig) MarshalJSON() ([]byte, error)
type AuditLogConfig ¶
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 list LogType string `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 of permissions. 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, while exempting jose@example.com from DATA_READ logging.
func (AuditLogConfig) MarshalJSON ¶
func (s AuditLogConfig) MarshalJSON() ([]byte, error)
type BatchCreatePullRequestCommentsRequest ¶
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 list Requests []*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 pull request comments.
func (BatchCreatePullRequestCommentsRequest) MarshalJSON ¶
func (s BatchCreatePullRequestCommentsRequest) MarshalJSON() ([]byte, error)
type Binding ¶
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). Role string `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 ¶
type Branch ¶
type Branch struct { // Ref: Required. Name of the branch. Ref string `json:"ref,omitempty"` // Sha: Output only. The commit at the tip of the branch. Sha string `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 ¶
type BranchRule ¶
type BranchRule struct { // AllowStaleReviews: Optional. Determines if allow stale reviews or approvals // before merging to the branch. AllowStaleReviews bool `json:"allowStaleReviews,omitempty"` // Annotations: Optional. User annotations. These attributes can only be set // and used by the user. See https://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. CreateTime string `json:"createTime,omitempty"` // Disabled: Optional. Determines if the branch rule is disabled or not. Disabled bool `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. Etag string `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. IncludePattern string `json:"includePattern,omitempty"` // MinimumApprovalsCount: Optional. The minimum number of approvals required // for the branch rule to be matched. MinimumApprovalsCount int64 `json:"minimumApprovalsCount,omitempty"` // MinimumReviewsCount: Optional. The minimum number of reviews required for // the branch rule to be matched. MinimumReviewsCount int64 `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}` Name string `json:"name,omitempty"` // RequireCommentsResolved: Optional. Determines if require comments resolved // before merging to the branch. RequireCommentsResolved bool `json:"requireCommentsResolved,omitempty"` // RequireLinearHistory: Optional. Determines if require linear history before // merging to the branch. RequireLinearHistory bool `json:"requireLinearHistory,omitempty"` // RequirePullRequest: Optional. Determines if the branch rule requires a pull // request or not. RequirePullRequest bool `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. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. Update timestamp. UpdateTime string `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 to enforce pre-defined rules on designated branches within a repository.
func (BranchRule) MarshalJSON ¶
func (s BranchRule) MarshalJSON() ([]byte, error)
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Check ¶
type Check struct { // Context: Required. The context of the check. Context string `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 ¶
type CloseIssueRequest ¶
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. Etag string `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 (s CloseIssueRequest) MarshalJSON() ([]byte, error)
type ClosePullRequestRequest ¶
type ClosePullRequestRequest struct { }
ClosePullRequestRequest: ClosePullRequestRequest is the request to close a pull request.
type Code ¶
type Code struct { // Body: Required. The comment body. Body string `json:"body,omitempty"` // EffectiveCommitSha: Output only. The effective commit sha this code comment // is pointing to. EffectiveCommitSha string `json:"effectiveCommitSha,omitempty"` // EffectiveRootComment: Output only. The root comment of the conversation, // derived from the reply field. EffectiveRootComment string `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. Reply string `json:"reply,omitempty"` // Resolved: Output only. Boolean indicator if the comment is resolved. Resolved bool `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 ¶
type Comment ¶
type Comment struct { // Body: Required. The comment body. Body string `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 ¶
type CreatePullRequestCommentRequest ¶
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}` Parent string `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 request comment.
func (CreatePullRequestCommentRequest) MarshalJSON ¶
func (s CreatePullRequestCommentRequest) MarshalJSON() ([]byte, error)
type Empty ¶
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 defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type Expr ¶
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. Description string `json:"description,omitempty"` // Expression: Textual representation of an expression in Common Expression // Language syntax. Expression string `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. Location string `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. Title string `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 semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor 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 message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
func (Expr) MarshalJSON ¶
type FetchBlobResponse ¶
type FetchBlobResponse struct { // Content: The content of the blob, encoded as base64. Content string `json:"content,omitempty"` // Sha: The SHA-1 hash of the blob. Sha string `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 (s FetchBlobResponse) MarshalJSON() ([]byte, error)
type FetchTreeResponse ¶
type FetchTreeResponse struct { // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `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 (s FetchTreeResponse) MarshalJSON() ([]byte, error)
type FileDiff ¶
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. Action string `json:"action,omitempty"` // Name: Output only. The name of the file. Name string `json:"name,omitempty"` // Patch: Output only. The git patch containing the file changes. Patch string `json:"patch,omitempty"` // Sha: Output only. The commit pointing to the file changes. Sha string `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 in a pull request.
func (FileDiff) MarshalJSON ¶
type Hook ¶
type Hook struct { // CreateTime: Output only. Create timestamp. CreateTime string `json:"createTime,omitempty"` // Disabled: Optional. Determines if the hook disabled or not. Set to true to // stop sending traffic. Disabled bool `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}` Name string `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. SensitiveQueryString string `json:"sensitiveQueryString,omitempty"` // TargetUri: Required. The target URI to which the payloads will be delivered. TargetUri string `json:"targetUri,omitempty"` // Uid: Output only. Unique identifier of the hook. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. Update timestamp. UpdateTime string `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 ¶
type HostConfig ¶
type HostConfig struct { // Api: Output only. API hostname. Api string `json:"api,omitempty"` // GitHttp: Output only. Git HTTP hostname. GitHttp string `json:"gitHttp,omitempty"` // GitSsh: Output only. Git SSH hostname. GitSsh string `json:"gitSsh,omitempty"` // Html: Output only. HTML hostname. Html string `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 (s HostConfig) MarshalJSON() ([]byte, error)
type InitialConfig ¶
type InitialConfig struct { // DefaultBranch: Default branch name of the repository. DefaultBranch string `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. License string `json:"license,omitempty"` // Readme: README template name. Valid template name(s) are: default. Readme string `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 (s InitialConfig) MarshalJSON() ([]byte, error)
type Instance ¶
type Instance struct { // CreateTime: Output only. Create timestamp. CreateTime string `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/*. KmsKey string `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. Name string `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. State string `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. StateNote string `json:"stateNote,omitempty"` // UpdateTime: Output only. Update timestamp. UpdateTime string `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 ¶
type Issue ¶
type Issue struct { // Body: Optional. Issue body. Provides a detailed description of the issue. Body string `json:"body,omitempty"` // CloseTime: Output only. Close timestamp (if closed). Cleared when is // re-opened. CloseTime string `json:"closeTime,omitempty"` // CreateTime: Output only. Creation timestamp. CreateTime string `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. Etag string `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}` Name string `json:"name,omitempty"` // State: Output only. State of the issue. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified. // "OPEN" - An open issue. // "CLOSED" - A closed issue. State string `json:"state,omitempty"` // Title: Required. Issue title. Title string `json:"title,omitempty"` // UpdateTime: Output only. Last updated timestamp. UpdateTime string `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 ¶
type IssueComment ¶
type IssueComment struct { // Body: Required. The comment body. Body string `json:"body,omitempty"` // CreateTime: Output only. Creation timestamp. CreateTime string `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}` Name string `json:"name,omitempty"` // UpdateTime: Output only. Last updated timestamp. UpdateTime string `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 (s IssueComment) MarshalJSON() ([]byte, error)
type ListBranchRulesResponse ¶
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. NextPageToken string `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 listing branchRules.
func (ListBranchRulesResponse) MarshalJSON ¶
func (s ListBranchRulesResponse) MarshalJSON() ([]byte, error)
type ListHooksResponse ¶
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. NextPageToken string `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 (s ListHooksResponse) MarshalJSON() ([]byte, error)
type ListInstancesResponse ¶
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. NextPageToken string `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 (s ListInstancesResponse) MarshalJSON() ([]byte, error)
type ListIssueCommentsResponse ¶
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. NextPageToken string `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 (s ListIssueCommentsResponse) MarshalJSON() ([]byte, error)
type ListIssuesResponse ¶
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. NextPageToken string `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 (s ListIssuesResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
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. NextPageToken string `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 (s ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `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 (s ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListPullRequestCommentsResponse ¶
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. NextPageToken string `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 (s ListPullRequestCommentsResponse) MarshalJSON() ([]byte, error)
type ListPullRequestFileDiffsResponse ¶
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. NextPageToken string `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 the response containing file diffs returned from ListPullRequestFileDiffs.
func (ListPullRequestFileDiffsResponse) MarshalJSON ¶
func (s ListPullRequestFileDiffsResponse) MarshalJSON() ([]byte, error)
type ListPullRequestsResponse ¶
type ListPullRequestsResponse struct { // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `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 list pull requests.
func (ListPullRequestsResponse) MarshalJSON ¶
func (s ListPullRequestsResponse) MarshalJSON() ([]byte, error)
type ListRepositoriesResponse ¶
type ListRepositoriesResponse struct { // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `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 (s ListRepositoriesResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby city // name. For example, "Tokyo". DisplayName string `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". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available capacity at // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `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 ¶
type MergePullRequestRequest ¶
type MergePullRequestRequest struct { }
MergePullRequestRequest: MergePullRequestRequest is the request to merge a pull request.
type OpenIssueRequest ¶
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. Etag string `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 (s OpenIssueRequest) MarshalJSON() ([]byte, error)
type OpenPullRequestRequest ¶
type OpenPullRequestRequest struct { }
OpenPullRequestRequest: OpenPullRequestRequest is the request to open a pull request.
type Operation ¶
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. Done bool `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. Metadata googleapi.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}`. Name string `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`. Response googleapi.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 the result of a network API call.
func (Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `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`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of the // operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `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 (s OperationMetadata) MarshalJSON() ([]byte, error)
type Policy ¶
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. Etag string `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). Version int64 `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 specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "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.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer 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 ``` For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
func (Policy) MarshalJSON ¶
type Position ¶
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. Line int64 `json:"line,omitempty,string"` // Path: Required. The path of the file. Path string `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 ¶
type PrivateConfig ¶
type PrivateConfig struct { // CaPool: Optional. Immutable. CA pool resource, resource must in the format // of `projects/{project}/locations/{location}/caPools/{ca_pool}`. CaPool string `json:"caPool,omitempty"` // HttpServiceAttachment: Output only. Service Attachment for HTTP, resource is // in the format of // `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}` // . HttpServiceAttachment string `json:"httpServiceAttachment,omitempty"` // IsPrivate: Required. Immutable. Indicate if it's private instance. IsPrivate bool `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}` // . SshServiceAttachment string `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 (s PrivateConfig) MarshalJSON() ([]byte, error)
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsInstancesCreateCall ¶
type ProjectsLocationsInstancesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesCreateCall) Context ¶
func (c *ProjectsLocationsInstancesCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesCreateCall) Header ¶
func (c *ProjectsLocationsInstancesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInstancesCreateCall) InstanceId ¶
func (c *ProjectsLocationsInstancesCreateCall) InstanceId(instanceId string) *ProjectsLocationsInstancesCreateCall
InstanceId sets the optional parameter "instanceId": Required. ID of the instance to be created.
func (*ProjectsLocationsInstancesCreateCall) RequestId ¶
func (c *ProjectsLocationsInstancesCreateCall) RequestId(requestId string) *ProjectsLocationsInstancesCreateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsInstancesDeleteCall ¶
type ProjectsLocationsInstancesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesDeleteCall) Context ¶
func (c *ProjectsLocationsInstancesDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesDeleteCall) Header ¶
func (c *ProjectsLocationsInstancesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInstancesDeleteCall) RequestId ¶
func (c *ProjectsLocationsInstancesDeleteCall) RequestId(requestId string) *ProjectsLocationsInstancesDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsInstancesGetCall ¶
type ProjectsLocationsInstancesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesGetCall) Context ¶
func (c *ProjectsLocationsInstancesGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesGetCall) Header ¶
func (c *ProjectsLocationsInstancesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInstancesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsInstancesGetIamPolicyCall ¶
type ProjectsLocationsInstancesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInstancesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
type ProjectsLocationsInstancesListCall ¶
type ProjectsLocationsInstancesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesListCall) Context ¶
func (c *ProjectsLocationsInstancesListCall) Context(ctx context.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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesListCall) Fields ¶
func (c *ProjectsLocationsInstancesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesListCall) Filter ¶
func (c *ProjectsLocationsInstancesListCall) Filter(filter string) *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 add headers to the request.
func (*ProjectsLocationsInstancesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsInstancesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInstancesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsInstancesListCall) OrderBy ¶
func (c *ProjectsLocationsInstancesListCall) OrderBy(orderBy string) *ProjectsLocationsInstancesListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results.
func (*ProjectsLocationsInstancesListCall) PageSize ¶
func (c *ProjectsLocationsInstancesListCall) PageSize(pageSize int64) *ProjectsLocationsInstancesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsInstancesListCall) PageToken ¶
func (c *ProjectsLocationsInstancesListCall) PageToken(pageToken string) *ProjectsLocationsInstancesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsInstancesListCall) Pages ¶
func (c *ProjectsLocationsInstancesListCall) Pages(ctx context.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.
type ProjectsLocationsInstancesService ¶
type ProjectsLocationsInstancesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInstancesService ¶
func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService
func (*ProjectsLocationsInstancesService) Create ¶
func (r *ProjectsLocationsInstancesService) Create(parent string, 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(name string) *ProjectsLocationsInstancesDeleteCall
Delete: Deletes a single instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) Get ¶
func (r *ProjectsLocationsInstancesService) Get(name string) *ProjectsLocationsInstancesGetCall
Get: Gets details of a single instance.
- name: Name of the resource.
func (*ProjectsLocationsInstancesService) GetIamPolicy ¶
func (r *ProjectsLocationsInstancesService) GetIamPolicy(resource string) *ProjectsLocationsInstancesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty 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(parent string) *ProjectsLocationsInstancesListCall
List: Lists Instances in a given project and location.
- parent: Parent value for ListInstancesRequest.
func (*ProjectsLocationsInstancesService) SetIamPolicy ¶
func (r *ProjectsLocationsInstancesService) SetIamPolicy(resource string, 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(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsInstancesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsInstancesSetIamPolicyCall ¶
type ProjectsLocationsInstancesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsInstancesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsInstancesTestIamPermissionsCall ¶
type ProjectsLocationsInstancesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInstancesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInstancesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsInstancesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInstancesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsInstancesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) ExtraLocationTypes ¶
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list of extra location types that should be used as conditions for controlling the visibility of the locations.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to 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 add headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.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.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *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 add headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.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.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.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(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the 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(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
type ProjectsLocationsRepositoriesBranchRulesCreateCall ¶
type ProjectsLocationsRepositoriesBranchRulesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) BranchRuleId ¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) BranchRuleId(branchRuleId string) *ProjectsLocationsRepositoriesBranchRulesCreateCall
BranchRuleId sets the optional parameter "branchRuleId":
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesBranchRulesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesBranchRulesDeleteCall ¶
type ProjectsLocationsRepositoriesBranchRulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) AllowMissing ¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
AllowMissing sets the optional parameter "allowMissing": If set to true, and the branch rule is not found, the request will succeed but no action will be taken on the server.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesBranchRulesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesBranchRulesGetCall ¶
type ProjectsLocationsRepositoriesBranchRulesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesBranchRulesGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesBranchRulesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesBranchRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesBranchRulesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesBranchRulesListCall ¶
type ProjectsLocationsRepositoriesBranchRulesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesBranchRulesListCall) Context ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesBranchRulesListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesBranchRulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesBranchRulesListCall) Header ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesBranchRulesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesBranchRulesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesBranchRulesListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesBranchRulesListCall
PageSize sets the optional parameter "pageSize":
func (*ProjectsLocationsRepositoriesBranchRulesListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesBranchRulesListCall
PageToken sets the optional parameter "pageToken":
func (*ProjectsLocationsRepositoriesBranchRulesListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesBranchRulesListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesBranchRulesPatchCall ¶
type ProjectsLocationsRepositoriesBranchRulesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesBranchRulesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.
func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) ValidateOnly ¶
func (c *ProjectsLocationsRepositoriesBranchRulesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRepositoriesBranchRulesPatchCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly)
type ProjectsLocationsRepositoriesBranchRulesService ¶
type ProjectsLocationsRepositoriesBranchRulesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRepositoriesBranchRulesService ¶
func NewProjectsLocationsRepositoriesBranchRulesService(s *Service) *ProjectsLocationsRepositoriesBranchRulesService
func (*ProjectsLocationsRepositoriesBranchRulesService) Create ¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Create(parent string, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesCreateCall
Create: CreateBranchRule creates a branch rule in a given repository.
- parent: .
func (*ProjectsLocationsRepositoriesBranchRulesService) Delete ¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Delete(name string) *ProjectsLocationsRepositoriesBranchRulesDeleteCall
Delete: DeleteBranchRule deletes a branch rule.
- name: .
func (*ProjectsLocationsRepositoriesBranchRulesService) Get ¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Get(name string) *ProjectsLocationsRepositoriesBranchRulesGetCall
Get: GetBranchRule gets a branch rule.
- name: Name of the repository to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/branchRu les/{branch_rule}`.
func (*ProjectsLocationsRepositoriesBranchRulesService) List ¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) List(parent string) *ProjectsLocationsRepositoriesBranchRulesListCall
List: ListBranchRules lists branch rules in a given repository.
- parent: .
func (*ProjectsLocationsRepositoriesBranchRulesService) Patch ¶
func (r *ProjectsLocationsRepositoriesBranchRulesService) Patch(nameid string, branchrule *BranchRule) *ProjectsLocationsRepositoriesBranchRulesPatchCall
Patch: UpdateBranchRule updates a branch rule.
- name: Optional. A unique identifier for a BranchRule. The name should be of the format: `projects/{project}/locations/{location}/repositories/{repository}/branchRu les/{branch_rule}`.
type ProjectsLocationsRepositoriesCreateCall ¶
type ProjectsLocationsRepositoriesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesCreateCall) RepositoryId ¶
func (c *ProjectsLocationsRepositoriesCreateCall) RepositoryId(repositoryId string) *ProjectsLocationsRepositoriesCreateCall
RepositoryId sets the optional parameter "repositoryId": Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
type ProjectsLocationsRepositoriesDeleteCall ¶
type ProjectsLocationsRepositoriesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesDeleteCall) AllowMissing ¶
func (c *ProjectsLocationsRepositoriesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsRepositoriesDeleteCall
AllowMissing sets the optional parameter "allowMissing": If set to true, and the repository is not found, the request will succeed but no action will be taken on the server.
func (*ProjectsLocationsRepositoriesDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesFetchBlobCall ¶
type ProjectsLocationsRepositoriesFetchBlobCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesFetchBlobCall) Context ¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Context(ctx context.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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesFetchBlobCall) Fields ¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchBlobCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesFetchBlobCall) Header ¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesFetchBlobCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchBlobCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesFetchBlobCall) Sha ¶
func (c *ProjectsLocationsRepositoriesFetchBlobCall) Sha(sha string) *ProjectsLocationsRepositoriesFetchBlobCall
Sha sets the optional parameter "sha": Required. The SHA-1 hash of the blob to retrieve.
type ProjectsLocationsRepositoriesFetchTreeCall ¶
type ProjectsLocationsRepositoriesFetchTreeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesFetchTreeCall) Context ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Context(ctx context.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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesFetchTreeCall) Fields ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesFetchTreeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesFetchTreeCall) Header ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesFetchTreeCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesFetchTreeCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesFetchTreeCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesFetchTreeCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
func (*ProjectsLocationsRepositoriesFetchTreeCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesFetchTreeCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesFetchTreeCall) Pages ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Pages(ctx context.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(recursive bool) *ProjectsLocationsRepositoriesFetchTreeCall
Recursive sets the optional parameter "recursive": If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
func (*ProjectsLocationsRepositoriesFetchTreeCall) Ref ¶
func (c *ProjectsLocationsRepositoriesFetchTreeCall) Ref(ref string) *ProjectsLocationsRepositoriesFetchTreeCall
Ref sets the optional parameter "ref": `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies which tree to fetch. If not specified, the default branch will be used.
type ProjectsLocationsRepositoriesGetCall ¶
type ProjectsLocationsRepositoriesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesGetIamPolicyCall ¶
type ProjectsLocationsRepositoriesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesGetIamPolicyCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRepositoriesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
type ProjectsLocationsRepositoriesHooksCreateCall ¶
type ProjectsLocationsRepositoriesHooksCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesHooksCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesHooksCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesHooksCreateCall) HookId ¶
func (c *ProjectsLocationsRepositoriesHooksCreateCall) HookId(hookId string) *ProjectsLocationsRepositoriesHooksCreateCall
HookId sets the optional parameter "hookId": Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
type ProjectsLocationsRepositoriesHooksDeleteCall ¶
type ProjectsLocationsRepositoriesHooksDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesHooksDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesHooksDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesHooksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesHooksGetCall ¶
type ProjectsLocationsRepositoriesHooksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesHooksGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesHooksGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesHooksGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesHooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesHooksGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesHooksListCall ¶
type ProjectsLocationsRepositoriesHooksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesHooksListCall) Context ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Context(ctx context.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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesHooksListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesHooksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesHooksListCall) Header ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesHooksListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesHooksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesHooksListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesHooksListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesHooksListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesHooksListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesHooksListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesHooksListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesHooksPatchCall ¶
type ProjectsLocationsRepositoriesHooksPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesHooksPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesHooksPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesHooksPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesHooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesHooksPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the hook resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.
type ProjectsLocationsRepositoriesHooksService ¶
type ProjectsLocationsRepositoriesHooksService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRepositoriesHooksService ¶
func NewProjectsLocationsRepositoriesHooksService(s *Service) *ProjectsLocationsRepositoriesHooksService
func (*ProjectsLocationsRepositoriesHooksService) Create ¶
func (r *ProjectsLocationsRepositoriesHooksService) Create(parent string, 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(name string) *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(name string) *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(parent string) *ProjectsLocationsRepositoriesHooksListCall
List: Lists hooks in a given repository.
- parent: Parent value for ListHooksRequest.
func (*ProjectsLocationsRepositoriesHooksService) Patch ¶
func (r *ProjectsLocationsRepositoriesHooksService) Patch(nameid string, hook *Hook) *ProjectsLocationsRepositoriesHooksPatchCall
Patch: Updates the metadata of a hook.
- name: Identifier. A unique identifier for a Hook. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}/ho oks/{hook_id}`.
type ProjectsLocationsRepositoriesIssuesCloseCall ¶
type ProjectsLocationsRepositoriesIssuesCloseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesCloseCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesCloseCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesCloseCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesCreateCall ¶
type ProjectsLocationsRepositoriesIssuesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesDeleteCall ¶
type ProjectsLocationsRepositoriesIssuesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Etag ¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Etag(etag string) *ProjectsLocationsRepositoriesIssuesDeleteCall
Etag sets the optional parameter "etag": The current etag of the issue. If the 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesGetCall ¶
type ProjectsLocationsRepositoriesIssuesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesIssuesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Context(ctx context.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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the issue comment resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.
type ProjectsLocationsRepositoriesIssuesIssueCommentsService ¶
type ProjectsLocationsRepositoriesIssuesIssueCommentsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRepositoriesIssuesIssueCommentsService ¶
func NewProjectsLocationsRepositoriesIssuesIssueCommentsService(s *Service) *ProjectsLocationsRepositoriesIssuesIssueCommentsService
func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) Create ¶
func (r *ProjectsLocationsRepositoriesIssuesIssueCommentsService) Create(parent string, 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(name string) *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(name string) *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(parent string) *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(nameid string, issuecomment *IssueComment) *ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall
Patch: Updates an issue comment.
- name: Identifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue}/issueComments/{comment_id}`.
type ProjectsLocationsRepositoriesIssuesListCall ¶
type ProjectsLocationsRepositoriesIssuesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesListCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Context(ctx context.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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesIssuesListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesIssuesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesListCall) Filter ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Filter(filter string) *ProjectsLocationsRepositoriesIssuesListCall
Filter sets the optional parameter "filter": Used to filter the resulting issues list.
func (*ProjectsLocationsRepositoriesIssuesListCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesIssuesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesIssuesListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesIssuesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesIssuesListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesIssuesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesIssuesListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesIssuesListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesIssuesOpenCall ¶
type ProjectsLocationsRepositoriesIssuesOpenCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesOpenCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesOpenCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesOpenCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesIssuesPatchCall ¶
type ProjectsLocationsRepositoriesIssuesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesIssuesPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesIssuesPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesIssuesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesIssuesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesIssuesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the issue resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.
type ProjectsLocationsRepositoriesIssuesService ¶
type ProjectsLocationsRepositoriesIssuesService struct { IssueComments *ProjectsLocationsRepositoriesIssuesIssueCommentsService // contains filtered or unexported fields }
func NewProjectsLocationsRepositoriesIssuesService ¶
func NewProjectsLocationsRepositoriesIssuesService(s *Service) *ProjectsLocationsRepositoriesIssuesService
func (*ProjectsLocationsRepositoriesIssuesService) Close ¶
func (r *ProjectsLocationsRepositoriesIssuesService) Close(name string, 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(parent string, 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(name string) *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(name string) *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(parent string) *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(name string, 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(nameid string, issue *Issue) *ProjectsLocationsRepositoriesIssuesPatchCall
Patch: Updates a issue.
- name: Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue_id}`.
type ProjectsLocationsRepositoriesListCall ¶
type ProjectsLocationsRepositoriesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesListCall) Context ¶
func (c *ProjectsLocationsRepositoriesListCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesListCall) Filter ¶
func (c *ProjectsLocationsRepositoriesListCall) Filter(filter string) *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 add headers to the request.
func (*ProjectsLocationsRepositoriesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesListCall) Instance ¶
func (c *ProjectsLocationsRepositoriesListCall) Instance(instance string) *ProjectsLocationsRepositoriesListCall
Instance sets the optional parameter "instance": The name of the instance in which the repository is hosted, formatted as `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. When listing repositories via securesourcemanager.googleapis.com, this field is required. When listing repositories via *.sourcemanager.dev, this field is ignored.
func (*ProjectsLocationsRepositoriesListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesPatchCall ¶
type ProjectsLocationsRepositoriesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the repository resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
func (*ProjectsLocationsRepositoriesPatchCall) ValidateOnly ¶
func (c *ProjectsLocationsRepositoriesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRepositoriesPatchCall
ValidateOnly sets the optional parameter "validateOnly": False by default. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.
type ProjectsLocationsRepositoriesPullRequestsCloseCall ¶
type ProjectsLocationsRepositoriesPullRequestsCloseCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsCloseCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsCreateCall ¶
type ProjectsLocationsRepositoriesPullRequestsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsGetCall ¶
type ProjectsLocationsRepositoriesPullRequestsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesPullRequestsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesPullRequestsListCall ¶
type ProjectsLocationsRepositoriesPullRequestsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsListCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall ¶
type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Context(ctx context.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 response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Fields ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Pages ¶
func (c *ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesPullRequestsMergeCall ¶
type ProjectsLocationsRepositoriesPullRequestsMergeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsMergeCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsOpenCall ¶
type ProjectsLocationsRepositoriesPullRequestsOpenCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsOpenCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsPatchCall ¶
type ProjectsLocationsRepositoriesPullRequestsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPullRequestsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the pull request resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Context(ctx context.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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Fields ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Fields ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageSize ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
PageSize sets the optional parameter "pageSize": Requested page size. If unspecified, at most 100 pull request comments will be returned. The maximum value is 100; values above 100 will be coerced to 100.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageToken ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageToken(pageToken string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Pages ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Pages(ctx context.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.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the pull request comment resource by the update. Updatable fields are `body`.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService ¶
func NewProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService(s *Service) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) BatchCreate ¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) BatchCreate(parent string, 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(parent string, 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(name string) *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(name string) *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(parent string) *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(nameid string, pullrequestcomment *PullRequestComment) *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall
Patch: Updates a pull request comment.
- name: Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequ ests/{pull_request}/pullRequestComments/{comment_id}`.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Resolve ¶
func (r *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Resolve(parent string, 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(parent string, 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}`.
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall ¶
type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Context ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Header ¶
func (c *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesPullRequestsService ¶
type ProjectsLocationsRepositoriesPullRequestsService struct { PullRequestComments *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService // contains filtered or unexported fields }
func NewProjectsLocationsRepositoriesPullRequestsService ¶
func NewProjectsLocationsRepositoriesPullRequestsService(s *Service) *ProjectsLocationsRepositoriesPullRequestsService
func (*ProjectsLocationsRepositoriesPullRequestsService) Close ¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) Close(name string, 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(parent string, 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(name string) *ProjectsLocationsRepositoriesPullRequestsGetCall
Get: Gets a pull request.
- name: Name of the pull request to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/pullRequ ests/{pull_request}`.
func (*ProjectsLocationsRepositoriesPullRequestsService) List ¶
func (r *ProjectsLocationsRepositoriesPullRequestsService) List(parent string) *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(name string) *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(name string, 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(name string, 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(nameid string, pullrequest *PullRequest) *ProjectsLocationsRepositoriesPullRequestsPatchCall
Patch: Updates a pull request.
- 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}/pullRequ ests/{pull_request_id}`.
type ProjectsLocationsRepositoriesService ¶
type ProjectsLocationsRepositoriesService struct { BranchRules *ProjectsLocationsRepositoriesBranchRulesService Hooks *ProjectsLocationsRepositoriesHooksService Issues *ProjectsLocationsRepositoriesIssuesService PullRequests *ProjectsLocationsRepositoriesPullRequestsService // contains filtered or unexported fields }
func NewProjectsLocationsRepositoriesService ¶
func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService
func (*ProjectsLocationsRepositoriesService) Create ¶
func (r *ProjectsLocationsRepositoriesService) Create(parent string, repository *Repository) *ProjectsLocationsRepositoriesCreateCall
Create: Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.
- parent: The project in which to create the repository. Values are of the form `projects/{project_number}/locations/{location_id}`.
func (*ProjectsLocationsRepositoriesService) Delete ¶
func (r *ProjectsLocationsRepositoriesService) Delete(name string) *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(repository string) *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(repository string) *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(name string) *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(resource string) *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(parent string) *ProjectsLocationsRepositoriesListCall
List: Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager.googleapis.com endpoint.
- parent: Parent value for ListRepositoriesRequest.
func (*ProjectsLocationsRepositoriesService) Patch ¶
func (r *ProjectsLocationsRepositoriesService) Patch(nameid string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall
Patch: Updates the metadata of a repository.
- name: Optional. A unique identifier for a repository. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}`.
func (*ProjectsLocationsRepositoriesService) SetIamPolicy ¶
func (r *ProjectsLocationsRepositoriesService) SetIamPolicy(resource string, 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(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRepositoriesTestIamPermissionsCall
TestIamPermissions: Test IAM permissions on a repository. IAM permission checks are not required on this method.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsRepositoriesSetIamPolicyCall ¶
type ProjectsLocationsRepositoriesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Context(ctx context.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsRepositoriesSetIamPolicyCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRepositoriesTestIamPermissionsCall ¶
type ProjectsLocationsRepositoriesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Context(ctx context.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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Instances *ProjectsLocationsInstancesService Operations *ProjectsLocationsOperationsService Repositories *ProjectsLocationsRepositoriesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PullRequest ¶
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. Body string `json:"body,omitempty"` // CloseTime: Output only. Close timestamp (if closed or merged). Cleared when // pull request is re-opened. CloseTime string `json:"closeTime,omitempty"` // CreateTime: Output only. Creation timestamp. CreateTime string `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}` Name string `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. State string `json:"state,omitempty"` // Title: Required. The pull request title. Title string `json:"title,omitempty"` // UpdateTime: Output only. Last updated timestamp. UpdateTime string `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 a user to merge a branch (head) into another branch (base).
func (PullRequest) MarshalJSON ¶
func (s PullRequest) MarshalJSON() ([]byte, error)
type PullRequestComment ¶
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. CreateTime string `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}` Name string `json:"name,omitempty"` // Review: Optional. The review summary comment. Review *Review `json:"review,omitempty"` // UpdateTime: Output only. Last updated timestamp. UpdateTime string `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 pull request.
func (PullRequestComment) MarshalJSON ¶
func (s PullRequestComment) MarshalJSON() ([]byte, error)
type PushOption ¶
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. BranchFilter string `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 (s PushOption) MarshalJSON() ([]byte, error)
type Repository ¶
type Repository struct { // CreateTime: Output only. Create timestamp. CreateTime string `json:"createTime,omitempty"` // Description: Optional. Description of the repository, which cannot exceed // 500 characters. Description string `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. Etag string `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. Instance string `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}` Name string `json:"name,omitempty"` // Uid: Output only. Unique identifier of the repository. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. Update timestamp. UpdateTime string `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 (s Repository) MarshalJSON() ([]byte, error)
type ResolvePullRequestCommentsRequest ¶
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. AutoFill bool `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 pull request comments.
func (ResolvePullRequestCommentsRequest) MarshalJSON ¶
func (s ResolvePullRequestCommentsRequest) MarshalJSON() ([]byte, error)
type Review ¶
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. ActionType string `json:"actionType,omitempty"` // Body: Optional. The comment body. Body string `json:"body,omitempty"` // EffectiveCommitSha: Output only. The effective commit sha this review is // pointing to. EffectiveCommitSha string `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 ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.
type SetIamPolicyRequest ¶
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" UpdateMask string `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 (s SetIamPolicyRequest) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `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. Message string `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 for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type TestIamPermissionsRequest ¶
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 (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsResponse ¶
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 (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error)
type TreeEntry ¶
type TreeEntry struct { // Mode: Output only. The file mode as a string (e.g., "100644"). Indicates // file type. Output-only. Mode string `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. Path string `json:"path,omitempty"` // Sha: Output only. The SHA-1 hash of the object (unique identifier). // Output-only. Sha string `json:"sha,omitempty"` // Size: Output only. The size of the object in bytes (only for blobs). // Output-only. Size int64 `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). Type string `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 ¶
type URIs ¶
type URIs struct { // Api: Output only. API is the URI for API access. Api string `json:"api,omitempty"` // GitHttps: Output only. git_https is the git HTTPS URI for git operations. GitHttps string `json:"gitHttps,omitempty"` // Html: Output only. HTML is the URI for user to view the repository in a // browser. Html string `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 ¶
type UnresolvePullRequestCommentsRequest ¶
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. AutoFill bool `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 pull request comments.
func (UnresolvePullRequestCommentsRequest) MarshalJSON ¶
func (s UnresolvePullRequestCommentsRequest) MarshalJSON() ([]byte, error)
type WorkforceIdentityFederationConfig ¶
type WorkforceIdentityFederationConfig struct { // Enabled: Optional. Immutable. Whether Workforce Identity Federation is // enabled. Enabled bool `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 allows this instance to support users from external identity providers.
func (WorkforceIdentityFederationConfig) MarshalJSON ¶
func (s WorkforceIdentityFederationConfig) MarshalJSON() ([]byte, error)