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.



1642
1643
1644
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1642

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



1590
1591
1592
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1590

def allowed_clients
  @allowed_clients
end

#idString

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future. Corresponds to the JSON property id

Returns:

  • (String)


1596
1597
1598
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1596

def id
  @id
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1601
1602
1603
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1601

def labels
  @labels
end

#nameString

Immutable. The name of the NFS share. Corresponds to the JSON property name

Returns:

  • (String)


1606
1607
1608
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1606

def name
  @name
end

#nfs_share_idString

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead. Corresponds to the JSON property nfsShareId

Returns:

  • (String)


1612
1613
1614
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1612

def nfs_share_id
  @nfs_share_id
end

#podString

Immutable. Pod name. Pod is an independent part of infrastructure. NFSShare can only be connected to the assets (networks, instances) allocated in the same pod. Corresponds to the JSON property pod

Returns:

  • (String)


1619
1620
1621
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1619

def pod
  @pod
end

#requested_size_gibFixnum

The requested size, in GiB. Corresponds to the JSON property requestedSizeGib

Returns:

  • (Fixnum)


1624
1625
1626
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1624

def requested_size_gib
  @requested_size_gib
end

#stateString

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

Returns:

  • (String)


1629
1630
1631
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1629

def state
  @state
end

#storage_typeString

Immutable. The storage type of the underlying volume. Corresponds to the JSON property storageType

Returns:

  • (String)


1634
1635
1636
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1634

def storage_type
  @storage_type
end

#volumeString

Output only. The underlying volume of the share. Created automatically during provisioning. Corresponds to the JSON property volume

Returns:

  • (String)


1640
1641
1642
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1640

def volume
  @volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1647

def update!(**args)
  @allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients)
  @id = args[:id] if args.key?(:id)
  @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)
  @pod = args[:pod] if args.key?(:pod)
  @requested_size_gib = args[:requested_size_gib] if args.key?(:requested_size_gib)
  @state = args[:state] if args.key?(:state)
  @storage_type = args[:storage_type] if args.key?(:storage_type)
  @volume = args[:volume] if args.key?(:volume)
end