#include <compute_service.h>
Implements the getXpnResources method.
This class uses the Command Pattern. Construct an instance with the required parameters, then set any additional optional parameters by using the attribute setters. To invoke the method, call Execute
.
One or more of these authorization scopes are required for this method: https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/compute
◆ ProjectsResource_GetXpnResourcesMethod()
google_compute_api::ProjectsResource_GetXpnResourcesMethod::ProjectsResource_GetXpnResourcesMethod |
( |
const ComputeService * |
_service_, |
|
|
client::AuthorizationCredential * |
_credential_, |
|
|
const absl::string_view & |
project |
|
) |
| |
The standard constructor takes all the required method parameters.
- Parameters
-
[in] | <em>service</em> | The service instance to send to when executed. |
[in] | <em>credential</em> | If not NULL, the credential to authorize with. In practice this is supplied by the user code that is creating the method instance. |
[in] | project | Project ID for this request. |
◆ ~ProjectsResource_GetXpnResourcesMethod()
google_compute_api::ProjectsResource_GetXpnResourcesMethod::~ProjectsResource_GetXpnResourcesMethod |
( |
| ) |
|
|
virtual |
◆ AppendOptionalQueryParameters()
util::Status google_compute_api::ProjectsResource_GetXpnResourcesMethod::AppendOptionalQueryParameters |
( |
string * |
target | ) |
|
|
virtual |
◆ AppendVariable()
util::Status google_compute_api::ProjectsResource_GetXpnResourcesMethod::AppendVariable |
( |
const StringPiece & |
variable_name, |
|
|
const client::UriTemplateConfig & |
config, |
|
|
string * |
target |
|
) |
| |
|
virtual |
Appends variable value to the target string.
This is a helper function used to resolve templated variables in the URI.
- Parameters
-
[in] | variable_name | The name of the templated variable. |
[in] | config | A pass-through parameter used for lists and maps. |
[in,out] | target | The string to append the value to. |
Reimplemented from google_compute_api::ComputeServiceBaseRequest.
◆ clear_filter()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::clear_filter |
( |
| ) |
|
|
inline |
Clears the 'filter
' attribute so it is no longer set.
◆ clear_max_results()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::clear_max_results |
( |
| ) |
|
|
inline |
Clears the 'maxResults
' attribute so it is no longer set.
◆ clear_order_by()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::clear_order_by |
( |
| ) |
|
|
inline |
Clears the 'order_by
' attribute so it is no longer set.
◆ clear_page_token()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::clear_page_token |
( |
| ) |
|
|
inline |
Clears the 'pageToken
' attribute so it is no longer set.
◆ ExecuteAndParseResponse()
util::Status google_compute_api::ProjectsResource_GetXpnResourcesMethod::ExecuteAndParseResponse |
( |
ProjectsGetXpnResources * |
data | ) |
|
|
inline |
Executes the method and parses the response into a data object on success.
- Parameters
-
[out] | data | Loads from the response payload JSON data on success. |
- Returns
- Success if an HTTP 2xx response was received. Otherwise the status indicates the reason for failure. Finer detail may be available from the underlying http_request to distinguish the transport_status from the overal HTTP request status.
◆ get_filter()
const string& google_compute_api::ProjectsResource_GetXpnResourcesMethod::get_filter |
( |
| ) |
const |
|
inline |
Gets the optional 'filter
' attribute.
If the value is not set then the default value will be returned.
◆ get_max_results()
uint32 google_compute_api::ProjectsResource_GetXpnResourcesMethod::get_max_results |
( |
| ) |
const |
|
inline |
Gets the optional 'maxResults
' attribute.
If the value is not set then the default value will be returned.
◆ get_order_by()
const string& google_compute_api::ProjectsResource_GetXpnResourcesMethod::get_order_by |
( |
| ) |
const |
|
inline |
Gets the optional 'order_by
' attribute.
If the value is not set then the default value will be returned.
◆ get_page_token()
const string& google_compute_api::ProjectsResource_GetXpnResourcesMethod::get_page_token |
( |
| ) |
const |
|
inline |
Gets the optional 'pageToken
' attribute.
If the value is not set then the default value will be returned.
◆ mutable_filter()
string* google_compute_api::ProjectsResource_GetXpnResourcesMethod::mutable_filter |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional filter
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ mutable_orderBy()
string* google_compute_api::ProjectsResource_GetXpnResourcesMethod::mutable_orderBy |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional order_by
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ mutable_pageToken()
string* google_compute_api::ProjectsResource_GetXpnResourcesMethod::mutable_pageToken |
( |
| ) |
|
|
inline |
Gets a modifiable pointer to the optional pageToken
' attribute.
- Returns
- The value can be set by dereferencing the pointer.
◆ set_filter()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::set_filter |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'filter
' attribute.
- Parameters
-
[in] | value | A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. |
For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example- instance.
You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
Broadwell") AND (scheduling.automaticRestart = true).
◆ set_max_results()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::set_max_results |
( |
uint32 |
value | ) |
|
|
inline |
Sets the 'maxResults
' attribute.
- Parameters
-
[in] | value | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500). |
◆ set_order_by()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::set_order_by |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'order_by
' attribute.
- Parameters
-
[in] | value | Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. |
You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
Currently, only sorting by name or creationTimestamp desc is supported.
◆ set_page_token()
void google_compute_api::ProjectsResource_GetXpnResourcesMethod::set_page_token |
( |
const string & |
value | ) |
|
|
inline |
Sets the 'pageToken
' attribute.
- Parameters
-
[in] | value | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. |
The documentation for this class was generated from the following files: