📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 ApiConfigHandler.php
▶ Open 📄 View Source
🐘 ApiEndpointHandler.php
▶ Open 📄 View Source
🐘 AppengineEmpty.php
▶ Open 📄 View Source
🐘 Application.php
▶ Open 📄 View Source
🐘 AuthorizedCertificate.php
▶ Open 📄 View Source
🐘 AuthorizedDomain.php
▶ Open 📄 View Source
🐘 AutomaticScaling.php
▶ Open 📄 View Source
🐘 BasicScaling.php
▶ Open 📄 View Source
🐘 BatchUpdateIngressRulesRequest.php
▶ Open 📄 View Source
🐘 BatchUpdateIngressRulesResponse.php
▶ Open 📄 View Source
🐘 CertificateRawData.php
▶ Open 📄 View Source
🐘 CloudBuildOptions.php
▶ Open 📄 View Source
🐘 ContainerInfo.php
▶ Open 📄 View Source
🐘 ContainerState.php
▶ Open 📄 View Source
🐘 CpuUtilization.php
▶ Open 📄 View Source
🐘 CreateVersionMetadataV1.php
▶ Open 📄 View Source
🐘 CreateVersionMetadataV1Alpha.php
▶ Open 📄 View Source
🐘 CreateVersionMetadataV1Beta.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DebugInstanceRequest.php
▶ Open 📄 View Source
🐘 Deployment.php
▶ Open 📄 View Source
🐘 DiskUtilization.php
▶ Open 📄 View Source
🐘 DomainMapping.php
▶ Open 📄 View Source
🐘 EndpointsApiService.php
▶ Open 📄 View Source
🐘 Entrypoint.php
▶ Open 📄 View Source
🐘 ErrorHandler.php
▶ Open 📄 View Source
🐘 ExportAppImageRequest.php
▶ Open 📄 View Source
🐘 FeatureSettings.php
▶ Open 📄 View Source
🐘 FileInfo.php
▶ Open 📄 View Source
🐘 FirewallRule.php
▶ Open 📄 View Source
🐘 FlexibleRuntimeSettings.php
▶ Open 📄 View Source
🐘 GceTag.php
▶ Open 📄 View Source
🐘 GoogleAppengineV1betaLocationMetadata.php
▶ Open 📄 View Source
🐘 GoogleAppengineV2OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleAppengineV2mainOperationMetadata.php
▶ Open 📄 View Source
🐘 HealthCheck.php
▶ Open 📄 View Source
🐘 IdentityAwareProxy.php
▶ Open 📄 View Source
🐘 Instance.php
▶ Open 📄 View Source
🐘 Library.php
▶ Open 📄 View Source
🐘 ListAuthorizedCertificatesResponse.php
▶ Open 📄 View Source
🐘 ListAuthorizedDomainsResponse.php
▶ Open 📄 View Source
🐘 ListDomainMappingsResponse.php
▶ Open 📄 View Source
🐘 ListIngressRulesResponse.php
▶ Open 📄 View Source
🐘 ListInstancesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListRuntimesResponse.php
▶ Open 📄 View Source
🐘 ListServicesResponse.php
▶ Open 📄 View Source
🐘 ListVersionsResponse.php
▶ Open 📄 View Source
🐘 LivenessCheck.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LocationMetadata.php
▶ Open 📄 View Source
🐘 ManagedCertificate.php
▶ Open 📄 View Source
🐘 ManualScaling.php
▶ Open 📄 View Source
🐘 Network.php
▶ Open 📄 View Source
🐘 NetworkSettings.php
▶ Open 📄 View Source
🐘 NetworkUtilization.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadataV1.php
▶ Open 📄 View Source
🐘 OperationMetadataV1Alpha.php
▶ Open 📄 View Source
🐘 OperationMetadataV1Beta.php
▶ Open 📄 View Source
🐘 ProjectEvent.php
▶ Open 📄 View Source
🐘 ProjectState.php
▶ Open 📄 View Source
🐘 ProjectsMetadata.php
▶ Open 📄 View Source
🐘 ReadinessCheck.php
▶ Open 📄 View Source
🐘 Reasons.php
▶ Open 📄 View Source
🐘 RepairApplicationRequest.php
▶ Open 📄 View Source
🐘 RequestUtilization.php
▶ Open 📄 View Source
🐘 ResourceEvent.php
▶ Open 📄 View Source
🐘 ResourceRecord.php
▶ Open 📄 View Source
🐘 Resources.php
▶ Open 📄 View Source
🐘 Runtime.php
▶ Open 📄 View Source
🐘 ScriptHandler.php
▶ Open 📄 View Source
🐘 Service.php
▶ Open 📄 View Source
🐘 SslSettings.php
▶ Open 📄 View Source
🐘 StandardSchedulerSettings.php
▶ Open 📄 View Source
🐘 StaticFilesHandler.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TrafficSplit.php
▶ Open 📄 View Source
🐘 UrlDispatchRule.php
▶ Open 📄 View Source
🐘 UrlMap.php
▶ Open 📄 View Source
🐘 Version.php
▶ Open 📄 View Source
🐘 Volume.php
▶ Open 📄 View Source
🐘 VpcAccessConnector.php
▶ Open 📄 View Source
🐘 ZipInfo.php
▶ Open 📄 View Source

