Manages connections to source code repostiories.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
RepositoryManagerClient(RepositoryManagerClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
RepositoryManagerClient const &
|
RepositoryManagerClient(RepositoryManagerClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
RepositoryManagerClient &&
|
RepositoryManagerClient(ExperimentalTag, std::shared_ptr< RepositoryManagerConnection >, Options)
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
connection |
std::shared_ptr< RepositoryManagerConnection >
|
opts |
Options
|
Operators
operator=(RepositoryManagerClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
RepositoryManagerClient const &
|
Returns | |
---|---|
Type | Description |
RepositoryManagerClient & |
operator=(RepositoryManagerClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
RepositoryManagerClient &&
|
Returns | |
---|---|
Type | Description |
RepositoryManagerClient & |
Functions
CreateConnection(std::string const &, google::devtools::cloudbuild::v2::Connection const &, std::string const &, Options)
Creates a Connection.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Project and location where the connection will be created. Format: |
connection |
google::devtools::cloudbuild::v2::Connection const &
Required. The Connection to create. |
connection_id |
std::string const &
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 -._~%!$&'()*+,;=. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Connection > > |
A |
CreateConnection(google::devtools::cloudbuild::v2::CreateConnectionRequest const &, Options)
Creates a Connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::CreateConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Connection > > |
A |
GetConnection(std::string const &, Options)
Gets details of a single connection.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the Connection to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::Connection > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.Connection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetConnection(google::devtools::cloudbuild::v2::GetConnectionRequest const &, Options)
Gets details of a single connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::GetConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::Connection > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.Connection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListConnections(std::string const &, Options)
Lists Connections in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of Connections. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::cloudbuild::v2::Connection > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListConnections(google::devtools::cloudbuild::v2::ListConnectionsRequest, Options)
Lists Connections in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::ListConnectionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::cloudbuild::v2::Connection > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateConnection(google::devtools::cloudbuild::v2::Connection const &, google::protobuf::FieldMask const &, Options)
Updates a single connection.
Parameters | |
---|---|
Name | Description |
connection |
google::devtools::cloudbuild::v2::Connection const &
Required. The Connection to update. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Connection > > |
A |
UpdateConnection(google::devtools::cloudbuild::v2::UpdateConnectionRequest const &, Options)
Updates a single connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::UpdateConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Connection > > |
A |
DeleteConnection(std::string const &, Options)
Deletes a single connection.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the Connection to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::OperationMetadata > > |
A |
DeleteConnection(google::devtools::cloudbuild::v2::DeleteConnectionRequest const &, Options)
Deletes a single connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::DeleteConnectionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::OperationMetadata > > |
A |
CreateRepository(std::string const &, google::devtools::cloudbuild::v2::Repository const &, std::string const &, Options)
Creates a Repository.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
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. |
repository |
google::devtools::cloudbuild::v2::Repository const &
Required. The repository to create. |
repository_id |
std::string const &
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 -._~%!$&'()*+,;=. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Repository > > |
A |
CreateRepository(google::devtools::cloudbuild::v2::CreateRepositoryRequest const &, Options)
Creates a Repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::CreateRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::Repository > > |
A |
BatchCreateRepositories(std::string const &, std::vector< google::devtools::cloudbuild::v2::CreateRepositoryRequest > const &, Options)
Creates multiple repositories inside a connection.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
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. |
requests |
std::vector< google::devtools::cloudbuild::v2::CreateRepositoryRequest > const &
Required. The request messages specifying the repositories to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::BatchCreateRepositoriesResponse > > |
A |
BatchCreateRepositories(google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const &, Options)
Creates multiple repositories inside a connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::BatchCreateRepositoriesRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::BatchCreateRepositoriesResponse > > |
A |
GetRepository(std::string const &, Options)
Gets details of a single repository.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the Repository to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::Repository > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRepository(google::devtools::cloudbuild::v2::GetRepositoryRequest const &, Options)
Gets details of a single repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::GetRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::Repository > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.Repository) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListRepositories(std::string const &, Options)
Lists Repositories in a given connection.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent, which owns this collection of Repositories. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::cloudbuild::v2::Repository > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListRepositories(google::devtools::cloudbuild::v2::ListRepositoriesRequest, Options)
Lists Repositories in a given connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::ListRepositoriesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::cloudbuild::v2::Repository > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeleteRepository(std::string const &, Options)
Deletes a single repository.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the Repository to delete. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::OperationMetadata > > |
A |
DeleteRepository(google::devtools::cloudbuild::v2::DeleteRepositoryRequest const &, Options)
Deletes a single repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::DeleteRepositoryRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::devtools::cloudbuild::v2::OperationMetadata > > |
A |
FetchReadWriteToken(std::string const &, Options)
Fetches read/write token of a given repository.
Parameters | |
---|---|
Name | Description |
repository |
std::string const &
Required. The resource name of the repository in the format |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::FetchReadWriteTokenResponse > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
FetchReadWriteToken(google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const &, Options)
Fetches read/write token of a given repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::FetchReadWriteTokenRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::FetchReadWriteTokenResponse > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
FetchReadToken(std::string const &, Options)
Fetches read token of a given repository.
Parameters | |
---|---|
Name | Description |
repository |
std::string const &
Required. The resource name of the repository in the format |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::FetchReadTokenResponse > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.FetchReadTokenResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
FetchReadToken(google::devtools::cloudbuild::v2::FetchReadTokenRequest const &, Options)
Fetches read token of a given repository.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::FetchReadTokenRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::devtools::cloudbuild::v2::FetchReadTokenResponse > |
the result of the RPC. The response message type (google.devtools.cloudbuild.v2.FetchReadTokenResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
FetchLinkableRepositories(google::devtools::cloudbuild::v2::FetchLinkableRepositoriesRequest, Options)
FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.
Parameters | |
---|---|
Name | Description |
request |
google::devtools::cloudbuild::v2::FetchLinkableRepositoriesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::devtools::cloudbuild::v2::Repository > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |