Class: Google::Apis::VmwareengineV1::DatastoreMountConfig

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

Overview

The Datastore Mount configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatastoreMountConfig

Returns a new instance of DatastoreMountConfig.



688
689
690
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 688

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

Instance Attribute Details

#access_modeString

Optional. The access mode of the NFS volume. Optional. Default value used will be READ_WRITE Corresponds to the JSON property accessMode

Returns:

  • (String)


656
657
658
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 656

def access_mode
  @access_mode
end

#datastoreString

Required. The resource name of the datastore to mount. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/ design/resource_names. For example: projects/my-project/locations/us-central1/ datastores/my-datastore Corresponds to the JSON property datastore

Returns:

  • (String)


664
665
666
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 664

def datastore
  @datastore
end

#datastore_networkGoogle::Apis::VmwareengineV1::DatastoreNetwork

The network configuration for the datastore. Corresponds to the JSON property datastoreNetwork



669
670
671
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 669

def datastore_network
  @datastore_network
end

#file_shareString

Output only. File share name. Corresponds to the JSON property fileShare

Returns:

  • (String)


674
675
676
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 674

def file_share
  @file_share
end

#nfs_versionString

Optional. The NFS protocol supported by the NFS volume. Default value used will be NFS_V3 Corresponds to the JSON property nfsVersion

Returns:

  • (String)


680
681
682
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 680

def nfs_version
  @nfs_version
end

#serversArray<String>

Output only. Server IP addresses of the NFS volume. For NFS 3, you can only provide a single server IP address or DNS names. Corresponds to the JSON property servers

Returns:

  • (Array<String>)


686
687
688
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 686

def servers
  @servers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
696
697
698
699
700
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 693

def update!(**args)
  @access_mode = args[:access_mode] if args.key?(:access_mode)
  @datastore = args[:datastore] if args.key?(:datastore)
  @datastore_network = args[:datastore_network] if args.key?(:datastore_network)
  @file_share = args[:file_share] if args.key?(:file_share)
  @nfs_version = args[:nfs_version] if args.key?(:nfs_version)
  @servers = args[:servers] if args.key?(:servers)
end