Class Location (2.19.0)

A representation of a Cloud Location.

A Cloud location is identified by its project_id and location_id.

For more info about locations, see https://cloud.google.com/about/locations

Constructors

Location(Location const &)

Copy and move

Parameter
NameDescription
Location const &

Location(Location &&)

Copy and move

Parameter
NameDescription
Location &&

Location(Project, std::string)

Constructs a Location object identified by the given project and location_id.

Parameters
NameDescription
project Project
location_id std::string

Location(std::string, std::string)

Constructs a Location_id object identified by the given IDs.

This is equivalent to first constructing a Project from the given project_id and then calling the Location(Project, std::string) constructor.

Parameters
NameDescription
project_id std::string
location_id std::string

Operators

operator=(Location const &)

Copy and move

Parameter
NameDescription
Location const &
Returns
TypeDescription
Location &

operator=(Location &&)

Copy and move

Parameter
NameDescription
Location &&
Returns
TypeDescription
Location &

Functions

project() const

Returns the Project containing this location.

Returns
TypeDescription
Project const &

project_id() const

Returns
TypeDescription
std::string const &

location_id() const

Returns the Location ID.

Returns
TypeDescription
std::string const &

FullName() const

Returns the fully qualified location name as a string of the form: "projects/

Returns
TypeDescription
std::string