Class: Google::Apis::NetworkmanagementV1beta1::InstanceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkmanagement_v1beta1/classes.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb

Overview

For display only. Metadata associated with a Compute Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceInfo

Returns a new instance of InstanceInfo.



1669
1670
1671
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1669

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Name of a Compute Engine instance. Corresponds to the JSON property displayName

Returns:

  • (String)


1615
1616
1617
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1615

def display_name
  @display_name
end

#external_ipString

External IP address of the network interface. Corresponds to the JSON property externalIp

Returns:

  • (String)


1620
1621
1622
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1620

def external_ip
  @external_ip
end

#interfaceString

Name of the network interface of a Compute Engine instance. Corresponds to the JSON property interface

Returns:

  • (String)


1625
1626
1627
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1625

def interface
  @interface
end

#internal_ipString

Internal IP address of the network interface. Corresponds to the JSON property internalIp

Returns:

  • (String)


1630
1631
1632
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1630

def internal_ip
  @internal_ip
end

#network_tagsArray<String>

Network tags configured on the instance. Corresponds to the JSON property networkTags

Returns:

  • (Array<String>)


1635
1636
1637
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1635

def network_tags
  @network_tags
end

#network_uriString

URI of a Compute Engine network. Corresponds to the JSON property networkUri

Returns:

  • (String)


1640
1641
1642
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1640

def network_uri
  @network_uri
end

#psc_network_attachment_uriString

URI of the PSC network attachment the NIC is attached to (if relevant). Corresponds to the JSON property pscNetworkAttachmentUri

Returns:

  • (String)


1645
1646
1647
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1645

def psc_network_attachment_uri
  @psc_network_attachment_uri
end

#runningBoolean Also known as: running?

Indicates whether the Compute Engine instance is running. Deprecated: use the status field instead. Corresponds to the JSON property running

Returns:

  • (Boolean)


1651
1652
1653
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1651

def running
  @running
end

#service_accountString

Service account authorized for the instance. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1657
1658
1659
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1657

def 
  @service_account
end

#statusString

The status of the instance. Corresponds to the JSON property status

Returns:

  • (String)


1662
1663
1664
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1662

def status
  @status
end

#uriString

URI of a Compute Engine instance. Corresponds to the JSON property uri

Returns:

  • (String)


1667
1668
1669
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1667

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1674

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @external_ip = args[:external_ip] if args.key?(:external_ip)
  @interface = args[:interface] if args.key?(:interface)
  @internal_ip = args[:internal_ip] if args.key?(:internal_ip)
  @network_tags = args[:network_tags] if args.key?(:network_tags)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @psc_network_attachment_uri = args[:psc_network_attachment_uri] if args.key?(:psc_network_attachment_uri)
  @running = args[:running] if args.key?(:running)
  @service_account = args[:service_account] if args.key?(:service_account)
  @status = args[:status] if args.key?(:status)
  @uri = args[:uri] if args.key?(:uri)
end