Class: Google::Apis::NetworkmanagementV1::GkePodInfo
- Inherits:
-
Object
- Object
- Google::Apis::NetworkmanagementV1::GkePodInfo
- 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
-
#ip_address ⇒ String
IP address of a GKE Pod.
-
#network_uri ⇒ String
URI of the network containing the GKE Pod.
-
#pod_uri ⇒ String
URI of a GKE Pod.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkePodInfo
constructor
A new instance of GkePodInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_address ⇒ String
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
1405 1406 1407 |
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1405 def ip_address @ip_address end |
#network_uri ⇒ String
URI of the network containing the GKE Pod.
Corresponds to the JSON property networkUri
1410 1411 1412 |
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1410 def network_uri @network_uri end |
#pod_uri ⇒ String
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
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 |