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
more...

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.

[View source]

1449
1450
1451
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1449

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


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

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)

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

def shared_path_pv_count
  @shared_path_pv_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1454
1455
1456
1457
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1454

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