Google Cloud Bigtable C++ Client  0.11.0
A C++ Client Library for Google Cloud Bigtable
Public Member Functions | List of all members
google::cloud::bigtable::v0::InstanceConfig Class Reference

Specify the initial configuration for a new instance. More...

#include <google/cloud/bigtable/instance_config.h>

Public Member Functions

 InstanceConfig (std::string instance_id, std::string display_name, std::vector< std::pair< std::string, ClusterConfig >> clusters)
 
InstanceConfigset_type (InstanceType type)
 
InstanceConfiginsert_label (std::string const &key, std::string const &value)
 
InstanceConfigemplace_label (std::string const &key, std::string value)
 
google::bigtable::admin::v2::CreateInstanceRequest const & as_proto () const &
 
google::bigtable::admin::v2::CreateInstanceRequest && as_proto () &&
 

Convenient shorthands for the instance types.

using InstanceType = google::bigtable::admin::v2::Instance::Type
 
static constexpr InstanceType TYPE_UNSPECIFIED
 
static constexpr InstanceType PRODUCTION
 
static constexpr InstanceType DEVELOPMENT
 

Detailed Description

Specify the initial configuration for a new instance.

Definition at line 30 of file instance_config.h.

Member Typedef Documentation

◆ InstanceType

using google::cloud::bigtable::v0::InstanceConfig::InstanceType = google::bigtable::admin::v2::Instance::Type

Definition at line 44 of file instance_config.h.

Constructor & Destructor Documentation

◆ InstanceConfig()

google::cloud::bigtable::v0::InstanceConfig::InstanceConfig ( std::string  instance_id,
std::string  display_name,
std::vector< std::pair< std::string, ClusterConfig >>  clusters 
)
inline

Definition at line 32 of file instance_config.h.

Member Function Documentation

◆ as_proto() [1/2]

google::bigtable::admin::v2::CreateInstanceRequest const& google::cloud::bigtable::v0::InstanceConfig::as_proto ( ) const &
inline

Definition at line 70 of file instance_config.h.

◆ as_proto() [2/2]

google::bigtable::admin::v2::CreateInstanceRequest&& google::cloud::bigtable::v0::InstanceConfig::as_proto ( ) &&
inline

Definition at line 75 of file instance_config.h.

◆ emplace_label()

InstanceConfig& google::cloud::bigtable::v0::InstanceConfig::emplace_label ( std::string const &  key,
std::string  value 
)
inline

Definition at line 64 of file instance_config.h.

◆ insert_label()

InstanceConfig& google::cloud::bigtable::v0::InstanceConfig::insert_label ( std::string const &  key,
std::string const &  value 
)
inline

Definition at line 58 of file instance_config.h.

◆ set_type()

InstanceConfig& google::cloud::bigtable::v0::InstanceConfig::set_type ( InstanceType  type)
inline

Definition at line 53 of file instance_config.h.

Member Data Documentation

◆ DEVELOPMENT

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v0::InstanceConfig::DEVELOPMENT
static
Initial value:
=
google::bigtable::admin::v2::Instance::DEVELOPMENT

Definition at line 49 of file instance_config.h.

◆ PRODUCTION

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v0::InstanceConfig::PRODUCTION
static
Initial value:
=
google::bigtable::admin::v2::Instance::PRODUCTION

Definition at line 47 of file instance_config.h.

◆ TYPE_UNSPECIFIED

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v0::InstanceConfig::TYPE_UNSPECIFIED
static
Initial value:
=
google::bigtable::admin::v2::Instance::TYPE_UNSPECIFIED

Definition at line 45 of file instance_config.h.