Class: Google::Apis::MigrationcenterV1alpha1::NfsExport

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

Overview

NFS export.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NfsExport

Returns a new instance of NfsExport.



4616
4617
4618
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4616

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

Instance Attribute Details

#export_directoryString

The directory being exported. Corresponds to the JSON property exportDirectory

Returns:

  • (String)


4609
4610
4611
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4609

def export_directory
  @export_directory
end

#hostsArray<String>

The hosts or networks to which the export is being shared. Corresponds to the JSON property hosts

Returns:

  • (Array<String>)


4614
4615
4616
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4614

def hosts
  @hosts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4621
4622
4623
4624
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4621

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