Class: Google::Apis::BaremetalsolutionV2::NfsShare
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NfsShare
- 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
-
#allowed_clients ⇒ Array<Google::Apis::BaremetalsolutionV2::AllowedClient>
List of allowed access points.
-
#id ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
Immutable.
-
#nfs_share_id ⇒ String
Output only.
-
#pod ⇒ String
Immutable.
-
#requested_size_gib ⇒ Fixnum
The requested size, in GiB.
-
#state ⇒ String
Output only.
-
#storage_type ⇒ String
Immutable.
-
#volume ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NfsShare
constructor
A new instance of NfsShare.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NfsShare
Returns a new instance of NfsShare.
1651 1652 1653 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_clients ⇒ Array<Google::Apis::BaremetalsolutionV2::AllowedClient>
List of allowed access points.
Corresponds to the JSON property allowedClients
1599 1600 1601 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1599 def allowed_clients @allowed_clients end |
#id ⇒ String
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
1605 1606 1607 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1605 def id @id end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1610 1611 1612 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1610 def labels @labels end |
#name ⇒ String
Immutable. The name of the NFS share.
Corresponds to the JSON property name
1615 1616 1617 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1615 def name @name end |
#nfs_share_id ⇒ String
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
1621 1622 1623 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1621 def nfs_share_id @nfs_share_id end |
#pod ⇒ String
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
1628 1629 1630 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1628 def pod @pod end |
#requested_size_gib ⇒ Fixnum
The requested size, in GiB.
Corresponds to the JSON property requestedSizeGib
1633 1634 1635 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1633 def requested_size_gib @requested_size_gib end |
#state ⇒ String
Output only. The state of the NFS share.
Corresponds to the JSON property state
1638 1639 1640 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1638 def state @state end |
#storage_type ⇒ String
Immutable. The storage type of the underlying volume.
Corresponds to the JSON property storageType
1643 1644 1645 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1643 def storage_type @storage_type end |
#volume ⇒ String
Output only. The underlying volume of the share. Created automatically during
provisioning.
Corresponds to the JSON property volume
1649 1650 1651 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1649 def volume @volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1656 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 |