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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/networkmanagement_v1beta1/classes.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb,
generated/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.



823
824
825
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 823

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)


786
787
788
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 786

def display_name
  @display_name
end

#external_ipString

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

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 791

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)


796
797
798
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 796

def interface
  @interface
end

#internal_ipString

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

Returns:

  • (String)


801
802
803
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 801

def internal_ip
  @internal_ip
end

#network_tagsArray<String>

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

Returns:

  • (Array<String>)


806
807
808
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 806

def network_tags
  @network_tags
end

#network_uriString

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

Returns:

  • (String)


811
812
813
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 811

def network_uri
  @network_uri
end

#service_accountString

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

Returns:

  • (String)


816
817
818
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 816

def 
  @service_account
end

#uriString

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

Returns:

  • (String)


821
822
823
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 821

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



828
829
830
831
832
833
834
835
836
837
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 828

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)
  @service_account = args[:service_account] if args.key?(:service_account)
  @uri = args[:uri] if args.key?(:uri)
end