📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 ApplyParametersRequest.php
▶ Open 📄 View Source
🐘 AssetLocation.php
▶ Open 📄 View Source
🐘 BlobstoreLocation.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CloudAsset.php
▶ Open 📄 View Source
🐘 CloudAssetComposition.php
▶ Open 📄 View Source
🐘 DailyCycle.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DenyMaintenancePeriod.php
▶ Open 📄 View Source
🐘 DirectLocationAssignment.php
▶ Open 📄 View Source
🐘 ExtraParameter.php
▶ Open 📄 View Source
🐘 GetTagsRequest.php
▶ Open 📄 View Source
🐘 GetTagsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudMemcacheV1LocationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudMemcacheV1MaintenancePolicy.php
▶ Open 📄 View Source
🐘 GoogleCloudMemcacheV1OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudMemcacheV1UpgradeInstanceRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudMemcacheV1ZoneMetadata.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
🐘 Instance.php
▶ Open 📄 View Source
🐘 InstanceMessage.php
▶ Open 📄 View Source
🐘 IsolationExpectations.php
▶ Open 📄 View Source
🐘 ListInstancesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LocationAssignment.php
▶ Open 📄 View Source
🐘 LocationData.php
▶ Open 📄 View Source
🐘 LocationMetadata.php
▶ Open 📄 View Source
🐘 MaintenancePolicy.php
▶ Open 📄 View Source
🐘 MaintenanceSchedule.php
▶ Open 📄 View Source
🐘 MaintenanceWindow.php
▶ Open 📄 View Source
🐘 MemcacheEmpty.php
▶ Open 📄 View Source
🐘 MemcacheParameters.php
▶ Open 📄 View Source
🐘 Node.php
▶ Open 📄 View Source
🐘 NodeConfig.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 PlacerLocation.php
▶ Open 📄 View Source
🐘 RegionalMigDistributionPolicy.php
▶ Open 📄 View Source
🐘 RequirementOverride.php
▶ Open 📄 View Source
🐘 RescheduleMaintenanceRequest.php
▶ Open 📄 View Source
🐘 Schedule.php
▶ Open 📄 View Source
🐘 SetTagsRequest.php
▶ Open 📄 View Source
🐘 SetTagsResponse.php
▶ Open 📄 View Source
🐘 SpannerLocation.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TenantProjectProxy.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 UpdateParametersRequest.php
▶ Open 📄 View Source
🐘 UpdatePolicy.php
▶ Open 📄 View Source
🐘 WeeklyCycle.php
▶ Open 📄 View Source
🐘 WeeklyMaintenanceWindow.php
▶ Open 📄 View Source
🐘 ZoneConfiguration.php
▶ Open 📄 View Source
🐘 ZoneMetadata.php
▶ Open 📄 View Source

📄 Source: Instance.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\CloudMemorystoreforMemcached;

