Class: Google::Cloud::Compute::V1::NetworkInterface

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

A network interface resource attached to an instance.

Defined Under Namespace

Modules: NicType

Instance Attribute Summary collapse

Instance Attribute Details

#access_configs::Array<::Google::Cloud::Compute::V1::AccessConfig>

Returns An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

Returns:

  • (::Array<::Google::Cloud::Compute::V1::AccessConfig>)

    An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#alias_ip_ranges::Array<::Google::Cloud::Compute::V1::AliasIpRange>

Returns An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

Returns:



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#fingerprint::String

Returns Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet.

Returns:

  • (::String)

    Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with error 412 conditionNotMet.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#ipv6_address::String

Returns [Output Only] An IPv6 internal network address for this network interface.

Returns:

  • (::String)

    [Output Only] An IPv6 internal network address for this network interface.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#kind::String

Returns [Output Only] Type of the resource. Always compute#networkInterface for network interfaces.

Returns:

  • (::String)

    [Output Only] Type of the resource. Always compute#networkInterface for network interfaces.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#name::String

Returns [Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc.

Returns:

  • (::String)

    [Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#network::String

Returns URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.

If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:

Returns:

  • (::String)

    URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.

    If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#network_i_p::String

Returns An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

Returns:

  • (::String)

    An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#nic_type::Google::Cloud::Compute::V1::NetworkInterface::NicType

Returns The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

Returns:



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end

#subnetwork::String

Returns The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:

Returns:

  • (::String)

    The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required. If you specify this field, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:



5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5331

class NetworkInterface
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
  module NicType
    # A value indicating that the enum field is not set.
    UNDEFINED_NIC_TYPE = 0

    GVNIC = 68209305

    UNSPECIFIED_NIC_TYPE = 67411801

    VIRTIO_NET = 452123481
  end
end