📄 Source: UrlMap.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\Appengine;

class UrlMap extends \Google\Model
{
  /**
   * Not specified. AUTH_FAIL_ACTION_REDIRECT is assumed.
   */
  public const AUTH_FAIL_ACTION_AUTH_FAIL_ACTION_UNSPECIFIED = 'AUTH_FAIL_ACTION_UNSPECIFIED';
  /**
   * Redirects user to "accounts.google.com". The user is redirected back to the
   * application URL after signing in or creating an account.
   */
  public const AUTH_FAIL_ACTION_AUTH_FAIL_ACTION_REDIRECT = 'AUTH_FAIL_ACTION_REDIRECT';
  /**
   * Rejects request with a 401 HTTP status code and an error message.
   */
  public const AUTH_FAIL_ACTION_AUTH_FAIL_ACTION_UNAUTHORIZED = 'AUTH_FAIL_ACTION_UNAUTHORIZED';
  /**
   * Not specified. LOGIN_OPTIONAL is assumed.
   */
  public const LOGIN_LOGIN_UNSPECIFIED = 'LOGIN_UNSPECIFIED';
  /**
   * Does not require that the user is signed in.
   */
  public const LOGIN_LOGIN_OPTIONAL = 'LOGIN_OPTIONAL';
  /**
   * If the user is not signed in, the auth_fail_action is taken. In addition,
   * if the user is not an administrator for the application, they are given an
   * error message regardless of auth_fail_action. If the user is an
   * administrator, the handler proceeds.
   */
  public const LOGIN_LOGIN_ADMIN = 'LOGIN_ADMIN';
  /**
   * If the user has signed in, the handler proceeds normally. Otherwise, the
   * auth_fail_action is taken.
   */
  public const LOGIN_LOGIN_REQUIRED = 'LOGIN_REQUIRED';
  /**
   * Not specified. 302 is assumed.
   */
  public const REDIRECT_HTTP_RESPONSE_CODE_REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = 'REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED';
  /**
   * 301 Moved Permanently code.
   */
  public const REDIRECT_HTTP_RESPONSE_CODE_REDIRECT_HTTP_RESPONSE_CODE_301 = 'REDIRECT_HTTP_RESPONSE_CODE_301';
  /**
   * 302 Moved Temporarily code.
   */
  public const REDIRECT_HTTP_RESPONSE_CODE_REDIRECT_HTTP_RESPONSE_CODE_302 = 'REDIRECT_HTTP_RESPONSE_CODE_302';
  /**
   * 303 See Other code.
   */
  public const REDIRECT_HTTP_RESPONSE_CODE_REDIRECT_HTTP_RESPONSE_CODE_303 = 'REDIRECT_HTTP_RESPONSE_CODE_303';
  /**
   * 307 Temporary Redirect code.
   */
  public const REDIRECT_HTTP_RESPONSE_CODE_REDIRECT_HTTP_RESPONSE_CODE_307 = 'REDIRECT_HTTP_RESPONSE_CODE_307';
  /**
   * Not specified.
   */
  public const SECURITY_LEVEL_SECURE_UNSPECIFIED = 'SECURE_UNSPECIFIED';
  /**
   * Both HTTP and HTTPS requests with URLs that match the handler succeed
   * without redirects. The application can examine the request to determine
   * which protocol was used, and respond accordingly.
   */
  public const SECURITY_LEVEL_SECURE_DEFAULT = 'SECURE_DEFAULT';
  /**
   * Requests for a URL that match this handler that use HTTPS are automatically
   * redirected to the HTTP equivalent URL.
   */
  public const SECURITY_LEVEL_SECURE_NEVER = 'SECURE_NEVER';
  /**
   * Both HTTP and HTTPS requests with URLs that match the handler succeed
   * without redirects. The application can examine the request to determine
   * which protocol was used and respond accordingly.
   */
  public const SECURITY_LEVEL_SECURE_OPTIONAL = 'SECURE_OPTIONAL';
  /**
   * Requests for a URL that match this handler that do not use HTTPS are
   * automatically redirected to the HTTPS URL with the same path. Query
   * parameters are reserved for the redirect.
   */
  public const SECURITY_LEVEL_SECURE_ALWAYS = 'SECURE_ALWAYS';
  protected $apiEndpointType = ApiEndpointHandler::class;
  protected $apiEndpointDataType = '';
  /**
   * Action to take when users access resources that require authentication.
   * Defaults to redirect.
   *
   * @var string
   */
  public $authFailAction;
  /**
   * Level of login required to access this resource. Not supported for Node.js
   * in the App Engine standard environment.
   *
   * @var string
   */
  public $login;
  /**
   * 30x code to use when performing redirects for the secure field. Defaults to
   * 302.
   *
   * @var string
   */
  public $redirectHttpResponseCode;
  protected $scriptType = ScriptHandler::class;
  protected $scriptDataType = '';
  /**
   * Security (HTTPS) enforcement for this URL.
   *
   * @var string
   */
  public $securityLevel;
  protected $staticFilesType = StaticFilesHandler::class;
  protected $staticFilesDataType = '';
  /**
   * URL prefix. Uses regular expression syntax, which means regexp special
   * characters must be escaped, but should not contain groupings. All URLs that
   * begin with this prefix are handled by this handler, using the portion of
   * the URL after the prefix as part of the file path.
   *
   * @var string
   */
  public $urlRegex;

