pub struct AclAssociationClient { /* private fields */ }Expand description
Calls AclAssociationService.
ACL associations: which ACL filters a subnet’s traffic at its edge. A
subnet has at most one; without one, nothing is filtered at its edge (see
the subnet’s acl). An association’s id is the id of the ACL it names, so
a client that knows the subnet and the ACL names the association without
listing. To move a subnet to another ACL, delete its association and
create another.
Implementations§
Source§impl AclAssociationClient
impl AclAssociationClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of AclAssociationService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_acl_association(
&self,
request: GetAclAssociationRequest,
) -> Result<AclAssociation, Error>
pub async fn get_acl_association( &self, request: GetAclAssociationRequest, ) -> Result<AclAssociation, Error>
Returns an ACL association.
Sourcepub async fn list_acl_associations(
&self,
request: ListAclAssociationsRequest,
) -> Result<ListAclAssociationsResponse, Error>
pub async fn list_acl_associations( &self, request: ListAclAssociationsRequest, ) -> Result<ListAclAssociationsResponse, Error>
Lists a subnet’s ACL associations: none or one.
Sourcepub fn all_acl_associations(
&self,
request: ListAclAssociationsRequest,
) -> Pages<AclAssociation>
pub fn all_acl_associations( &self, request: ListAclAssociationsRequest, ) -> Pages<AclAssociation>
Returns everything list_acl_associations lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Sourcepub async fn create_acl_association(
&self,
request: CreateAclAssociationRequest,
) -> Result<Operation<AclAssociation>, Error>
pub async fn create_acl_association( &self, request: CreateAclAssociationRequest, ) -> Result<Operation<AclAssociation>, Error>
Associates an ACL with a subnet. Refused with FAILED_PRECONDITION
when the subnet has an ACL association. The operation is done once the
change is recorded; the network applies it within seconds.
It answers with an operation to wait on: Operation::wait returns the AclAssociation once the change is done.
Sourcepub async fn delete_acl_association(
&self,
request: DeleteAclAssociationRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_acl_association( &self, request: DeleteAclAssociationRequest, ) -> Result<Operation<Empty>, Error>
Removes a subnet’s ACL association: nothing is filtered at its edge any more, and its interfaces’ security groups still apply. The operation is done once the change is recorded; the network applies it within seconds.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.