Class: Google::Apis::FileV1beta1::Export
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::Export
- 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 export specification.
Instance Attribute Summary collapse
-
#allowed_clients ⇒ Google::Apis::FileV1beta1::ClientList
The sets of network addresses and DNS names for hosts to which a given export or share should be allowed or denied.
-
#async ⇒ Boolean
(also: #async?)
Writes may be completed when not yet on stable storage.
-
#denied_clients ⇒ Google::Apis::FileV1beta1::ClientList
The sets of network addresses and DNS names for hosts to which a given export or share should be allowed or denied.
-
#networks ⇒ Array<Google::Apis::FileV1beta1::NetworkConfig>
Networks on which the export should appear.
-
#nfs_export ⇒ Google::Apis::FileV1beta1::NfsExport
NfsExport specifies attributes of a given NFS export rule.
-
#path ⇒ String
Path to export (either "" or of the form /file_share_name[/subdir]).
-
#read_only ⇒ Boolean
(also: #read_only?)
Whether the file share should be exported as read-only.
-
#smb_export ⇒ Google::Apis::FileV1beta1::SmbExport
SmbExport defines attributes of a given SMB sharing rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Export
constructor
A new instance of Export.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Export
Returns a new instance of Export
134 135 136 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_clients ⇒ Google::Apis::FileV1beta1::ClientList
The sets of network addresses and DNS names for hosts to which a given
export or share should be allowed or denied.
Corresponds to the JSON property allowedClients
92 93 94 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 92 def allowed_clients @allowed_clients end |
#async ⇒ Boolean Also known as: async?
Writes may be completed when not yet on stable storage.
Corresponds to the JSON property async
97 98 99 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 97 def async @async end |
#denied_clients ⇒ Google::Apis::FileV1beta1::ClientList
The sets of network addresses and DNS names for hosts to which a given
export or share should be allowed or denied.
Corresponds to the JSON property deniedClients
104 105 106 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 104 def denied_clients @denied_clients end |
#networks ⇒ Array<Google::Apis::FileV1beta1::NetworkConfig>
Networks on which the export should appear.
If none are specified, the default is all networks to which the instance is
connected to.
Corresponds to the JSON property networks
111 112 113 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 111 def networks @networks end |
#nfs_export ⇒ Google::Apis::FileV1beta1::NfsExport
NfsExport specifies attributes of a given NFS export rule.
Corresponds to the JSON property nfsExport
116 117 118 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 116 def nfs_export @nfs_export end |
#path ⇒ String
Path to export (either "" or of the form /file_share_name[/subdir]).
Corresponds to the JSON property path
121 122 123 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 121 def path @path end |
#read_only ⇒ Boolean Also known as: read_only?
Whether the file share should be exported as read-only.
Corresponds to the JSON property readOnly
126 127 128 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 126 def read_only @read_only end |
#smb_export ⇒ Google::Apis::FileV1beta1::SmbExport
SmbExport defines attributes of a given SMB sharing rule.
Corresponds to the JSON property smbExport
132 133 134 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 132 def smb_export @smb_export end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
139 140 141 142 143 144 145 146 147 148 |
# File 'generated/google/apis/file_v1beta1/classes.rb', line 139 def update!(**args) @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients) @async = args[:async] if args.key?(:async) @denied_clients = args[:denied_clients] if args.key?(:denied_clients) @networks = args[:networks] if args.key?(:networks) @nfs_export = args[:nfs_export] if args.key?(:nfs_export) @path = args[:path] if args.key?(:path) @read_only = args[:read_only] if args.key?(:read_only) @smb_export = args[:smb_export] if args.key?(:smb_export) end |