  /**
   * Uses API Endpoints to handle requests.
   *
   * @param ApiEndpointHandler $apiEndpoint
   */
  public function setApiEndpoint(ApiEndpointHandler $apiEndpoint)
  {
    $this->apiEndpoint = $apiEndpoint;
  }
  /**
   * @return ApiEndpointHandler
   */
  public function getApiEndpoint()
  {
    return $this->apiEndpoint;
  }
  /**
   * Action to take when users access resources that require authentication.
   * Defaults to redirect.
   *
   * Accepted values: AUTH_FAIL_ACTION_UNSPECIFIED, AUTH_FAIL_ACTION_REDIRECT,
   * AUTH_FAIL_ACTION_UNAUTHORIZED
   *
   * @param self::AUTH_FAIL_ACTION_* $authFailAction
   */
  public function setAuthFailAction($authFailAction)
  {
    $this->authFailAction = $authFailAction;
  }
  /**
   * @return self::AUTH_FAIL_ACTION_*
   */
  public function getAuthFailAction()
  {
    return $this->authFailAction;
  }
  /**
   * Level of login required to access this resource. Not supported for Node.js
   * in the App Engine standard environment.
   *
   * Accepted values: LOGIN_UNSPECIFIED, LOGIN_OPTIONAL, LOGIN_ADMIN,
   * LOGIN_REQUIRED
   *
   * @param self::LOGIN_* $login
   */
  public function setLogin($login)
  {
    $this->login = $login;
  }
  /**
   * @return self::LOGIN_*
   */
  public function getLogin()
  {
    return $this->login;
  }
  /**
   * 30x code to use when performing redirects for the secure field. Defaults to
   * 302.
   *
   * Accepted values: REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED,
   * REDIRECT_HTTP_RESPONSE_CODE_301, REDIRECT_HTTP_RESPONSE_CODE_302,
   * REDIRECT_HTTP_RESPONSE_CODE_303, REDIRECT_HTTP_RESPONSE_CODE_307
   *
   * @param self::REDIRECT_HTTP_RESPONSE_CODE_* $redirectHttpResponseCode
   */
  public function setRedirectHttpResponseCode($redirectHttpResponseCode)
  {
    $this->redirectHttpResponseCode = $redirectHttpResponseCode;
  }
  /**
   * @return self::REDIRECT_HTTP_RESPONSE_CODE_*
   */
  public function getRedirectHttpResponseCode()
  {
    return $this->redirectHttpResponseCode;
  }
  /**
   * Executes a script to handle the requests that match this URL pattern. Only
   * the auto value is supported for Node.js in the App Engine standard
   * environment, for example "script": "auto".
   *
   * @param ScriptHandler $script
   */
  public function setScript(ScriptHandler $script)
  {
    $this->script = $script;
  }
  /**
   * @return ScriptHandler
   */
  public function getScript()
  {
    return $this->script;
  }
  /**
   * Security (HTTPS) enforcement for this URL.
   *
   * Accepted values: SECURE_UNSPECIFIED, SECURE_DEFAULT, SECURE_NEVER,
   * SECURE_OPTIONAL, SECURE_ALWAYS
   *
   * @param self::SECURITY_LEVEL_* $securityLevel
   */
  public function setSecurityLevel($securityLevel)
  {
    $this->securityLevel = $securityLevel;
  }
  /**
   * @return self::SECURITY_LEVEL_*
   */
  public function getSecurityLevel()
  {
    return $this->securityLevel;
  }
  /**
   * Returns the contents of a file, such as an image, as the response.
   *
   * @param StaticFilesHandler $staticFiles
   */
  public function setStaticFiles(StaticFilesHandler $staticFiles)
  {
    $this->staticFiles = $staticFiles;
  }
  /**
   * @return StaticFilesHandler
   */
  public function getStaticFiles()
  {
    return $this->staticFiles;
  }
  /**
   * URL prefix. Uses regular expression syntax, which means regexp special
   * characters must be escaped, but should not contain groupings. All URLs that
   * begin with this prefix are handled by this handler, using the portion of
   * the URL after the prefix as part of the file path.
   *
   * @param string $urlRegex
   */
  public function setUrlRegex($urlRegex)
  {
    $this->urlRegex = $urlRegex;
  }
  /**
   * @return string
   */
  public function getUrlRegex()
  {
    return $this->urlRegex;
  }
}

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