Class: Google::Apis::FileV1beta1::Share

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

Overview

A Filestore share.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Share

Returns a new instance of Share.



1741
1742
1743
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1741

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

Instance Attribute Details

#backupString

Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/project_id/locations/location_id/ backups/backup_id. Empty, if the Share is created from scratch and not restored from a backup. Corresponds to the JSON property backup

Returns:

  • (String)


1695
1696
1697
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1695

def backup
  @backup
end

#capacity_gbFixnum

File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0. Corresponds to the JSON property capacityGb

Returns:

  • (Fixnum)


1701
1702
1703
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1701

def capacity_gb
  @capacity_gb
end

#create_timeString

Output only. The time when the share was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1706
1707
1708
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1706

def create_time
  @create_time
end

#descriptionString

A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected. Corresponds to the JSON property description

Returns:

  • (String)


1712
1713
1714
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1712

def description
  @description
end

#labelsHash<String,String>

Resource labels to represent user provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1717
1718
1719
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1717

def labels
  @labels
end

#mount_nameString

The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores. Corresponds to the JSON property mountName

Returns:

  • (String)


1723
1724
1725
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1723

def mount_name
  @mount_name
end

#nameString

Output only. The resource name of the share, in the format projects/ project_id/locations/location_id/instances/instance_id/shares/share_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1729
1730
1731
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1729

def name
  @name
end

#nfs_export_optionsArray<Google::Apis::FileV1beta1::NfsExportOptions>

Nfs Export Options. There is a limit of 10 export options per file share. Corresponds to the JSON property nfsExportOptions



1734
1735
1736
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1734

def nfs_export_options
  @nfs_export_options
end

#stateString

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

Returns:

  • (String)


1739
1740
1741
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1739

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1746

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @mount_name = args[:mount_name] if args.key?(:mount_name)
  @name = args[:name] if args.key?(:name)
  @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
  @state = args[:state] if args.key?(:state)
end