📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/AIPlatformNotebooks
☀️ Light Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AcceleratorConfig.php
▶ Open 📄 View Source
🐘 AccessConfig.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 BootDisk.php
▶ Open 📄 View Source
🐘 BootImage.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CheckAuthorizationRequest.php
▶ Open 📄 View Source
🐘 CheckAuthorizationResponse.php
▶ Open 📄 View Source
🐘 CheckInstanceUpgradabilityResponse.php
▶ Open 📄 View Source
🐘 ConfidentialInstanceConfig.php
▶ Open 📄 View Source
🐘 Config.php
▶ Open 📄 View Source
🐘 ContainerImage.php
▶ Open 📄 View Source
🐘 DataDisk.php
▶ Open 📄 View Source
🐘 DataprocParameters.php
▶ Open 📄 View Source
🐘 DefaultValues.php
▶ Open 📄 View Source
🐘 DiagnoseInstanceRequest.php
▶ Open 📄 View Source
🐘 DiagnoseRuntimeRequest.php
▶ Open 📄 View Source
🐘 DiagnosticConfig.php
▶ Open 📄 View Source
🐘 Disk.php
▶ Open 📄 View Source
🐘 EncryptionConfig.php
▶ Open 📄 View Source
🐘 Environment.php
▶ Open 📄 View Source
🐘 Event.php
▶ Open 📄 View Source
🐘 Execution.php
▶ Open 📄 View Source
🐘 ExecutionTemplate.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 GPUDriverConfig.php
▶ Open 📄 View Source
🐘 GceSetup.php
▶ Open 📄 View Source
🐘 GenerateAccessTokenRequest.php
▶ Open 📄 View Source
🐘 GenerateAccessTokenResponse.php
▶ Open 📄 View Source
🐘 GetInstanceHealthResponse.php
▶ Open 📄 View Source
🐘 GuestOsFeature.php
▶ Open 📄 View Source
🐘 ImageRelease.php
▶ Open 📄 View Source
🐘 Instance.php
▶ Open 📄 View Source
🐘 InstanceConfig.php
▶ Open 📄 View Source
🐘 IsInstanceUpgradeableResponse.php
▶ Open 📄 View Source
🐘 ListEnvironmentsResponse.php
▶ Open 📄 View Source
🐘 ListExecutionsResponse.php
▶ Open 📄 View Source
🐘 ListInstancesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListRuntimesResponse.php
▶ Open 📄 View Source
🐘 ListSchedulesResponse.php
▶ Open 📄 View Source
🐘 LocalDisk.php
▶ Open 📄 View Source
🐘 LocalDiskInitializeParams.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 NetworkInterface.php
▶ Open 📄 View Source
🐘 NotebooksEmpty.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 RefreshRuntimeTokenInternalRequest.php
▶ Open 📄 View Source
🐘 RefreshRuntimeTokenInternalResponse.php
▶ Open 📄 View Source
🐘 RegisterInstanceRequest.php
▶ Open 📄 View Source
🐘 ReportInstanceEventRequest.php
▶ Open 📄 View Source
🐘 ReportInstanceInfoRequest.php
▶ Open 📄 View Source
🐘 ReportInstanceInfoSystemRequest.php
▶ Open 📄 View Source
🐘 ReportRuntimeEventRequest.php
▶ Open 📄 View Source
🐘 ReservationAffinity.php
▶ Open 📄 View Source
🐘 ResetInstanceRequest.php
▶ Open 📄 View Source
🐘 ResetRuntimeRequest.php
▶ Open 📄 View Source
🐘 ResizeDiskRequest.php
▶ Open 📄 View Source
🐘 RestoreInstanceRequest.php
▶ Open 📄 View Source
🐘 RollbackInstanceRequest.php
▶ Open 📄 View Source
🐘 Runtime.php
▶ Open 📄 View Source
🐘 RuntimeAcceleratorConfig.php
▶ Open 📄 View Source
🐘 RuntimeAccessConfig.php
▶ Open 📄 View Source
🐘 RuntimeGuestOsFeature.php
▶ Open 📄 View Source
🐘 RuntimeMetrics.php
▶ Open 📄 View Source
🐘 RuntimeShieldedInstanceConfig.php
▶ Open 📄 View Source
🐘 RuntimeSoftwareConfig.php
▶ Open 📄 View Source
🐘 Schedule.php
▶ Open 📄 View Source
🐘 SchedulerAcceleratorConfig.php
▶ Open 📄 View Source
🐘 ServiceAccount.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 SetInstanceAcceleratorRequest.php
▶ Open 📄 View Source
🐘 SetInstanceLabelsRequest.php
▶ Open 📄 View Source
🐘 SetInstanceMachineTypeRequest.php
▶ Open 📄 View Source
🐘 ShieldedInstanceConfig.php
▶ Open 📄 View Source
🐘 Snapshot.php
▶ Open 📄 View Source
🐘 StartInstanceRequest.php
▶ Open 📄 View Source
🐘 StartRuntimeRequest.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StopInstanceRequest.php
▶ Open 📄 View Source
🐘 StopRuntimeRequest.php
▶ Open 📄 View Source
🐘 SupportedValues.php
▶ Open 📄 View Source
🐘 SwitchRuntimeRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TriggerScheduleRequest.php
▶ Open 📄 View Source
🐘 UpdateInstanceConfigRequest.php
▶ Open 📄 View Source
🐘 UpdateInstanceMetadataItemsRequest.php
▶ Open 📄 View Source
🐘 UpdateInstanceMetadataItemsResponse.php
▶ Open 📄 View Source
🐘 UpdateShieldedInstanceConfigRequest.php
▶ Open 📄 View Source
🐘 UpgradeHistoryEntry.php
▶ Open 📄 View Source
🐘 UpgradeInstanceInternalRequest.php
▶ Open 📄 View Source
🐘 UpgradeInstanceRequest.php
▶ Open 📄 View Source
🐘 UpgradeInstanceSystemRequest.php
▶ Open 📄 View Source
🐘 UpgradeRuntimeRequest.php
▶ Open 📄 View Source
🐘 VertexAIParameters.php
▶ Open 📄 View Source
🐘 VirtualMachine.php
▶ Open 📄 View Source
🐘 VirtualMachineConfig.php
▶ Open 📄 View Source
🐘 VmImage.php
▶ Open 📄 View Source

