pub struct VpcAttachmentClient { /* private fields */ }Expand description
Calls VpcAttachmentService.
VPC attachments: the VPCs a private zone answers in. Each attachment makes the zone’s names resolve from every instance in one VPC, in every zone the VPC spans, and from no other VPC. A private zone attaches only to VPCs of its own project, and a VPC holds at most one attached zone of a name. An attachment’s id is the VPC’s id, so a client that knows the zone and the VPC names the attachment without listing. Deleting a VPC deletes its attachments. Attaching a public zone is refused: it answers on the internet, in every VPC alike.
Implementations§
Source§impl VpcAttachmentClient
impl VpcAttachmentClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of VpcAttachmentService 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_vpc_attachment(
&self,
request: GetVpcAttachmentRequest,
) -> Result<VpcAttachment, Error>
pub async fn get_vpc_attachment( &self, request: GetVpcAttachmentRequest, ) -> Result<VpcAttachment, Error>
Returns a VPC attachment.
Sourcepub async fn list_vpc_attachments(
&self,
request: ListVpcAttachmentsRequest,
) -> Result<ListVpcAttachmentsResponse, Error>
pub async fn list_vpc_attachments( &self, request: ListVpcAttachmentsRequest, ) -> Result<ListVpcAttachmentsResponse, Error>
Lists a private zone’s VPC attachments, oldest first. With - for the
zone, lists every zone’s in the project, which with vpc finds the
zones attached to a VPC.
Sourcepub fn all_vpc_attachments(
&self,
request: ListVpcAttachmentsRequest,
) -> Pages<VpcAttachment>
pub fn all_vpc_attachments( &self, request: ListVpcAttachmentsRequest, ) -> Pages<VpcAttachment>
Returns everything list_vpc_attachments 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_vpc_attachment(
&self,
request: CreateVpcAttachmentRequest,
) -> Result<VpcAttachment, Error>
pub async fn create_vpc_attachment( &self, request: CreateVpcAttachmentRequest, ) -> Result<VpcAttachment, Error>
Attaches a private zone to a VPC of the zone’s project. Refused with
BAD_REQUEST for a public zone, or for a VPC that isn’t in the zone’s
project, with the same words whichever project it is in. Refused with
CONFLICT when the VPC holds an attached zone of the same name. A VPC
created moments ago may be refused with SERVICE_UNAVAILABLE,
retryable. The VPC’s instances resolve the zone’s names once the VPC’s
hosts serve the zone.
Sourcepub async fn delete_vpc_attachment(
&self,
request: DeleteVpcAttachmentRequest,
) -> Result<Empty, Error>
pub async fn delete_vpc_attachment( &self, request: DeleteVpcAttachmentRequest, ) -> Result<Empty, Error>
Detaches a private zone from a VPC. The VPC’s instances stop resolving the zone’s names once the VPC’s hosts drop the zone.