📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 AuthzExtension.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 EndpointMatcher.php
▶ Open 📄 View Source
🐘 EndpointMatcherMetadataLabelMatcher.php
▶ Open 📄 View Source
🐘 EndpointMatcherMetadataLabelMatcherMetadataLabels.php
▶ Open 📄 View Source
🐘 EndpointPolicy.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 ExtensionChain.php
▶ Open 📄 View Source
🐘 ExtensionChainExtension.php
▶ Open 📄 View Source
🐘 ExtensionChainMatchCondition.php
▶ Open 📄 View Source
🐘 Gateway.php
▶ Open 📄 View Source
🐘 GatewayRouteView.php
▶ Open 📄 View Source
🐘 GrpcRoute.php
▶ Open 📄 View Source
🐘 GrpcRouteDestination.php
▶ Open 📄 View Source
🐘 GrpcRouteFaultInjectionPolicy.php
▶ Open 📄 View Source
🐘 GrpcRouteFaultInjectionPolicyAbort.php
▶ Open 📄 View Source
🐘 GrpcRouteFaultInjectionPolicyDelay.php
▶ Open 📄 View Source
🐘 GrpcRouteHeaderMatch.php
▶ Open 📄 View Source
🐘 GrpcRouteMethodMatch.php
▶ Open 📄 View Source
🐘 GrpcRouteRetryPolicy.php
▶ Open 📄 View Source
🐘 GrpcRouteRouteAction.php
▶ Open 📄 View Source
🐘 GrpcRouteRouteMatch.php
▶ Open 📄 View Source
🐘 GrpcRouteRouteRule.php
▶ Open 📄 View Source
🐘 GrpcRouteStatefulSessionAffinityPolicy.php
▶ Open 📄 View Source
🐘 HttpRoute.php
▶ Open 📄 View Source
🐘 HttpRouteCorsPolicy.php
▶ Open 📄 View Source
🐘 HttpRouteDestination.php
▶ Open 📄 View Source
🐘 HttpRouteFaultInjectionPolicy.php
▶ Open 📄 View Source
🐘 HttpRouteFaultInjectionPolicyAbort.php
▶ Open 📄 View Source
🐘 HttpRouteFaultInjectionPolicyDelay.php
▶ Open 📄 View Source
🐘 HttpRouteHeaderMatch.php
▶ Open 📄 View Source
🐘 HttpRouteHeaderMatchIntegerRange.php
▶ Open 📄 View Source
🐘 HttpRouteHeaderModifier.php
▶ Open 📄 View Source
🐘 HttpRouteHttpDirectResponse.php
▶ Open 📄 View Source
🐘 HttpRouteQueryParameterMatch.php
▶ Open 📄 View Source
🐘 HttpRouteRedirect.php
▶ Open 📄 View Source
🐘 HttpRouteRequestMirrorPolicy.php
▶ Open 📄 View Source
🐘 HttpRouteRetryPolicy.php
▶ Open 📄 View Source
🐘 HttpRouteRouteAction.php
▶ Open 📄 View Source
🐘 HttpRouteRouteMatch.php
▶ Open 📄 View Source
🐘 HttpRouteRouteRule.php
▶ Open 📄 View Source
🐘 HttpRouteStatefulSessionAffinityPolicy.php
▶ Open 📄 View Source
🐘 HttpRouteURLRewrite.php
▶ Open 📄 View Source
🐘 LbEdgeExtension.php
▶ Open 📄 View Source
🐘 LbRouteExtension.php
▶ Open 📄 View Source
🐘 LbTrafficExtension.php
▶ Open 📄 View Source
🐘 ListAuthzExtensionsResponse.php
▶ Open 📄 View Source
🐘 ListEndpointPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListGatewayRouteViewsResponse.php
▶ Open 📄 View Source
🐘 ListGatewaysResponse.php
▶ Open 📄 View Source
🐘 ListGrpcRoutesResponse.php
▶ Open 📄 View Source
🐘 ListHttpRoutesResponse.php
▶ Open 📄 View Source
🐘 ListLbEdgeExtensionsResponse.php
▶ Open 📄 View Source
🐘 ListLbRouteExtensionsResponse.php
▶ Open 📄 View Source
🐘 ListLbTrafficExtensionsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListMeshRouteViewsResponse.php
▶ Open 📄 View Source
🐘 ListMeshesResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListServiceBindingsResponse.php
▶ Open 📄 View Source
🐘 ListServiceLbPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListTcpRoutesResponse.php
▶ Open 📄 View Source
🐘 ListTlsRoutesResponse.php
▶ Open 📄 View Source
🐘 ListWasmPluginVersionsResponse.php
▶ Open 📄 View Source
🐘 ListWasmPluginsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LoggingConfig.php
▶ Open 📄 View Source
🐘 Mesh.php
▶ Open 📄 View Source
🐘 MeshRouteView.php
▶ Open 📄 View Source
🐘 NetworkservicesEmpty.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 RetryFilterPerRouteConfig.php
▶ Open 📄 View Source
🐘 ServiceBinding.php
▶ Open 📄 View Source
🐘 ServiceLbPolicy.php
▶ Open 📄 View Source
🐘 ServiceLbPolicyAutoCapacityDrain.php
▶ Open 📄 View Source
🐘 ServiceLbPolicyFailoverConfig.php
▶ Open 📄 View Source
🐘 ServiceLbPolicyIsolationConfig.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TcpRoute.php
▶ Open 📄 View Source
🐘 TcpRouteRouteAction.php
▶ Open 📄 View Source
🐘 TcpRouteRouteDestination.php
▶ Open 📄 View Source
🐘 TcpRouteRouteMatch.php
▶ Open 📄 View Source
🐘 TcpRouteRouteRule.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TlsRoute.php
▶ Open 📄 View Source
🐘 TlsRouteRouteAction.php
▶ Open 📄 View Source
🐘 TlsRouteRouteDestination.php
▶ Open 📄 View Source
🐘 TlsRouteRouteMatch.php
▶ Open 📄 View Source
🐘 TlsRouteRouteRule.php
▶ Open 📄 View Source
🐘 TrafficPortSelector.php
▶ Open 📄 View Source
🐘 WasmPlugin.php
▶ Open 📄 View Source
🐘 WasmPluginLogConfig.php
▶ Open 📄 View Source
🐘 WasmPluginUsedBy.php
▶ Open 📄 View Source
🐘 WasmPluginVersion.php
▶ Open 📄 View Source
🐘 WasmPluginVersionDetails.php
▶ Open 📄 View Source

