📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AccessConfig.php
▶ Open 📄 View Source
🐘 Acl.php
▶ Open 📄 View Source
🐘 AclEntry.php
▶ Open 📄 View Source
🐘 AddAclEntryResponse.php
▶ Open 📄 View Source
🐘 BrokerDetails.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CapacityConfig.php
▶ Open 📄 View Source
🐘 CertificateAuthorityServiceConfig.php
▶ Open 📄 View Source
🐘 CheckCompatibilityRequest.php
▶ Open 📄 View Source
🐘 CheckCompatibilityResponse.php
▶ Open 📄 View Source
🐘 Cluster.php
▶ Open 📄 View Source
🐘 ConnectAccessConfig.php
▶ Open 📄 View Source
🐘 ConnectCluster.php
▶ Open 📄 View Source
🐘 ConnectGcpConfig.php
▶ Open 📄 View Source
🐘 ConnectNetworkConfig.php
▶ Open 📄 View Source
🐘 Connector.php
▶ Open 📄 View Source
🐘 ConsumerGroup.php
▶ Open 📄 View Source
🐘 ConsumerPartitionMetadata.php
▶ Open 📄 View Source
🐘 ConsumerTopicMetadata.php
▶ Open 📄 View Source
🐘 Context.php
▶ Open 📄 View Source
🐘 CreateSchemaRegistryRequest.php
▶ Open 📄 View Source
🐘 CreateVersionRequest.php
▶ Open 📄 View Source
🐘 CreateVersionResponse.php
▶ Open 📄 View Source
🐘 GcpConfig.php
▶ Open 📄 View Source
🐘 HttpBody.php
▶ Open 📄 View Source
🐘 ListAclsResponse.php
▶ Open 📄 View Source
🐘 ListClustersResponse.php
▶ Open 📄 View Source
🐘 ListConnectClustersResponse.php
▶ Open 📄 View Source
🐘 ListConnectorsResponse.php
▶ Open 📄 View Source
🐘 ListConsumerGroupsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListSchemaRegistriesResponse.php
▶ Open 📄 View Source
🐘 ListTopicsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LookupVersionRequest.php
▶ Open 📄 View Source
🐘 ManagedkafkaEmpty.php
▶ Open 📄 View Source
🐘 NetworkConfig.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 PauseConnectorRequest.php
▶ Open 📄 View Source
🐘 PauseConnectorResponse.php
▶ Open 📄 View Source
🐘 RebalanceConfig.php
▶ Open 📄 View Source
🐘 RemoveAclEntryResponse.php
▶ Open 📄 View Source
🐘 RestartConnectorRequest.php
▶ Open 📄 View Source
🐘 RestartConnectorResponse.php
▶ Open 📄 View Source
🐘 ResumeConnectorRequest.php
▶ Open 📄 View Source
🐘 ResumeConnectorResponse.php
▶ Open 📄 View Source
🐘 Schema.php
▶ Open 📄 View Source
🐘 SchemaConfig.php
▶ Open 📄 View Source
🐘 SchemaMode.php
▶ Open 📄 View Source
🐘 SchemaReference.php
▶ Open 📄 View Source
🐘 SchemaRegistry.php
▶ Open 📄 View Source
🐘 SchemaVersion.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StopConnectorRequest.php
▶ Open 📄 View Source
🐘 StopConnectorResponse.php
▶ Open 📄 View Source
🐘 TaskRetryPolicy.php
▶ Open 📄 View Source
🐘 TlsConfig.php
▶ Open 📄 View Source
🐘 Topic.php
▶ Open 📄 View Source
🐘 TrustConfig.php
▶ Open 📄 View Source
🐘 UpdateOptions.php
▶ Open 📄 View Source
🐘 UpdateSchemaConfigRequest.php
▶ Open 📄 View Source
🐘 UpdateSchemaModeRequest.php
▶ Open 📄 View Source

📄 Source: Cluster.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\ManagedKafka;

