Class: Google::Apis::VmwareengineV1::DatastoreMountConfig
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::DatastoreMountConfig
- 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
-
#access_mode ⇒ String
Optional.
-
#datastore ⇒ String
Required.
-
#datastore_network ⇒ Google::Apis::VmwareengineV1::DatastoreNetwork
The network configuration for the datastore.
-
#file_share ⇒ String
Output only.
-
#nfs_version ⇒ String
Optional.
-
#servers ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatastoreMountConfig
constructor
A new instance of DatastoreMountConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mode ⇒ String
Optional. The access mode of the NFS volume. Optional. Default value used will
be READ_WRITE
Corresponds to the JSON property accessMode
656 657 658 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 656 def access_mode @access_mode end |
#datastore ⇒ String
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
664 665 666 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 664 def datastore @datastore end |
#datastore_network ⇒ Google::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_share ⇒ String
Output only. File share name.
Corresponds to the JSON property fileShare
674 675 676 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 674 def file_share @file_share end |
#nfs_version ⇒ String
Optional. The NFS protocol supported by the NFS volume. Default value used
will be NFS_V3
Corresponds to the JSON property nfsVersion
680 681 682 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 680 def nfs_version @nfs_version end |
#servers ⇒ Array<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
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 |