Struct googapis::google::cloud::compute::v1::security_policies_client::SecurityPoliciesClient [−][src]
pub struct SecurityPoliciesClient<T> { /* fields omitted */ }
Expand description
The SecurityPolicies API.
Implementations
impl<T> SecurityPoliciesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SecurityPoliciesClient<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
) -> SecurityPoliciesClient<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_rule(
&mut self,
request: impl IntoRequest<AddRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn add_rule(
&mut self,
request: impl IntoRequest<AddRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
Inserts a rule into a security policy.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
Deletes the specified policy.
pub async fn get(
&mut self,
request: impl IntoRequest<GetSecurityPolicyRequest>
) -> Result<Response<SecurityPolicy>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetSecurityPolicyRequest>
) -> Result<Response<SecurityPolicy>, Status>
List all of the ordered rules present in a single specified policy.
pub async fn get_rule(
&mut self,
request: impl IntoRequest<GetRuleSecurityPolicyRequest>
) -> Result<Response<SecurityPolicyRule>, Status>
pub async fn get_rule(
&mut self,
request: impl IntoRequest<GetRuleSecurityPolicyRequest>
) -> Result<Response<SecurityPolicyRule>, Status>
Gets a rule at the specified priority.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertSecurityPolicyRequest>
) -> 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<ListSecurityPoliciesRequest>
) -> Result<Response<SecurityPolicyList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListSecurityPoliciesRequest>
) -> Result<Response<SecurityPolicyList>, Status>
List all the policies that have been configured for the specified project.
pub async fn list_preconfigured_expression_sets(
&mut self,
request: impl IntoRequest<ListPreconfiguredExpressionSetsSecurityPoliciesRequest>
) -> Result<Response<SecurityPoliciesListPreconfiguredExpressionSetsResponse>, Status>
pub async fn list_preconfigured_expression_sets(
&mut self,
request: impl IntoRequest<ListPreconfiguredExpressionSetsSecurityPoliciesRequest>
) -> Result<Response<SecurityPoliciesListPreconfiguredExpressionSetsResponse>, Status>
Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn patch(
&mut self,
request: impl IntoRequest<PatchSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
Patches the specified policy with the data included in the request. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
pub async fn patch_rule(
&mut self,
request: impl IntoRequest<PatchRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn patch_rule(
&mut self,
request: impl IntoRequest<PatchRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
Patches a rule at the specified priority.
pub async fn remove_rule(
&mut self,
request: impl IntoRequest<RemoveRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
pub async fn remove_rule(
&mut self,
request: impl IntoRequest<RemoveRuleSecurityPolicyRequest>
) -> Result<Response<Operation>, Status>
Deletes a rule at the specified priority.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SecurityPoliciesClient<T> where
T: RefUnwindSafe,
impl<T> Send for SecurityPoliciesClient<T> where
T: Send,
impl<T> Sync for SecurityPoliciesClient<T> where
T: Sync,
impl<T> Unpin for SecurityPoliciesClient<T> where
T: Unpin,
impl<T> UnwindSafe for SecurityPoliciesClient<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