📄 Source: DataDisk.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\AIPlatformNotebooks;

class DataDisk extends \Google\Collection
{
  /**
   * Disk encryption is not specified.
   */
  public const DISK_ENCRYPTION_DISK_ENCRYPTION_UNSPECIFIED = 'DISK_ENCRYPTION_UNSPECIFIED';
  /**
   * Use Google managed encryption keys to encrypt the boot disk.
   */
  public const DISK_ENCRYPTION_GMEK = 'GMEK';
  /**
   * Use customer managed encryption keys to encrypt the boot disk.
   */
  public const DISK_ENCRYPTION_CMEK = 'CMEK';
  /**
   * Disk type not set.
   */
  public const DISK_TYPE_DISK_TYPE_UNSPECIFIED = 'DISK_TYPE_UNSPECIFIED';
  /**
   * Standard persistent disk type.
   */
  public const DISK_TYPE_PD_STANDARD = 'PD_STANDARD';
  /**
   * SSD persistent disk type.
   */
  public const DISK_TYPE_PD_SSD = 'PD_SSD';
  /**
   * Balanced persistent disk type.
   */
  public const DISK_TYPE_PD_BALANCED = 'PD_BALANCED';
  /**
   * Extreme persistent disk type.
   */
  public const DISK_TYPE_PD_EXTREME = 'PD_EXTREME';
  /**
   * Represents the Hyperdisk Balanced persistent disk type. Can be used as a
   * boot disk or data disk.
   */
  public const DISK_TYPE_HYPERDISK_BALANCED = 'HYPERDISK_BALANCED';
  /**
   * Represents the Hyperdisk Extreme persistent disk type. Can only be used as
   * a data disk.
   */
  public const DISK_TYPE_HYPERDISK_EXTREME = 'HYPERDISK_EXTREME';
  /**
   * Represents the Hyperdisk Throughput persistent disk type. Can only be used
   * as a data disk.
   */
  public const DISK_TYPE_HYPERDISK_THROUGHPUT = 'HYPERDISK_THROUGHPUT';
  /**
   * Represents the Hyperdisk Balanced High Availability persistent disk type.
   * Can be used as a boot disk or data disk.
   */
  public const DISK_TYPE_HYPERDISK_BALANCED_HIGH_AVAILABILITY = 'HYPERDISK_BALANCED_HIGH_AVAILABILITY';
  /**
   * Represents the Hyperdisk ML persistent disk type. Can be used as a boot
   * disk or data disk.
   */
  public const DISK_TYPE_HYPERDISK_ML = 'HYPERDISK_ML';
  protected $collection_key = 'resourcePolicies';
  /**
   * Optional. Input only. Disk encryption method used on the boot and data
   * disks, defaults to GMEK.
   *
   * @var string
   */
  public $diskEncryption;
  /**
   * Optional. The size of the disk in GB attached to this VM instance, up to a
   * maximum of 64000 GB (64 TB). If not specified, this defaults to 100.
   *
   * @var string
   */
  public $diskSizeGb;
  /**
   * Optional. Input only. Indicates the type of the disk.
   *
   * @var string
   */
  public $diskType;
  /**
   * Optional. Input only. The KMS key used to encrypt the disks, only
   * applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locat
   * ions/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more
   * about using your own encryption keys.
   *
   * @var string
   */
  public $kmsKey;
  /**
   * Optional. The resource policies to apply to the data disk.
   *
   * @var string[]
   */
  public $resourcePolicies;

  /**
   * Optional. Input only. Disk encryption method used on the boot and data
   * disks, defaults to GMEK.
   *
   * Accepted values: DISK_ENCRYPTION_UNSPECIFIED, GMEK, CMEK
   *
   * @param self::DISK_ENCRYPTION_* $diskEncryption
   */
  public function setDiskEncryption($diskEncryption)
  {
    $this->diskEncryption = $diskEncryption;
  }
  /**
   * @return self::DISK_ENCRYPTION_*
   */
  public function getDiskEncryption()
  {
    return $this->diskEncryption;
  }
  /**
   * Optional. The size of the disk in GB attached to this VM instance, up to a
   * maximum of 64000 GB (64 TB). If not specified, this defaults to 100.
   *
   * @param string $diskSizeGb
   */
  public function setDiskSizeGb($diskSizeGb)
  {
    $this->diskSizeGb = $diskSizeGb;
  }
  /**
   * @return string
   */
  public function getDiskSizeGb()
  {
    return $this->diskSizeGb;
  }
  /**
   * Optional. Input only. Indicates the type of the disk.
   *
   * Accepted values: DISK_TYPE_UNSPECIFIED, PD_STANDARD, PD_SSD, PD_BALANCED,
   * PD_EXTREME, HYPERDISK_BALANCED, HYPERDISK_EXTREME, HYPERDISK_THROUGHPUT,
   * HYPERDISK_BALANCED_HIGH_AVAILABILITY, HYPERDISK_ML
   *
   * @param self::DISK_TYPE_* $diskType
   */
  public function setDiskType($diskType)
  {
    $this->diskType = $diskType;
  }
  /**
   * @return self::DISK_TYPE_*
   */
  public function getDiskType()
  {
    return $this->diskType;
  }
  /**
   * Optional. Input only. The KMS key used to encrypt the disks, only
   * applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locat
   * ions/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more
   * about using your own encryption keys.
   *
   * @param string $kmsKey
   */
  public function setKmsKey($kmsKey)
  {
    $this->kmsKey = $kmsKey;
  }
  /**
   * @return string
   */
  public function getKmsKey()
  {
    return $this->kmsKey;
  }
  /**
   * Optional. The resource policies to apply to the data disk.
   *
   * @param string[] $resourcePolicies
   */
  public function setResourcePolicies($resourcePolicies)
  {
    $this->resourcePolicies = $resourcePolicies;
  }
  /**
   * @return string[]
   */
  public function getResourcePolicies()
  {
    return $this->resourcePolicies;
  }
}

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