Skip to main content

PublicAdvertisedPrefix

Struct PublicAdvertisedPrefix 

Source
#[non_exhaustive]
pub struct PublicAdvertisedPrefix {
Show 15 fields pub byoip_api_version: Option<ByoipApiVersion>, pub creation_timestamp: Option<String>, pub description: Option<String>, pub dns_verification_ip: Option<String>, pub fingerprint: Option<Bytes>, pub id: Option<u64>, pub ip_cidr_range: Option<String>, pub ipv_6_access_type: Option<Ipv6AccessType>, pub kind: Option<String>, pub name: Option<String>, pub pdp_scope: Option<PdpScope>, pub public_delegated_prefixs: Vec<PublicAdvertisedPrefixPublicDelegatedPrefix>, pub self_link: Option<String>, pub shared_secret: Option<String>, pub status: Option<Status>, /* private fields */
}
Available on crate feature public-advertised-prefixes only.
Expand description

A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§byoip_api_version: Option<ByoipApiVersion>

Output only. [Output Only] The version of BYOIP API.

§creation_timestamp: Option<String>

Output only. [Output Only] Creation timestamp inRFC3339 text format.

§description: Option<String>

An optional description of this resource. Provide this property when you create the resource.

§dns_verification_ip: Option<String>

The address to be used for reverse DNS verification.

§fingerprint: Option<Bytes>

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update thePublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet.

To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.

§id: Option<u64>

Output only. [Output Only] The unique identifier for the resource type. The server generates this identifier.

§ip_cidr_range: Option<String>

The address range, in CIDR format, represented by this public advertised prefix.

§ipv_6_access_type: Option<Ipv6AccessType>

The internet access type for IPv6 Public Advertised Prefixes.

§kind: Option<String>

Output only. [Output Only] Type of the resource. Alwayscompute#publicAdvertisedPrefix for public advertised prefixes.

§name: Option<String>

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

§pdp_scope: Option<PdpScope>

Specifies how child public delegated prefix will be scoped. It could be one of following values:

 - `REGIONAL`: The public delegated prefix is regional only. The
 provisioning will take a few minutes.
 - `GLOBAL`: The public delegated prefix is global only. The
 provisioning will take ~4 weeks.
 - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is
  BYOIP V1 legacy prefix. This is output only value and no longer
  supported in BYOIP V2.
§public_delegated_prefixs: Vec<PublicAdvertisedPrefixPublicDelegatedPrefix>

Output only. [Output Only] The list of public delegated prefixes that exist for this public advertised prefix.

§self_link: Option<String>

Output only. [Output Only] Server-defined URL for the resource.

§shared_secret: Option<String>

[Output Only] The shared secret to be used for reverse DNS verification.

§status: Option<Status>

The status of the public advertised prefix. Possible values include:

 - `INITIAL`: RPKI validation is complete.
 - `PTR_CONFIGURED`: User has configured the PTR.
 - `VALIDATED`: Reverse DNS lookup is successful.
 - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed.
 - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being
 configured.
 - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured.
 - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed.

Implementations§

Source§

impl PublicAdvertisedPrefix

Source

pub fn new() -> Self

Source

pub fn set_byoip_api_version<T>(self, v: T) -> Self

Sets the value of byoip_api_version.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::ByoipApiVersion;
let x0 = PublicAdvertisedPrefix::new().set_byoip_api_version(ByoipApiVersion::V2);
Source

pub fn set_or_clear_byoip_api_version<T>(self, v: Option<T>) -> Self

Sets or clears the value of byoip_api_version.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::ByoipApiVersion;
let x0 = PublicAdvertisedPrefix::new().set_or_clear_byoip_api_version(Some(ByoipApiVersion::V2));
let x_none = PublicAdvertisedPrefix::new().set_or_clear_byoip_api_version(None::<ByoipApiVersion>);
Source

pub fn set_creation_timestamp<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of creation_timestamp.

§Example
let x = PublicAdvertisedPrefix::new().set_creation_timestamp("example");
Source

pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of creation_timestamp.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_creation_timestamp(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_creation_timestamp(None::<String>);
Source

pub fn set_description<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of description.

§Example
let x = PublicAdvertisedPrefix::new().set_description("example");
Source

pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of description.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_description(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_description(None::<String>);
Source

pub fn set_dns_verification_ip<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of dns_verification_ip.

§Example
let x = PublicAdvertisedPrefix::new().set_dns_verification_ip("example");
Source

pub fn set_or_clear_dns_verification_ip<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of dns_verification_ip.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_dns_verification_ip(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_dns_verification_ip(None::<String>);
Source

pub fn set_fingerprint<T>(self, v: T) -> Self
where T: Into<Bytes>,

Sets the value of fingerprint.

§Example
let x = PublicAdvertisedPrefix::new().set_fingerprint(bytes::Bytes::from_static(b"example"));
Source

pub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
where T: Into<Bytes>,

Sets or clears the value of fingerprint.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = PublicAdvertisedPrefix::new().set_or_clear_fingerprint(None::<bytes::Bytes>);
Source

pub fn set_id<T>(self, v: T) -> Self
where T: Into<u64>,

Sets the value of id.

§Example
let x = PublicAdvertisedPrefix::new().set_id(42_u32);
Source

pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
where T: Into<u64>,

Sets or clears the value of id.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_id(Some(42_u32));
let x = PublicAdvertisedPrefix::new().set_or_clear_id(None::<u32>);
Source

pub fn set_ip_cidr_range<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of ip_cidr_range.

§Example
let x = PublicAdvertisedPrefix::new().set_ip_cidr_range("example");
Source

pub fn set_or_clear_ip_cidr_range<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of ip_cidr_range.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_ip_cidr_range(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_ip_cidr_range(None::<String>);
Source

pub fn set_ipv_6_access_type<T>(self, v: T) -> Self
where T: Into<Ipv6AccessType>,

Sets the value of ipv_6_access_type.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::Ipv6AccessType;
let x0 = PublicAdvertisedPrefix::new().set_ipv_6_access_type(Ipv6AccessType::Internal);
Source

pub fn set_or_clear_ipv_6_access_type<T>(self, v: Option<T>) -> Self
where T: Into<Ipv6AccessType>,

Sets or clears the value of ipv_6_access_type.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::Ipv6AccessType;
let x0 = PublicAdvertisedPrefix::new().set_or_clear_ipv_6_access_type(Some(Ipv6AccessType::Internal));
let x_none = PublicAdvertisedPrefix::new().set_or_clear_ipv_6_access_type(None::<Ipv6AccessType>);
Source

pub fn set_kind<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of kind.

§Example
let x = PublicAdvertisedPrefix::new().set_kind("example");
Source

pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of kind.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_kind(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_kind(None::<String>);
Source

pub fn set_name<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of name.

§Example
let x = PublicAdvertisedPrefix::new().set_name("example");
Source

pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of name.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_name(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_name(None::<String>);
Source

pub fn set_pdp_scope<T>(self, v: T) -> Self
where T: Into<PdpScope>,

Sets the value of pdp_scope.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::PdpScope;
let x0 = PublicAdvertisedPrefix::new().set_pdp_scope(PdpScope::GlobalAndRegional);
let x1 = PublicAdvertisedPrefix::new().set_pdp_scope(PdpScope::Regional);
Source

pub fn set_or_clear_pdp_scope<T>(self, v: Option<T>) -> Self
where T: Into<PdpScope>,

Sets or clears the value of pdp_scope.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::PdpScope;
let x0 = PublicAdvertisedPrefix::new().set_or_clear_pdp_scope(Some(PdpScope::GlobalAndRegional));
let x1 = PublicAdvertisedPrefix::new().set_or_clear_pdp_scope(Some(PdpScope::Regional));
let x_none = PublicAdvertisedPrefix::new().set_or_clear_pdp_scope(None::<PdpScope>);
Source

pub fn set_public_delegated_prefixs<T, V>(self, v: T) -> Self

Sets the value of public_delegated_prefixs.

§Example
use google_cloud_compute_v1::model::PublicAdvertisedPrefixPublicDelegatedPrefix;
let x = PublicAdvertisedPrefix::new()
    .set_public_delegated_prefixs([
        PublicAdvertisedPrefixPublicDelegatedPrefix::default()/* use setters */,
        PublicAdvertisedPrefixPublicDelegatedPrefix::default()/* use (different) setters */,
    ]);

Sets the value of self_link.

§Example
let x = PublicAdvertisedPrefix::new().set_self_link("example");

Sets or clears the value of self_link.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_self_link(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_self_link(None::<String>);
Source

pub fn set_shared_secret<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of shared_secret.

§Example
let x = PublicAdvertisedPrefix::new().set_shared_secret("example");
Source

pub fn set_or_clear_shared_secret<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of shared_secret.

§Example
let x = PublicAdvertisedPrefix::new().set_or_clear_shared_secret(Some("example"));
let x = PublicAdvertisedPrefix::new().set_or_clear_shared_secret(None::<String>);
Source

pub fn set_status<T>(self, v: T) -> Self
where T: Into<Status>,

Sets the value of status.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::Status;
let x0 = PublicAdvertisedPrefix::new().set_status(Status::Initial);
let x1 = PublicAdvertisedPrefix::new().set_status(Status::PrefixConfigurationComplete);
let x2 = PublicAdvertisedPrefix::new().set_status(Status::PrefixConfigurationInProgress);
Source

pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
where T: Into<Status>,

Sets or clears the value of status.

§Example
use google_cloud_compute_v1::model::public_advertised_prefix::Status;
let x0 = PublicAdvertisedPrefix::new().set_or_clear_status(Some(Status::Initial));
let x1 = PublicAdvertisedPrefix::new().set_or_clear_status(Some(Status::PrefixConfigurationComplete));
let x2 = PublicAdvertisedPrefix::new().set_or_clear_status(Some(Status::PrefixConfigurationInProgress));
let x_none = PublicAdvertisedPrefix::new().set_or_clear_status(None::<Status>);

Trait Implementations§

Source§

impl Clone for PublicAdvertisedPrefix

Source§

fn clone(&self) -> PublicAdvertisedPrefix

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PublicAdvertisedPrefix

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PublicAdvertisedPrefix

Source§

fn default() -> PublicAdvertisedPrefix

Returns the “default value” for a type. Read more
Source§

impl Message for PublicAdvertisedPrefix

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for PublicAdvertisedPrefix

Source§

fn eq(&self, other: &PublicAdvertisedPrefix) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PublicAdvertisedPrefix

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,