class Cluster extends \Google\Collection
{
  /**
   * A state was not specified.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * The cluster is being created.
   */
  public const STATE_CREATING = 'CREATING';
  /**
   * The cluster is active.
   */
  public const STATE_ACTIVE = 'ACTIVE';
  /**
   * The cluster is being deleted.
   */
  public const STATE_DELETING = 'DELETING';
  /**
   * The cluster is being updated.
   */
  public const STATE_UPDATING = 'UPDATING';
  protected $collection_key = 'brokerDetails';
  protected $brokerDetailsType = BrokerDetails::class;
  protected $brokerDetailsDataType = 'array';
  protected $capacityConfigType = CapacityConfig::class;
  protected $capacityConfigDataType = '';
  /**
   * Output only. The time when the cluster was created.
   *
   * @var string
   */
  public $createTime;
  protected $gcpConfigType = GcpConfig::class;
  protected $gcpConfigDataType = '';
  /**
   * Output only. Only populated when FULL view is requested. The Kafka version
   * of the cluster.
   *
   * @var string
   */
  public $kafkaVersion;
  /**
   * Optional. Labels as key value pairs.
   *
   * @var string[]
   */
  public $labels;
  /**
   * Identifier. The name of the cluster. Structured like:
   * projects/{project_number}/locations/{location}/clusters/{cluster_id}
   *
   * @var string
   */
  public $name;
  protected $rebalanceConfigType = RebalanceConfig::class;
  protected $rebalanceConfigDataType = '';
  /**
   * Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzi;
  /**
   * Output only. Reserved for future use.
   *
   * @var bool
   */
  public $satisfiesPzs;
  /**
   * Output only. The current state of the cluster.
   *
   * @var string
   */
  public $state;
  protected $tlsConfigType = TlsConfig::class;
  protected $tlsConfigDataType = '';
  protected $updateOptionsType = UpdateOptions::class;
  protected $updateOptionsDataType = '';
  /**
   * Output only. The time when the cluster was last updated.
   *
   * @var string
   */
  public $updateTime;

  /**
   * Output only. Only populated when FULL view is requested. Details of each
   * broker in the cluster.
   *
   * @param BrokerDetails[] $brokerDetails
   */
  public function setBrokerDetails($brokerDetails)
  {
    $this->brokerDetails = $brokerDetails;
  }
  /**
   * @return BrokerDetails[]
   */
  public function getBrokerDetails()
  {
    return $this->brokerDetails;
  }
  /**
   * Required. Capacity configuration for the Kafka cluster.
   *
   * @param CapacityConfig $capacityConfig
   */
  public function setCapacityConfig(CapacityConfig $capacityConfig)
  {
    $this->capacityConfig = $capacityConfig;
  }
  /**
   * @return CapacityConfig
   */
  public function getCapacityConfig()
  {
    return $this->capacityConfig;
  }
  /**
   * Output only. The time when the cluster was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Required. Configuration properties for a Kafka cluster deployed to Google
   * Cloud Platform.
   *
   * @param GcpConfig $gcpConfig
   */
  public function setGcpConfig(GcpConfig $gcpConfig)
  {
    $this->gcpConfig = $gcpConfig;
  }
  /**
   * @return GcpConfig
   */
  public function getGcpConfig()
  {
    return $this->gcpConfig;
  }
  /**
   * Output only. Only populated when FULL view is requested. The Kafka version
   * of the cluster.
   *
   * @param string $kafkaVersion
   */
  public function setKafkaVersion($kafkaVersion)
  {
    $this->kafkaVersion = $kafkaVersion;
  }
  /**
   * @return string
   */
  public function getKafkaVersion()
  {
    return $this->kafkaVersion;
  }
  /**
   * Optional. Labels as key value pairs.
   *
   * @param string[] $labels
   */
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  /**
   * @return string[]
   */
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * Identifier. The name of the cluster. Structured like:
   * projects/{project_number}/locations/{location}/clusters/{cluster_id}
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Optional. Rebalance configuration for the Kafka cluster.
   *
   * @param RebalanceConfig $rebalanceConfig
   */
  public function setRebalanceConfig(RebalanceConfig $rebalanceConfig)
  {
    $this->rebalanceConfig = $rebalanceConfig;
  }
  /**
   * @return RebalanceConfig
   */
  public function getRebalanceConfig()
  {
    return $this->rebalanceConfig;
  }
  /**
   * Output only. Reserved for future use.
   *
   * @param bool $satisfiesPzi
   */
  public function setSatisfiesPzi($satisfiesPzi)
  {
    $this->satisfiesPzi = $satisfiesPzi;
  }
  /**
   * @return bool
   */
  public function getSatisfiesPzi()
  {
    return $this->satisfiesPzi;
  }
  /**
   * 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 current state of the cluster.
   *
   * Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, UPDATING
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Optional. TLS configuration for the Kafka cluster.
   *
   * @param TlsConfig $tlsConfig
   */
  public function setTlsConfig(TlsConfig $tlsConfig)
  {
    $this->tlsConfig = $tlsConfig;
  }
  /**
   * @return TlsConfig
   */
  public function getTlsConfig()
  {
    return $this->tlsConfig;
  }
  /**
   * Optional. UpdateOptions represents options that control how updates to the
   * cluster are applied.
   *
   * @param UpdateOptions $updateOptions
   */
  public function setUpdateOptions(UpdateOptions $updateOptions)
  {
    $this->updateOptions = $updateOptions;
  }
  /**
   * @return UpdateOptions
   */
  public function getUpdateOptions()
  {
    return $this->updateOptions;
  }
  /**
   * Output only. The time when the cluster was last updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
}

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