Service for the networkFirewallPolicies resource.
https://cloud.google.com/compute/docs/reference/rest/v1/networkFirewallPolicies
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
NetworkFirewallPoliciesClient(NetworkFirewallPoliciesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NetworkFirewallPoliciesClient const &
|
NetworkFirewallPoliciesClient(NetworkFirewallPoliciesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NetworkFirewallPoliciesClient &&
|
NetworkFirewallPoliciesClient(std::shared_ptr< NetworkFirewallPoliciesConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< NetworkFirewallPoliciesConnection >
|
opts |
Options
|
Operators
operator=(NetworkFirewallPoliciesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NetworkFirewallPoliciesClient const &
|
Returns | |
---|---|
Type | Description |
NetworkFirewallPoliciesClient & |
operator=(NetworkFirewallPoliciesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NetworkFirewallPoliciesClient &&
|
Returns | |
---|---|
Type | Description |
NetworkFirewallPoliciesClient & |
Functions
AddAssociation(std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyAssociation const &, Options)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
firewall_policy_association_resource |
google::cloud::cpp::compute::v1::FirewallPolicyAssociation const &
The FirewallPolicyAssociation 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 |
AddAssociation(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyAssociation const &, Options)
Inserts an association for the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
firewall_policy_association_resource |
google::cloud::cpp::compute::v1::FirewallPolicyAssociation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddAssociation(google::cloud::cpp::compute::network_firewall_policies::v1::AddAssociationRequest const &, Options)
Inserts an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::AddAssociationRequest 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 |
AddAssociation(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::AddAssociationRequest const &, Options)
Inserts an association for the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::AddAssociationRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddAssociation(google::cloud::cpp::compute::v1::Operation const &, Options)
Inserts an association for the specified firewall policy.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
AddRule(std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyRule const &, Options)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
firewall_policy_rule_resource |
google::cloud::cpp::compute::v1::FirewallPolicyRule const &
The FirewallPolicyRule 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 |
AddRule(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyRule const &, Options)
Inserts a rule into a firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
firewall_policy_rule_resource |
google::cloud::cpp::compute::v1::FirewallPolicyRule const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddRule(google::cloud::cpp::compute::network_firewall_policies::v1::AddRuleRequest const &, Options)
Inserts a rule into a firewall policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::AddRuleRequest 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 |
AddRule(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::AddRuleRequest const &, Options)
Inserts a rule into a firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::AddRuleRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddRule(google::cloud::cpp::compute::v1::Operation const &, Options)
Inserts a rule into a firewall policy.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
CloneRules(std::string const &, std::string const &, Options)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
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 |
CloneRules(NoAwaitTag, std::string const &, std::string const &, Options)
Copies rules to the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
CloneRules(google::cloud::cpp::compute::network_firewall_policies::v1::CloneRulesRequest const &, Options)
Copies rules to the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::CloneRulesRequest 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 |
CloneRules(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::CloneRulesRequest const &, Options)
Copies rules to the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::CloneRulesRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
CloneRules(google::cloud::cpp::compute::v1::Operation const &, Options)
Copies rules to the specified firewall policy.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
DeleteFirewallPolicy(std::string const &, std::string const &, Options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to delete. |
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 |
DeleteFirewallPolicy(NoAwaitTag, std::string const &, std::string const &, Options)
Deletes the specified policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::DeleteFirewallPolicyRequest const &, Options)
Deletes the specified policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::DeleteFirewallPolicyRequest 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 |
DeleteFirewallPolicy(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::DeleteFirewallPolicyRequest const &, Options)
Deletes the specified policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::DeleteFirewallPolicyRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteFirewallPolicy(google::cloud::cpp::compute::v1::Operation const &, Options)
Deletes the specified policy.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
GetFirewallPolicy(std::string const &, std::string const &, Options)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to get. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::FirewallPolicy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::GetFirewallPolicyRequest const &, Options)
Returns the specified network firewall policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::GetFirewallPolicyRequest 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::FirewallPolicy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAssociation(std::string const &, std::string const &, Options)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to which the queried association belongs. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::FirewallPolicyAssociation > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicyAssociation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAssociation(google::cloud::cpp::compute::network_firewall_policies::v1::GetAssociationRequest const &, Options)
Gets an association with the specified name.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::GetAssociationRequest 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::FirewallPolicyAssociation > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicyAssociation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIamPolicy(std::string const &, std::string const &, Options)
Gets the access control policy for a resource.
May be empty if no such policy or resource exists. https://cloud.google.com/compute/docs/reference/rest/v1/networkFirewallPolicies/getIamPolicy
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
resource |
std::string const &
Name or id of the resource 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::Policy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIamPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::GetIamPolicyRequest const &, Options)
Gets the access control policy for a resource.
May be empty if no such policy or resource exists. https://cloud.google.com/compute/docs/reference/rest/v1/networkFirewallPolicies/getIamPolicy
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::GetIamPolicyRequest 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::Policy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRule(std::string const &, std::string const &, Options)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to which the queried rule belongs. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::FirewallPolicyRule > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicyRule) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRule(google::cloud::cpp::compute::network_firewall_policies::v1::GetRuleRequest const &, Options)
Gets a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::GetRuleRequest 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::FirewallPolicyRule > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.FirewallPolicyRule) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
InsertFirewallPolicy(std::string const &, google::cloud::cpp::compute::v1::FirewallPolicy const &, Options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy_resource |
google::cloud::cpp::compute::v1::FirewallPolicy const &
The FirewallPolicy 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 |
InsertFirewallPolicy(NoAwaitTag, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicy const &, Options)
Creates a new policy in the specified project using the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy_resource |
google::cloud::cpp::compute::v1::FirewallPolicy const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::InsertFirewallPolicyRequest const &, Options)
Creates a new policy in the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::InsertFirewallPolicyRequest 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 |
InsertFirewallPolicy(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::InsertFirewallPolicyRequest const &, Options)
Creates a new policy in the specified project using the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::InsertFirewallPolicyRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertFirewallPolicy(google::cloud::cpp::compute::v1::Operation const &, Options)
Creates a new policy in the specified project using the data included in the request.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
ListNetworkFirewallPolicies(std::string const &, Options)
Lists all the 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::FirewallPolicy > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListNetworkFirewallPolicies(google::cloud::cpp::compute::network_firewall_policies::v1::ListNetworkFirewallPoliciesRequest, Options)
Lists all the policies that have been configured for the specified project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::ListNetworkFirewallPoliciesRequest
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::FirewallPolicy > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
PatchFirewallPolicy(std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicy const &, Options)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
firewall_policy_resource |
google::cloud::cpp::compute::v1::FirewallPolicy const &
The FirewallPolicy 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 |
PatchFirewallPolicy(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicy const &, Options)
Patches the specified policy with the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
firewall_policy_resource |
google::cloud::cpp::compute::v1::FirewallPolicy const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
PatchFirewallPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::PatchFirewallPolicyRequest const &, Options)
Patches the specified policy with the data included in the request.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::PatchFirewallPolicyRequest 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 |
PatchFirewallPolicy(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::PatchFirewallPolicyRequest const &, Options)
Patches the specified policy with the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::PatchFirewallPolicyRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
PatchFirewallPolicy(google::cloud::cpp::compute::v1::Operation const &, Options)
Patches the specified policy with the data included in the request.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
PatchRule(std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyRule const &, Options)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
firewall_policy_rule_resource |
google::cloud::cpp::compute::v1::FirewallPolicyRule const &
The FirewallPolicyRule 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 |
PatchRule(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::FirewallPolicyRule const &, Options)
Patches a rule of the specified priority.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
firewall_policy_rule_resource |
google::cloud::cpp::compute::v1::FirewallPolicyRule const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
PatchRule(google::cloud::cpp::compute::network_firewall_policies::v1::PatchRuleRequest const &, Options)
Patches a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::PatchRuleRequest 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 |
PatchRule(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::PatchRuleRequest const &, Options)
Patches a rule of the specified priority.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::PatchRuleRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
PatchRule(google::cloud::cpp::compute::v1::Operation const &, Options)
Patches a rule of the specified priority.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
RemoveAssociation(std::string const &, std::string const &, Options)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
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 |
RemoveAssociation(NoAwaitTag, std::string const &, std::string const &, Options)
Removes an association for the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveAssociation(google::cloud::cpp::compute::network_firewall_policies::v1::RemoveAssociationRequest const &, Options)
Removes an association for the specified firewall policy.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::RemoveAssociationRequest 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 |
RemoveAssociation(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::RemoveAssociationRequest const &, Options)
Removes an association for the specified firewall policy.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::RemoveAssociationRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveAssociation(google::cloud::cpp::compute::v1::Operation const &, Options)
Removes an association for the specified firewall policy.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
RemoveRule(std::string const &, std::string const &, Options)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
firewall_policy |
std::string const &
Name of the firewall policy to update. |
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 |
RemoveRule(NoAwaitTag, std::string const &, std::string const &, Options)
Deletes a rule of the specified priority.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
firewall_policy |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveRule(google::cloud::cpp::compute::network_firewall_policies::v1::RemoveRuleRequest const &, Options)
Deletes a rule of the specified priority.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::RemoveRuleRequest 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 |
RemoveRule(NoAwaitTag, google::cloud::cpp::compute::network_firewall_policies::v1::RemoveRuleRequest const &, Options)
Deletes a rule of the specified priority.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::network_firewall_policies::v1::RemoveRuleRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveRule(google::cloud::cpp::compute::v1::Operation const &, Options)
Deletes a rule of the specified priority.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
SetIamPolicy(std::string const &, std::string const &, google::cloud::cpp::compute::v1::GlobalSetPolicyRequest const &, Options)
Sets the access control policy on the specified resource.
Replaces any existing policy. https://cloud.google.com/compute/docs/reference/rest/v1/networkFirewallPolicies/setIamPolicy
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
resource |
std::string const &
Name or id of the resource for this request. |
global_set_policy_request_resource |
google::cloud::cpp::compute::v1::GlobalSetPolicyRequest const &
The GlobalSetPolicyRequest 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::Policy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SetIamPolicy(google::cloud::cpp::compute::network_firewall_policies::v1::SetIamPolicyRequest const &, Options)
Sets the access control policy on the specified resource.
Replaces any existing policy. https://cloud.google.com/compute/docs/reference/rest/v1/networkFirewallPolicies/setIamPolicy
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::SetIamPolicyRequest 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::Policy > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(std::string const &, std::string const &, google::cloud::cpp::compute::v1::TestPermissionsRequest const &, Options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
resource |
std::string const &
Name or id of the resource for this request. |
test_permissions_request_resource |
google::cloud::cpp::compute::v1::TestPermissionsRequest const &
The TestPermissionsRequest 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::TestPermissionsResponse > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TestPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(google::cloud::cpp::compute::network_firewall_policies::v1::TestIamPermissionsRequest const &, Options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::network_firewall_policies::v1::TestIamPermissionsRequest 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::TestPermissionsResponse > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TestPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |