Performs management operations on Bare Metal Solution servers.
The baremetalsolution.googleapis.com
service provides management capabilities for Bare Metal Solution servers. To access the API methods, you must assign Bare Metal Solution IAM roles containing the desired permissions to your staff in your Google Cloud project. You must also enable the Bare Metal Solution API. Once enabled, the methods act upon specific servers in your Bare Metal Solution environment.
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
BareMetalSolutionClient(BareMetalSolutionClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BareMetalSolutionClient const &
|
BareMetalSolutionClient(BareMetalSolutionClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BareMetalSolutionClient &&
|
BareMetalSolutionClient(std::shared_ptr< BareMetalSolutionConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< BareMetalSolutionConnection >
|
opts |
Options
|
Operators
operator=(BareMetalSolutionClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BareMetalSolutionClient const &
|
Returns | |
---|---|
Type | Description |
BareMetalSolutionClient & |
operator=(BareMetalSolutionClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BareMetalSolutionClient &&
|
Returns | |
---|---|
Type | Description |
BareMetalSolutionClient & |
Functions
ListInstances(std::string const &, Options)
List servers in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent value for ListInstancesRequest. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::baremetalsolution::v2::Instance > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListInstances(google::cloud::baremetalsolution::v2::ListInstancesRequest, Options)
List servers in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::baremetalsolution::v2::ListInstancesRequest
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::cloud::baremetalsolution::v2::Instance > | a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetInstance(std::string const &, Options)
Get details about a single server.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::baremetalsolution::v2::Instance > | the result of the RPC. The response message type (google.cloud.baremetalsolution.v2.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetInstance(google::cloud::baremetalsolution::v2::GetInstanceRequest const &, Options)
Get details about a single server.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::baremetalsolution::v2::GetInstanceRequest 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::cloud::baremetalsolution::v2::Instance > | the result of the RPC. The response message type (google.cloud.baremetalsolution.v2.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateInstance(google::cloud::baremetalsolution::v2::Instance const &, google::protobuf::FieldMask const &, Options)
Update details of a single server.
Parameters | |
---|---|
Name | Description |
instance |
google::cloud::baremetalsolution::v2::Instance const &
Required. The server to update. |
update_mask |
google::protobuf::FieldMask const &
The list of fields to update. The currently supported fields are: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::baremetalsolution::v2::Instance > > | A |
UpdateInstance(google::cloud::baremetalsolution::v2::UpdateInstanceRequest const &, Options)
Update details of a single server.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::baremetalsolution::v2::UpdateInstanceRequest 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::cloud::baremetalsolution::v2::Instance > > | A |
RenameInstance(std::string const &, std::string const &, Options)
RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The |
new_instance_id |
std::string const &
Required. The new |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::baremetalsolution::v2::Instance > | the result of the RPC. The response message type (google.cloud.baremetalsolution.v2.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
RenameInstance(google::cloud::baremetalsolution::v2::RenameInstanceRequest const &, Options)
RenameInstance sets a new name for an instance.
Use with caution, previous names become immediately invalidated.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::baremetalsolution::v2::RenameInstanceRequest 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::cloud::baremetalsolution::v2::Instance > | the result of the RPC. The response message type (google.cloud.baremetalsolution.v2.Instance) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ResetInstance(std::string const &, Options)
Perform an ungraceful, hard reset on a server.
Equivalent to shutting the power off and then turning it back on.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::baremetalsolution::v2::ResetInstanceResponse > > | A |
ResetInstance(google::cloud::baremetalsolution::v2::ResetInstanceRequest const &, Options)
Perform an ungraceful, hard reset on a server.
Equivalent to shutting the power off and then turning it back on.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::baremetalsolution::v2::ResetInstanceRequest 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::cloud::baremetalsolution::v2::ResetInstanceResponse > > | A |
StartInstance(std::string const &, Options)
Starts a server that was shutdown.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::baremetalsolution::v2::StartInstanceResponse > > | A < |