JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "LbTrafficExtension.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/NetworkServices/LbTrafficExtension.php
File size: 8.77 KB
MIME-type: text/x-php
Charset: utf-8

<?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\NetworkServices;

class LbTrafficExtension extends \Google\Collection
{
  /**
   * Default value. Do not use.
   */
  public const LOAD_BALANCING_SCHEME_LOAD_BALANCING_SCHEME_UNSPECIFIED = 'LOAD_BALANCING_SCHEME_UNSPECIFIED';
  /**
   * Signifies that this is used for Internal HTTP(S) Load Balancing.
   */
  public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
  /**
   * Signifies that this is used for External Managed HTTP(S) Load Balancing.
   */
  public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
  protected $collection_key = 'forwardingRules';
  /**
   * Output only. The timestamp when the resource was created.
   *
   * @var string
   */
  public $createTime;
  /**
   * Optional. A human-readable description of the resource.
   *
   * @var string
   */
  public $description;
  protected $extensionChainsType = ExtensionChain::class;
  protected $extensionChainsDataType = 'array';
  /**
   * Optional. A list of references to the forwarding rules to which this
   * service extension is attached. At least one forwarding rule is required.
   * Only one `LbTrafficExtension` resource can be associated with a forwarding
   * rule.
   *
   * @var string[]
   */
  public $forwardingRules;
  /**
   * Optional. Set of labels associated with the `LbTrafficExtension` resource.
   * The format must comply with [the requirements for
   * labels](https://cloud.google.com/compute/docs/labeling-
   * resources#requirements) for Google Cloud resources.
   *
   * @var string[]
   */
  public $labels;
  /**
   * Required. All backend services and forwarding rules referenced by this
   * extension must share the same load balancing scheme. Supported values:
   * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to
   * [Backend services overview](https://cloud.google.com/load-
   * balancing/docs/backend-service).
   *
   * @var string
   */
  public $loadBalancingScheme;
  /**
   * Optional. The metadata provided here is included as part of the
   * `metadata_context` (of type `google.protobuf.Struct`) in the
   * `ProcessingRequest` message sent to the extension server. The metadata
   * applies to all extensions in all extensions chains in this resource. The
   * metadata is available under the key `com.google.lb_traffic_extension.`. The
   * following variables are supported in the metadata: `{forwarding_rule_id}` -
   * substituted with the forwarding rule's fully qualified resource name. This
   * field must not be set if at least one of the extension chains contains
   * plugin extensions. Setting it results in a validation error. You can set
   * metadata at either the resource level or the extension level. The extension
   * level metadata is recommended because you can pass a different set of
   * metadata through each extension to the backend.
   *
   * @var array[]
   */
  public $metadata;
  /**
   * Required. Identifier. Name of the `LbTrafficExtension` resource in the
   * following format: `projects/{project}/locations/{location}/lbTrafficExtensi
   * ons/{lb_traffic_extension}`.
   *
   * @var string
   */
  public $name;
  /**
   * Output only. The timestamp when the resource was updated.
   *
   * @var string
   */
  public $updateTime;

  /**
   * Output only. The timestamp when the resource was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Optional. A human-readable description of the resource.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * Required. A set of ordered extension chains that contain the match
   * conditions and extensions to execute. Match conditions for each extension
   * chain are evaluated in sequence for a given request. The first extension
   * chain that has a condition that matches the request is executed. Any
   * subsequent extension chains do not execute. Limited to 5 extension chains
   * per resource.
   *
   * @param ExtensionChain[] $extensionChains
   */
  public function setExtensionChains($extensionChains)
  {
    $this->extensionChains = $extensionChains;
  }
  /**
   * @return ExtensionChain[]
   */
  public function getExtensionChains()
  {
    return $this->extensionChains;
  }
  /**
   * Optional. A list of references to the forwarding rules to which this
   * service extension is attached. At least one forwarding rule is required.
   * Only one `LbTrafficExtension` resource can be associated with a forwarding
   * rule.
   *
   * @param string[] $forwardingRules
   */
  public function setForwardingRules($forwardingRules)
  {
    $this->forwardingRules = $forwardingRules;
  }
  /**
   * @return string[]
   */
  public function getForwardingRules()
  {
    return $this->forwardingRules;
  }
  /**
   * Optional. Set of labels associated with the `LbTrafficExtension` resource.
   * The format must comply with [the requirements for
   * labels](https://cloud.google.com/compute/docs/labeling-
   * resources#requirements) for Google Cloud resources.
   *
   * @param string[] $labels
   */
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  /**
   * @return string[]
   */
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * Required. All backend services and forwarding rules referenced by this
   * extension must share the same load balancing scheme. Supported values:
   * `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to
   * [Backend services overview](https://cloud.google.com/load-
   * balancing/docs/backend-service).
   *
   * Accepted values: LOAD_BALANCING_SCHEME_UNSPECIFIED, INTERNAL_MANAGED,
   * EXTERNAL_MANAGED
   *
   * @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
   */
  public function setLoadBalancingScheme($loadBalancingScheme)
  {
    $this->loadBalancingScheme = $loadBalancingScheme;
  }
  /**
   * @return self::LOAD_BALANCING_SCHEME_*
   */
  public function getLoadBalancingScheme()
  {
    return $this->loadBalancingScheme;
  }
  /**
   * Optional. The metadata provided here is included as part of the
   * `metadata_context` (of type `google.protobuf.Struct`) in the
   * `ProcessingRequest` message sent to the extension server. The metadata
   * applies to all extensions in all extensions chains in this resource. The
   * metadata is available under the key `com.google.lb_traffic_extension.`. The
   * following variables are supported in the metadata: `{forwarding_rule_id}` -
   * substituted with the forwarding rule's fully qualified resource name. This
   * field must not be set if at least one of the extension chains contains
   * plugin extensions. Setting it results in a validation error. You can set
   * metadata at either the resource level or the extension level. The extension
   * level metadata is recommended because you can pass a different set of
   * metadata through each extension to the backend.
   *
   * @param array[] $metadata
   */
  public function setMetadata($metadata)
  {
    $this->metadata = $metadata;
  }
  /**
   * @return array[]
   */
  public function getMetadata()
  {
    return $this->metadata;
  }
  /**
   * Required. Identifier. Name of the `LbTrafficExtension` resource in the
   * following format: `projects/{project}/locations/{location}/lbTrafficExtensi
   * ons/{lb_traffic_extension}`.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. The timestamp when the resource was 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(LbTrafficExtension::class, 'Google_Service_NetworkServices_LbTrafficExtension');