Class: Google::Apis::NetworkmanagementV1beta1::GkePodInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkePodInfo

Returns a new instance of GkePodInfo.



1536
1537
1538
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1536

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)


1521
1522
1523
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1521

def ip_address
  @ip_address
end

#network_uriString

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

Returns:

  • (String)


1526
1527
1528
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1526

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)


1534
1535
1536
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1534

def pod_uri
  @pod_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1541
1542
1543
1544
1545
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1541

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