Variables
InstallationState_Stage_name, InstallationState_Stage_value
var
(
InstallationState_Stage_name
=
map
[
int32
]
string
{
0
:
"STAGE_UNSPECIFIED"
,
1
:
"PENDING_CREATE_APP"
,
2
:
"PENDING_USER_OAUTH"
,
3
:
"PENDING_INSTALL_APP"
,
10
:
"COMPLETE"
,
}
InstallationState_Stage_value
=
map
[
string
]
int32
{
"STAGE_UNSPECIFIED"
:
0
,
"PENDING_CREATE_APP"
:
1
,
"PENDING_USER_OAUTH"
:
2
,
"PENDING_INSTALL_APP"
:
3
,
"COMPLETE"
:
10
,
}
)
Enum value maps for InstallationState_Stage.
FetchGitRefsRequest_RefType_name, FetchGitRefsRequest_RefType_value
var
(
FetchGitRefsRequest_RefType_name
=
map
[
int32
]
string
{
0
:
"REF_TYPE_UNSPECIFIED"
,
1
:
"TAG"
,
2
:
"BRANCH"
,
}
FetchGitRefsRequest_RefType_value
=
map
[
string
]
int32
{
"REF_TYPE_UNSPECIFIED"
:
0
,
"TAG"
:
1
,
"BRANCH"
:
2
,
}
)
Enum value maps for FetchGitRefsRequest_RefType.
File_google_devtools_cloudbuild_v2_cloudbuild_proto
var
File_google_devtools_cloudbuild_v2_cloudbuild_proto
protoreflect
.
FileDescriptor
File_google_devtools_cloudbuild_v2_repositories_proto
var
File_google_devtools_cloudbuild_v2_repositories_proto
protoreflect
.
FileDescriptor
Functions
func RegisterRepositoryManagerServer
func
RegisterRepositoryManagerServer
(
s
*
grpc
.
Server
,
srv
RepositoryManagerServer
)
BatchCreateRepositoriesRequest
type
BatchCreateRepositoriesRequest
struct
{
// Required. The connection to contain all the repositories being created.
// Format: projects/*/locations/*/connections/*
// The parent field in the CreateRepositoryRequest messages
// must either be empty or match this field.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The request messages specifying the repositories to create.
Requests
[]
*
CreateRepositoryRequest
`protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
// contains filtered or unexported fields
}
Message for creating repositoritories in batch.
func (*BatchCreateRepositoriesRequest) Descriptor
func
(
*
BatchCreateRepositoriesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use BatchCreateRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateRepositoriesRequest) GetParent
func
(
x
*
BatchCreateRepositoriesRequest
)
GetParent
()
string
func (*BatchCreateRepositoriesRequest) GetRequests
func
(
x
*
BatchCreateRepositoriesRequest
)
GetRequests
()
[]
*
CreateRepositoryRequest
func (*BatchCreateRepositoriesRequest) ProtoMessage
func
(
*
BatchCreateRepositoriesRequest
)
ProtoMessage
()
func (*BatchCreateRepositoriesRequest) ProtoReflect
func
(
x
*
BatchCreateRepositoriesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*BatchCreateRepositoriesRequest) Reset
func
(
x
*
BatchCreateRepositoriesRequest
)
Reset
()
func (*BatchCreateRepositoriesRequest) String
func
(
x
*
BatchCreateRepositoriesRequest
)
String
()
string
BatchCreateRepositoriesResponse
type
BatchCreateRepositoriesResponse
struct
{
// Repository resources created.
Repositories
[]
*
Repository
`protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// contains filtered or unexported fields
}
Message for response of creating repositories in batch.
func (*BatchCreateRepositoriesResponse) Descriptor
func
(
*
BatchCreateRepositoriesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use BatchCreateRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*BatchCreateRepositoriesResponse) GetRepositories
func
(
x
*
BatchCreateRepositoriesResponse
)
GetRepositories
()
[]
*
Repository
func (*BatchCreateRepositoriesResponse) ProtoMessage
func
(
*
BatchCreateRepositoriesResponse
)
ProtoMessage
()
func (*BatchCreateRepositoriesResponse) ProtoReflect
func
(
x
*
BatchCreateRepositoriesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*BatchCreateRepositoriesResponse) Reset
func
(
x
*
BatchCreateRepositoriesResponse
)
Reset
()
func (*BatchCreateRepositoriesResponse) String
func
(
x
*
BatchCreateRepositoriesResponse
)
String
()
string
Connection
type
Connection
struct
{
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
ConnectionConfig
isConnection_ConnectionConfig
`protobuf_oneof:"connection_config"`
InstallationState
*
InstallationState
`protobuf:"bytes,12,opt,name=installation_state,json=installationState,proto3" json:"installation_state,omitempty"`
Disabled
bool
`protobuf:"varint,13,opt,name=disabled,proto3" json:"disabled,omitempty"`
Reconciling
bool
`protobuf:"varint,14,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
Annotations
map
[
string
]
string
""
/* 164 byte string literal not displayed */
Etag
string
`protobuf:"bytes,16,opt,name=etag,proto3" json:"etag,omitempty"`
}
A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Server or GitLab.
func (*Connection) Descriptor
func
(
*
Connection
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetAnnotations
func
(
x
*
Connection
)
GetAnnotations
()
map
[
string
]
string
func (*Connection) GetConnectionConfig
func
(
m
*
Connection
)
GetConnectionConfig
()
isConnection_ConnectionConfig
func (*Connection) GetCreateTime
func
(
x
*
Connection
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Connection) GetDisabled
func
(
x
*
Connection
)
GetDisabled
()
bool
func (*Connection) GetEtag
func
(
x
*
Connection
)
GetEtag
()
string
func (*Connection) GetGithubConfig
func
(
x
*
Connection
)
GetGithubConfig
()
*
GitHubConfig
func (*Connection) GetGithubEnterpriseConfig
func
(
x
*
Connection
)
GetGithubEnterpriseConfig
()
*
GitHubEnterpriseConfig
func (*Connection) GetGitlabConfig
func
(
x
*
Connection
)
GetGitlabConfig
()
*
GitLabConfig
func (*Connection) GetInstallationState
func
(
x
*
Connection
)
GetInstallationState
()
*
InstallationState
func (*Connection) GetName
func
(
x
*
Connection
)
GetName
()
string
func (*Connection) GetReconciling
func
(
x
*
Connection
)
GetReconciling
()
bool
func (*Connection) GetUpdateTime
func
(
x
*
Connection
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Connection) ProtoMessage
func
(
*
Connection
)
ProtoMessage
()
func (*Connection) ProtoReflect
func
(
x
*
Connection
)
ProtoReflect
()
protoreflect
.
Message
func (*Connection) Reset
func
(
x
*
Connection
)
Reset
()
func (*Connection) String
func
(
x
*
Connection
)
String
()
string
Connection_GithubConfig
type
Connection_GithubConfig
struct
{
// Configuration for connections to github.com.
GithubConfig
*
GitHubConfig
`protobuf:"bytes,5,opt,name=github_config,json=githubConfig,proto3,oneof"`
}
Connection_GithubEnterpriseConfig
type
Connection_GithubEnterpriseConfig
struct
{
// Configuration for connections to an instance of GitHub Enterprise.
GithubEnterpriseConfig
*
GitHubEnterpriseConfig
`protobuf:"bytes,6,opt,name=github_enterprise_config,json=githubEnterpriseConfig,proto3,oneof"`
}
Connection_GitlabConfig
type
Connection_GitlabConfig
struct
{
// Configuration for connections to gitlab.com or an instance of GitLab
// Enterprise.
GitlabConfig
*
GitLabConfig
`protobuf:"bytes,7,opt,name=gitlab_config,json=gitlabConfig,proto3,oneof"`
}
CreateConnectionRequest
type
CreateConnectionRequest
struct
{
// Required. Project and location where the connection will be created.
// Format: `projects/*/locations/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The Connection to create.
Connection
*
Connection
`protobuf:"bytes,2,opt,name=connection,proto3" json:"connection,omitempty"`
// Required. The ID to use for the Connection, which will become the final
// component of the Connection's resource name. Names must be unique
// per-project per-location. Allows alphanumeric characters and any of
// -._~%!$&'()*+,;=@.
ConnectionId
string
`protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
// contains filtered or unexported fields
}
Message for creating a Connection
func (*CreateConnectionRequest) Descriptor
func
(
*
CreateConnectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CreateConnectionRequest.ProtoReflect.Descriptor instead.
func (*CreateConnectionRequest) GetConnection
func
(
x
*
CreateConnectionRequest
)
GetConnection
()
*
Connection
func (*CreateConnectionRequest) GetConnectionId
func
(
x
*
CreateConnectionRequest
)
GetConnectionId
()
string
func (*CreateConnectionRequest) GetParent
func
(
x
*
CreateConnectionRequest
)
GetParent
()
string
func (*CreateConnectionRequest) ProtoMessage
func
(
*
CreateConnectionRequest
)
ProtoMessage
()
func (*CreateConnectionRequest) ProtoReflect
func
(
x
*
CreateConnectionRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateConnectionRequest) Reset
func
(
x
*
CreateConnectionRequest
)
Reset
()
func (*CreateConnectionRequest) String
func
(
x
*
CreateConnectionRequest
)
String
()
string
CreateRepositoryRequest
type
CreateRepositoryRequest
struct
{
// Required. The connection to contain the repository. If the request is part
// of a BatchCreateRepositoriesRequest, this field should be empty or match
// the parent specified there.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The repository to create.
Repository
*
Repository
`protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
// 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
// -._~%!$&'()*+,;=@.
RepositoryId
string
`protobuf:"bytes,3,opt,name=repository_id,json=repositoryId,proto3" json:"repository_id,omitempty"`
// contains filtered or unexported fields
}
Message for creating a Repository.
func (*CreateRepositoryRequest) Descriptor
func
(
*
CreateRepositoryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use CreateRepositoryRequest.ProtoReflect.Descriptor instead.
func (*CreateRepositoryRequest) GetParent
func
(
x
*
CreateRepositoryRequest
)
GetParent
()
string
func (*CreateRepositoryRequest) GetRepository
func
(
x
*
CreateRepositoryRequest
)
GetRepository
()
*
Repository
func (*CreateRepositoryRequest) GetRepositoryId
func
(
x
*
CreateRepositoryRequest
)
GetRepositoryId
()
string
func (*CreateRepositoryRequest) ProtoMessage
func
(
*
CreateRepositoryRequest
)
ProtoMessage
()
func (*CreateRepositoryRequest) ProtoReflect
func
(
x
*
CreateRepositoryRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*CreateRepositoryRequest) Reset
func
(
x
*
CreateRepositoryRequest
)
Reset
()
func (*CreateRepositoryRequest) String
func
(
x
*
CreateRepositoryRequest
)
String
()
string
DeleteConnectionRequest
type
DeleteConnectionRequest
struct
{
// Required. The name of the Connection to delete.
// Format: `projects/*/locations/*/connections/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 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.
Etag
string
`protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// If set, validate the request, but do not actually post it.
ValidateOnly
bool
`protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}
Message for deleting a Connection.
func (*DeleteConnectionRequest) Descriptor
func
(
*
DeleteConnectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use DeleteConnectionRequest.ProtoReflect.Descriptor instead.
func (*DeleteConnectionRequest) GetEtag
func
(
x
*
DeleteConnectionRequest
)
GetEtag
()
string
func (*DeleteConnectionRequest) GetName
func
(
x
*
DeleteConnectionRequest
)
GetName
()
string
func (*DeleteConnectionRequest) GetValidateOnly
func
(
x
*
DeleteConnectionRequest
)
GetValidateOnly
()
bool
func (*DeleteConnectionRequest) ProtoMessage
func
(
*
DeleteConnectionRequest
)
ProtoMessage
()
func (*DeleteConnectionRequest) ProtoReflect
func
(
x
*
DeleteConnectionRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteConnectionRequest) Reset
func
(
x
*
DeleteConnectionRequest
)
Reset
()
func (*DeleteConnectionRequest) String
func
(
x
*
DeleteConnectionRequest
)
String
()
string
DeleteRepositoryRequest
type
DeleteRepositoryRequest
struct
{
// Required. The name of the Repository to delete.
// Format: `projects/*/locations/*/connections/*/repositories/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The current etag of the repository.
// If an etag is provided and does not match the current etag of the
// repository, deletion will be blocked and an ABORTED error will be returned.
Etag
string
`protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// If set, validate the request, but do not actually post it.
ValidateOnly
bool
`protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}
Message for deleting a Repository.
func (*DeleteRepositoryRequest) Descriptor
func
(
*
DeleteRepositoryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use DeleteRepositoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteRepositoryRequest) GetEtag
func
(
x
*
DeleteRepositoryRequest
)
GetEtag
()
string
func (*DeleteRepositoryRequest) GetName
func
(
x
*
DeleteRepositoryRequest
)
GetName
()
string
func (*DeleteRepositoryRequest) GetValidateOnly
func
(
x
*
DeleteRepositoryRequest
)
GetValidateOnly
()
bool
func (*DeleteRepositoryRequest) ProtoMessage
func
(
*
DeleteRepositoryRequest
)
ProtoMessage
()
func (*DeleteRepositoryRequest) ProtoReflect
func
(
x
*
DeleteRepositoryRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*DeleteRepositoryRequest) Reset
func
(
x
*
DeleteRepositoryRequest
)
Reset
()
func (*DeleteRepositoryRequest) String
func
(
x
*
DeleteRepositoryRequest
)
String
()
string
FetchGitRefsRequest
type
FetchGitRefsRequest
struct
{
Repository
string
`protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
RefType
FetchGitRefsRequest_RefType
""
/* 146 byte string literal not displayed */
}
Request for fetching git refs
func (*FetchGitRefsRequest) Descriptor
func
(
*
FetchGitRefsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchGitRefsRequest.ProtoReflect.Descriptor instead.
func (*FetchGitRefsRequest) GetRefType
func
(
x
*
FetchGitRefsRequest
)
GetRefType
()
FetchGitRefsRequest_RefType
func (*FetchGitRefsRequest) GetRepository
func
(
x
*
FetchGitRefsRequest
)
GetRepository
()
string
func (*FetchGitRefsRequest) ProtoMessage
func
(
*
FetchGitRefsRequest
)
ProtoMessage
()
func (*FetchGitRefsRequest) ProtoReflect
func
(
x
*
FetchGitRefsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchGitRefsRequest) Reset
func
(
x
*
FetchGitRefsRequest
)
Reset
()
func (*FetchGitRefsRequest) String
func
(
x
*
FetchGitRefsRequest
)
String
()
string
FetchGitRefsRequest_RefType
type
FetchGitRefsRequest_RefType
int32
Type of refs
FetchGitRefsRequest_REF_TYPE_UNSPECIFIED, FetchGitRefsRequest_TAG, FetchGitRefsRequest_BRANCH
const
(
// No type specified.
FetchGitRefsRequest_REF_TYPE_UNSPECIFIED
FetchGitRefsRequest_RefType
=
0
// To fetch tags.
FetchGitRefsRequest_TAG
FetchGitRefsRequest_RefType
=
1
// To fetch branches.
FetchGitRefsRequest_BRANCH
FetchGitRefsRequest_RefType
=
2
)
func (FetchGitRefsRequest_RefType) Descriptor
func
(
FetchGitRefsRequest_RefType
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (FetchGitRefsRequest_RefType) Enum
func
(
x
FetchGitRefsRequest_RefType
)
Enum
()
*
FetchGitRefsRequest_RefType
func (FetchGitRefsRequest_RefType) EnumDescriptor
func
(
FetchGitRefsRequest_RefType
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchGitRefsRequest_RefType.Descriptor instead.
func (FetchGitRefsRequest_RefType) Number
func
(
x
FetchGitRefsRequest_RefType
)
Number
()
protoreflect
.
EnumNumber
func (FetchGitRefsRequest_RefType) String
func
(
x
FetchGitRefsRequest_RefType
)
String
()
string
func (FetchGitRefsRequest_RefType) Type
func
(
FetchGitRefsRequest_RefType
)
Type
()
protoreflect
.
EnumType
FetchGitRefsResponse
type
FetchGitRefsResponse
struct
{
// Name of the refs fetched.
RefNames
[]
string
`protobuf:"bytes,1,rep,name=ref_names,json=refNames,proto3" json:"ref_names,omitempty"`
// contains filtered or unexported fields
}
Response for fetching git refs
func (*FetchGitRefsResponse) Descriptor
func
(
*
FetchGitRefsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchGitRefsResponse.ProtoReflect.Descriptor instead.
func (*FetchGitRefsResponse) GetRefNames
func
(
x
*
FetchGitRefsResponse
)
GetRefNames
()
[]
string
func (*FetchGitRefsResponse) ProtoMessage
func
(
*
FetchGitRefsResponse
)
ProtoMessage
()
func (*FetchGitRefsResponse) ProtoReflect
func
(
x
*
FetchGitRefsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchGitRefsResponse) Reset
func
(
x
*
FetchGitRefsResponse
)
Reset
()
func (*FetchGitRefsResponse) String
func
(
x
*
FetchGitRefsResponse
)
String
()
string
FetchLinkableRepositoriesRequest
type
FetchLinkableRepositoriesRequest
struct
{
// Required. The name of the Connection.
// Format: `projects/*/locations/*/connections/*`.
Connection
string
`protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// Number of results to return in the list. Default to 20.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Request message for FetchLinkableRepositories.
func (*FetchLinkableRepositoriesRequest) Descriptor
func
(
*
FetchLinkableRepositoriesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchLinkableRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesRequest) GetConnection
func
(
x
*
FetchLinkableRepositoriesRequest
)
GetConnection
()
string
func (*FetchLinkableRepositoriesRequest) GetPageSize
func
(
x
*
FetchLinkableRepositoriesRequest
)
GetPageSize
()
int32
func (*FetchLinkableRepositoriesRequest) GetPageToken
func
(
x
*
FetchLinkableRepositoriesRequest
)
GetPageToken
()
string
func (*FetchLinkableRepositoriesRequest) ProtoMessage
func
(
*
FetchLinkableRepositoriesRequest
)
ProtoMessage
()
func (*FetchLinkableRepositoriesRequest) ProtoReflect
func
(
x
*
FetchLinkableRepositoriesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchLinkableRepositoriesRequest) Reset
func
(
x
*
FetchLinkableRepositoriesRequest
)
Reset
()
func (*FetchLinkableRepositoriesRequest) String
func
(
x
*
FetchLinkableRepositoriesRequest
)
String
()
string
FetchLinkableRepositoriesResponse
type
FetchLinkableRepositoriesResponse
struct
{
// repositories ready to be created.
Repositories
[]
*
Repository
`protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response message for FetchLinkableRepositories.
func (*FetchLinkableRepositoriesResponse) Descriptor
func
(
*
FetchLinkableRepositoriesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchLinkableRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesResponse) GetNextPageToken
func
(
x
*
FetchLinkableRepositoriesResponse
)
GetNextPageToken
()
string
func (*FetchLinkableRepositoriesResponse) GetRepositories
func
(
x
*
FetchLinkableRepositoriesResponse
)
GetRepositories
()
[]
*
Repository
func (*FetchLinkableRepositoriesResponse) ProtoMessage
func
(
*
FetchLinkableRepositoriesResponse
)
ProtoMessage
()
func (*FetchLinkableRepositoriesResponse) ProtoReflect
func
(
x
*
FetchLinkableRepositoriesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchLinkableRepositoriesResponse) Reset
func
(
x
*
FetchLinkableRepositoriesResponse
)
Reset
()
func (*FetchLinkableRepositoriesResponse) String
func
(
x
*
FetchLinkableRepositoriesResponse
)
String
()
string
FetchReadTokenRequest
type
FetchReadTokenRequest
struct
{
// Required. The resource name of the repository in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Repository
string
`protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// contains filtered or unexported fields
}
Message for fetching SCM read token.
func (*FetchReadTokenRequest) Descriptor
func
(
*
FetchReadTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchReadTokenRequest.ProtoReflect.Descriptor instead.
func (*FetchReadTokenRequest) GetRepository
func
(
x
*
FetchReadTokenRequest
)
GetRepository
()
string
func (*FetchReadTokenRequest) ProtoMessage
func
(
*
FetchReadTokenRequest
)
ProtoMessage
()
func (*FetchReadTokenRequest) ProtoReflect
func
(
x
*
FetchReadTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchReadTokenRequest) Reset
func
(
x
*
FetchReadTokenRequest
)
Reset
()
func (*FetchReadTokenRequest) String
func
(
x
*
FetchReadTokenRequest
)
String
()
string
FetchReadTokenResponse
type
FetchReadTokenResponse
struct
{
// The token content.
Token
string
`protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// Expiration timestamp. Can be empty if unknown or non-expiring.
ExpirationTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
// contains filtered or unexported fields
}
Message for responding to get read token.
func (*FetchReadTokenResponse) Descriptor
func
(
*
FetchReadTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchReadTokenResponse.ProtoReflect.Descriptor instead.
func (*FetchReadTokenResponse) GetExpirationTime
func
(
x
*
FetchReadTokenResponse
)
GetExpirationTime
()
*
timestamppb
.
Timestamp
func (*FetchReadTokenResponse) GetToken
func
(
x
*
FetchReadTokenResponse
)
GetToken
()
string
func (*FetchReadTokenResponse) ProtoMessage
func
(
*
FetchReadTokenResponse
)
ProtoMessage
()
func (*FetchReadTokenResponse) ProtoReflect
func
(
x
*
FetchReadTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchReadTokenResponse) Reset
func
(
x
*
FetchReadTokenResponse
)
Reset
()
func (*FetchReadTokenResponse) String
func
(
x
*
FetchReadTokenResponse
)
String
()
string
FetchReadWriteTokenRequest
type
FetchReadWriteTokenRequest
struct
{
// Required. The resource name of the repository in the format
// `projects/*/locations/*/connections/*/repositories/*`.
Repository
string
`protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// contains filtered or unexported fields
}
Message for fetching SCM read/write token.
func (*FetchReadWriteTokenRequest) Descriptor
func
(
*
FetchReadWriteTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchReadWriteTokenRequest.ProtoReflect.Descriptor instead.
func (*FetchReadWriteTokenRequest) GetRepository
func
(
x
*
FetchReadWriteTokenRequest
)
GetRepository
()
string
func (*FetchReadWriteTokenRequest) ProtoMessage
func
(
*
FetchReadWriteTokenRequest
)
ProtoMessage
()
func (*FetchReadWriteTokenRequest) ProtoReflect
func
(
x
*
FetchReadWriteTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchReadWriteTokenRequest) Reset
func
(
x
*
FetchReadWriteTokenRequest
)
Reset
()
func (*FetchReadWriteTokenRequest) String
func
(
x
*
FetchReadWriteTokenRequest
)
String
()
string
FetchReadWriteTokenResponse
type
FetchReadWriteTokenResponse
struct
{
// The token content.
Token
string
`protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// Expiration timestamp. Can be empty if unknown or non-expiring.
ExpirationTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
// contains filtered or unexported fields
}
Message for responding to get read/write token.
func (*FetchReadWriteTokenResponse) Descriptor
func
(
*
FetchReadWriteTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use FetchReadWriteTokenResponse.ProtoReflect.Descriptor instead.
func (*FetchReadWriteTokenResponse) GetExpirationTime
func
(
x
*
FetchReadWriteTokenResponse
)
GetExpirationTime
()
*
timestamppb
.
Timestamp
func (*FetchReadWriteTokenResponse) GetToken
func
(
x
*
FetchReadWriteTokenResponse
)
GetToken
()
string
func (*FetchReadWriteTokenResponse) ProtoMessage
func
(
*
FetchReadWriteTokenResponse
)
ProtoMessage
()
func (*FetchReadWriteTokenResponse) ProtoReflect
func
(
x
*
FetchReadWriteTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*FetchReadWriteTokenResponse) Reset
func
(
x
*
FetchReadWriteTokenResponse
)
Reset
()
func (*FetchReadWriteTokenResponse) String
func
(
x
*
FetchReadWriteTokenResponse
)
String
()
string
GetConnectionRequest
type
GetConnectionRequest
struct
{
// Required. The name of the Connection to retrieve.
// Format: `projects/*/locations/*/connections/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Message for getting the details of a Connection.
func (*GetConnectionRequest) Descriptor
func
(
*
GetConnectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead.
func (*GetConnectionRequest) GetName
func
(
x
*
GetConnectionRequest
)
GetName
()
string
func (*GetConnectionRequest) ProtoMessage
func
(
*
GetConnectionRequest
)
ProtoMessage
()
func (*GetConnectionRequest) ProtoReflect
func
(
x
*
GetConnectionRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetConnectionRequest) Reset
func
(
x
*
GetConnectionRequest
)
Reset
()
func (*GetConnectionRequest) String
func
(
x
*
GetConnectionRequest
)
String
()
string
GetRepositoryRequest
type
GetRepositoryRequest
struct
{
// Required. The name of the Repository to retrieve.
// Format: `projects/*/locations/*/connections/*/repositories/*`.
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Message for getting the details of a Repository.
func (*GetRepositoryRequest) Descriptor
func
(
*
GetRepositoryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead.
func (*GetRepositoryRequest) GetName
func
(
x
*
GetRepositoryRequest
)
GetName
()
string
func (*GetRepositoryRequest) ProtoMessage
func
(
*
GetRepositoryRequest
)
ProtoMessage
()
func (*GetRepositoryRequest) ProtoReflect
func
(
x
*
GetRepositoryRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*GetRepositoryRequest) Reset
func
(
x
*
GetRepositoryRequest
)
Reset
()
func (*GetRepositoryRequest) String
func
(
x
*
GetRepositoryRequest
)
String
()
string
GitHubConfig
type
GitHubConfig
struct
{
// OAuth credential of the account that authorized the Cloud Build GitHub App.
// It is recommended to use a robot account instead of a human user account.
// The OAuth token must be tied to the Cloud Build GitHub App.
AuthorizerCredential
*
OAuthCredential
`protobuf:"bytes,1,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// GitHub App installation id.
AppInstallationId
int64
`protobuf:"varint,2,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
// contains filtered or unexported fields
}
Configuration for connections to github.com.
func (*GitHubConfig) Descriptor
func
(
*
GitHubConfig
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GitHubConfig.ProtoReflect.Descriptor instead.
func (*GitHubConfig) GetAppInstallationId
func
(
x
*
GitHubConfig
)
GetAppInstallationId
()
int64
func (*GitHubConfig) GetAuthorizerCredential
func
(
x
*
GitHubConfig
)
GetAuthorizerCredential
()
*
OAuthCredential
func (*GitHubConfig) ProtoMessage
func
(
*
GitHubConfig
)
ProtoMessage
()
func (*GitHubConfig) ProtoReflect
func
(
x
*
GitHubConfig
)
ProtoReflect
()
protoreflect
.
Message
func (*GitHubConfig) Reset
func
(
x
*
GitHubConfig
)
Reset
()
func (*GitHubConfig) String
func
(
x
*
GitHubConfig
)
String
()
string
GitHubEnterpriseConfig
type
GitHubEnterpriseConfig
struct
{
HostUri
string
`protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
ApiKey
string
`protobuf:"bytes,12,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
AppId
int64
`protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
AppSlug
string
`protobuf:"bytes,13,opt,name=app_slug,json=appSlug,proto3" json:"app_slug,omitempty"`
PrivateKeySecretVersion
string
""
/* 134 byte string literal not displayed */
WebhookSecretSecretVersion
string
""
/* 143 byte string literal not displayed */
AppInstallationId
int64
`protobuf:"varint,9,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
ServiceDirectoryConfig
*
ServiceDirectoryConfig
""
/* 130 byte string literal not displayed */
SslCa
string
`protobuf:"bytes,11,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
ServerVersion
string
`protobuf:"bytes,14,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
}
Configuration for connections to an instance of GitHub Enterprise.
func (*GitHubEnterpriseConfig) Descriptor
func
(
*
GitHubEnterpriseConfig
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GitHubEnterpriseConfig.ProtoReflect.Descriptor instead.
func (*GitHubEnterpriseConfig) GetApiKey
func
(
x
*
GitHubEnterpriseConfig
)
GetApiKey
()
string
func (*GitHubEnterpriseConfig) GetAppId
func
(
x
*
GitHubEnterpriseConfig
)
GetAppId
()
int64
func (*GitHubEnterpriseConfig) GetAppInstallationId
func
(
x
*
GitHubEnterpriseConfig
)
GetAppInstallationId
()
int64
func (*GitHubEnterpriseConfig) GetAppSlug
func
(
x
*
GitHubEnterpriseConfig
)
GetAppSlug
()
string
func (*GitHubEnterpriseConfig) GetHostUri
func
(
x
*
GitHubEnterpriseConfig
)
GetHostUri
()
string
func (*GitHubEnterpriseConfig) GetPrivateKeySecretVersion
func
(
x
*
GitHubEnterpriseConfig
)
GetPrivateKeySecretVersion
()
string
func (*GitHubEnterpriseConfig) GetServerVersion
func
(
x
*
GitHubEnterpriseConfig
)
GetServerVersion
()
string
func (*GitHubEnterpriseConfig) GetServiceDirectoryConfig
func
(
x
*
GitHubEnterpriseConfig
)
GetServiceDirectoryConfig
()
*
ServiceDirectoryConfig
func (*GitHubEnterpriseConfig) GetSslCa
func
(
x
*
GitHubEnterpriseConfig
)
GetSslCa
()
string
func (*GitHubEnterpriseConfig) GetWebhookSecretSecretVersion
func
(
x
*
GitHubEnterpriseConfig
)
GetWebhookSecretSecretVersion
()
string
func (*GitHubEnterpriseConfig) ProtoMessage
func
(
*
GitHubEnterpriseConfig
)
ProtoMessage
()
func (*GitHubEnterpriseConfig) ProtoReflect
func
(
x
*
GitHubEnterpriseConfig
)
ProtoReflect
()
protoreflect
.
Message
func (*GitHubEnterpriseConfig) Reset
func
(
x
*
GitHubEnterpriseConfig
)
Reset
()
func (*GitHubEnterpriseConfig) String
func
(
x
*
GitHubEnterpriseConfig
)
String
()
string
GitLabConfig
type
GitLabConfig
struct
{
HostUri
string
`protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
WebhookSecretSecretVersion
string
""
/* 143 byte string literal not displayed */
ReadAuthorizerCredential
*
UserCredential
""
/* 135 byte string literal not displayed */
AuthorizerCredential
*
UserCredential
`protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
ServiceDirectoryConfig
*
ServiceDirectoryConfig
""
/* 129 byte string literal not displayed */
SslCa
string
`protobuf:"bytes,6,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
ServerVersion
string
`protobuf:"bytes,7,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
}
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
func (*GitLabConfig) Descriptor
func
(
*
GitLabConfig
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use GitLabConfig.ProtoReflect.Descriptor instead.
func (*GitLabConfig) GetAuthorizerCredential
func
(
x
*
GitLabConfig
)
GetAuthorizerCredential
()
*
UserCredential
func (*GitLabConfig) GetHostUri
func
(
x
*
GitLabConfig
)
GetHostUri
()
string
func (*GitLabConfig) GetReadAuthorizerCredential
func
(
x
*
GitLabConfig
)
GetReadAuthorizerCredential
()
*
UserCredential
func (*GitLabConfig) GetServerVersion
func
(
x
*
GitLabConfig
)
GetServerVersion
()
string
func (*GitLabConfig) GetServiceDirectoryConfig
func
(
x
*
GitLabConfig
)
GetServiceDirectoryConfig
()
*
ServiceDirectoryConfig
func (*GitLabConfig) GetSslCa
func
(
x
*
GitLabConfig
)
GetSslCa
()
string
func (*GitLabConfig) GetWebhookSecretSecretVersion
func
(
x
*
GitLabConfig
)
GetWebhookSecretSecretVersion
()
string
func (*GitLabConfig) ProtoMessage
func
(
*
GitLabConfig
)
ProtoMessage
()
func (*GitLabConfig) ProtoReflect
func
(
x
*
GitLabConfig
)
ProtoReflect
()
protoreflect
.
Message
func (*GitLabConfig) Reset
func
(
x
*
GitLabConfig
)
Reset
()
func (*GitLabConfig) String
func
(
x
*
GitLabConfig
)
String
()
string
InstallationState
type
InstallationState
struct
{
// Output only. Current step of the installation process.
Stage
InstallationState_Stage
`protobuf:"varint,1,opt,name=stage,proto3,enum=google.devtools.cloudbuild.v2.InstallationState_Stage" json:"stage,omitempty"`
// Output only. Message of what the user should do next to continue the
// installation. Empty string if the installation is already complete.
Message
string
`protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Output only. Link to follow for next action. Empty string if the
// installation is already complete.
ActionUri
string
`protobuf:"bytes,3,opt,name=action_uri,json=actionUri,proto3" json:"action_uri,omitempty"`
// contains filtered or unexported fields
}
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) Descriptor
func
(
*
InstallationState
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use InstallationState.ProtoReflect.Descriptor instead.
func (*InstallationState) GetActionUri
func
(
x
*
InstallationState
)
GetActionUri
()
string
func (*InstallationState) GetMessage
func
(
x
*
InstallationState
)
GetMessage
()
string
func (*InstallationState) GetStage
func
(
x
*
InstallationState
)
GetStage
()
InstallationState_Stage
func (*InstallationState) ProtoMessage
func
(
*
InstallationState
)
ProtoMessage
()
func (*InstallationState) ProtoReflect
func
(
x
*
InstallationState
)
ProtoReflect
()
protoreflect
.
Message
func (*InstallationState) Reset
func
(
x
*
InstallationState
)
Reset
()
func (*InstallationState) String
func
(
x
*
InstallationState
)
String
()
string
InstallationState_Stage
type
InstallationState_Stage
int32
Stage of the installation process.
InstallationState_STAGE_UNSPECIFIED, InstallationState_PENDING_CREATE_APP, InstallationState_PENDING_USER_OAUTH, InstallationState_PENDING_INSTALL_APP, InstallationState_COMPLETE
const
(
// No stage specified.
InstallationState_STAGE_UNSPECIFIED
InstallationState_Stage
=
0
// Only for GitHub Enterprise. An App creation has been requested.
// The user needs to confirm the creation in their GitHub enterprise host.
InstallationState_PENDING_CREATE_APP
InstallationState_Stage
=
1
// User needs to authorize the GitHub (or Enterprise) App via OAuth.
InstallationState_PENDING_USER_OAUTH
InstallationState_Stage
=
2
// User needs to follow the link to install the GitHub (or Enterprise) App.
InstallationState_PENDING_INSTALL_APP
InstallationState_Stage
=
3
// Installation process has been completed.
InstallationState_COMPLETE
InstallationState_Stage
=
10
)
func (InstallationState_Stage) Descriptor
func
(
InstallationState_Stage
)
Descriptor
()
protoreflect
.
EnumDescriptor
func (InstallationState_Stage) Enum
func
(
x
InstallationState_Stage
)
Enum
()
*
InstallationState_Stage
func (InstallationState_Stage) EnumDescriptor
func
(
InstallationState_Stage
)
EnumDescriptor
()
([]
byte
,
[]
int
)
Deprecated: Use InstallationState_Stage.Descriptor instead.
func (InstallationState_Stage) Number
func
(
x
InstallationState_Stage
)
Number
()
protoreflect
.
EnumNumber
func (InstallationState_Stage) String
func
(
x
InstallationState_Stage
)
String
()
string
func (InstallationState_Stage) Type
func
(
InstallationState_Stage
)
Type
()
protoreflect
.
EnumType
ListConnectionsRequest
type
ListConnectionsRequest
struct
{
// Required. The parent, which owns this collection of Connections.
// Format: `projects/*/locations/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Number of results to return in the list.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
Message for requesting list of Connections.
func (*ListConnectionsRequest) Descriptor
func
(
*
ListConnectionsRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListConnectionsRequest.ProtoReflect.Descriptor instead.
func (*ListConnectionsRequest) GetPageSize
func
(
x
*
ListConnectionsRequest
)
GetPageSize
()
int32
func (*ListConnectionsRequest) GetPageToken
func
(
x
*
ListConnectionsRequest
)
GetPageToken
()
string
func (*ListConnectionsRequest) GetParent
func
(
x
*
ListConnectionsRequest
)
GetParent
()
string
func (*ListConnectionsRequest) ProtoMessage
func
(
*
ListConnectionsRequest
)
ProtoMessage
()
func (*ListConnectionsRequest) ProtoReflect
func
(
x
*
ListConnectionsRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListConnectionsRequest) Reset
func
(
x
*
ListConnectionsRequest
)
Reset
()
func (*ListConnectionsRequest) String
func
(
x
*
ListConnectionsRequest
)
String
()
string
ListConnectionsResponse
type
ListConnectionsResponse
struct
{
// The list of Connections.
Connections
[]
*
Connection
`protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Message for response to listing Connections.
func (*ListConnectionsResponse) Descriptor
func
(
*
ListConnectionsResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListConnectionsResponse.ProtoReflect.Descriptor instead.
func (*ListConnectionsResponse) GetConnections
func
(
x
*
ListConnectionsResponse
)
GetConnections
()
[]
*
Connection
func (*ListConnectionsResponse) GetNextPageToken
func
(
x
*
ListConnectionsResponse
)
GetNextPageToken
()
string
func (*ListConnectionsResponse) ProtoMessage
func
(
*
ListConnectionsResponse
)
ProtoMessage
()
func (*ListConnectionsResponse) ProtoReflect
func
(
x
*
ListConnectionsResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListConnectionsResponse) Reset
func
(
x
*
ListConnectionsResponse
)
Reset
()
func (*ListConnectionsResponse) String
func
(
x
*
ListConnectionsResponse
)
String
()
string
ListRepositoriesRequest
type
ListRepositoriesRequest
struct
{
// Required. The parent, which owns this collection of Repositories.
// Format: `projects/*/locations/*/connections/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Number of results to return in the list.
PageSize
int32
`protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken
string
`protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A filter expression that filters resources listed in the response.
// Expressions must follow API improvement proposal
// [AIP-160](https://google.aip.dev/160). e.g.
// `remote_uri:"https://github.com*"`.
Filter
string
`protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Message for requesting list of Repositories.
func (*ListRepositoriesRequest) Descriptor
func
(
*
ListRepositoriesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*ListRepositoriesRequest) GetFilter
func
(
x
*
ListRepositoriesRequest
)
GetFilter
()
string
func (*ListRepositoriesRequest) GetPageSize
func
(
x
*
ListRepositoriesRequest
)
GetPageSize
()
int32
func (*ListRepositoriesRequest) GetPageToken
func
(
x
*
ListRepositoriesRequest
)
GetPageToken
()
string
func (*ListRepositoriesRequest) GetParent
func
(
x
*
ListRepositoriesRequest
)
GetParent
()
string
func (*ListRepositoriesRequest) ProtoMessage
func
(
*
ListRepositoriesRequest
)
ProtoMessage
()
func (*ListRepositoriesRequest) ProtoReflect
func
(
x
*
ListRepositoriesRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ListRepositoriesRequest) Reset
func
(
x
*
ListRepositoriesRequest
)
Reset
()
func (*ListRepositoriesRequest) String
func
(
x
*
ListRepositoriesRequest
)
String
()
string
ListRepositoriesResponse
type
ListRepositoriesResponse
struct
{
// The list of Repositories.
Repositories
[]
*
Repository
`protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken
string
`protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Message for response to listing Repositories.
func (*ListRepositoriesResponse) Descriptor
func
(
*
ListRepositoriesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ListRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*ListRepositoriesResponse) GetNextPageToken
func
(
x
*
ListRepositoriesResponse
)
GetNextPageToken
()
string
func (*ListRepositoriesResponse) GetRepositories
func
(
x
*
ListRepositoriesResponse
)
GetRepositories
()
[]
*
Repository
func (*ListRepositoriesResponse) ProtoMessage
func
(
*
ListRepositoriesResponse
)
ProtoMessage
()
func (*ListRepositoriesResponse) ProtoReflect
func
(
x
*
ListRepositoriesResponse
)
ProtoReflect
()
protoreflect
.
Message
func (*ListRepositoriesResponse) Reset
func
(
x
*
ListRepositoriesResponse
)
Reset
()
func (*ListRepositoriesResponse) String
func
(
x
*
ListRepositoriesResponse
)
String
()
string
OAuthCredential
type
OAuthCredential
struct
{
OauthTokenSecretVersion
string
""
/* 134 byte string literal not displayed */
Username
string
`protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
}
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
func (*OAuthCredential) Descriptor
func
(
*
OAuthCredential
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use OAuthCredential.ProtoReflect.Descriptor instead.
func (*OAuthCredential) GetOauthTokenSecretVersion
func
(
x
*
OAuthCredential
)
GetOauthTokenSecretVersion
()
string
func (*OAuthCredential) GetUsername
func
(
x
*
OAuthCredential
)
GetUsername
()
string
func (*OAuthCredential) ProtoMessage
func
(
*
OAuthCredential
)
ProtoMessage
()
func (*OAuthCredential) ProtoReflect
func
(
x
*
OAuthCredential
)
ProtoReflect
()
protoreflect
.
Message
func (*OAuthCredential) Reset
func
(
x
*
OAuthCredential
)
Reset
()
func (*OAuthCredential) String
func
(
x
*
OAuthCredential
)
String
()
string
OperationMetadata
type
OperationMetadata
struct
{
// Output only. The time the operation was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target
string
`protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb
string
`protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage
string
`protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation
bool
`protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion
string
`protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}
Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func
(
*
OperationMetadata
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func
(
x
*
OperationMetadata
)
GetApiVersion
()
string
func (*OperationMetadata) GetCreateTime
func
(
x
*
OperationMetadata
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetEndTime
func
(
x
*
OperationMetadata
)
GetEndTime
()
*
timestamppb
.
Timestamp
func (*OperationMetadata) GetRequestedCancellation
func
(
x
*
OperationMetadata
)
GetRequestedCancellation
()
bool
func (*OperationMetadata) GetStatusMessage
func
(
x
*
OperationMetadata
)
GetStatusMessage
()
string
func (*OperationMetadata) GetTarget
func
(
x
*
OperationMetadata
)
GetTarget
()
string
func (*OperationMetadata) GetVerb
func
(
x
*
OperationMetadata
)
GetVerb
()
string
func (*OperationMetadata) ProtoMessage
func
(
*
OperationMetadata
)
ProtoMessage
()
func (*OperationMetadata) ProtoReflect
func
(
x
*
OperationMetadata
)
ProtoReflect
()
protoreflect
.
Message
func (*OperationMetadata) Reset
func
(
x
*
OperationMetadata
)
Reset
()
func (*OperationMetadata) String
func
(
x
*
OperationMetadata
)
String
()
string
ProcessWebhookRequest
type
ProcessWebhookRequest
struct
{
// Required. Project and location where the webhook will be received.
// Format: `projects/*/locations/*`.
Parent
string
`protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// HTTP request body.
Body
*
httpbody
.
HttpBody
`protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// Arbitrary additional key to find the maching repository for a webhook event
// if needed.
WebhookKey
string
`protobuf:"bytes,3,opt,name=webhook_key,json=webhookKey,proto3" json:"webhook_key,omitempty"`
// contains filtered or unexported fields
}
RPC request object accepted by the ProcessWebhook RPC method.
func (*ProcessWebhookRequest) Descriptor
func
(
*
ProcessWebhookRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ProcessWebhookRequest.ProtoReflect.Descriptor instead.
func (*ProcessWebhookRequest) GetBody
func
(
x
*
ProcessWebhookRequest
)
GetBody
()
*
httpbody
.
HttpBody
func (*ProcessWebhookRequest) GetParent
func
(
x
*
ProcessWebhookRequest
)
GetParent
()
string
func (*ProcessWebhookRequest) GetWebhookKey
func
(
x
*
ProcessWebhookRequest
)
GetWebhookKey
()
string
func (*ProcessWebhookRequest) ProtoMessage
func
(
*
ProcessWebhookRequest
)
ProtoMessage
()
func (*ProcessWebhookRequest) ProtoReflect
func
(
x
*
ProcessWebhookRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*ProcessWebhookRequest) Reset
func
(
x
*
ProcessWebhookRequest
)
Reset
()
func (*ProcessWebhookRequest) String
func
(
x
*
ProcessWebhookRequest
)
String
()
string
Repository
type
Repository
struct
{
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
RemoteUri
string
`protobuf:"bytes,2,opt,name=remote_uri,json=remoteUri,proto3" json:"remote_uri,omitempty"`
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
Annotations
map
[
string
]
string
""
/* 163 byte string literal not displayed */
Etag
string
`protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"`
WebhookId
string
`protobuf:"bytes,8,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
}
A repository associated to a parent connection.
func (*Repository) Descriptor
func
(
*
Repository
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use Repository.ProtoReflect.Descriptor instead.
func (*Repository) GetAnnotations
func
(
x
*
Repository
)
GetAnnotations
()
map
[
string
]
string
func (*Repository) GetCreateTime
func
(
x
*
Repository
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*Repository) GetEtag
func
(
x
*
Repository
)
GetEtag
()
string
func (*Repository) GetName
func
(
x
*
Repository
)
GetName
()
string
func (*Repository) GetRemoteUri
func
(
x
*
Repository
)
GetRemoteUri
()
string
func (*Repository) GetUpdateTime
func
(
x
*
Repository
)
GetUpdateTime
()
*
timestamppb
.
Timestamp
func (*Repository) GetWebhookId
func
(
x
*
Repository
)
GetWebhookId
()
string
func (*Repository) ProtoMessage
func
(
*
Repository
)
ProtoMessage
()
func (*Repository) ProtoReflect
func
(
x
*
Repository
)
ProtoReflect
()
protoreflect
.
Message
func (*Repository) Reset
func
(
x
*
Repository
)
Reset
()
func (*Repository) String
func
(
x
*
Repository
)
String
()
string
RepositoryManagerClient
type
RepositoryManagerClient
interface
{
// Creates a Connection.
CreateConnection
(
ctx
context
.
Context
,
in
*
CreateConnectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Gets details of a single connection.
GetConnection
(
ctx
context
.
Context
,
in
*
GetConnectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
Connection
,
error
)
// Lists Connections in a given project and location.
ListConnections
(
ctx
context
.
Context
,
in
*
ListConnectionsRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListConnectionsResponse
,
error
)
// Updates a single connection.
UpdateConnection
(
ctx
context
.
Context
,
in
*
UpdateConnectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Deletes a single connection.
DeleteConnection
(
ctx
context
.
Context
,
in
*
DeleteConnectionRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Creates a Repository.
CreateRepository
(
ctx
context
.
Context
,
in
*
CreateRepositoryRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Creates multiple repositories inside a connection.
BatchCreateRepositories
(
ctx
context
.
Context
,
in
*
BatchCreateRepositoriesRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Gets details of a single repository.
GetRepository
(
ctx
context
.
Context
,
in
*
GetRepositoryRequest
,
opts
...
grpc
.
CallOption
)
(
*
Repository
,
error
)
// Lists Repositories in a given connection.
ListRepositories
(
ctx
context
.
Context
,
in
*
ListRepositoriesRequest
,
opts
...
grpc
.
CallOption
)
(
*
ListRepositoriesResponse
,
error
)
// Deletes a single repository.
DeleteRepository
(
ctx
context
.
Context
,
in
*
DeleteRepositoryRequest
,
opts
...
grpc
.
CallOption
)
(
*
longrunningpb
.
Operation
,
error
)
// Fetches read/write token of a given repository.
FetchReadWriteToken
(
ctx
context
.
Context
,
in
*
FetchReadWriteTokenRequest
,
opts
...
grpc
.
CallOption
)
(
*
FetchReadWriteTokenResponse
,
error
)
// Fetches read token of a given repository.
FetchReadToken
(
ctx
context
.
Context
,
in
*
FetchReadTokenRequest
,
opts
...
grpc
.
CallOption
)
(
*
FetchReadTokenResponse
,
error
)
// FetchLinkableRepositories get repositories from SCM that are
// accessible and could be added to the connection.
FetchLinkableRepositories
(
ctx
context
.
Context
,
in
*
FetchLinkableRepositoriesRequest
,
opts
...
grpc
.
CallOption
)
(
*
FetchLinkableRepositoriesResponse
,
error
)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs
(
ctx
context
.
Context
,
in
*
FetchGitRefsRequest
,
opts
...
grpc
.
CallOption
)
(
*
FetchGitRefsResponse
,
error
)
}
RepositoryManagerClient is the client API for RepositoryManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream .
func NewRepositoryManagerClient
func
NewRepositoryManagerClient
(
cc
grpc
.
ClientConnInterface
)
RepositoryManagerClient
RepositoryManagerServer
type
RepositoryManagerServer
interface
{
// Creates a Connection.
CreateConnection
(
context
.
Context
,
*
CreateConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Gets details of a single connection.
GetConnection
(
context
.
Context
,
*
GetConnectionRequest
)
(
*
Connection
,
error
)
// Lists Connections in a given project and location.
ListConnections
(
context
.
Context
,
*
ListConnectionsRequest
)
(
*
ListConnectionsResponse
,
error
)
// Updates a single connection.
UpdateConnection
(
context
.
Context
,
*
UpdateConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Deletes a single connection.
DeleteConnection
(
context
.
Context
,
*
DeleteConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Creates a Repository.
CreateRepository
(
context
.
Context
,
*
CreateRepositoryRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Creates multiple repositories inside a connection.
BatchCreateRepositories
(
context
.
Context
,
*
BatchCreateRepositoriesRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Gets details of a single repository.
GetRepository
(
context
.
Context
,
*
GetRepositoryRequest
)
(
*
Repository
,
error
)
// Lists Repositories in a given connection.
ListRepositories
(
context
.
Context
,
*
ListRepositoriesRequest
)
(
*
ListRepositoriesResponse
,
error
)
// Deletes a single repository.
DeleteRepository
(
context
.
Context
,
*
DeleteRepositoryRequest
)
(
*
longrunningpb
.
Operation
,
error
)
// Fetches read/write token of a given repository.
FetchReadWriteToken
(
context
.
Context
,
*
FetchReadWriteTokenRequest
)
(
*
FetchReadWriteTokenResponse
,
error
)
// Fetches read token of a given repository.
FetchReadToken
(
context
.
Context
,
*
FetchReadTokenRequest
)
(
*
FetchReadTokenResponse
,
error
)
// FetchLinkableRepositories get repositories from SCM that are
// accessible and could be added to the connection.
FetchLinkableRepositories
(
context
.
Context
,
*
FetchLinkableRepositoriesRequest
)
(
*
FetchLinkableRepositoriesResponse
,
error
)
// Fetch the list of branches or tags for a given repository.
FetchGitRefs
(
context
.
Context
,
*
FetchGitRefsRequest
)
(
*
FetchGitRefsResponse
,
error
)
}
RepositoryManagerServer is the server API for RepositoryManager service.
RunWorkflowCustomOperationMetadata
type
RunWorkflowCustomOperationMetadata
struct
{
// Output only. The time the operation was created.
CreateTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime
*
timestamppb
.
Timestamp
`protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb
string
`protobuf:"bytes,3,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation
bool
`protobuf:"varint,4,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion
string
`protobuf:"bytes,5,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target
string
`protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
// Output only. ID of the pipeline run created by RunWorkflow.
PipelineRunId
string
`protobuf:"bytes,7,opt,name=pipeline_run_id,json=pipelineRunId,proto3" json:"pipeline_run_id,omitempty"`
// contains filtered or unexported fields
}
Represents the custom metadata of the RunWorkflow long-running operation.
func (*RunWorkflowCustomOperationMetadata) Descriptor
func
(
*
RunWorkflowCustomOperationMetadata
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use RunWorkflowCustomOperationMetadata.ProtoReflect.Descriptor instead.
func (*RunWorkflowCustomOperationMetadata) GetApiVersion
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetApiVersion
()
string
func (*RunWorkflowCustomOperationMetadata) GetCreateTime
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetCreateTime
()
*
timestamppb
.
Timestamp
func (*RunWorkflowCustomOperationMetadata) GetEndTime
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetEndTime
()
*
timestamppb
.
Timestamp
func (*RunWorkflowCustomOperationMetadata) GetPipelineRunId
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetPipelineRunId
()
string
func (*RunWorkflowCustomOperationMetadata) GetRequestedCancellation
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetRequestedCancellation
()
bool
func (*RunWorkflowCustomOperationMetadata) GetTarget
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetTarget
()
string
func (*RunWorkflowCustomOperationMetadata) GetVerb
func
(
x
*
RunWorkflowCustomOperationMetadata
)
GetVerb
()
string
func (*RunWorkflowCustomOperationMetadata) ProtoMessage
func
(
*
RunWorkflowCustomOperationMetadata
)
ProtoMessage
()
func (*RunWorkflowCustomOperationMetadata) ProtoReflect
func
(
x
*
RunWorkflowCustomOperationMetadata
)
ProtoReflect
()
protoreflect
.
Message
func (*RunWorkflowCustomOperationMetadata) Reset
func
(
x
*
RunWorkflowCustomOperationMetadata
)
Reset
()
func (*RunWorkflowCustomOperationMetadata) String
func
(
x
*
RunWorkflowCustomOperationMetadata
)
String
()
string
ServiceDirectoryConfig
type
ServiceDirectoryConfig
struct
{
// Required. The Service Directory service name.
// Format:
// projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
Service
string
`protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
ServiceDirectoryConfig represents Service Directory configuration for a connection.
func (*ServiceDirectoryConfig) Descriptor
func
(
*
ServiceDirectoryConfig
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use ServiceDirectoryConfig.ProtoReflect.Descriptor instead.
func (*ServiceDirectoryConfig) GetService
func
(
x
*
ServiceDirectoryConfig
)
GetService
()
string
func (*ServiceDirectoryConfig) ProtoMessage
func
(
*
ServiceDirectoryConfig
)
ProtoMessage
()
func (*ServiceDirectoryConfig) ProtoReflect
func
(
x
*
ServiceDirectoryConfig
)
ProtoReflect
()
protoreflect
.
Message
func (*ServiceDirectoryConfig) Reset
func
(
x
*
ServiceDirectoryConfig
)
Reset
()
func (*ServiceDirectoryConfig) String
func
(
x
*
ServiceDirectoryConfig
)
String
()
string
UnimplementedRepositoryManagerServer
type
UnimplementedRepositoryManagerServer
struct
{
}
UnimplementedRepositoryManagerServer can be embedded to have forward compatible implementations.
func (*UnimplementedRepositoryManagerServer) BatchCreateRepositories
func
(
*
UnimplementedRepositoryManagerServer
)
BatchCreateRepositories
(
context
.
Context
,
*
BatchCreateRepositoriesRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (*UnimplementedRepositoryManagerServer) CreateConnection
func
(
*
UnimplementedRepositoryManagerServer
)
CreateConnection
(
context
.
Context
,
*
CreateConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (*UnimplementedRepositoryManagerServer) CreateRepository
func
(
*
UnimplementedRepositoryManagerServer
)
CreateRepository
(
context
.
Context
,
*
CreateRepositoryRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (*UnimplementedRepositoryManagerServer) DeleteConnection
func
(
*
UnimplementedRepositoryManagerServer
)
DeleteConnection
(
context
.
Context
,
*
DeleteConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (*UnimplementedRepositoryManagerServer) DeleteRepository
func
(
*
UnimplementedRepositoryManagerServer
)
DeleteRepository
(
context
.
Context
,
*
DeleteRepositoryRequest
)
(
*
longrunningpb
.
Operation
,
error
)
func (*UnimplementedRepositoryManagerServer) FetchGitRefs
func
(
*
UnimplementedRepositoryManagerServer
)
FetchGitRefs
(
context
.
Context
,
*
FetchGitRefsRequest
)
(
*
FetchGitRefsResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) FetchLinkableRepositories
func
(
*
UnimplementedRepositoryManagerServer
)
FetchLinkableRepositories
(
context
.
Context
,
*
FetchLinkableRepositoriesRequest
)
(
*
FetchLinkableRepositoriesResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) FetchReadToken
func
(
*
UnimplementedRepositoryManagerServer
)
FetchReadToken
(
context
.
Context
,
*
FetchReadTokenRequest
)
(
*
FetchReadTokenResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) FetchReadWriteToken
func
(
*
UnimplementedRepositoryManagerServer
)
FetchReadWriteToken
(
context
.
Context
,
*
FetchReadWriteTokenRequest
)
(
*
FetchReadWriteTokenResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) GetConnection
func
(
*
UnimplementedRepositoryManagerServer
)
GetConnection
(
context
.
Context
,
*
GetConnectionRequest
)
(
*
Connection
,
error
)
func (*UnimplementedRepositoryManagerServer) GetRepository
func
(
*
UnimplementedRepositoryManagerServer
)
GetRepository
(
context
.
Context
,
*
GetRepositoryRequest
)
(
*
Repository
,
error
)
func (*UnimplementedRepositoryManagerServer) ListConnections
func
(
*
UnimplementedRepositoryManagerServer
)
ListConnections
(
context
.
Context
,
*
ListConnectionsRequest
)
(
*
ListConnectionsResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) ListRepositories
func
(
*
UnimplementedRepositoryManagerServer
)
ListRepositories
(
context
.
Context
,
*
ListRepositoriesRequest
)
(
*
ListRepositoriesResponse
,
error
)
func (*UnimplementedRepositoryManagerServer) UpdateConnection
func
(
*
UnimplementedRepositoryManagerServer
)
UpdateConnection
(
context
.
Context
,
*
UpdateConnectionRequest
)
(
*
longrunningpb
.
Operation
,
error
)
UpdateConnectionRequest
type
UpdateConnectionRequest
struct
{
// Required. The Connection to update.
Connection
*
Connection
`protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// The list of fields to be updated.
UpdateMask
*
fieldmaskpb
.
FieldMask
`protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// 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).
AllowMissing
bool
`protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
// The current etag of the connection.
// If an etag is provided and does not match the current etag of the
// connection, update will be blocked and an ABORTED error will be returned.
Etag
string
`protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}
Message for updating a Connection.
func (*UpdateConnectionRequest) Descriptor
func
(
*
UpdateConnectionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use UpdateConnectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateConnectionRequest) GetAllowMissing
func
(
x
*
UpdateConnectionRequest
)
GetAllowMissing
()
bool
func (*UpdateConnectionRequest) GetConnection
func
(
x
*
UpdateConnectionRequest
)
GetConnection
()
*
Connection
func (*UpdateConnectionRequest) GetEtag
func
(
x
*
UpdateConnectionRequest
)
GetEtag
()
string
func (*UpdateConnectionRequest) GetUpdateMask
func
(
x
*
UpdateConnectionRequest
)
GetUpdateMask
()
*
fieldmaskpb
.
FieldMask
func (*UpdateConnectionRequest) ProtoMessage
func
(
*
UpdateConnectionRequest
)
ProtoMessage
()
func (*UpdateConnectionRequest) ProtoReflect
func
(
x
*
UpdateConnectionRequest
)
ProtoReflect
()
protoreflect
.
Message
func (*UpdateConnectionRequest) Reset
func
(
x
*
UpdateConnectionRequest
)
Reset
()
func (*UpdateConnectionRequest) String
func
(
x
*
UpdateConnectionRequest
)
String
()
string
UserCredential
type
UserCredential
struct
{
UserTokenSecretVersion
string
""
/* 131 byte string literal not displayed */
Username
string
`protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
}
Represents a personal access token that authorized the Connection, and associated metadata.
func (*UserCredential) Descriptor
func
(
*
UserCredential
)
Descriptor
()
([]
byte
,
[]
int
)
Deprecated: Use UserCredential.ProtoReflect.Descriptor instead.
func (*UserCredential) GetUserTokenSecretVersion
func
(
x
*
UserCredential
)
GetUserTokenSecretVersion
()
string
func (*UserCredential) GetUsername
func
(
x
*
UserCredential
)
GetUsername
()
string
func (*UserCredential) ProtoMessage
func
(
*
UserCredential
)
ProtoMessage
()
func (*UserCredential) ProtoReflect
func
(
x
*
UserCredential
)
ProtoReflect
()
protoreflect
.
Message
func (*UserCredential) Reset
func
(
x
*
UserCredential
)
Reset
()
func (*UserCredential) String
func
(
x
*
UserCredential
)
String
()
string