Documentation ¶
Overview ¶
Package developerconnect provides access to the Developer Connect API.
For product documentation, see: http://cloud.google.com/developer-connect/docs/overview
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/developerconnect/v1" ... ctx := context.Background() developerconnectService, err := developerconnect.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:
developerconnectService, err := developerconnect.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, ...) developerconnectService, err := developerconnect.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type CancelOperationRequest
- type Connection
- type CryptoKeyConfig
- type Empty
- type FetchGitHubInstallationsResponse
- type FetchGitRefsResponse
- type FetchLinkableGitRepositoriesResponse
- type FetchReadTokenRequest
- type FetchReadTokenResponse
- type FetchReadWriteTokenRequest
- type FetchReadWriteTokenResponse
- type GitHubConfig
- type GitHubEnterpriseConfig
- type GitLabConfig
- type GitLabEnterpriseConfig
- type GitRepositoryLink
- type HttpBody
- type Installation
- type InstallationState
- type LinkableGitRepository
- type ListConnectionsResponse
- type ListGitRepositoryLinksResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type Location
- type OAuthCredential
- type Operation
- type OperationMetadata
- type ProcessGitHubEnterpriseWebhookRequest
- type ProcessGitLabEnterpriseWebhookRequest
- type ProcessGitLabWebhookRequest
- type ProjectsLocationsConnectionsCreateCall
- func (c *ProjectsLocationsConnectionsCreateCall) ConnectionId(connectionId string) *ProjectsLocationsConnectionsCreateCall
- func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall
- func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall
- func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionsCreateCall
- func (c *ProjectsLocationsConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsCreateCall
- type ProjectsLocationsConnectionsDeleteCall
- func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall
- func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectionsDeleteCall) Etag(etag string) *ProjectsLocationsConnectionsDeleteCall
- func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall
- func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionsDeleteCall
- func (c *ProjectsLocationsConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsDeleteCall
- type ProjectsLocationsConnectionsFetchGitHubInstallationsCall
- func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
- func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Do(opts ...googleapi.CallOption) (*FetchGitHubInstallationsResponse, error)
- func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
- func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
- type ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Context(ctx context.Context) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Do(opts ...googleapi.CallOption) (*FetchLinkableGitRepositoriesResponse, error)
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageToken(pageToken string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Pages(ctx context.Context, f func(*FetchLinkableGitRepositoriesResponse) error) error
- type ProjectsLocationsConnectionsGetCall
- func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall
- func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*Connection, error)
- func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall
- func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall
- type ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) GitRepositoryLinkId(gitRepositoryLinkId string) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- type ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Etag(etag string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- type ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Do(opts ...googleapi.CallOption) (*FetchGitRefsResponse, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageToken(pageToken string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Pages(ctx context.Context, f func(*FetchGitRefsResponse) error) error
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) RefType(refType string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Do(opts ...googleapi.CallOption) (*FetchReadTokenResponse, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Header() http.Header
- type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Do(opts ...googleapi.CallOption) (*FetchReadWriteTokenResponse, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Header() http.Header
- type ProjectsLocationsConnectionsGitRepositoryLinksGetCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Do(opts ...googleapi.CallOption) (*GitRepositoryLink, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
- type ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Do(opts ...googleapi.CallOption) (*ListGitRepositoryLinksResponse, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Filter(filter string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Pages(ctx context.Context, f func(*ListGitRepositoryLinksResponse) error) error
- type ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Header() http.Header
- type ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
- func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Header() http.Header
- type ProjectsLocationsConnectionsGitRepositoryLinksService
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Create(parent string, gitrepositorylink *GitRepositoryLink) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Delete(name string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchGitRefs(gitRepositoryLink string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadToken(gitRepositoryLink string, fetchreadtokenrequest *FetchReadTokenRequest) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadWriteToken(gitRepositoryLink string, ...) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Get(name string) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) List(parent string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabEnterpriseWebhook(name string, ...) ...
- func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabWebhook(name string, processgitlabwebhookrequest *ProcessGitLabWebhookRequest) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
- type ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectionsResponse, error)
- func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall
- func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*ListConnectionsResponse) error) error
- type ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header
- func (c *ProjectsLocationsConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall
- func (c *ProjectsLocationsConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsPatchCall
- type ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
- func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
- func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
- func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Header() http.Header
- type ProjectsLocationsConnectionsService
- func (r *ProjectsLocationsConnectionsService) Create(parent string, connection *Connection) *ProjectsLocationsConnectionsCreateCall
- func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall
- func (r *ProjectsLocationsConnectionsService) FetchGitHubInstallations(connection string) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
- func (r *ProjectsLocationsConnectionsService) FetchLinkableGitRepositories(connection string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
- func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall
- func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall
- func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Connection) *ProjectsLocationsConnectionsPatchCall
- func (r *ProjectsLocationsConnectionsService) ProcessGitHubEnterpriseWebhook(parent string, ...) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
- 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 ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- 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 ProjectsLocationsService
- type ProjectsService
- type Service
- type ServiceDirectoryConfig
- type Status
- type UserCredential
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 CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Connection ¶
type Connection struct { // Annotations: Optional. Allows clients to store small amounts of arbitrary // data. Annotations map[string]string `json:"annotations,omitempty"` // CreateTime: Output only. [Output only] Create timestamp CreateTime string `json:"createTime,omitempty"` // CryptoKeyConfig: Optional. The crypto key configuration. This field is used // by the Customer-Managed Encryption Keys (CMEK) feature. CryptoKeyConfig *CryptoKeyConfig `json:"cryptoKeyConfig,omitempty"` // DeleteTime: Output only. [Output only] Delete timestamp DeleteTime string `json:"deleteTime,omitempty"` // Disabled: Optional. If disabled is set to true, functionality is disabled // for this connection. Repository based API methods and webhooks processing // for repositories in this connection will be disabled. 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"` // GithubConfig: Configuration for connections to github.com. GithubConfig *GitHubConfig `json:"githubConfig,omitempty"` // GithubEnterpriseConfig: Configuration for connections to an instance of // GitHub Enterprise. GithubEnterpriseConfig *GitHubEnterpriseConfig `json:"githubEnterpriseConfig,omitempty"` // GitlabConfig: Configuration for connections to gitlab.com. GitlabConfig *GitLabConfig `json:"gitlabConfig,omitempty"` // GitlabEnterpriseConfig: Configuration for connections to an instance of // GitLab Enterprise. GitlabEnterpriseConfig *GitLabEnterpriseConfig `json:"gitlabEnterpriseConfig,omitempty"` // InstallationState: Output only. Installation state of the Connection. InstallationState *InstallationState `json:"installationState,omitempty"` // Labels: Optional. Labels as key value pairs Labels map[string]string `json:"labels,omitempty"` // Name: Identifier. The resource name of the connection, in the format // `projects/{project}/locations/{location}/connections/{connection_id}`. Name string `json:"name,omitempty"` // Reconciling: Output only. Set to true when the connection is being set up or // updated in the background. Reconciling bool `json:"reconciling,omitempty"` // Uid: Output only. A system-assigned unique identifier for the Connection. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. [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. "Annotations") 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. "Annotations") 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:"-"` }
Connection: Message describing Connection object
func (Connection) MarshalJSON ¶
func (s Connection) MarshalJSON() ([]byte, error)
type CryptoKeyConfig ¶ added in v0.199.0
type CryptoKeyConfig struct { // KeyReference: Required. The name of the key which is used to encrypt/decrypt // customer data. For key in Cloud KMS, the key should be in the format of // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. KeyReference string `json:"keyReference,omitempty"` // ForceSendFields is a list of field names (e.g. "KeyReference") 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. "KeyReference") 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:"-"` }
CryptoKeyConfig: The crypto key configuration. This field is used by the Customer-managed encryption keys (CMEK) feature.
func (CryptoKeyConfig) MarshalJSON ¶ added in v0.199.0
func (s CryptoKeyConfig) 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 FetchGitHubInstallationsResponse ¶
type FetchGitHubInstallationsResponse struct { // Installations: List of installations available to the OAuth user (for // github.com) or all the installations (for GitHub enterprise). Installations []*Installation `json:"installations,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Installations") 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. "Installations") 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:"-"` }
FetchGitHubInstallationsResponse: Response of fetching github installations.
func (FetchGitHubInstallationsResponse) MarshalJSON ¶
func (s FetchGitHubInstallationsResponse) MarshalJSON() ([]byte, error)
type FetchGitRefsResponse ¶
type FetchGitRefsResponse struct { // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` // RefNames: Name of the refs fetched. RefNames []string `json:"refNames,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:"-"` }
FetchGitRefsResponse: Response for fetching git refs.
func (FetchGitRefsResponse) MarshalJSON ¶
func (s FetchGitRefsResponse) MarshalJSON() ([]byte, error)
type FetchLinkableGitRepositoriesResponse ¶
type FetchLinkableGitRepositoriesResponse struct { // LinkableGitRepositories: The git repositories that can be linked to the // connection. LinkableGitRepositories []*LinkableGitRepository `json:"linkableGitRepositories,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. "LinkableGitRepositories") 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. "LinkableGitRepositories") 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:"-"` }
FetchLinkableGitRepositoriesResponse: Response message for FetchLinkableGitRepositories.
func (FetchLinkableGitRepositoriesResponse) MarshalJSON ¶
func (s FetchLinkableGitRepositoriesResponse) MarshalJSON() ([]byte, error)
type FetchReadTokenRequest ¶
type FetchReadTokenRequest struct { }
FetchReadTokenRequest: Message for fetching SCM read token.
type FetchReadTokenResponse ¶
type FetchReadTokenResponse struct { // ExpirationTime: Expiration timestamp. Can be empty if unknown or // non-expiring. ExpirationTime string `json:"expirationTime,omitempty"` // GitUsername: The git_username to specify when making a git clone with the // token. For example, for GitHub GitRepositoryLinks, this would be // "x-access-token" GitUsername string `json:"gitUsername,omitempty"` // Token: The token content. Token string `json:"token,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExpirationTime") 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. "ExpirationTime") 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:"-"` }
FetchReadTokenResponse: Message for responding to get read token.
func (FetchReadTokenResponse) MarshalJSON ¶
func (s FetchReadTokenResponse) MarshalJSON() ([]byte, error)
type FetchReadWriteTokenRequest ¶
type FetchReadWriteTokenRequest struct { }
FetchReadWriteTokenRequest: Message for fetching SCM read/write token.
type FetchReadWriteTokenResponse ¶
type FetchReadWriteTokenResponse struct { // ExpirationTime: Expiration timestamp. Can be empty if unknown or // non-expiring. ExpirationTime string `json:"expirationTime,omitempty"` // GitUsername: The git_username to specify when making a git clone with the // token. For example, for GitHub GitRepositoryLinks, this would be // "x-access-token" GitUsername string `json:"gitUsername,omitempty"` // Token: The token content. Token string `json:"token,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExpirationTime") 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. "ExpirationTime") 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:"-"` }
FetchReadWriteTokenResponse: Message for responding to get read/write token.
func (FetchReadWriteTokenResponse) MarshalJSON ¶
func (s FetchReadWriteTokenResponse) MarshalJSON() ([]byte, error)
type GitHubConfig ¶
type GitHubConfig struct { // AppInstallationId: Optional. GitHub App installation id. AppInstallationId int64 `json:"appInstallationId,omitempty,string"` // AuthorizerCredential: Optional. OAuth credential of the account that // authorized the GitHub App. It is recommended to use a robot account instead // of a human user account. The OAuth token must be tied to the GitHub App of // this config. AuthorizerCredential *OAuthCredential `json:"authorizerCredential,omitempty"` // GithubApp: Required. Immutable. The GitHub Application that was installed to // the GitHub user or organization. // // Possible values: // "GIT_HUB_APP_UNSPECIFIED" - GitHub App not specified. // "DEVELOPER_CONNECT" - The Developer Connect GitHub Application. // "FIREBASE" - The Firebase GitHub Application. GithubApp string `json:"githubApp,omitempty"` // InstallationUri: Output only. The URI to navigate to in order to manage the // installation associated with this GitHubConfig. InstallationUri string `json:"installationUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AppInstallationId") 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. "AppInstallationId") 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:"-"` }
GitHubConfig: Configuration for connections to github.com.
func (GitHubConfig) MarshalJSON ¶
func (s GitHubConfig) MarshalJSON() ([]byte, error)
type GitHubEnterpriseConfig ¶ added in v0.199.0
type GitHubEnterpriseConfig struct { // AppId: Optional. ID of the GitHub App created from the manifest. AppId int64 `json:"appId,omitempty,string"` // AppInstallationId: Optional. ID of the installation of the GitHub App. AppInstallationId int64 `json:"appInstallationId,omitempty,string"` // AppSlug: Output only. The URL-friendly name of the GitHub App. AppSlug string `json:"appSlug,omitempty"` // HostUri: Required. The URI of the GitHub Enterprise host this connection is // for. HostUri string `json:"hostUri,omitempty"` // InstallationUri: Output only. The URI to navigate to in order to manage the // installation associated with this GitHubEnterpriseConfig. InstallationUri string `json:"installationUri,omitempty"` // PrivateKeySecretVersion: Optional. SecretManager resource containing the // private key of the GitHub App, formatted as // `projects/*/secrets/*/versions/*`. PrivateKeySecretVersion string `json:"privateKeySecretVersion,omitempty"` // ServerVersion: Output only. GitHub Enterprise version installed at the // host_uri. ServerVersion string `json:"serverVersion,omitempty"` // ServiceDirectoryConfig: Optional. Configuration for using Service Directory // to privately connect to a GitHub Enterprise server. This should only be set // if the GitHub Enterprise server is hosted on-premises and not reachable by // public internet. If this field is left empty, calls to the GitHub Enterprise // server will be made over the public internet. ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` // SslCaCertificate: Optional. SSL certificate to use for requests to GitHub // Enterprise. SslCaCertificate string `json:"sslCaCertificate,omitempty"` // WebhookSecretSecretVersion: Optional. SecretManager resource containing the // webhook secret of the GitHub App, formatted as // `projects/*/secrets/*/versions/*`. WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "AppId") 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. "AppId") 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:"-"` }
GitHubEnterpriseConfig: Configuration for connections to an instance of GitHub Enterprise.
func (GitHubEnterpriseConfig) MarshalJSON ¶ added in v0.199.0
func (s GitHubEnterpriseConfig) MarshalJSON() ([]byte, error)
type GitLabConfig ¶ added in v0.199.0
type GitLabConfig struct { // AuthorizerCredential: Required. A GitLab personal access token with the // minimum `api` scope access and a minimum role of `maintainer`. The GitLab // Projects visible to this Personal Access Token will control which Projects // Developer Connect has access to. AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` // ReadAuthorizerCredential: Required. A GitLab personal access token with the // minimum `read_api` scope access and a minimum role of `reporter`. The GitLab // Projects visible to this Personal Access Token will control which Projects // Developer Connect has access to. ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` // WebhookSecretSecretVersion: Required. Immutable. SecretManager resource // containing the webhook secret of a GitLab project, formatted as // `projects/*/secrets/*/versions/*`. This is used to validate webhooks. WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthorizerCredential") 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. "AuthorizerCredential") 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:"-"` }
GitLabConfig: Configuration for connections to gitlab.com.
func (GitLabConfig) MarshalJSON ¶ added in v0.199.0
func (s GitLabConfig) MarshalJSON() ([]byte, error)
type GitLabEnterpriseConfig ¶ added in v0.199.0
type GitLabEnterpriseConfig struct { // AuthorizerCredential: Required. A GitLab personal access token with the // minimum `api` scope access and a minimum role of `maintainer`. The GitLab // Projects visible to this Personal Access Token will control which Projects // Developer Connect has access to. AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` // HostUri: Required. The URI of the GitLab Enterprise host this connection is // for. HostUri string `json:"hostUri,omitempty"` // ReadAuthorizerCredential: Required. A GitLab personal access token with the // minimum `read_api` scope access and a minimum role of `reporter`. The GitLab // Projects visible to this Personal Access Token will control which Projects // Developer Connect has access to. ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` // ServerVersion: Output only. Version of the GitLab Enterprise server running // on the `host_uri`. ServerVersion string `json:"serverVersion,omitempty"` // ServiceDirectoryConfig: Optional. Configuration for using Service Directory // to privately connect to a GitLab Enterprise instance. This should only be // set if the GitLab Enterprise server is hosted on-premises and not reachable // by public internet. If this field is left empty, calls to the GitLab // Enterprise server will be made over the public internet. ServiceDirectoryConfig *ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` // SslCaCertificate: Optional. SSL Certificate Authority certificate to use for // requests to GitLab Enterprise instance. SslCaCertificate string `json:"sslCaCertificate,omitempty"` // WebhookSecretSecretVersion: Required. Immutable. SecretManager resource // containing the webhook secret of a GitLab project, formatted as // `projects/*/secrets/*/versions/*`. This is used to validate webhooks. WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthorizerCredential") 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. "AuthorizerCredential") 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:"-"` }
GitLabEnterpriseConfig: Configuration for connections to an instance of GitLab Enterprise.
func (GitLabEnterpriseConfig) MarshalJSON ¶ added in v0.199.0
func (s GitLabEnterpriseConfig) MarshalJSON() ([]byte, error)
type GitRepositoryLink ¶
type GitRepositoryLink struct { // Annotations: Optional. Allows clients to store small amounts of arbitrary // data. Annotations map[string]string `json:"annotations,omitempty"` // CloneUri: Required. Git Clone URI. CloneUri string `json:"cloneUri,omitempty"` // CreateTime: Output only. [Output only] Create timestamp CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. [Output only] Delete timestamp DeleteTime string `json:"deleteTime,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"` // Labels: Optional. Labels as key value pairs Labels map[string]string `json:"labels,omitempty"` // Name: Identifier. Resource name of the repository, in the format // `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. Name string `json:"name,omitempty"` // Reconciling: Output only. Set to true when the connection is being set up or // updated in the background. Reconciling bool `json:"reconciling,omitempty"` // Uid: Output only. A system-assigned unique identifier for the // GitRepositoryLink. Uid string `json:"uid,omitempty"` // UpdateTime: Output only. [Output only] Update timestamp UpdateTime string `json:"updateTime,omitempty"` // WebhookId: Output only. External ID of the webhook created for the // repository. WebhookId string `json:"webhookId,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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:"-"` }
GitRepositoryLink: Message describing the GitRepositoryLink object
func (GitRepositoryLink) MarshalJSON ¶
func (s GitRepositoryLink) MarshalJSON() ([]byte, error)
type HttpBody ¶ added in v0.202.0
type HttpBody struct { // ContentType: The HTTP Content-Type header value specifying the content type // of the body. ContentType string `json:"contentType,omitempty"` // Data: The HTTP request/response body as raw binary. Data string `json:"data,omitempty"` // Extensions: Application specific response metadata. Must be set in the first // response for streaming APIs. Extensions []googleapi.RawMessage `json:"extensions,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentType") 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. "ContentType") 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:"-"` }
HttpBody: Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
func (HttpBody) MarshalJSON ¶ added in v0.202.0
type Installation ¶
type Installation struct { // Id: ID of the installation in GitHub. Id int64 `json:"id,omitempty,string"` // Name: Name of the GitHub user or organization that owns this installation. Name string `json:"name,omitempty"` // Type: Either "user" or "organization". Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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:"-"` }
Installation: Represents an installation of the GitHub App.
func (Installation) MarshalJSON ¶
func (s Installation) MarshalJSON() ([]byte, error)
type InstallationState ¶
type InstallationState struct { // ActionUri: Output only. Link to follow for next action. Empty string if the // installation is already complete. ActionUri string `json:"actionUri,omitempty"` // Message: Output only. Message of what the user should do next to continue // the installation. Empty string if the installation is already complete. Message string `json:"message,omitempty"` // Stage: Output only. Current step of the installation process. // // Possible values: // "STAGE_UNSPECIFIED" - No stage specified. // "PENDING_CREATE_APP" - Only for GitHub Enterprise. An App creation has // been requested. The user needs to confirm the creation in their GitHub // enterprise host. // "PENDING_USER_OAUTH" - User needs to authorize the GitHub (or Enterprise) // App via OAuth. // "PENDING_INSTALL_APP" - User needs to follow the link to install the // GitHub (or Enterprise) App. // "COMPLETE" - Installation process has been completed. Stage string `json:"stage,omitempty"` // ForceSendFields is a list of field names (e.g. "ActionUri") 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. "ActionUri") 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:"-"` }
InstallationState: Describes stage and necessary actions to be taken by the user to complete the installation. Used for GitHub and GitHub Enterprise based connections.
func (InstallationState) MarshalJSON ¶
func (s InstallationState) MarshalJSON() ([]byte, error)
type LinkableGitRepository ¶
type LinkableGitRepository struct { // CloneUri: The clone uri of the repository. CloneUri string `json:"cloneUri,omitempty"` // ForceSendFields is a list of field names (e.g. "CloneUri") 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. "CloneUri") 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:"-"` }
LinkableGitRepository: LinkableGitRepository represents a git repository that can be linked to a connection.
func (LinkableGitRepository) MarshalJSON ¶
func (s LinkableGitRepository) MarshalJSON() ([]byte, error)
type ListConnectionsResponse ¶
type ListConnectionsResponse struct { // Connections: The list of Connection Connections []*Connection `json:"connections,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. "Connections") 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. "Connections") 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:"-"` }
ListConnectionsResponse: Message for response to listing Connections
func (ListConnectionsResponse) MarshalJSON ¶
func (s ListConnectionsResponse) MarshalJSON() ([]byte, error)
type ListGitRepositoryLinksResponse ¶
type ListGitRepositoryLinksResponse struct { // GitRepositoryLinks: The list of GitRepositoryLinks GitRepositoryLinks []*GitRepositoryLink `json:"gitRepositoryLinks,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. "GitRepositoryLinks") 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. "GitRepositoryLinks") 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:"-"` }
ListGitRepositoryLinksResponse: Message for response to listing GitRepositoryLinks
func (ListGitRepositoryLinksResponse) MarshalJSON ¶
func (s ListGitRepositoryLinksResponse) 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 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 OAuthCredential ¶
type OAuthCredential struct { // OauthTokenSecretVersion: Required. A SecretManager resource containing the // OAuth token that authorizes the connection. Format: // `projects/*/secrets/*/versions/*`. OauthTokenSecretVersion string `json:"oauthTokenSecretVersion,omitempty"` // Username: Output only. The username associated with this token. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "OauthTokenSecretVersion") 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. "OauthTokenSecretVersion") 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:"-"` }
OAuthCredential: Represents an OAuth token of the account that authorized the Connection, and associated metadata.
func (OAuthCredential) MarshalJSON ¶
func (s OAuthCredential) MarshalJSON() ([]byte, error)
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 been cancelled // successfully have google.longrunning.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 ProcessGitHubEnterpriseWebhookRequest ¶ added in v0.202.0
type ProcessGitHubEnterpriseWebhookRequest struct { // Body: Required. HTTP request body. Body *HttpBody `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:"-"` }
ProcessGitHubEnterpriseWebhookRequest: RPC request object accepted by the ProcessGitHubEnterpriseWebhook RPC method.
func (ProcessGitHubEnterpriseWebhookRequest) MarshalJSON ¶ added in v0.202.0
func (s ProcessGitHubEnterpriseWebhookRequest) MarshalJSON() ([]byte, error)
type ProcessGitLabEnterpriseWebhookRequest ¶ added in v0.202.0
type ProcessGitLabEnterpriseWebhookRequest struct { // Body: Required. HTTP request body. Body *HttpBody `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:"-"` }
ProcessGitLabEnterpriseWebhookRequest: RPC request object accepted by the ProcessGitLabEnterpriseWebhook RPC method.
func (ProcessGitLabEnterpriseWebhookRequest) MarshalJSON ¶ added in v0.202.0
func (s ProcessGitLabEnterpriseWebhookRequest) MarshalJSON() ([]byte, error)
type ProcessGitLabWebhookRequest ¶ added in v0.202.0
type ProcessGitLabWebhookRequest struct { // Body: Required. HTTP request body. Body *HttpBody `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:"-"` }
ProcessGitLabWebhookRequest: RPC request object accepted by the ProcessGitLabWebhook RPC method.
func (ProcessGitLabWebhookRequest) MarshalJSON ¶ added in v0.202.0
func (s ProcessGitLabWebhookRequest) MarshalJSON() ([]byte, error)
type ProjectsLocationsConnectionsCreateCall ¶
type ProjectsLocationsConnectionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsCreateCall) ConnectionId ¶
func (c *ProjectsLocationsConnectionsCreateCall) ConnectionId(connectionId string) *ProjectsLocationsConnectionsCreateCall
ConnectionId sets the optional parameter "connectionId": Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC
func (*ProjectsLocationsConnectionsCreateCall) Context ¶
func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsCreateCall) Do ¶
func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "developerconnect.projects.locations.connections.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 (*ProjectsLocationsConnectionsCreateCall) Fields ¶
func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsCreateCall) Header ¶
func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsCreateCall) RequestId ¶
func (c *ProjectsLocationsConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionsCreateCall
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).
func (*ProjectsLocationsConnectionsCreateCall) ValidateOnly ¶
func (c *ProjectsLocationsConnectionsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsCreateCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request, but do not actually post it.
type ProjectsLocationsConnectionsDeleteCall ¶
type ProjectsLocationsConnectionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsDeleteCall) Context ¶
func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsDeleteCall) Do ¶
func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "developerconnect.projects.locations.connections.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 (*ProjectsLocationsConnectionsDeleteCall) Etag ¶
func (c *ProjectsLocationsConnectionsDeleteCall) Etag(etag string) *ProjectsLocationsConnectionsDeleteCall
Etag sets the optional parameter "etag": The current etag of the Connection. If an etag is provided and does not match the current etag of the Connection, deletion will be blocked and an ABORTED error will be returned.
func (*ProjectsLocationsConnectionsDeleteCall) Fields ¶
func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsDeleteCall) Header ¶
func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsDeleteCall) RequestId ¶
func (c *ProjectsLocationsConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionsDeleteCall
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).
func (*ProjectsLocationsConnectionsDeleteCall) ValidateOnly ¶
func (c *ProjectsLocationsConnectionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsDeleteCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request, but do not actually post it.
type ProjectsLocationsConnectionsFetchGitHubInstallationsCall ¶
type ProjectsLocationsConnectionsFetchGitHubInstallationsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Context ¶
func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Do ¶
func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Do(opts ...googleapi.CallOption) (*FetchGitHubInstallationsResponse, error)
Do executes the "developerconnect.projects.locations.connections.fetchGitHubInstallations" call. Any non-2xx status code is an error. Response headers are in either *FetchGitHubInstallationsResponse.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 (*ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Fields ¶
func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Header ¶
func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsFetchGitHubInstallationsCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsFetchGitHubInstallationsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
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 ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall ¶
type ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Context ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Context(ctx context.Context) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Do ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Do(opts ...googleapi.CallOption) (*FetchLinkableGitRepositoriesResponse, error)
Do executes the "developerconnect.projects.locations.connections.fetchLinkableGitRepositories" call. Any non-2xx status code is an error. Response headers are in either *FetchLinkableGitRepositoriesResponse.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 (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Fields ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Header ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
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 (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageSize ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
PageSize sets the optional parameter "pageSize": Number of results to return in the list. Defaults to 20.
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageToken ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) PageToken(pageToken string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
PageToken sets the optional parameter "pageToken": Page start.
func (*ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Pages ¶
func (c *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall) Pages(ctx context.Context, f func(*FetchLinkableGitRepositoriesResponse) 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 ProjectsLocationsConnectionsGetCall ¶
type ProjectsLocationsConnectionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGetCall) Context ¶
func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGetCall) Do ¶
func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*Connection, error)
Do executes the "developerconnect.projects.locations.connections.get" call. Any non-2xx status code is an error. Response headers are in either *Connection.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 (*ProjectsLocationsConnectionsGetCall) Fields ¶
func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGetCall) Header ¶
func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall
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 ProjectsLocationsConnectionsGitRepositoryLinksCreateCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.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 (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) GitRepositoryLinkId ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) GitRepositoryLinkId(gitRepositoryLinkId string) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
GitRepositoryLinkId sets the optional parameter "gitRepositoryLinkId": Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) RequestId ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
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).
func (*ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) ValidateOnly ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request, but do not actually post it.
type ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.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 (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Etag ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Etag(etag string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
Etag sets the optional parameter "etag": 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.
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) RequestId ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
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).
func (*ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) ValidateOnly ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request, but do not actually post it.
type ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Do(opts ...googleapi.CallOption) (*FetchGitRefsResponse, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchGitRefs" call. Any non-2xx status code is an error. Response headers are in either *FetchGitRefsResponse.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 (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
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 (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageSize ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
PageSize sets the optional parameter "pageSize": Number of results to return in the list. Default to 20.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageToken ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) PageToken(pageToken string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
PageToken sets the optional parameter "pageToken": Page start.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Pages ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) Pages(ctx context.Context, f func(*FetchGitRefsResponse) 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 (*ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) RefType ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall) RefType(refType string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
RefType sets the optional parameter "refType": Required. Type of refs to fetch.
Possible values:
"REF_TYPE_UNSPECIFIED" - No type specified. "TAG" - To fetch tags. "BRANCH" - To fetch branches.
type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Do(opts ...googleapi.CallOption) (*FetchReadTokenResponse, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchReadToken" call. Any non-2xx status code is an error. Response headers are in either *FetchReadTokenResponse.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 (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Do(opts ...googleapi.CallOption) (*FetchReadWriteTokenResponse, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.fetchReadWriteToken" call. Any non-2xx status code is an error. Response headers are in either *FetchReadWriteTokenResponse.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 (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectionsGitRepositoryLinksGetCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Do(opts ...googleapi.CallOption) (*GitRepositoryLink, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.get" call. Any non-2xx status code is an error. Response headers are in either *GitRepositoryLink.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 (*ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGitRepositoryLinksGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
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 ProjectsLocationsConnectionsGitRepositoryLinksListCall ¶
type ProjectsLocationsConnectionsGitRepositoryLinksListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Context ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Do ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Do(opts ...googleapi.CallOption) (*ListGitRepositoryLinksResponse, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.list" call. Any non-2xx status code is an error. Response headers are in either *ListGitRepositoryLinksResponse.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 (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Fields ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Filter ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Filter(filter string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Header ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
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 (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) OrderBy ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageSize ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
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 (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageToken ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsConnectionsGitRepositoryLinksListCall) Pages ¶
func (c *ProjectsLocationsConnectionsGitRepositoryLinksListCall) Pages(ctx context.Context, f func(*ListGitRepositoryLinksResponse) 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 ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall ¶ added in v0.202.0
type ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Context ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Do ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.processGitLabEnterpriseWebhook" 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 (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Fields ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Header ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall ¶ added in v0.202.0
type ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Context ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Do ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "developerconnect.projects.locations.connections.gitRepositoryLinks.processGitLabWebhook" 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 (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Fields ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Header ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectionsGitRepositoryLinksService ¶
type ProjectsLocationsConnectionsGitRepositoryLinksService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsConnectionsGitRepositoryLinksService ¶
func NewProjectsLocationsConnectionsGitRepositoryLinksService(s *Service) *ProjectsLocationsConnectionsGitRepositoryLinksService
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) Create ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Create(parent string, gitrepositorylink *GitRepositoryLink) *ProjectsLocationsConnectionsGitRepositoryLinksCreateCall
Create: Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build.
- parent: Value for parent.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) Delete ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Delete(name string) *ProjectsLocationsConnectionsGitRepositoryLinksDeleteCall
Delete: Deletes a single GitRepositoryLink.
- name: Name of the resource.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) FetchGitRefs ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchGitRefs(gitRepositoryLink string) *ProjectsLocationsConnectionsGitRepositoryLinksFetchGitRefsCall
FetchGitRefs: Fetch the list of branches or tags for a given repository.
- gitRepositoryLink: The resource name of GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadToken ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadToken(gitRepositoryLink string, fetchreadtokenrequest *FetchReadTokenRequest) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadTokenCall
FetchReadToken: Fetches read token of a given gitRepositoryLink.
- gitRepositoryLink: The resource name of the gitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadWriteToken ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) FetchReadWriteToken(gitRepositoryLink string, fetchreadwritetokenrequest *FetchReadWriteTokenRequest) *ProjectsLocationsConnectionsGitRepositoryLinksFetchReadWriteTokenCall
FetchReadWriteToken: Fetches read/write token of a given gitRepositoryLink.
- gitRepositoryLink: The resource name of the gitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) Get ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) Get(name string) *ProjectsLocationsConnectionsGitRepositoryLinksGetCall
Get: Gets details of a single GitRepositoryLink.
- name: Name of the resource.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) List ¶
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) List(parent string) *ProjectsLocationsConnectionsGitRepositoryLinksListCall
List: Lists GitRepositoryLinks in a given project, location, and connection.
- parent: Parent value for ListGitRepositoryLinksRequest.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabEnterpriseWebhook ¶ added in v0.202.0
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabEnterpriseWebhook(name string, processgitlabenterprisewebhookrequest *ProcessGitLabEnterpriseWebhookRequest) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabEnterpriseWebhookCall
ProcessGitLabEnterpriseWebhook: ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events.
- name: The GitRepositoryLink resource where the webhook will be received. Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
func (*ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabWebhook ¶ added in v0.202.0
func (r *ProjectsLocationsConnectionsGitRepositoryLinksService) ProcessGitLabWebhook(name string, processgitlabwebhookrequest *ProcessGitLabWebhookRequest) *ProjectsLocationsConnectionsGitRepositoryLinksProcessGitLabWebhookCall
ProcessGitLabWebhook: ProcessGitLabWebhook is called by the GitLab.com for notifying events.
- name: The GitRepositoryLink resource where the webhook will be received. Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
type ProjectsLocationsConnectionsListCall ¶
type ProjectsLocationsConnectionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsListCall) Context ¶
func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsListCall) Do ¶
func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListConnectionsResponse, error)
Do executes the "developerconnect.projects.locations.connections.list" call. Any non-2xx status code is an error. Response headers are in either *ListConnectionsResponse.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 (*ProjectsLocationsConnectionsListCall) Fields ¶
func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsListCall) Filter ¶
func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsConnectionsListCall) Header ¶
func (c *ProjectsLocationsConnectionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall
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 (*ProjectsLocationsConnectionsListCall) OrderBy ¶
func (c *ProjectsLocationsConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results
func (*ProjectsLocationsConnectionsListCall) PageSize ¶
func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall
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 (*ProjectsLocationsConnectionsListCall) PageToken ¶
func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsConnectionsListCall) Pages ¶
func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*ListConnectionsResponse) 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 ProjectsLocationsConnectionsPatchCall ¶
type ProjectsLocationsConnectionsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsPatchCall) AllowMissing ¶
func (c *ProjectsLocationsConnectionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsConnectionsPatchCall
AllowMissing sets the optional parameter "allowMissing": If set to true, and the connection is not found a new connection will be created. In this situation `update_mask` is ignored. The creation will succeed only if the input connection has all the necessary information (e.g a github_config with both user_oauth_token and installation_id properties).
func (*ProjectsLocationsConnectionsPatchCall) Context ¶
func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsPatchCall) Do ¶
func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "developerconnect.projects.locations.connections.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 (*ProjectsLocationsConnectionsPatchCall) Fields ¶
func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsPatchCall) Header ¶
func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsConnectionsPatchCall) RequestId ¶
func (c *ProjectsLocationsConnectionsPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionsPatchCall
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).
func (*ProjectsLocationsConnectionsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsConnectionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the Connection 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 (*ProjectsLocationsConnectionsPatchCall) ValidateOnly ¶
func (c *ProjectsLocationsConnectionsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionsPatchCall
ValidateOnly sets the optional parameter "validateOnly": If set, validate the request, but do not actually post it.
type ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall ¶ added in v0.202.0
type ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Context ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Context(ctx context.Context) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Do ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "developerconnect.projects.locations.connections.processGitHubEnterpriseWebhook" 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 (*ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Fields ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Header ¶ added in v0.202.0
func (c *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsConnectionsService ¶
type ProjectsLocationsConnectionsService struct { GitRepositoryLinks *ProjectsLocationsConnectionsGitRepositoryLinksService // contains filtered or unexported fields }
func NewProjectsLocationsConnectionsService ¶
func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService
func (*ProjectsLocationsConnectionsService) Create ¶
func (r *ProjectsLocationsConnectionsService) Create(parent string, connection *Connection) *ProjectsLocationsConnectionsCreateCall
Create: Creates a new Connection in a given project and location.
- parent: Value for parent.
func (*ProjectsLocationsConnectionsService) Delete ¶
func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall
Delete: Deletes a single Connection.
- name: Name of the resource.
func (*ProjectsLocationsConnectionsService) FetchGitHubInstallations ¶
func (r *ProjectsLocationsConnectionsService) FetchGitHubInstallations(connection string) *ProjectsLocationsConnectionsFetchGitHubInstallationsCall
FetchGitHubInstallations: FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.
- connection: The resource name of the connection in the format `projects/*/locations/*/connections/*`.
func (*ProjectsLocationsConnectionsService) FetchLinkableGitRepositories ¶
func (r *ProjectsLocationsConnectionsService) FetchLinkableGitRepositories(connection string) *ProjectsLocationsConnectionsFetchLinkableGitRepositoriesCall
FetchLinkableGitRepositories: FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.
- connection: The name of the Connection. Format: `projects/*/locations/*/connections/*`.
func (*ProjectsLocationsConnectionsService) Get ¶
func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall
Get: Gets details of a single Connection.
- name: Name of the resource.
func (*ProjectsLocationsConnectionsService) List ¶
func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall
List: Lists Connections in a given project and location.
- parent: Parent value for ListConnectionsRequest.
func (*ProjectsLocationsConnectionsService) Patch ¶
func (r *ProjectsLocationsConnectionsService) Patch(name string, connection *Connection) *ProjectsLocationsConnectionsPatchCall
Patch: Updates the parameters of a single Connection.
- name: Identifier. The resource name of the connection, in the format `projects/{project}/locations/{location}/connections/{connection_id}`.
func (*ProjectsLocationsConnectionsService) ProcessGitHubEnterpriseWebhook ¶ added in v0.202.0
func (r *ProjectsLocationsConnectionsService) ProcessGitHubEnterpriseWebhook(parent string, processgithubenterprisewebhookrequest *ProcessGitHubEnterpriseWebhookRequest) *ProjectsLocationsConnectionsProcessGitHubEnterpriseWebhookCall
ProcessGitHubEnterpriseWebhook: ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise instances for notifying events.
- parent: Project and location where the webhook will be received. Format: `projects/*/locations/*`.
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 "developerconnect.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 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 "developerconnect.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) 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 "developerconnect.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 "developerconnect.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 "developerconnect.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 "developerconnect.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 ProjectsLocationsService ¶
type ProjectsLocationsService struct { Connections *ProjectsLocationsConnectionsService Operations *ProjectsLocationsOperationsService // 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 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 ServiceDirectoryConfig ¶ added in v0.199.0
type ServiceDirectoryConfig struct { // Service: Required. The Service Directory service name. Format: // projects/{project}/locations/{location}/namespaces/{namespace}/services/{serv // ice}. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") 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. "Service") 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:"-"` }
ServiceDirectoryConfig: ServiceDirectoryConfig represents Service Directory configuration for a connection.
func (ServiceDirectoryConfig) MarshalJSON ¶ added in v0.199.0
func (s ServiceDirectoryConfig) 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 UserCredential ¶ added in v0.199.0
type UserCredential struct { // UserTokenSecretVersion: Required. A SecretManager resource containing the // user token that authorizes the Developer Connect connection. Format: // `projects/*/secrets/*/versions/*`. UserTokenSecretVersion string `json:"userTokenSecretVersion,omitempty"` // Username: Output only. The username associated with this token. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "UserTokenSecretVersion") 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. "UserTokenSecretVersion") 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:"-"` }
UserCredential: Represents a personal access token that authorized the Connection, and associated metadata.
func (UserCredential) MarshalJSON ¶ added in v0.199.0
func (s UserCredential) MarshalJSON() ([]byte, error)