Struct googapis::google::cloud::compute::v1::firewall_policies_client::FirewallPoliciesClient [−][src]
pub struct FirewallPoliciesClient<T> { /* fields omitted */ }
Expand description
The FirewallPolicies API.
Implementations
impl<T> FirewallPoliciesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> FirewallPoliciesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> FirewallPoliciesClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn add_association(
&mut self,
request: impl IntoRequest<AddAssociationFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn add_association(
&mut self,
request: impl IntoRequest<AddAssociationFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Inserts an association for the specified firewall policy.
pub async fn add_rule(
&mut self,
request: impl IntoRequest<AddRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn add_rule(
&mut self,
request: impl IntoRequest<AddRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Inserts a rule into a firewall policy.
pub async fn clone_rules(
&mut self,
request: impl IntoRequest<CloneRulesFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn clone_rules(
&mut self,
request: impl IntoRequest<CloneRulesFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Copies rules to the specified firewall policy.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Deletes the specified policy.
pub async fn get(
&mut self,
request: impl IntoRequest<GetFirewallPolicyRequest>
) -> Result<Response<FirewallPolicy>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetFirewallPolicyRequest>
) -> Result<Response<FirewallPolicy>, Status>
Returns the specified firewall policy.
pub async fn get_association(
&mut self,
request: impl IntoRequest<GetAssociationFirewallPolicyRequest>
) -> Result<Response<FirewallPolicyAssociation>, Status>
pub async fn get_association(
&mut self,
request: impl IntoRequest<GetAssociationFirewallPolicyRequest>
) -> Result<Response<FirewallPolicyAssociation>, Status>
Gets an association with the specified name.
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyFirewallPolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyFirewallPolicyRequest>
) -> Result<Response<Policy>, Status>
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
pub async fn get_rule(
&mut self,
request: impl IntoRequest<GetRuleFirewallPolicyRequest>
) -> Result<Response<FirewallPolicyRule>, Status>
pub async fn get_rule(
&mut self,
request: impl IntoRequest<GetRuleFirewallPolicyRequest>
) -> Result<Response<FirewallPolicyRule>, Status>
Gets a rule of the specified priority.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Creates a new policy in the specified project using the data included in the request.
pub async fn list(
&mut self,
request: impl IntoRequest<ListFirewallPoliciesRequest>
) -> Result<Response<FirewallPolicyList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListFirewallPoliciesRequest>
) -> Result<Response<FirewallPolicyList>, Status>
Lists all the policies that have been configured for the specified folder or organization.
pub async fn list_associations(
&mut self,
request: impl IntoRequest<ListAssociationsFirewallPolicyRequest>
) -> Result<Response<FirewallPoliciesListAssociationsResponse>, Status>
pub async fn list_associations(
&mut self,
request: impl IntoRequest<ListAssociationsFirewallPolicyRequest>
) -> Result<Response<FirewallPoliciesListAssociationsResponse>, Status>
Lists associations of a specified target, i.e., organization or folder.
pub async fn move(
&mut self,
request: impl IntoRequest<MoveFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn move(
&mut self,
request: impl IntoRequest<MoveFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Moves the specified firewall policy.
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Patches the specified policy with the data included in the request.
pub async fn patch_rule(
&mut self,
request: impl IntoRequest<PatchRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn patch_rule(
&mut self,
request: impl IntoRequest<PatchRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Patches a rule of the specified priority.
pub async fn remove_association(
&mut self,
request: impl IntoRequest<RemoveAssociationFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn remove_association(
&mut self,
request: impl IntoRequest<RemoveAssociationFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Removes an association for the specified firewall policy.
pub async fn remove_rule(
&mut self,
request: impl IntoRequest<RemoveRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn remove_rule(
&mut self,
request: impl IntoRequest<RemoveRuleFirewallPolicyRequest>
) -> Result<Response<Operation>, Status>
Deletes a rule of the specified priority.
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyFirewallPolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyFirewallPolicyRequest>
) -> Result<Response<Policy>, Status>
Sets the access control policy on the specified resource. Replaces any existing policy.
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsFirewallPolicyRequest>
) -> Result<Response<TestPermissionsResponse>, Status>
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsFirewallPolicyRequest>
) -> Result<Response<TestPermissionsResponse>, Status>
Returns permissions that a caller has on the specified resource.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for FirewallPoliciesClient<T> where
T: RefUnwindSafe,
impl<T> Send for FirewallPoliciesClient<T> where
T: Send,
impl<T> Sync for FirewallPoliciesClient<T> where
T: Sync,
impl<T> Unpin for FirewallPoliciesClient<T> where
T: Unpin,
impl<T> UnwindSafe for FirewallPoliciesClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more