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.



1066
1067
1068
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1066

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



1039
1040
1041
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1039

def allowed_clients
  @allowed_clients
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1044
1045
1046
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1044

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1049
1050
1051
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1049

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)


1054
1055
1056
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1054

def nfs_share_id
  @nfs_share_id
end

#stateString

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

Returns:

  • (String)


1059
1060
1061
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1059

def state
  @state
end

#volumeString

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

Returns:

  • (String)


1064
1065
1066
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1064

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1071
1072
1073
1074
1075
1076
1077
1078
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1071

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