Class: Google::Apis::GkeonpremV1::BareMetalLvpConfig

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

Overview

Specifies the configs for local persistent volumes (PVs).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalLvpConfig

Returns a new instance of BareMetalLvpConfig.



1615
1616
1617
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1615

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

Instance Attribute Details

#pathString

Required. The host machine path. Corresponds to the JSON property path

Returns:

  • (String)


1608
1609
1610
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1608

def path
  @path
end

#storage_classString

Required. The StorageClass name that PVs will be created with. Corresponds to the JSON property storageClass

Returns:

  • (String)


1613
1614
1615
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1613

def storage_class
  @storage_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1620
1621
1622
1623
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1620

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