Class: Google::Apis::NetworkmanagementV1::GkePodInfo

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 Google Kubernetes Engine (GKE) Pod.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkePodInfo

Returns a new instance of GkePodInfo.



1420
1421
1422
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1420

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

Instance Attribute Details

#ip_addressString

IP address of a GKE Pod. If the Pod is dual-stack, this is the IP address relevant to the trace. Corresponds to the JSON property ipAddress

Returns:

  • (String)


1405
1406
1407
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1405

def ip_address
  @ip_address
end

#network_uriString

URI of the network containing the GKE Pod. Corresponds to the JSON property networkUri

Returns:

  • (String)


1410
1411
1412
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1410

def network_uri
  @network_uri
end

#pod_uriString

URI of a GKE Pod. For Pods in regional Clusters, the URI format is: projects/ project/locations/location/clusters/cluster/k8s/namespaces/namespace/ pods/podFor Pods in zonal Clusters, the URI format is: `projects/`project`/ zones/`zone`/clusters/`cluster`/k8s/namespaces/`namespace`/pods/`pod Corresponds to the JSON property podUri

Returns:

  • (String)


1418
1419
1420
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1418

def pod_uri
  @pod_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1425
1426
1427
1428
1429
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1425

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @pod_uri = args[:pod_uri] if args.key?(:pod_uri)
end