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



72
73
74
# File 'generated/google/apis/file_v1beta1/classes.rb', line 72

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)


65
66
67
# File 'generated/google/apis/file_v1beta1/classes.rb', line 65

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)


70
71
72
# File 'generated/google/apis/file_v1beta1/classes.rb', line 70

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



77
78
79
80
# File 'generated/google/apis/file_v1beta1/classes.rb', line 77

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