Class: Google::Apis::NetworkmanagementV1::InstanceInfo

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



1070
1071
1072
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1070

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)


1033
1034
1035
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1033

def display_name
  @display_name
end

#external_ipString

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

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1038

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)


1043
1044
1045
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1043

def interface
  @interface
end

#internal_ipString

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

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1048

def internal_ip
  @internal_ip
end

#network_tagsArray<String>

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

Returns:

  • (Array<String>)


1053
1054
1055
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1053

def network_tags
  @network_tags
end

#network_uriString

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

Returns:

  • (String)


1058
1059
1060
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1058

def network_uri
  @network_uri
end

#service_accountString

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

Returns:

  • (String)


1063
1064
1065
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1063

def 
  @service_account
end

#uriString

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

Returns:

  • (String)


1068
1069
1070
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1068

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1075

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