pub struct ResolverPolicyAssociationClient { /* private fields */ }Expand description
Calls ResolverPolicyAssociationService.
Resolver policy associations: which resolver policy a VPC’s resolver
relays through. A VPC has at most one; without one, it relays through the
project’s default resolver policy in its region (see the VPC’s
resolver_policy). An association’s id is the id of the resolver policy it
names, so a client that knows the VPC and the policy names the association
without listing. To move a VPC to another policy, delete its association
and create another.
Implementations§
Source§impl ResolverPolicyAssociationClient
impl ResolverPolicyAssociationClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of ResolverPolicyAssociationService 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 fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn get_resolver_policy_association(
&self,
request: GetResolverPolicyAssociationRequest,
) -> Result<ResolverPolicyAssociation, Error>
pub async fn get_resolver_policy_association( &self, request: GetResolverPolicyAssociationRequest, ) -> Result<ResolverPolicyAssociation, Error>
Returns a resolver policy association.
Sourcepub async fn list_resolver_policy_associations(
&self,
request: ListResolverPolicyAssociationsRequest,
) -> Result<ListResolverPolicyAssociationsResponse, Error>
pub async fn list_resolver_policy_associations( &self, request: ListResolverPolicyAssociationsRequest, ) -> Result<ListResolverPolicyAssociationsResponse, Error>
Lists a VPC’s resolver policy associations: none or one.
Sourcepub fn all_resolver_policy_associations(
&self,
request: ListResolverPolicyAssociationsRequest,
) -> Pages<ResolverPolicyAssociation>
pub fn all_resolver_policy_associations( &self, request: ListResolverPolicyAssociationsRequest, ) -> Pages<ResolverPolicyAssociation>
Returns everything list_resolver_policy_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_resolver_policy_association(
&self,
request: CreateResolverPolicyAssociationRequest,
) -> Result<Operation<ResolverPolicyAssociation>, Error>
pub async fn create_resolver_policy_association( &self, request: CreateResolverPolicyAssociationRequest, ) -> Result<Operation<ResolverPolicyAssociation>, Error>
Associates a resolver policy with a VPC. Refused with FAILED_PRECONDITION
when the VPC has a resolver policy association. The operation is done once
the change is recorded; the VPC’s resolver applies it within seconds.
It answers with an operation to wait on: Operation::wait returns the ResolverPolicyAssociation once the change is done.
Sourcepub async fn delete_resolver_policy_association(
&self,
request: DeleteResolverPolicyAssociationRequest,
) -> Result<Operation<Empty>, Error>
pub async fn delete_resolver_policy_association( &self, request: DeleteResolverPolicyAssociationRequest, ) -> Result<Operation<Empty>, Error>
Removes a VPC’s resolver policy association: the VPC relays through the project’s default resolver policy in its region again. The operation is done once the change is recorded; the VPC’s resolver applies it within seconds.
It answers with an operation to wait on, which has no result: Operation::wait returns once the change is done.