📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/CloudFilestore
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Backup.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 DailyCycle.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DenyMaintenancePeriod.php
▶ Open 📄 View Source
🐘 DirectoryServicesConfig.php
▶ Open 📄 View Source
🐘 FileEmpty.php
▶ Open 📄 View Source
🐘 FileShareConfig.php
▶ Open 📄 View Source
🐘 FixedIOPS.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1Instance.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion.php
▶ Open 📄 View Source
🐘 GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata.php
▶ Open 📄 View Source
🐘 IOPSPerGB.php
▶ Open 📄 View Source
🐘 IOPSPerTB.php
▶ Open 📄 View Source
🐘 Instance.php
▶ Open 📄 View Source
🐘 LdapConfig.php
▶ Open 📄 View Source
🐘 ListBackupsResponse.php
▶ Open 📄 View Source
🐘 ListInstancesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListSnapshotsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 MaintenancePolicy.php
▶ Open 📄 View Source
🐘 MaintenanceWindow.php
▶ Open 📄 View Source
🐘 NetworkConfig.php
▶ Open 📄 View Source
🐘 NfsExportOptions.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 PauseReplicaRequest.php
▶ Open 📄 View Source
🐘 PerformanceConfig.php
▶ Open 📄 View Source
🐘 PerformanceLimits.php
▶ Open 📄 View Source
🐘 PromoteReplicaRequest.php
▶ Open 📄 View Source
🐘 PscConfig.php
▶ Open 📄 View Source
🐘 ReplicaConfig.php
▶ Open 📄 View Source
🐘 Replication.php
▶ Open 📄 View Source
🐘 RestoreInstanceRequest.php
▶ Open 📄 View Source
🐘 ResumeReplicaRequest.php
▶ Open 📄 View Source
🐘 RevertInstanceRequest.php
▶ Open 📄 View Source
🐘 Schedule.php
▶ Open 📄 View Source
🐘 Snapshot.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 UpdatePolicy.php
▶ Open 📄 View Source
🐘 WeeklyCycle.php
▶ Open 📄 View Source

📄 Source: NfsExportOptions.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\CloudFilestore;

class NfsExportOptions extends \Google\Collection
{
  /**
   * AccessMode not set.
   */
  public const ACCESS_MODE_ACCESS_MODE_UNSPECIFIED = 'ACCESS_MODE_UNSPECIFIED';
  /**
   * The client can only read the file share.
   */
  public const ACCESS_MODE_READ_ONLY = 'READ_ONLY';
  /**
   * The client can read and write the file share (default).
   */
  public const ACCESS_MODE_READ_WRITE = 'READ_WRITE';
  /**
   * SquashMode not set.
   */
  public const SQUASH_MODE_SQUASH_MODE_UNSPECIFIED = 'SQUASH_MODE_UNSPECIFIED';
  /**
   * The Root user has root access to the file share (default).
   */
  public const SQUASH_MODE_NO_ROOT_SQUASH = 'NO_ROOT_SQUASH';
  /**
   * The Root user has squashed access to the anonymous uid/gid.
   */
  public const SQUASH_MODE_ROOT_SQUASH = 'ROOT_SQUASH';
  protected $collection_key = 'ipRanges';
  /**
   * Either READ_ONLY, for allowing only read requests on the exported
   * directory, or READ_WRITE, for allowing both read and write requests. The
   * default is READ_WRITE.
   *
   * @var string
   */
  public $accessMode;
  /**
   * An integer representing the anonymous group id with a default value of
   * 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error
   * will be returned if this field is specified for other squash_mode settings.
   *
   * @var string
   */
  public $anonGid;
  /**
   * An integer representing the anonymous user id with a default value of
   * 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error
   * will be returned if this field is specified for other squash_mode settings.
   *
   * @var string
   */
  public $anonUid;
  /**
   * List of either an IPv4 addresses in the format
   * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
   * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file
   * share. Overlapping IP ranges are not allowed, both within and across
   * NfsExportOptions. An error will be returned. The limit is 64 IP
   * ranges/addresses for each FileShareConfig among all NfsExportOptions.
   *
   * @var string[]
   */
  public $ipRanges;
  /**
   * Optional. The source VPC network for ip_ranges. Required for instances
   * using Private Service Connect, optional otherwise. If provided, must be the
   * same network specified in the `NetworkConfig.network` field.
   *
   * @var string
   */
  public $network;
  /**
   * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
   * or ROOT_SQUASH, for not allowing root access. The default is
   * NO_ROOT_SQUASH.
   *
   * @var string
   */
  public $squashMode;

  /**
   * Either READ_ONLY, for allowing only read requests on the exported
   * directory, or READ_WRITE, for allowing both read and write requests. The
   * default is READ_WRITE.
   *
   * Accepted values: ACCESS_MODE_UNSPECIFIED, READ_ONLY, READ_WRITE
   *
   * @param self::ACCESS_MODE_* $accessMode
   */
  public function setAccessMode($accessMode)
  {
    $this->accessMode = $accessMode;
  }
  /**
   * @return self::ACCESS_MODE_*
   */
  public function getAccessMode()
  {
    return $this->accessMode;
  }
  /**
   * An integer representing the anonymous group id with a default value of
   * 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error
   * will be returned if this field is specified for other squash_mode settings.
   *
   * @param string $anonGid
   */
  public function setAnonGid($anonGid)
  {
    $this->anonGid = $anonGid;
  }
  /**
   * @return string
   */
  public function getAnonGid()
  {
    return $this->anonGid;
  }
  /**
   * An integer representing the anonymous user id with a default value of
   * 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error
   * will be returned if this field is specified for other squash_mode settings.
   *
   * @param string $anonUid
   */
  public function setAnonUid($anonUid)
  {
    $this->anonUid = $anonUid;
  }
  /**
   * @return string
   */
  public function getAnonUid()
  {
    return $this->anonUid;
  }
  /**
   * List of either an IPv4 addresses in the format
   * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
   * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file
   * share. Overlapping IP ranges are not allowed, both within and across
   * NfsExportOptions. An error will be returned. The limit is 64 IP
   * ranges/addresses for each FileShareConfig among all NfsExportOptions.
   *
   * @param string[] $ipRanges
   */
  public function setIpRanges($ipRanges)
  {
    $this->ipRanges = $ipRanges;
  }
  /**
   * @return string[]
   */
  public function getIpRanges()
  {
    return $this->ipRanges;
  }
  /**
   * Optional. The source VPC network for ip_ranges. Required for instances
   * using Private Service Connect, optional otherwise. If provided, must be the
   * same network specified in the `NetworkConfig.network` field.
   *
   * @param string $network
   */
  public function setNetwork($network)
  {
    $this->network = $network;
  }
  /**
   * @return string
   */
  public function getNetwork()
  {
    return $this->network;
  }
  /**
   * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
   * or ROOT_SQUASH, for not allowing root access. The default is
   * NO_ROOT_SQUASH.
   *
   * Accepted values: SQUASH_MODE_UNSPECIFIED, NO_ROOT_SQUASH, ROOT_SQUASH
   *
   * @param self::SQUASH_MODE_* $squashMode
   */
  public function setSquashMode($squashMode)
  {
    $this->squashMode = $squashMode;
  }
  /**
   * @return self::SQUASH_MODE_*
   */
  public function getSquashMode()
  {
    return $this->squashMode;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NfsExportOptions::class, 'Google_Service_CloudFilestore_NfsExportOptions');
← Back