Class: Google::Apis::BaremetalsolutionV2::NfsShare

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

Overview

An NFS share.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NfsShare

Returns a new instance of NfsShare.



1111
1112
1113
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1111

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

Instance Attribute Details

#allowed_clientsArray<Google::Apis::BaremetalsolutionV2::AllowedClient>

List of allowed access points. Corresponds to the JSON property allowedClients



1084
1085
1086
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1084

def allowed_clients
  @allowed_clients
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1089
1090
1091
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1089

def labels
  @labels
end

#nameString

Output only. The name of the NFS share. Corresponds to the JSON property name

Returns:

  • (String)


1094
1095
1096
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1094

def name
  @name
end

#nfs_share_idString

Output only. An identifier for the NFS share, generated by the backend. Corresponds to the JSON property nfsShareId

Returns:

  • (String)


1099
1100
1101
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1099

def nfs_share_id
  @nfs_share_id
end

#stateString

The state of the NFS share. Corresponds to the JSON property state

Returns:

  • (String)


1104
1105
1106
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1104

def state
  @state
end

#volumeString

The volume containing the share. Corresponds to the JSON property volume

Returns:

  • (String)


1109
1110
1111
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1109

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1116
1117
1118
1119
1120
1121
1122
1123
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1116

def update!(**args)
  @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @nfs_share_id = args[:nfs_share_id] if args.key?(:nfs_share_id)
  @state = args[:state] if args.key?(:state)
  @volume = args[:volume] if args.key?(:volume)
end