📄 Source: HttpRouteRouteAction.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\NetworkServices;

class HttpRouteRouteAction extends \Google\Collection
{
  protected $collection_key = 'destinations';
  protected $corsPolicyType = HttpRouteCorsPolicy::class;
  protected $corsPolicyDataType = '';
  protected $destinationsType = HttpRouteDestination::class;
  protected $destinationsDataType = 'array';
  protected $directResponseType = HttpRouteHttpDirectResponse::class;
  protected $directResponseDataType = '';
  protected $faultInjectionPolicyType = HttpRouteFaultInjectionPolicy::class;
  protected $faultInjectionPolicyDataType = '';
  /**
   * Optional. Specifies the idle timeout for the selected route. The idle
   * timeout is defined as the period in which there are no bytes sent or
   * received on either the upstream or downstream connection. If not set, the
   * default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
   *
   * @var string
   */
  public $idleTimeout;
  protected $redirectType = HttpRouteRedirect::class;
  protected $redirectDataType = '';
  protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
  protected $requestHeaderModifierDataType = '';
  protected $requestMirrorPolicyType = HttpRouteRequestMirrorPolicy::class;
  protected $requestMirrorPolicyDataType = '';
  protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
  protected $responseHeaderModifierDataType = '';
  protected $retryPolicyType = HttpRouteRetryPolicy::class;
  protected $retryPolicyDataType = '';
  protected $statefulSessionAffinityType = HttpRouteStatefulSessionAffinityPolicy::class;
  protected $statefulSessionAffinityDataType = '';
  /**
   * Specifies the timeout for selected route. Timeout is computed from the time
   * the request has been fully processed (i.e. end of stream) up until the
   * response has been completely processed. Timeout includes all retries.
   *
   * @var string
   */
  public $timeout;
  protected $urlRewriteType = HttpRouteURLRewrite::class;
  protected $urlRewriteDataType = '';

