Class: Google::Apis::GkeonpremV1::BareMetalLvpShareConfig

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 under a shared file system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalLvpShareConfig

Returns a new instance of BareMetalLvpShareConfig.



1441
1442
1443
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1441

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

Instance Attribute Details

#lvp_configGoogle::Apis::GkeonpremV1::BareMetalLvpConfig

Specifies the configs for local persistent volumes (PVs). Corresponds to the JSON property lvpConfig



1434
1435
1436
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1434

def lvp_config
  @lvp_config
end

#shared_path_pv_countFixnum

The number of subdirectories to create under path. Corresponds to the JSON property sharedPathPvCount

Returns:

  • (Fixnum)


1439
1440
1441
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1439

def shared_path_pv_count
  @shared_path_pv_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1446
1447
1448
1449
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1446

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