Class: Google::Apis::FileV1beta1::FileShareConfig

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

Overview

File share configuration for the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FileShareConfig

Returns a new instance of FileShareConfig.



363
364
365
# File 'generated/google/apis/file_v1beta1/classes.rb', line 363

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

Instance Attribute Details

#capacity_gbFixnum

File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3 bytes. Corresponds to the JSON property capacityGb

Returns:

  • (Fixnum)


356
357
358
# File 'generated/google/apis/file_v1beta1/classes.rb', line 356

def capacity_gb
  @capacity_gb
end

#nameString

The name of the file share (must be 16 characters or less). Corresponds to the JSON property name

Returns:

  • (String)


361
362
363
# File 'generated/google/apis/file_v1beta1/classes.rb', line 361

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
# File 'generated/google/apis/file_v1beta1/classes.rb', line 368

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