UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInstanceRequest
More...
#include <google/cloud/spanner/update_instance_request_builder.h>
UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInstanceRequest
This is useful when calling google::cloud::spanner::InstanceAdminClient::UpdateInstance()
function.
- Example
std::string const& project_id,
std::string const& instance_id,
std::string const& new_display_name) {
auto instance = f.get();
if (!instance) throw std::move(instance).status();
std::cout << "Updated instance [" << in << "]\n";
}
This class identifies a Cloud Spanner Instance.
Definition: instance.h:42
UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInsta...
Definition: update_instance_request_builder.h:41
UpdateInstanceRequestBuilder & SetDisplayName(std::string display_name) &
Definition: update_instance_request_builder.h:91
google::spanner::admin::instance::v1::UpdateInstanceRequest & Build() &
Definition: update_instance_request_builder.h:137
Cloud Spanner Instance Admin API.
Definition: instance_admin_client.h:84
future< StatusOr< google::spanner::admin::instance::v1::Instance > > UpdateInstance(google::spanner::admin::instance::v1::Instance const &instance, google::protobuf::FieldMask const &field_mask, Options opts={})
Updates an instance, and begins allocating or releasing resources as requested.
◆ UpdateInstanceRequestBuilder() [1/6]
google::cloud::spanner::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder |
( |
| ) |
|
|
default |
◆ UpdateInstanceRequestBuilder() [2/6]
◆ UpdateInstanceRequestBuilder() [3/6]
◆ UpdateInstanceRequestBuilder() [4/6]
google::cloud::spanner::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder |
( |
std::string |
instance_name | ) |
|
|
inlineexplicit |
◆ UpdateInstanceRequestBuilder() [5/6]
google::cloud::spanner::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder |
( |
Instance const & |
in | ) |
|
|
inlineexplicit |
◆ UpdateInstanceRequestBuilder() [6/6]
google::cloud::spanner::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder |
( |
google::spanner::admin::instance::v1::Instance |
in | ) |
|
|
inlineexplicit |
Constructs UpdateInstanceRequestBuilder
with google::spanner::admin::instance::v1::Instance.
It's particularly useful if you want to add some labels to existing instances.
◆ AddLabels() [1/2]
UpdateInstanceRequestBuilder & google::cloud::spanner::UpdateInstanceRequestBuilder::AddLabels |
( |
std::map< std::string, std::string > const & |
labels | ) |
& |
|
inline |
◆ AddLabels() [2/2]
UpdateInstanceRequestBuilder && google::cloud::spanner::UpdateInstanceRequestBuilder::AddLabels |
( |
std::map< std::string, std::string > const & |
labels | ) |
&& |
|
inline |
◆ Build() [1/2]
google::spanner::admin::instance::v1::UpdateInstanceRequest & google::cloud::spanner::UpdateInstanceRequestBuilder::Build |
( |
| ) |
& |
|
inline |
◆ Build() [2/2]
google::spanner::admin::instance::v1::UpdateInstanceRequest && google::cloud::spanner::UpdateInstanceRequestBuilder::Build |
( |
| ) |
&& |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetDisplayName() [1/2]
◆ SetDisplayName() [2/2]
◆ SetLabels() [1/2]
UpdateInstanceRequestBuilder & google::cloud::spanner::UpdateInstanceRequestBuilder::SetLabels |
( |
std::map< std::string, std::string > const & |
labels | ) |
& |
|
inline |
◆ SetLabels() [2/2]
UpdateInstanceRequestBuilder && google::cloud::spanner::UpdateInstanceRequestBuilder::SetLabels |
( |
std::map< std::string, std::string > const & |
labels | ) |
&& |
|
inline |
◆ SetName() [1/2]
◆ SetName() [2/2]
◆ SetNodeCount() [1/2]
◆ SetNodeCount() [2/2]
◆ SetProcessingUnits() [1/2]
◆ SetProcessingUnits() [2/2]
◆ operator!=
◆ operator==