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.



1119
1120
1121
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1119

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



1092
1093
1094
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1092

def allowed_clients
  @allowed_clients
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1097
1098
1099
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1097

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1102
1103
1104
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1102

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)


1107
1108
1109
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1107

def nfs_share_id
  @nfs_share_id
end

#stateString

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

Returns:

  • (String)


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

def state
  @state
end

#volumeString

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

Returns:

  • (String)


1117
1118
1119
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1117

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1124
1125
1126
1127
1128
1129
1130
1131
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1124

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