Reference documentation and code samples for the Google Cloud Filestore V1 Client class FileShareConfig.
File share configuration for the instance.
Generated from protobuf messagegoogle.cloud.filestore.v1.FileShareConfig
Namespace
Google \ Cloud \ Filestore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores[a-z0-9_]. Must start with a letter. Immutable.
↳ capacity_gb
int|string
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
↳ source_backup
string
The resource name of the backup, in the formatprojects/{project_number}/locations/{location_id}/backups/{backup_id}, that this file share has been restored from.
Nfs Export Options. There is a limit of 10 export options per file share.
getName
Required. The name of the file share. Must use 1-16 characters for the
basic service tier and 1-63 characters for all other service tiers.
Must use lowercase letters, numbers, or underscores[a-z0-9_]. Must
start with a letter. Immutable.
Returns
Type
Description
string
setName
Required. The name of the file share. Must use 1-16 characters for the
basic service tier and 1-63 characters for all other service tiers.
Must use lowercase letters, numbers, or underscores[a-z0-9_]. Must
start with a letter. Immutable.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCapacityGb
File share capacity in gigabytes (GB).
Filestore defines 1 GB as 1024^3 bytes.
Returns
Type
Description
int|string
setCapacityGb
File share capacity in gigabytes (GB).
Filestore defines 1 GB as 1024^3 bytes.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getSourceBackup
The resource name of the backup, in the formatprojects/{project_number}/locations/{location_id}/backups/{backup_id},
that this file share has been restored from.
Returns
Type
Description
string
hasSourceBackup
setSourceBackup
The resource name of the backup, in the formatprojects/{project_number}/locations/{location_id}/backups/{backup_id},
that this file share has been restored from.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNfsExportOptions
Nfs Export Options.
There is a limit of 10 export options per file share.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Filestore V1 Client - Class FileShareConfig (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-filestore/latest/V1.FileShareConfig)\n- [2.1.0](/php/docs/reference/cloud-filestore/2.1.0/V1.FileShareConfig)\n- [2.0.4](/php/docs/reference/cloud-filestore/2.0.4/V1.FileShareConfig)\n- [1.5.7](/php/docs/reference/cloud-filestore/1.5.7/V1.FileShareConfig)\n- [1.4.0](/php/docs/reference/cloud-filestore/1.4.0/V1.FileShareConfig)\n- [1.3.2](/php/docs/reference/cloud-filestore/1.3.2/V1.FileShareConfig)\n- [1.2.1](/php/docs/reference/cloud-filestore/1.2.1/V1.FileShareConfig)\n- [1.1.2](/php/docs/reference/cloud-filestore/1.1.2/V1.FileShareConfig)\n- [1.0.3](/php/docs/reference/cloud-filestore/1.0.3/V1.FileShareConfig) \nReference documentation and code samples for the Google Cloud Filestore V1 Client class FileShareConfig.\n\nFile share configuration for the instance.\n\nGenerated from protobuf message `google.cloud.filestore.v1.FileShareConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Filestore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the file share. Must use 1-16 characters for the\nbasic service tier and 1-63 characters for all other service tiers.\n\nMust use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must\nstart with a letter. Immutable.\n\n### setName\n\nRequired. The name of the file share. Must use 1-16 characters for the\nbasic service tier and 1-63 characters for all other service tiers.\n\nMust use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must\nstart with a letter. Immutable.\n\n### getCapacityGb\n\nFile share capacity in gigabytes (GB).\n\nFilestore defines 1 GB as 1024\\^3 bytes.\n\n### setCapacityGb\n\nFile share capacity in gigabytes (GB).\n\nFilestore defines 1 GB as 1024\\^3 bytes.\n\n### getSourceBackup\n\nThe resource name of the backup, in the format\n`projects/{project_number}/locations/{location_id}/backups/{backup_id}`,\nthat this file share has been restored from.\n\n### hasSourceBackup\n\n### setSourceBackup\n\nThe resource name of the backup, in the format\n`projects/{project_number}/locations/{location_id}/backups/{backup_id}`,\nthat this file share has been restored from.\n\n### getNfsExportOptions\n\nNfs Export Options.\n\nThere is a limit of 10 export options per file share.\n\n### setNfsExportOptions\n\nNfs Export Options.\n\nThere is a limit of 10 export options per file share.\n\n### getSource"]]