Class: Google::Apis::ComputeAlpha::NetworkInterface
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::NetworkInterface
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Overview
A network interface resource attached to an instance.
Instance Attribute Summary collapse
- 
  
    
      #access_configs  ⇒ Array<Google::Apis::ComputeAlpha::AccessConfig> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An array of configurations for this interface. 
- 
  
    
      #alias_ip_ranges  ⇒ Array<Google::Apis::ComputeAlpha::AliasIpRange> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An array of alias IP ranges for this network interface. 
- 
  
    
      #fingerprint  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Fingerprint hash of contents stored in this network interface. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] Type of the resource. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Output Only] The name of the network interface, generated by the server. 
- 
  
    
      #network  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL of the network resource for this instance. 
- 
  
    
      #network_ip  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An IPv4 internal network address to assign to the instance for this network interface. 
- 
  
    
      #subnetwork  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the Subnetwork resource for this instance. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ NetworkInterface 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of NetworkInterface. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ NetworkInterface
Returns a new instance of NetworkInterface
| 15578 15579 15580 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15578 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#access_configs ⇒ Array<Google::Apis::ComputeAlpha::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.
Corresponds to the JSON property accessConfigs
| 15514 15515 15516 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15514 def access_configs @access_configs end | 
#alias_ip_ranges ⇒ Array<Google::Apis::ComputeAlpha::AliasIpRange>
An array of alias IP ranges for this network interface. Can only be specified
for network interfaces on subnet-mode networks.
Corresponds to the JSON property aliasIpRanges
| 15520 15521 15522 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15520 def alias_ip_ranges @alias_ip_ranges end | 
#fingerprint ⇒ 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.
Corresponds to the JSON property fingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 15528 15529 15530 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15528 def fingerprint @fingerprint end | 
#kind ⇒ String
[Output Only] Type of the resource. Always compute#networkInterface for
network interfaces.
Corresponds to the JSON property kind
| 15534 15535 15536 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15534 def kind @kind end | 
#name ⇒ String
[Output Only] The name of the network interface, generated by the server. For
network devices, these are eth0, eth1, etc.
Corresponds to the JSON property name
| 15540 15541 15542 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15540 def name @name end | 
#network ⇒ 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. This field is optional when creating a firewall rule. If not specified when creating a firewall rule, the default network global/networks/default is used. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
- https://www.googleapis.com/compute/v1/projects/project/global/networks/ network
- projects/project/global/networks/network
- global/networks/default
Corresponds to the JSON property network
| 15556 15557 15558 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15556 def network @network end | 
#network_ip ⇒ String
An IPv4 internal network 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.
Corresponds to the JSON property networkIP
| 15563 15564 15565 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15563 def network_ip @network_ip end | 
#subnetwork ⇒ String
The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
- https://www.googleapis.com/compute/v1/projects/project/regions/region/ subnetworks/subnetwork
- regions/region/subnetworks/subnetwork
Corresponds to the JSON property subnetwork
| 15576 15577 15578 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15576 def subnetwork @subnetwork end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 | # File 'generated/google/apis/compute_alpha/classes.rb', line 15583 def update!(**args) @access_configs = args[:access_configs] if args.key?(:access_configs) @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_ip = args[:network_ip] if args.key?(:network_ip) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |