Class AppProfileConfig (2.21.0)

Specify the initial configuration for an application profile.

Constructors

AppProfileConfig(google::bigtable::admin::v2::CreateAppProfileRequest)

Parameter
NameDescription
proto google::bigtable::admin::v2::CreateAppProfileRequest

Functions

set_ignore_warnings(bool)

Parameter
NameDescription
value bool
Returns
TypeDescription
AppProfileConfig &

set_description(std::string)

Parameter
NameDescription
description std::string
Returns
TypeDescription
AppProfileConfig &

set_etag(std::string)

Parameter
NameDescription
etag std::string
Returns
TypeDescription
AppProfileConfig &

as_proto() const &

Returns
TypeDescription
google::bigtable::admin::v2::CreateAppProfileRequest const &

as_proto() &&

Returns
TypeDescription
google::bigtable::admin::v2::CreateAppProfileRequest &&

static MultiClusterUseAny(std::string, std::vector< std::string >)

Create an AppProfile that uses multi-cluster routing.

Read/write requests are routed to the nearest cluster in the instance, and will fail over to the nearest cluster that is available in the event of transient errors or delays. Clusters in a region are considered equidistant. Choosing this option sacrifices read-your-writes consistency to improve availability.

Parameters
NameDescription
profile_id std::string

The unique name of the AppProfile.

cluster_ids std::vector< std::string >

The set of clusters to route to. The order is ignored; clusters will be tried in order of distance. If left empty, all clusters are eligible.

Returns
TypeDescription
AppProfileConfig

static SingleClusterRouting(std::string, std::string, bool)

Create an AppProfile that uses single cluster routing.

Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.

Parameters
NameDescription
profile_id std::string

The unique name of the AppProfile.

cluster_id std::string

The cluster to which read/write requests are routed.

allow_transactional_writes bool

Whether or not CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile. It is unsafe to send these requests to the same table/row/column in multiple clusters.

Returns
TypeDescription
AppProfileConfig