[][src]Struct google_compute1::Subnetwork

pub struct Subnetwork {
    pub kind: Option<String>,
    pub description: Option<String>,
    pub name: Option<String>,
    pub gateway_address: Option<String>,
    pub region: Option<String>,
    pub id: Option<String>,
    pub enable_flow_logs: Option<bool>,
    pub fingerprint: Option<String>,
    pub private_ip_google_access: Option<bool>,
    pub ip_cidr_range: Option<String>,
    pub creation_timestamp: Option<String>,
    pub secondary_ip_ranges: Option<Vec<SubnetworkSecondaryRange>>,
    pub self_link: Option<String>,
    pub network: Option<String>,
}

Represents a Subnetwork resource.

A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network. (== resource_for beta.subnetworks ==) (== resource_for v1.subnetworks ==)

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

kind: Option<String>

[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.

description: Option<String>

An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.

name: Option<String>

The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. 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.

gateway_address: Option<String>

[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.

region: Option<String>

URL of the region where the Subnetwork resides. This field can be set only at resource creation time.

id: Option<String>

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

enable_flow_logs: Option<bool>

Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging.

fingerprint: Option<String>

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 Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet.

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

private_ip_google_access: Option<bool>

Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.

ip_cidr_range: Option<String>

The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field can be set only at resource creation time.

creation_timestamp: Option<String>

[Output Only] Creation timestamp in RFC3339 text format.

secondary_ip_ranges: Option<Vec<SubnetworkSecondaryRange>>

An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.

self_link: Option<String>

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

network: Option<String>

The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. Only networks that are in the distributed mode can have subnetworks. This field can be set only at resource creation time.

Trait Implementations

impl Resource for Subnetwork[src]

impl ResponseResult for Subnetwork[src]

impl RequestValue for Subnetwork[src]

impl Clone for Subnetwork[src]

impl Default for Subnetwork[src]

impl Debug for Subnetwork[src]

impl Serialize for Subnetwork[src]

impl<'de> Deserialize<'de> for Subnetwork[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

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