Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::NetworkAttachment (v2.10.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::NetworkAttachment.

NetworkAttachments A network attachment resource ...

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#connection_endpoints

def connection_endpoints() -> ::Array<::Google::Cloud::Compute::V1::NetworkAttachmentConnectedEndpoint>
Returns

#connection_endpoints=

def connection_endpoints=(value) -> ::Array<::Google::Cloud::Compute::V1::NetworkAttachmentConnectedEndpoint>
Parameter
Returns

#connection_preference

def connection_preference() -> ::String
Returns
  • (::String) — Check the ConnectionPreference enum for the list of possible values.

#connection_preference=

def connection_preference=(value) -> ::String
Parameter
  • value (::String) — Check the ConnectionPreference enum for the list of possible values.
Returns
  • (::String) — Check the ConnectionPreference enum for the list of possible values.

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional description of this resource. Provide this property when you create the resource.
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#fingerprint

def fingerprint() -> ::String
Returns
  • (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.

#fingerprint=

def fingerprint=(value) -> ::String
Parameter
  • value (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.
Returns
  • (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output Only] Type of the resource.

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Type of the resource.
Returns
  • (::String) — [Output Only] Type of the resource.

#name

def name() -> ::String
Returns
  • (::String) — Name of the resource. Provided by the client when the resource is created. 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.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Name of the resource. Provided by the client when the resource is created. 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.
Returns
  • (::String) — Name of the resource. Provided by the client when the resource is created. 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.

#network

def network() -> ::String
Returns
  • (::String) — [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.

#network=

def network=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.
Returns
  • (::String) — [Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.

#producer_accept_lists

def producer_accept_lists() -> ::Array<::String>
Returns
  • (::Array<::String>) — Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

#producer_accept_lists=

def producer_accept_lists=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
Returns
  • (::Array<::String>) — Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

#producer_reject_lists

def producer_reject_lists() -> ::Array<::String>
Returns
  • (::Array<::String>) — Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

#producer_reject_lists=

def producer_reject_lists=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
Returns
  • (::Array<::String>) — Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

#region

def region() -> ::String
Returns
  • (::String) — [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

#region=

def region=(value) -> ::String
Parameter
  • value (::String) — [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Returns
  • (::String) — [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link_with_id() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for this resource's resource id.
def self_link_with_id=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for this resource's resource id.
Returns
  • (::String) — [Output Only] Server-defined URL for this resource's resource id.

#subnetworks

def subnetworks() -> ::Array<::String>
Returns
  • (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

#subnetworks=

def subnetworks=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.
Returns
  • (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.