class Instance extends \Google\Collection
{
  /**
   * Memcache version is not specified by customer
   */
  public const MEMCACHE_VERSION_MEMCACHE_VERSION_UNSPECIFIED = 'MEMCACHE_VERSION_UNSPECIFIED';
  /**
   * Memcached 1.5 version.
   */
  public const MEMCACHE_VERSION_MEMCACHE_1_5 = 'MEMCACHE_1_5';
  /**
   * Memcached 1.6.15 version.
   */
  public const MEMCACHE_VERSION_MEMCACHE_1_6_15 = 'MEMCACHE_1_6_15';
  /**
   * State not set.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * Memcached instance is being created.
   */
  public const STATE_CREATING = 'CREATING';
  /**
   * Memcached instance has been created and ready to be used.
   */
  public const STATE_READY = 'READY';
  /**
   * Memcached instance is updating configuration such as maintenance policy and
   * schedule.
   */
  public const STATE_UPDATING = 'UPDATING';
  /**
   * Memcached instance is being deleted.
   */
  public const STATE_DELETING = 'DELETING';
  /**
   * Memcached instance is going through maintenance, e.g. data plane rollout.
   */
  public const STATE_PERFORMING_MAINTENANCE = 'PERFORMING_MAINTENANCE';
  /**
   * Memcached instance is undergoing memcached engine version upgrade.
   */
  public const STATE_MEMCACHE_VERSION_UPGRADING = 'MEMCACHE_VERSION_UPGRADING';
  protected $collection_key = 'zones';
  /**
   * The full name of the Google Compute Engine
   * [network](/compute/docs/networks-and-firewalls#networks) to which the
   * instance is connected. If left unspecified, the `default` network will be
   * used.
   *
   * @var string
   */
  public $authorizedNetwork;
  /**
   * Output only. The available maintenance versions that can be applied to the
   * instance.
   *
   * @var string[]
   */
  public $availableMaintenanceVersions;
  /**
   * Output only. The time the instance was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * Output only. Endpoint for the Discovery API.
   *
   * @var string
   */
  public $discoveryEndpoint;
  /**
   * User provided name for the instance, which is only used for display
   * purposes. Cannot be more than 80 characters.
   *
   * @var string
   */
  public $displayName;
  /**
   * Output only. The effective maintenance version of the instance.
   *
   * @var string
   */
  public $effectiveMaintenanceVersion;
  protected $instanceMessagesType = InstanceMessage::class;
  protected $instanceMessagesDataType = 'array';
  /**
   * Resource labels to represent user-provided metadata. Refer to cloud
   * documentation on labels for more details.
   * https://cloud.google.com/compute/docs/labeling-resources
   *
   * @var string[]
   */
  public $labels;
  protected $maintenancePolicyType = GoogleCloudMemcacheV1MaintenancePolicy::class;
  protected $maintenancePolicyDataType = '';
  protected $maintenanceScheduleType = MaintenanceSchedule::class;
  protected $maintenanceScheduleDataType = '';
  /**
   * Optional. Last self service update maintenance version triggered by the
   * customer. If it is empty, it means that the maintenance version is not set
   * by the user.
   *
   * @var string
   */
  public $maintenanceVersion;
  /**
   * Output only. The full version of memcached server running on this instance.
   * System automatically determines the full memcached version for an instance
   * based on the input MemcacheVersion. The full version format will be
   * "memcached-1.5.16".
   *
   * @var string
   */
  public $memcacheFullVersion;
  protected $memcacheNodesType = Node::class;
  protected $memcacheNodesDataType = 'array';
  /**
   * The major version of Memcached software. If not provided, latest supported
   * version will be used. Currently the latest supported major version is
   * `MEMCACHE_1_5`. The minor version will be automatically determined by our
   * system based on the latest supported minor version.
   *
   * @var string
   */
  public $memcacheVersion;
  /**
   * Required. Unique name of the resource in this scope including project and
   * location using the form:
   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note: Memcached instances are managed and addressed at the regional level
   * so `location_id` here refers to a Google Cloud region; however, users may
   * choose which zones Memcached nodes should be provisioned in within an
   * instance. Refer to zones field for more details.
   *
   * @var string
   */
  public $name;
  protected $nodeConfigType = NodeConfig::class;
  protected $nodeConfigDataType = '';
  /**
   * Required. Number of nodes in the Memcached instance.
   *
   * @var int
   */
  public $nodeCount;
  protected $parametersType = MemcacheParameters::class;
  protected $parametersDataType = '';
  /**
   * Optional. Contains the id of allocated IP address ranges associated with
   * the private service access connection for example, "test-default"
   * associated with IP range 10.0.0.0/29.
   *
   * @var string[]
   */
  public $reservedIpRangeId;
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzi;
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzs;
  /**
   * Output only. The state of this Memcached instance.
   *
   * @var string
   */
  public $state;
  /**
   * Output only. The time the instance was updated.
   *
   * @var string
   */
  public $updateTime;
  /**
   * Zones in which Memcached nodes should be provisioned. Memcached nodes will
   * be equally distributed across these zones. If not provided, the service
   * will by default create nodes in all zones in the region for the instance.
   *
   * @var string[]
   */
  public $zones;

