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.



1328
1329
1330
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1328

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)


1286
1287
1288
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1286

def display_name
  @display_name
end

#external_ipString

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

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1291

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)


1296
1297
1298
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1296

def interface
  @interface
end

#internal_ipString

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

Returns:

  • (String)


1301
1302
1303
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1301

def internal_ip
  @internal_ip
end

#network_tagsArray<String>

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

Returns:

  • (Array<String>)


1306
1307
1308
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1306

def network_tags
  @network_tags
end

#network_uriString

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

Returns:

  • (String)


1311
1312
1313
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1311

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)


1316
1317
1318
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1316

def psc_network_attachment_uri
  @psc_network_attachment_uri
end

#service_accountString

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

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1321

def 
  @service_account
end

#uriString

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

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1326

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1333

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