📂 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: HttpRouteCorsPolicy.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 HttpRouteCorsPolicy extends \Google\Collection
{
  protected $collection_key = 'exposeHeaders';
  /**
   * In response to a preflight request, setting this to true indicates that the
   * actual request can include user credentials. This translates to the Access-
   * Control-Allow-Credentials header. Default value is false.
   *
   * @var bool
   */
  public $allowCredentials;
  /**
   * Specifies the content for Access-Control-Allow-Headers header.
   *
   * @var string[]
   */
  public $allowHeaders;
  /**
   * Specifies the content for Access-Control-Allow-Methods header.
   *
   * @var string[]
   */
  public $allowMethods;
  /**
   * Specifies the regular expression patterns that match allowed origins. For
   * regular expression grammar, please see
   * https://github.com/google/re2/wiki/Syntax.
   *
   * @var string[]
   */
  public $allowOriginRegexes;
  /**
   * Specifies the list of origins that will be allowed to do CORS requests. An
   * origin is allowed if it matches either an item in allow_origins or an item
   * in allow_origin_regexes.
   *
   * @var string[]
   */
  public $allowOrigins;
  /**
   * If true, the CORS policy is disabled. The default value is false, which
   * indicates that the CORS policy is in effect.
   *
   * @var bool
   */
  public $disabled;
  /**
   * Specifies the content for Access-Control-Expose-Headers header.
   *
   * @var string[]
   */
  public $exposeHeaders;
  /**
   * Specifies how long result of a preflight request can be cached in seconds.
   * This translates to the Access-Control-Max-Age header.
   *
   * @var string
   */
  public $maxAge;

  /**
   * In response to a preflight request, setting this to true indicates that the
   * actual request can include user credentials. This translates to the Access-
   * Control-Allow-Credentials header. Default value is false.
   *
   * @param bool $allowCredentials
   */
  public function setAllowCredentials($allowCredentials)
  {
    $this->allowCredentials = $allowCredentials;
  }
  /**
   * @return bool
   */
  public function getAllowCredentials()
  {
    return $this->allowCredentials;
  }
  /**
   * Specifies the content for Access-Control-Allow-Headers header.
   *
   * @param string[] $allowHeaders
   */
  public function setAllowHeaders($allowHeaders)
  {
    $this->allowHeaders = $allowHeaders;
  }
  /**
   * @return string[]
   */
  public function getAllowHeaders()
  {
    return $this->allowHeaders;
  }
  /**
   * Specifies the content for Access-Control-Allow-Methods header.
   *
   * @param string[] $allowMethods
   */
  public function setAllowMethods($allowMethods)
  {
    $this->allowMethods = $allowMethods;
  }
  /**
   * @return string[]
   */
  public function getAllowMethods()
  {
    return $this->allowMethods;
  }
  /**
   * Specifies the regular expression patterns that match allowed origins. For
   * regular expression grammar, please see
   * https://github.com/google/re2/wiki/Syntax.
   *
   * @param string[] $allowOriginRegexes
   */
  public function setAllowOriginRegexes($allowOriginRegexes)
  {
    $this->allowOriginRegexes = $allowOriginRegexes;
  }
  /**
   * @return string[]
   */
  public function getAllowOriginRegexes()
  {
    return $this->allowOriginRegexes;
  }
  /**
   * Specifies the list of origins that will be allowed to do CORS requests. An
   * origin is allowed if it matches either an item in allow_origins or an item
   * in allow_origin_regexes.
   *
   * @param string[] $allowOrigins
   */
  public function setAllowOrigins($allowOrigins)
  {
    $this->allowOrigins = $allowOrigins;
  }
  /**
   * @return string[]
   */
  public function getAllowOrigins()
  {
    return $this->allowOrigins;
  }
  /**
   * If true, the CORS policy is disabled. The default value is false, which
   * indicates that the CORS policy is in effect.
   *
   * @param bool $disabled
   */
  public function setDisabled($disabled)
  {
    $this->disabled = $disabled;
  }
  /**
   * @return bool
   */
  public function getDisabled()
  {
    return $this->disabled;
  }
  /**
   * Specifies the content for Access-Control-Expose-Headers header.
   *
   * @param string[] $exposeHeaders
   */
  public function setExposeHeaders($exposeHeaders)
  {
    $this->exposeHeaders = $exposeHeaders;
  }
  /**
   * @return string[]
   */
  public function getExposeHeaders()
  {
    return $this->exposeHeaders;
  }
  /**
   * Specifies how long result of a preflight request can be cached in seconds.
   * This translates to the Access-Control-Max-Age header.
   *
   * @param string $maxAge
   */
  public function setMaxAge($maxAge)
  {
    $this->maxAge = $maxAge;
  }
  /**
   * @return string
   */
  public function getMaxAge()
  {
    return $this->maxAge;
  }
}

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