Service for the acceleratorTypes resource.
https://cloud.google.com/compute/docs/reference/rest/v1/acceleratorTypes
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
AcceleratorTypesClient(AcceleratorTypesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AcceleratorTypesClient const &
|
AcceleratorTypesClient(AcceleratorTypesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AcceleratorTypesClient &&
|
AcceleratorTypesClient(std::shared_ptr< AcceleratorTypesConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< AcceleratorTypesConnection >
|
opts |
Options
|
Operators
operator=(AcceleratorTypesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AcceleratorTypesClient const &
|
Returns | |
---|---|
Type | Description |
AcceleratorTypesClient & |
operator=(AcceleratorTypesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AcceleratorTypesClient &&
|
Returns | |
---|---|
Type | Description |
AcceleratorTypesClient & |
Functions
AggregatedListAcceleratorTypes(std::string const &, Options)
Retrieves an aggregated list of accelerator types.
To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
. https://cloud.google.com/compute/docs/reference/rest/v1/acceleratorTypes/aggregatedList
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::AcceleratorTypesScopedList > > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
AggregatedListAcceleratorTypes(google::cloud::cpp::compute::accelerator_types::v1::AggregatedListAcceleratorTypesRequest, Options)
Retrieves an aggregated list of accelerator types.
To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
. https://cloud.google.com/compute/docs/reference/rest/v1/acceleratorTypes/aggregatedList
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::accelerator_types::v1::AggregatedListAcceleratorTypesRequest
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< std::pair< std::string, google::cloud::cpp::compute::v1::AcceleratorTypesScopedList > > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetAcceleratorType(std::string const &, std::string const &, std::string const &, Options)
Returns the specified accelerator type.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
zone |
std::string const &
The name of the zone for this request. |
accelerator_type |
std::string const &
Name of the accelerator type to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::AcceleratorType > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.AcceleratorType) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAcceleratorType(google::cloud::cpp::compute::accelerator_types::v1::GetAcceleratorTypeRequest const &, Options)
Returns the specified accelerator type.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::accelerator_types::v1::GetAcceleratorTypeRequest 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::cpp::compute::v1::AcceleratorType > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.AcceleratorType) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListAcceleratorTypes(std::string const &, std::string const &, Options)
Retrieves a list of accelerator types that are available to the specified project.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
zone |
std::string const &
The name of the zone for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::cpp::compute::v1::AcceleratorType > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListAcceleratorTypes(google::cloud::cpp::compute::accelerator_types::v1::ListAcceleratorTypesRequest, Options)
Retrieves a list of accelerator types that are available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::accelerator_types::v1::ListAcceleratorTypesRequest
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::cpp::compute::v1::AcceleratorType > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |