Class: Google::Apis::ContainerV1beta1::PdbBlockedPod

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

The namespace/name of the pod whose eviction is blocked by PDB.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PdbBlockedPod

Returns a new instance of PdbBlockedPod.



7817
7818
7819
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7817

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

Instance Attribute Details

#nameString

The name of the pod. Corresponds to the JSON property name

Returns:

  • (String)


7810
7811
7812
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7810

def name
  @name
end

#namespaceString

The namespace of the pod. Corresponds to the JSON property namespace

Returns:

  • (String)


7815
7816
7817
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7815

def namespace
  @namespace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7822
7823
7824
7825
# File 'lib/google/apis/container_v1beta1/classes.rb', line 7822

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @namespace = args[:namespace] if args.key?(:namespace)
end