[−][src]Struct google_compute1::Subnetwork
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).
- set private ip google access subnetworks (none)
- expand ip cidr range subnetworks (none)
- aggregated list subnetworks (none)
- list usable subnetworks (none)
- get iam policy subnetworks (none)
- insert subnetworks (request)
- test iam permissions subnetworks (none)
- set iam policy subnetworks (none)
- get subnetworks (response)
- delete subnetworks (none)
- list subnetworks (none)
- patch subnetworks (request)
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]
fn clone(&self) -> Subnetwork[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for Subnetwork[src]
fn default() -> Subnetwork[src]
impl Debug for Subnetwork[src]
impl Serialize for Subnetwork[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for Subnetwork[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Subnetwork
impl Sync for Subnetwork
impl Unpin for Subnetwork
impl UnwindSafe for Subnetwork
impl RefUnwindSafe for Subnetwork
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,