  /**
   * The specification for allowing client side cross-origin requests.
   *
   * @param HttpRouteCorsPolicy $corsPolicy
   */
  public function setCorsPolicy(HttpRouteCorsPolicy $corsPolicy)
  {
    $this->corsPolicy = $corsPolicy;
  }
  /**
   * @return HttpRouteCorsPolicy
   */
  public function getCorsPolicy()
  {
    return $this->corsPolicy;
  }
  /**
   * The destination to which traffic should be forwarded.
   *
   * @param HttpRouteDestination[] $destinations
   */
  public function setDestinations($destinations)
  {
    $this->destinations = $destinations;
  }
  /**
   * @return HttpRouteDestination[]
   */
  public function getDestinations()
  {
    return $this->destinations;
  }
  /**
   * Optional. Static HTTP Response object to be returned regardless of the
   * request.
   *
   * @param HttpRouteHttpDirectResponse $directResponse
   */
  public function setDirectResponse(HttpRouteHttpDirectResponse $directResponse)
  {
    $this->directResponse = $directResponse;
  }
  /**
   * @return HttpRouteHttpDirectResponse
   */
  public function getDirectResponse()
  {
    return $this->directResponse;
  }
  /**
   * The specification for fault injection introduced into traffic to test the
   * resiliency of clients to backend service failure. As part of fault
   * injection, when clients send requests to a backend service, delays can be
   * introduced on a percentage of requests before sending those requests to the
   * backend service. Similarly requests from clients can be aborted for a
   * percentage of requests. timeout and retry_policy will be ignored by clients
   * that are configured with a fault_injection_policy
   *
   * @param HttpRouteFaultInjectionPolicy $faultInjectionPolicy
   */
  public function setFaultInjectionPolicy(HttpRouteFaultInjectionPolicy $faultInjectionPolicy)
  {
    $this->faultInjectionPolicy = $faultInjectionPolicy;
  }
  /**
   * @return HttpRouteFaultInjectionPolicy
   */
  public function getFaultInjectionPolicy()
  {
    return $this->faultInjectionPolicy;
  }
  /**
   * Optional. Specifies the idle timeout for the selected route. The idle
   * timeout is defined as the period in which there are no bytes sent or
   * received on either the upstream or downstream connection. If not set, the
   * default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
   *
   * @param string $idleTimeout
   */
  public function setIdleTimeout($idleTimeout)
  {
    $this->idleTimeout = $idleTimeout;
  }
  /**
   * @return string
   */
  public function getIdleTimeout()
  {
    return $this->idleTimeout;
  }
  /**
   * If set, the request is directed as configured by this field.
   *
   * @param HttpRouteRedirect $redirect
   */
  public function setRedirect(HttpRouteRedirect $redirect)
  {
    $this->redirect = $redirect;
  }
  /**
   * @return HttpRouteRedirect
   */
  public function getRedirect()
  {
    return $this->redirect;
  }
  /**
   * The specification for modifying the headers of a matching request prior to
   * delivery of the request to the destination. If HeaderModifiers are set on
   * both the Destination and the RouteAction, they will be merged. Conflicts
   * between the two will not be resolved on the configuration.
   *
   * @param HttpRouteHeaderModifier $requestHeaderModifier
   */
  public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
  {
    $this->requestHeaderModifier = $requestHeaderModifier;
  }
  /**
   * @return HttpRouteHeaderModifier
   */
  public function getRequestHeaderModifier()
  {
    return $this->requestHeaderModifier;
  }
  /**
   * Specifies the policy on how requests intended for the routes destination
   * are shadowed to a separate mirrored destination. Proxy will not wait for
   * the shadow destination to respond before returning the response. Prior to
   * sending traffic to the shadow service, the host/authority header is
   * suffixed with -shadow.
   *
   * @param HttpRouteRequestMirrorPolicy $requestMirrorPolicy
   */
  public function setRequestMirrorPolicy(HttpRouteRequestMirrorPolicy $requestMirrorPolicy)
  {
    $this->requestMirrorPolicy = $requestMirrorPolicy;
  }
  /**
   * @return HttpRouteRequestMirrorPolicy
   */
  public function getRequestMirrorPolicy()
  {
    return $this->requestMirrorPolicy;
  }
  /**
   * The specification for modifying the headers of a response prior to sending
   * the response back to the client. If HeaderModifiers are set on both the
   * Destination and the RouteAction, they will be merged. Conflicts between the
   * two will not be resolved on the configuration.
   *
   * @param HttpRouteHeaderModifier $responseHeaderModifier
   */
  public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
  {
    $this->responseHeaderModifier = $responseHeaderModifier;
  }
  /**
   * @return HttpRouteHeaderModifier
   */
  public function getResponseHeaderModifier()
  {
    return $this->responseHeaderModifier;
  }
  /**
   * Specifies the retry policy associated with this route.
   *
   * @param HttpRouteRetryPolicy $retryPolicy
   */
  public function setRetryPolicy(HttpRouteRetryPolicy $retryPolicy)
  {
    $this->retryPolicy = $retryPolicy;
  }
  /**
   * @return HttpRouteRetryPolicy
   */
  public function getRetryPolicy()
  {
    return $this->retryPolicy;
  }
  /**
   * Optional. Specifies cookie-based stateful session affinity.
   *
   * @param HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity
   */
  public function setStatefulSessionAffinity(HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
  {
    $this->statefulSessionAffinity = $statefulSessionAffinity;
  }
  /**
   * @return HttpRouteStatefulSessionAffinityPolicy
   */
  public function getStatefulSessionAffinity()
  {
    return $this->statefulSessionAffinity;
  }
  /**
   * Specifies the timeout for selected route. Timeout is computed from the time
   * the request has been fully processed (i.e. end of stream) up until the
   * response has been completely processed. Timeout includes all retries.
   *
   * @param string $timeout
   */
  public function setTimeout($timeout)
  {
    $this->timeout = $timeout;
  }
  /**
   * @return string
   */
  public function getTimeout()
  {
    return $this->timeout;
  }
  /**
   * The specification for rewrite URL before forwarding requests to the
   * destination.
   *
   * @param HttpRouteURLRewrite $urlRewrite
   */
  public function setUrlRewrite(HttpRouteURLRewrite $urlRewrite)
  {
    $this->urlRewrite = $urlRewrite;
  }
  /**
   * @return HttpRouteURLRewrite
   */
  public function getUrlRewrite()
  {
    return $this->urlRewrite;
  }
}

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