  /**
   * The full name of the Google Compute Engine
   * [network](/compute/docs/networks-and-firewalls#networks) to which the
   * instance is connected. If left unspecified, the `default` network will be
   * used.
   *
   * @param string $authorizedNetwork
   */
  public function setAuthorizedNetwork($authorizedNetwork)
  {
    $this->authorizedNetwork = $authorizedNetwork;
  }
  /**
   * @return string
   */
  public function getAuthorizedNetwork()
  {
    return $this->authorizedNetwork;
  }
  /**
   * Output only. The available maintenance versions that can be applied to the
   * instance.
   *
   * @param string[] $availableMaintenanceVersions
   */
  public function setAvailableMaintenanceVersions($availableMaintenanceVersions)
  {
    $this->availableMaintenanceVersions = $availableMaintenanceVersions;
  }
  /**
   * @return string[]
   */
  public function getAvailableMaintenanceVersions()
  {
    return $this->availableMaintenanceVersions;
  }
  /**
   * Output only. The time the instance was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Output only. Endpoint for the Discovery API.
   *
   * @param string $discoveryEndpoint
   */
  public function setDiscoveryEndpoint($discoveryEndpoint)
  {
    $this->discoveryEndpoint = $discoveryEndpoint;
  }
  /**
   * @return string
   */
  public function getDiscoveryEndpoint()
  {
    return $this->discoveryEndpoint;
  }
  /**
   * User provided name for the instance, which is only used for display
   * purposes. Cannot be more than 80 characters.
   *
   * @param string $displayName
   */
  public function setDisplayName($displayName)
  {
    $this->displayName = $displayName;
  }
  /**
   * @return string
   */
  public function getDisplayName()
  {
    return $this->displayName;
  }
  /**
   * Output only. The effective maintenance version of the instance.
   *
   * @param string $effectiveMaintenanceVersion
   */
  public function setEffectiveMaintenanceVersion($effectiveMaintenanceVersion)
  {
    $this->effectiveMaintenanceVersion = $effectiveMaintenanceVersion;
  }
  /**
   * @return string
   */
  public function getEffectiveMaintenanceVersion()
  {
    return $this->effectiveMaintenanceVersion;
  }
  /**
   * List of messages that describe the current state of the Memcached instance.
   *
   * @param InstanceMessage[] $instanceMessages
   */
  public function setInstanceMessages($instanceMessages)
  {
    $this->instanceMessages = $instanceMessages;
  }
  /**
   * @return InstanceMessage[]
   */
  public function getInstanceMessages()
  {
    return $this->instanceMessages;
  }
  /**
   * Resource labels to represent user-provided metadata. Refer to cloud
   * documentation on labels for more details.
   * https://cloud.google.com/compute/docs/labeling-resources
   *
   * @param string[] $labels
   */
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  /**
   * @return string[]
   */
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * The maintenance policy for the instance. If not provided, the maintenance
   * event will be performed based on Memorystore internal rollout schedule.
   *
   * @param GoogleCloudMemcacheV1MaintenancePolicy $maintenancePolicy
   */
  public function setMaintenancePolicy(GoogleCloudMemcacheV1MaintenancePolicy $maintenancePolicy)
  {
    $this->maintenancePolicy = $maintenancePolicy;
  }
  /**
   * @return GoogleCloudMemcacheV1MaintenancePolicy
   */
  public function getMaintenancePolicy()
  {
    return $this->maintenancePolicy;
  }
  /**
   * Output only. Published maintenance schedule.
   *
   * @param MaintenanceSchedule $maintenanceSchedule
   */
  public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
  {
    $this->maintenanceSchedule = $maintenanceSchedule;
  }
  /**
   * @return MaintenanceSchedule
   */
  public function getMaintenanceSchedule()
  {
    return $this->maintenanceSchedule;
  }
  /**
   * Optional. Last self service update maintenance version triggered by the
   * customer. If it is empty, it means that the maintenance version is not set
   * by the user.
   *
   * @param string $maintenanceVersion
   */
  public function setMaintenanceVersion($maintenanceVersion)
  {
    $this->maintenanceVersion = $maintenanceVersion;
  }
  /**
   * @return string
   */
  public function getMaintenanceVersion()
  {
    return $this->maintenanceVersion;
  }
  /**
   * Output only. The full version of memcached server running on this instance.
   * System automatically determines the full memcached version for an instance
   * based on the input MemcacheVersion. The full version format will be
   * "memcached-1.5.16".
   *
   * @param string $memcacheFullVersion
   */
  public function setMemcacheFullVersion($memcacheFullVersion)
  {
    $this->memcacheFullVersion = $memcacheFullVersion;
  }
  /**
   * @return string
   */
  public function getMemcacheFullVersion()
  {
    return $this->memcacheFullVersion;
  }
  /**
   * Output only. List of Memcached nodes. Refer to Node message for more
   * details.
   *
   * @param Node[] $memcacheNodes
   */
  public function setMemcacheNodes($memcacheNodes)
  {
    $this->memcacheNodes = $memcacheNodes;
  }
  /**
   * @return Node[]
   */
  public function getMemcacheNodes()
  {
    return $this->memcacheNodes;
  }
  /**
   * The major version of Memcached software. If not provided, latest supported
   * version will be used. Currently the latest supported major version is
   * `MEMCACHE_1_5`. The minor version will be automatically determined by our
   * system based on the latest supported minor version.
   *
   * Accepted values: MEMCACHE_VERSION_UNSPECIFIED, MEMCACHE_1_5,
   * MEMCACHE_1_6_15
   *
   * @param self::MEMCACHE_VERSION_* $memcacheVersion
   */
  public function setMemcacheVersion($memcacheVersion)
  {
    $this->memcacheVersion = $memcacheVersion;
  }
  /**
   * @return self::MEMCACHE_VERSION_*
   */
  public function getMemcacheVersion()
  {
    return $this->memcacheVersion;
  }
  /**
   * Required. Unique name of the resource in this scope including project and
   * location using the form:
   * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note: Memcached instances are managed and addressed at the regional level
   * so `location_id` here refers to a Google Cloud region; however, users may
   * choose which zones Memcached nodes should be provisioned in within an
   * instance. Refer to zones field for more details.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Required. Configuration for Memcached nodes.
   *
   * @param NodeConfig $nodeConfig
   */
  public function setNodeConfig(NodeConfig $nodeConfig)
  {
    $this->nodeConfig = $nodeConfig;
  }
  /**
   * @return NodeConfig
   */
  public function getNodeConfig()
  {
    return $this->nodeConfig;
  }
  /**
   * Required. Number of nodes in the Memcached instance.
   *
   * @param int $nodeCount
   */
  public function setNodeCount($nodeCount)
  {
    $this->nodeCount = $nodeCount;
  }
  /**
   * @return int
   */
  public function getNodeCount()
  {
    return $this->nodeCount;
  }
  /**
   * User defined parameters to apply to the memcached process on each node.
   *
   * @param MemcacheParameters $parameters
   */
  public function setParameters(MemcacheParameters $parameters)
  {
    $this->parameters = $parameters;
  }
  /**
   * @return MemcacheParameters
   */
  public function getParameters()
  {
    return $this->parameters;
  }
  /**
   * Optional. Contains the id of allocated IP address ranges associated with
   * the private service access connection for example, "test-default"
   * associated with IP range 10.0.0.0/29.
   *
   * @param string[] $reservedIpRangeId
   */
  public function setReservedIpRangeId($reservedIpRangeId)
  {
    $this->reservedIpRangeId = $reservedIpRangeId;
  }
  /**
   * @return string[]
   */
  public function getReservedIpRangeId()
  {
    return $this->reservedIpRangeId;
  }
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @param bool $satisfiesPzi
   */
  public function setSatisfiesPzi($satisfiesPzi)
  {
    $this->satisfiesPzi = $satisfiesPzi;
  }
  /**
   * @return bool
   */
  public function getSatisfiesPzi()
  {
    return $this->satisfiesPzi;
  }
  /**
   * Optional. Output only. Reserved for future use.
   *
   * @param bool $satisfiesPzs
   */
  public function setSatisfiesPzs($satisfiesPzs)
  {
    $this->satisfiesPzs = $satisfiesPzs;
  }
  /**
   * @return bool
   */
  public function getSatisfiesPzs()
  {
    return $this->satisfiesPzs;
  }
  /**
   * Output only. The state of this Memcached instance.
   *
   * Accepted values: STATE_UNSPECIFIED, CREATING, READY, UPDATING, DELETING,
   * PERFORMING_MAINTENANCE, MEMCACHE_VERSION_UPGRADING
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Output only. The time the instance was updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
  /**
   * Zones in which Memcached nodes should be provisioned. Memcached nodes will
   * be equally distributed across these zones. If not provided, the service
   * will by default create nodes in all zones in the region for the instance.
   *
   * @param string[] $zones
   */
  public function setZones($zones)
  {
    $this->zones = $zones;
  }
  /**
   * @return string[]
   */
  public function getZones()
  {
    return $this->zones;
  }
}

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