Service for the sslPolicies resource.
https://cloud.google.com/compute/docs/reference/rest/v1/sslPolicies
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
SslPoliciesClient(SslPoliciesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SslPoliciesClient const &
|
SslPoliciesClient(SslPoliciesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SslPoliciesClient &&
|
SslPoliciesClient(ExperimentalTag, std::shared_ptr< SslPoliciesConnection >, Options)
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
connection |
std::shared_ptr< SslPoliciesConnection >
|
opts |
Options
|
Operators
operator=(SslPoliciesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SslPoliciesClient const &
|
Returns | |
---|---|
Type | Description |
SslPoliciesClient & |
operator=(SslPoliciesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SslPoliciesClient &&
|
Returns | |
---|---|
Type | Description |
SslPoliciesClient & |
Functions
AggregatedListSslPolicies(std::string const &, Options)
Retrieves the list of all SslPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Name of the project scoping this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::SslPoliciesAggregatedList > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPoliciesAggregatedList) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
AggregatedListSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::AggregatedListSslPoliciesRequest const &, Options)
Retrieves the list of all SslPolicy resources, regional and global, available to the specified project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::AggregatedListSslPoliciesRequest 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::SslPoliciesAggregatedList > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPoliciesAggregatedList) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteSslPolicies(std::string const &, std::string const &, Options)
Deletes the specified SSL policy.
The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
ssl_policy |
std::string const &
Name of the SSL policy to delete. The name must be 1-63 characters long, and comply with RFC1035. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
DeleteSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPoliciesRequest const &, Options)
Deletes the specified SSL policy.
The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::DeleteSslPoliciesRequest 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::cpp::compute::v1::Operation > > |
A |
GetSslPolicies(std::string const &, std::string const &, Options)
Lists all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
ssl_policy |
std::string const &
Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::SslPolicy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPolicy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::GetSslPoliciesRequest const &, Options)
Lists all of the ordered rules present in a single specified policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::GetSslPoliciesRequest 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::SslPolicy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPolicy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
InsertSslPolicies(std::string const &, google::cloud::cpp::compute::v1::SslPolicy const &, Options)
Returns the specified SSL policy resource.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
ssl_policy_resource |
google::cloud::cpp::compute::v1::SslPolicy const &
The SslPolicy for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
InsertSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::InsertSslPoliciesRequest const &, Options)
Returns the specified SSL policy resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::InsertSslPoliciesRequest 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::cpp::compute::v1::Operation > > |
A |
ListSslPolicies(std::string const &, Options)
Lists all the SSL policies that have been configured for the specified project.
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< google::cloud::cpp::compute::v1::SslPolicy > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest, Options)
Lists all the SSL policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::ListSslPoliciesRequest
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::SslPolicy > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListAvailableFeatures(std::string const &, Options)
Lists all features that can be specified in the SSL policy when using custom profile.
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 |
StatusOr< google::cloud::cpp::compute::v1::SslPoliciesListAvailableFeaturesResponse > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPoliciesListAvailableFeaturesResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListAvailableFeatures(google::cloud::cpp::compute::ssl_policies::v1::ListAvailableFeaturesRequest const &, Options)
Lists all features that can be specified in the SSL policy when using custom profile.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::ListAvailableFeaturesRequest 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::SslPoliciesListAvailableFeaturesResponse > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.SslPoliciesListAvailableFeaturesResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
PatchSslPolicies(std::string const &, std::string const &, google::cloud::cpp::compute::v1::SslPolicy const &, Options)
Patches the specified SSL policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
ssl_policy |
std::string const &
Name of the SSL policy to update. The name must be 1-63 characters long, and comply with RFC1035. |
ssl_policy_resource |
google::cloud::cpp::compute::v1::SslPolicy const &
The SslPolicy for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
PatchSslPolicies(google::cloud::cpp::compute::ssl_policies::v1::PatchSslPoliciesRequest const &, Options)
Patches the specified SSL policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::ssl_policies::v1::PatchSslPoliciesRequest 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::cpp::compute::v1::Operation > > |
A |