Class: Google::Apis::FileV1beta1::Export

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 export specification.

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) ⇒ 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_clientsGoogle::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

#asyncBoolean Also known as: async?

Writes may be completed when not yet on stable storage. Corresponds to the JSON property async

Returns:

  • (Boolean)


97
98
99
# File 'generated/google/apis/file_v1beta1/classes.rb', line 97

def async
  @async
end

#denied_clientsGoogle::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

#networksArray<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_exportGoogle::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

#pathString

Path to export (either "" or of the form /file_share_name[/subdir]). Corresponds to the JSON property path

Returns:

  • (String)


121
122
123
# File 'generated/google/apis/file_v1beta1/classes.rb', line 121

def path
  @path
end

#read_onlyBoolean Also known as: read_only?

Whether the file share should be exported as read-only. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


126
127
128
# File 'generated/google/apis/file_v1beta1/classes.rb', line 126

def read_only
  @read_only
end

#smb_exportGoogle::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