gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,207 @@
<?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 ApiConfigHandler 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.
*/
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';
/**
* 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. Defaults to optional.
*
* @var string
*/
public $login;
/**
* Path to the script from the application root directory.
*
* @var string
*/
public $script;
/**
* Security (HTTPS) enforcement for this URL.
*
* @var string
*/
public $securityLevel;
/**
* URL to serve the endpoint at.
*
* @var string
*/
public $url;
/**
* 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. Defaults to optional.
*
* 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;
}
/**
* Path to the script from the application root directory.
*
* @param string $script
*/
public function setScript($script)
{
$this->script = $script;
}
/**
* @return string
*/
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;
}
/**
* URL to serve the endpoint at.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiConfigHandler::class, 'Google_Service_Appengine_ApiConfigHandler');
@@ -0,0 +1,48 @@
<?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 ApiEndpointHandler extends \Google\Model
{
/**
* Path to the script from the application root directory.
*
* @var string
*/
public $scriptPath;
/**
* Path to the script from the application root directory.
*
* @param string $scriptPath
*/
public function setScriptPath($scriptPath)
{
$this->scriptPath = $scriptPath;
}
/**
* @return string
*/
public function getScriptPath()
{
return $this->scriptPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiEndpointHandler::class, 'Google_Service_Appengine_ApiEndpointHandler');
@@ -0,0 +1,25 @@
<?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 AppengineEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppengineEmpty::class, 'Google_Service_Appengine_AppengineEmpty');
@@ -0,0 +1,474 @@
<?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 Application extends \Google\Collection
{
/**
* Database type is unspecified.
*/
public const DATABASE_TYPE_DATABASE_TYPE_UNSPECIFIED = 'DATABASE_TYPE_UNSPECIFIED';
/**
* Cloud Datastore
*/
public const DATABASE_TYPE_CLOUD_DATASTORE = 'CLOUD_DATASTORE';
/**
* Cloud Firestore Native
*/
public const DATABASE_TYPE_CLOUD_FIRESTORE = 'CLOUD_FIRESTORE';
/**
* Cloud Firestore in Datastore Mode
*/
public const DATABASE_TYPE_CLOUD_DATASTORE_COMPATIBILITY = 'CLOUD_DATASTORE_COMPATIBILITY';
/**
* Serving status is unspecified.
*/
public const SERVING_STATUS_UNSPECIFIED = 'UNSPECIFIED';
/**
* Application is serving.
*/
public const SERVING_STATUS_SERVING = 'SERVING';
/**
* Application has been disabled by the user.
*/
public const SERVING_STATUS_USER_DISABLED = 'USER_DISABLED';
/**
* Application has been disabled by the system.
*/
public const SERVING_STATUS_SYSTEM_DISABLED = 'SYSTEM_DISABLED';
/**
* Required by linter. Will work same as DEFAULT
*/
public const SSL_POLICY_SSL_POLICY_UNSPECIFIED = 'SSL_POLICY_UNSPECIFIED';
/**
* DEFAULT is to allow all TLS versions and cipher suites supported by App
* Engine
*/
public const SSL_POLICY_DEFAULT = 'DEFAULT';
/**
* MODERN is to allow only TLS 1.2 and TLS 1.3 along with Modern cipher suites
* only
*/
public const SSL_POLICY_MODERN = 'MODERN';
protected $collection_key = 'dispatchRules';
/**
* Google Apps authentication domain that controls which users can access this
* application.Defaults to open access for any Google Account.
*
* @var string
*/
public $authDomain;
/**
* Output only. Google Cloud Storage bucket that can be used for storing files
* associated with this application. This bucket is associated with the
* application and can be used by the gcloud deployment commands.@OutputOnly
*
* @var string
*/
public $codeBucket;
/**
* The type of the Cloud Firestore or Cloud Datastore database associated with
* this application.
*
* @var string
*/
public $databaseType;
/**
* Output only. Google Cloud Storage bucket that can be used by this
* application to store content.@OutputOnly
*
* @var string
*/
public $defaultBucket;
/**
* Cookie expiration policy for this application.
*
* @var string
*/
public $defaultCookieExpiration;
/**
* Output only. Hostname used to reach this application, as resolved by App
* Engine.@OutputOnly
*
* @var string
*/
public $defaultHostname;
protected $dispatchRulesType = UrlDispatchRule::class;
protected $dispatchRulesDataType = 'array';
protected $featureSettingsType = FeatureSettings::class;
protected $featureSettingsDataType = '';
/**
* Output only. The Google Container Registry domain used for storing managed
* build docker images for this application.
*
* @var string
*/
public $gcrDomain;
/**
* Additional Google Generated Customer Metadata, this field won't be provided
* by default and can be requested by setting the IncludeExtraData field in
* GetApplicationRequest
*
* @var array[]
*/
public $generatedCustomerMetadata;
protected $iapType = IdentityAwareProxy::class;
protected $iapDataType = '';
/**
* Identifier of the Application resource. This identifier is equivalent to
* the project ID of the Google Cloud Platform project where you want to
* deploy your application. Example: myapp.
*
* @var string
*/
public $id;
/**
* Location from which this application runs. Application instances run out of
* the data centers in the specified location, which is also where all of the
* application's end user content is stored.Defaults to us-central.View the
* list of supported locations
* (https://cloud.google.com/appengine/docs/locations).
*
* @var string
*/
public $locationId;
/**
* @var string
*/
public $name;
/**
* The service account associated with the application. This is the app-level
* default identity. If no identity provided during create version, Admin API
* will fallback to this one.
*
* @var string
*/
public $serviceAccount;
/**
* Serving status of this application.
*
* @var string
*/
public $servingStatus;
/**
* The SSL policy that will be applied to the application. If set to Modern it
* will restrict traffic with TLS < 1.2 and allow only Modern Ciphers suite
*
* @var string
*/
public $sslPolicy;
/**
* Google Apps authentication domain that controls which users can access this
* application.Defaults to open access for any Google Account.
*
* @param string $authDomain
*/
public function setAuthDomain($authDomain)
{
$this->authDomain = $authDomain;
}
/**
* @return string
*/
public function getAuthDomain()
{
return $this->authDomain;
}
/**
* Output only. Google Cloud Storage bucket that can be used for storing files
* associated with this application. This bucket is associated with the
* application and can be used by the gcloud deployment commands.@OutputOnly
*
* @param string $codeBucket
*/
public function setCodeBucket($codeBucket)
{
$this->codeBucket = $codeBucket;
}
/**
* @return string
*/
public function getCodeBucket()
{
return $this->codeBucket;
}
/**
* The type of the Cloud Firestore or Cloud Datastore database associated with
* this application.
*
* Accepted values: DATABASE_TYPE_UNSPECIFIED, CLOUD_DATASTORE,
* CLOUD_FIRESTORE, CLOUD_DATASTORE_COMPATIBILITY
*
* @param self::DATABASE_TYPE_* $databaseType
*/
public function setDatabaseType($databaseType)
{
$this->databaseType = $databaseType;
}
/**
* @return self::DATABASE_TYPE_*
*/
public function getDatabaseType()
{
return $this->databaseType;
}
/**
* Output only. Google Cloud Storage bucket that can be used by this
* application to store content.@OutputOnly
*
* @param string $defaultBucket
*/
public function setDefaultBucket($defaultBucket)
{
$this->defaultBucket = $defaultBucket;
}
/**
* @return string
*/
public function getDefaultBucket()
{
return $this->defaultBucket;
}
/**
* Cookie expiration policy for this application.
*
* @param string $defaultCookieExpiration
*/
public function setDefaultCookieExpiration($defaultCookieExpiration)
{
$this->defaultCookieExpiration = $defaultCookieExpiration;
}
/**
* @return string
*/
public function getDefaultCookieExpiration()
{
return $this->defaultCookieExpiration;
}
/**
* Output only. Hostname used to reach this application, as resolved by App
* Engine.@OutputOnly
*
* @param string $defaultHostname
*/
public function setDefaultHostname($defaultHostname)
{
$this->defaultHostname = $defaultHostname;
}
/**
* @return string
*/
public function getDefaultHostname()
{
return $this->defaultHostname;
}
/**
* HTTP path dispatch rules for requests to the application that do not
* explicitly target a service or version. Rules are order-dependent. Up to 20
* dispatch rules can be supported.
*
* @param UrlDispatchRule[] $dispatchRules
*/
public function setDispatchRules($dispatchRules)
{
$this->dispatchRules = $dispatchRules;
}
/**
* @return UrlDispatchRule[]
*/
public function getDispatchRules()
{
return $this->dispatchRules;
}
/**
* The feature specific settings to be used in the application.
*
* @param FeatureSettings $featureSettings
*/
public function setFeatureSettings(FeatureSettings $featureSettings)
{
$this->featureSettings = $featureSettings;
}
/**
* @return FeatureSettings
*/
public function getFeatureSettings()
{
return $this->featureSettings;
}
/**
* Output only. The Google Container Registry domain used for storing managed
* build docker images for this application.
*
* @param string $gcrDomain
*/
public function setGcrDomain($gcrDomain)
{
$this->gcrDomain = $gcrDomain;
}
/**
* @return string
*/
public function getGcrDomain()
{
return $this->gcrDomain;
}
/**
* Additional Google Generated Customer Metadata, this field won't be provided
* by default and can be requested by setting the IncludeExtraData field in
* GetApplicationRequest
*
* @param array[] $generatedCustomerMetadata
*/
public function setGeneratedCustomerMetadata($generatedCustomerMetadata)
{
$this->generatedCustomerMetadata = $generatedCustomerMetadata;
}
/**
* @return array[]
*/
public function getGeneratedCustomerMetadata()
{
return $this->generatedCustomerMetadata;
}
/**
* @param IdentityAwareProxy $iap
*/
public function setIap(IdentityAwareProxy $iap)
{
$this->iap = $iap;
}
/**
* @return IdentityAwareProxy
*/
public function getIap()
{
return $this->iap;
}
/**
* Identifier of the Application resource. This identifier is equivalent to
* the project ID of the Google Cloud Platform project where you want to
* deploy your application. Example: myapp.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Location from which this application runs. Application instances run out of
* the data centers in the specified location, which is also where all of the
* application's end user content is stored.Defaults to us-central.View the
* list of supported locations
* (https://cloud.google.com/appengine/docs/locations).
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The service account associated with the application. This is the app-level
* default identity. If no identity provided during create version, Admin API
* will fallback to this one.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Serving status of this application.
*
* Accepted values: UNSPECIFIED, SERVING, USER_DISABLED, SYSTEM_DISABLED
*
* @param self::SERVING_STATUS_* $servingStatus
*/
public function setServingStatus($servingStatus)
{
$this->servingStatus = $servingStatus;
}
/**
* @return self::SERVING_STATUS_*
*/
public function getServingStatus()
{
return $this->servingStatus;
}
/**
* The SSL policy that will be applied to the application. If set to Modern it
* will restrict traffic with TLS < 1.2 and allow only Modern Ciphers suite
*
* Accepted values: SSL_POLICY_UNSPECIFIED, DEFAULT, MODERN
*
* @param self::SSL_POLICY_* $sslPolicy
*/
public function setSslPolicy($sslPolicy)
{
$this->sslPolicy = $sslPolicy;
}
/**
* @return self::SSL_POLICY_*
*/
public function getSslPolicy()
{
return $this->sslPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Application::class, 'Google_Service_Appengine_Application');
@@ -0,0 +1,257 @@
<?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 AuthorizedCertificate extends \Google\Collection
{
protected $collection_key = 'visibleDomainMappings';
protected $certificateRawDataType = CertificateRawData::class;
protected $certificateRawDataDataType = '';
/**
* The user-specified display name of the certificate. This is not guaranteed
* to be unique. Example: My Certificate.
*
* @var string
*/
public $displayName;
/**
* Aggregate count of the domain mappings with this certificate mapped. This
* count includes domain mappings on applications for which the user does not
* have VIEWER permissions.Only returned by GET or LIST requests when
* specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
*
* @var int
*/
public $domainMappingsCount;
/**
* Output only. Topmost applicable domains of this certificate. This
* certificate applies to these domains and their subdomains. Example:
* example.com.@OutputOnly
*
* @var string[]
*/
public $domainNames;
/**
* The time when this certificate expires. To update the renewal time on this
* certificate, upload an SSL certificate with a different expiration time
* using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
*
* @var string
*/
public $expireTime;
/**
* Output only. Relative name of the certificate. This is a unique value
* autogenerated on AuthorizedCertificate resource creation. Example:
* 12345.@OutputOnly
*
* @var string
*/
public $id;
protected $managedCertificateType = ManagedCertificate::class;
protected $managedCertificateDataType = '';
/**
* Output only. Full path to the AuthorizedCertificate resource in the API.
* Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
*
* @var string
*/
public $name;
/**
* Output only. The full paths to user visible Domain Mapping resources that
* have this certificate mapped. Example:
* apps/myapp/domainMappings/example.com.This may not represent the full list
* of mapped domain mappings if the user does not have VIEWER permissions on
* all of the applications that have this certificate mapped. See
* domain_mappings_count for a complete count.Only returned by GET or LIST
* requests when specifically requested by the view=FULL_CERTIFICATE
* option.@OutputOnly
*
* @var string[]
*/
public $visibleDomainMappings;
/**
* The SSL certificate serving the AuthorizedCertificate resource. This must
* be obtained independently from a certificate authority.
*
* @param CertificateRawData $certificateRawData
*/
public function setCertificateRawData(CertificateRawData $certificateRawData)
{
$this->certificateRawData = $certificateRawData;
}
/**
* @return CertificateRawData
*/
public function getCertificateRawData()
{
return $this->certificateRawData;
}
/**
* The user-specified display name of the certificate. This is not guaranteed
* to be unique. Example: My Certificate.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Aggregate count of the domain mappings with this certificate mapped. This
* count includes domain mappings on applications for which the user does not
* have VIEWER permissions.Only returned by GET or LIST requests when
* specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly
*
* @param int $domainMappingsCount
*/
public function setDomainMappingsCount($domainMappingsCount)
{
$this->domainMappingsCount = $domainMappingsCount;
}
/**
* @return int
*/
public function getDomainMappingsCount()
{
return $this->domainMappingsCount;
}
/**
* Output only. Topmost applicable domains of this certificate. This
* certificate applies to these domains and their subdomains. Example:
* example.com.@OutputOnly
*
* @param string[] $domainNames
*/
public function setDomainNames($domainNames)
{
$this->domainNames = $domainNames;
}
/**
* @return string[]
*/
public function getDomainNames()
{
return $this->domainNames;
}
/**
* The time when this certificate expires. To update the renewal time on this
* certificate, upload an SSL certificate with a different expiration time
* using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. Relative name of the certificate. This is a unique value
* autogenerated on AuthorizedCertificate resource creation. Example:
* 12345.@OutputOnly
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Only applicable if this certificate is managed by App Engine. Managed
* certificates are tied to the lifecycle of a DomainMapping and cannot be
* updated or deleted via the AuthorizedCertificates API. If this certificate
* is manually administered by the user, this field will be empty.@OutputOnly
*
* @param ManagedCertificate $managedCertificate
*/
public function setManagedCertificate(ManagedCertificate $managedCertificate)
{
$this->managedCertificate = $managedCertificate;
}
/**
* @return ManagedCertificate
*/
public function getManagedCertificate()
{
return $this->managedCertificate;
}
/**
* Output only. Full path to the AuthorizedCertificate resource in the API.
* Example: apps/myapp/authorizedCertificates/12345.@OutputOnly
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The full paths to user visible Domain Mapping resources that
* have this certificate mapped. Example:
* apps/myapp/domainMappings/example.com.This may not represent the full list
* of mapped domain mappings if the user does not have VIEWER permissions on
* all of the applications that have this certificate mapped. See
* domain_mappings_count for a complete count.Only returned by GET or LIST
* requests when specifically requested by the view=FULL_CERTIFICATE
* option.@OutputOnly
*
* @param string[] $visibleDomainMappings
*/
public function setVisibleDomainMappings($visibleDomainMappings)
{
$this->visibleDomainMappings = $visibleDomainMappings;
}
/**
* @return string[]
*/
public function getVisibleDomainMappings()
{
return $this->visibleDomainMappings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedCertificate::class, 'Google_Service_Appengine_AuthorizedCertificate');
@@ -0,0 +1,74 @@
<?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 AuthorizedDomain extends \Google\Model
{
/**
* Fully qualified domain name of the domain authorized for use. Example:
* example.com.
*
* @var string
*/
public $id;
/**
* Full path to the AuthorizedDomain resource in the API. Example:
* apps/myapp/authorizedDomains/example.com.@OutputOnly
*
* @var string
*/
public $name;
/**
* Fully qualified domain name of the domain authorized for use. Example:
* example.com.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Full path to the AuthorizedDomain resource in the API. Example:
* apps/myapp/authorizedDomains/example.com.@OutputOnly
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizedDomain::class, 'Google_Service_Appengine_AuthorizedDomain');
@@ -0,0 +1,318 @@
<?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 AutomaticScaling extends \Google\Model
{
/**
* The time period that the Autoscaler
* (https://cloud.google.com/compute/docs/autoscaler/) should wait before it
* starts collecting information from a new instance. This prevents the
* autoscaler from collecting information when the instance is initializing,
* during which the collected usage would not be reliable. Only applicable in
* the App Engine flexible environment.
*
* @var string
*/
public $coolDownPeriod;
protected $cpuUtilizationType = CpuUtilization::class;
protected $cpuUtilizationDataType = '';
protected $diskUtilizationType = DiskUtilization::class;
protected $diskUtilizationDataType = '';
/**
* Number of concurrent requests an automatic scaling instance can accept
* before the scheduler spawns a new instance.Defaults to a runtime-specific
* value.
*
* @var int
*/
public $maxConcurrentRequests;
/**
* Maximum number of idle instances that should be maintained for this
* version.
*
* @var int
*/
public $maxIdleInstances;
/**
* Maximum amount of time that a request should wait in the pending queue
* before starting a new instance to handle it.
*
* @var string
*/
public $maxPendingLatency;
/**
* Maximum number of instances that should be started to handle requests for
* this version.
*
* @var int
*/
public $maxTotalInstances;
/**
* Minimum number of idle instances that should be maintained for this
* version. Only applicable for the default version of a service.
*
* @var int
*/
public $minIdleInstances;
/**
* Minimum amount of time a request should wait in the pending queue before
* starting a new instance to handle it.
*
* @var string
*/
public $minPendingLatency;
/**
* Minimum number of running instances that should be maintained for this
* version.
*
* @var int
*/
public $minTotalInstances;
protected $networkUtilizationType = NetworkUtilization::class;
protected $networkUtilizationDataType = '';
protected $requestUtilizationType = RequestUtilization::class;
protected $requestUtilizationDataType = '';
protected $standardSchedulerSettingsType = StandardSchedulerSettings::class;
protected $standardSchedulerSettingsDataType = '';
/**
* The time period that the Autoscaler
* (https://cloud.google.com/compute/docs/autoscaler/) should wait before it
* starts collecting information from a new instance. This prevents the
* autoscaler from collecting information when the instance is initializing,
* during which the collected usage would not be reliable. Only applicable in
* the App Engine flexible environment.
*
* @param string $coolDownPeriod
*/
public function setCoolDownPeriod($coolDownPeriod)
{
$this->coolDownPeriod = $coolDownPeriod;
}
/**
* @return string
*/
public function getCoolDownPeriod()
{
return $this->coolDownPeriod;
}
/**
* Target scaling by CPU usage.
*
* @param CpuUtilization $cpuUtilization
*/
public function setCpuUtilization(CpuUtilization $cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
/**
* @return CpuUtilization
*/
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
/**
* Target scaling by disk usage.
*
* @param DiskUtilization $diskUtilization
*/
public function setDiskUtilization(DiskUtilization $diskUtilization)
{
$this->diskUtilization = $diskUtilization;
}
/**
* @return DiskUtilization
*/
public function getDiskUtilization()
{
return $this->diskUtilization;
}
/**
* Number of concurrent requests an automatic scaling instance can accept
* before the scheduler spawns a new instance.Defaults to a runtime-specific
* value.
*
* @param int $maxConcurrentRequests
*/
public function setMaxConcurrentRequests($maxConcurrentRequests)
{
$this->maxConcurrentRequests = $maxConcurrentRequests;
}
/**
* @return int
*/
public function getMaxConcurrentRequests()
{
return $this->maxConcurrentRequests;
}
/**
* Maximum number of idle instances that should be maintained for this
* version.
*
* @param int $maxIdleInstances
*/
public function setMaxIdleInstances($maxIdleInstances)
{
$this->maxIdleInstances = $maxIdleInstances;
}
/**
* @return int
*/
public function getMaxIdleInstances()
{
return $this->maxIdleInstances;
}
/**
* Maximum amount of time that a request should wait in the pending queue
* before starting a new instance to handle it.
*
* @param string $maxPendingLatency
*/
public function setMaxPendingLatency($maxPendingLatency)
{
$this->maxPendingLatency = $maxPendingLatency;
}
/**
* @return string
*/
public function getMaxPendingLatency()
{
return $this->maxPendingLatency;
}
/**
* Maximum number of instances that should be started to handle requests for
* this version.
*
* @param int $maxTotalInstances
*/
public function setMaxTotalInstances($maxTotalInstances)
{
$this->maxTotalInstances = $maxTotalInstances;
}
/**
* @return int
*/
public function getMaxTotalInstances()
{
return $this->maxTotalInstances;
}
/**
* Minimum number of idle instances that should be maintained for this
* version. Only applicable for the default version of a service.
*
* @param int $minIdleInstances
*/
public function setMinIdleInstances($minIdleInstances)
{
$this->minIdleInstances = $minIdleInstances;
}
/**
* @return int
*/
public function getMinIdleInstances()
{
return $this->minIdleInstances;
}
/**
* Minimum amount of time a request should wait in the pending queue before
* starting a new instance to handle it.
*
* @param string $minPendingLatency
*/
public function setMinPendingLatency($minPendingLatency)
{
$this->minPendingLatency = $minPendingLatency;
}
/**
* @return string
*/
public function getMinPendingLatency()
{
return $this->minPendingLatency;
}
/**
* Minimum number of running instances that should be maintained for this
* version.
*
* @param int $minTotalInstances
*/
public function setMinTotalInstances($minTotalInstances)
{
$this->minTotalInstances = $minTotalInstances;
}
/**
* @return int
*/
public function getMinTotalInstances()
{
return $this->minTotalInstances;
}
/**
* Target scaling by network usage.
*
* @param NetworkUtilization $networkUtilization
*/
public function setNetworkUtilization(NetworkUtilization $networkUtilization)
{
$this->networkUtilization = $networkUtilization;
}
/**
* @return NetworkUtilization
*/
public function getNetworkUtilization()
{
return $this->networkUtilization;
}
/**
* Target scaling by request utilization.
*
* @param RequestUtilization $requestUtilization
*/
public function setRequestUtilization(RequestUtilization $requestUtilization)
{
$this->requestUtilization = $requestUtilization;
}
/**
* @return RequestUtilization
*/
public function getRequestUtilization()
{
return $this->requestUtilization;
}
/**
* Scheduler settings for standard environment.
*
* @param StandardSchedulerSettings $standardSchedulerSettings
*/
public function setStandardSchedulerSettings(StandardSchedulerSettings $standardSchedulerSettings)
{
$this->standardSchedulerSettings = $standardSchedulerSettings;
}
/**
* @return StandardSchedulerSettings
*/
public function getStandardSchedulerSettings()
{
return $this->standardSchedulerSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutomaticScaling::class, 'Google_Service_Appengine_AutomaticScaling');
@@ -0,0 +1,72 @@
<?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 BasicScaling extends \Google\Model
{
/**
* Duration of time after the last request that an instance must wait before
* the instance is shut down.
*
* @var string
*/
public $idleTimeout;
/**
* Maximum number of instances to create for this version.
*
* @var int
*/
public $maxInstances;
/**
* Duration of time after the last request that an instance must wait before
* the instance is shut down.
*
* @param string $idleTimeout
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* Maximum number of instances to create for this version.
*
* @param int $maxInstances
*/
public function setMaxInstances($maxInstances)
{
$this->maxInstances = $maxInstances;
}
/**
* @return int
*/
public function getMaxInstances()
{
return $this->maxInstances;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BasicScaling::class, 'Google_Service_Appengine_BasicScaling');
@@ -0,0 +1,45 @@
<?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 BatchUpdateIngressRulesRequest extends \Google\Collection
{
protected $collection_key = 'ingressRules';
protected $ingressRulesType = FirewallRule::class;
protected $ingressRulesDataType = 'array';
/**
* A list of FirewallRules to replace the existing set.
*
* @param FirewallRule[] $ingressRules
*/
public function setIngressRules($ingressRules)
{
$this->ingressRules = $ingressRules;
}
/**
* @return FirewallRule[]
*/
public function getIngressRules()
{
return $this->ingressRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateIngressRulesRequest::class, 'Google_Service_Appengine_BatchUpdateIngressRulesRequest');
@@ -0,0 +1,45 @@
<?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 BatchUpdateIngressRulesResponse extends \Google\Collection
{
protected $collection_key = 'ingressRules';
protected $ingressRulesType = FirewallRule::class;
protected $ingressRulesDataType = 'array';
/**
* The full list of ingress FirewallRules for this application.
*
* @param FirewallRule[] $ingressRules
*/
public function setIngressRules($ingressRules)
{
$this->ingressRules = $ingressRules;
}
/**
* @return FirewallRule[]
*/
public function getIngressRules()
{
return $this->ingressRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateIngressRulesResponse::class, 'Google_Service_Appengine_BatchUpdateIngressRulesResponse');
@@ -0,0 +1,80 @@
<?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 CertificateRawData extends \Google\Model
{
/**
* Unencrypted PEM encoded RSA private key. This field is set once on
* certificate creation and then encrypted. The key size must be 2048 bits or
* fewer. Must include the header and footer. Example: -----BEGIN RSA PRIVATE
* KEY----- -----END RSA PRIVATE KEY----- @InputOnly
*
* @var string
*/
public $privateKey;
/**
* PEM encoded x.509 public key certificate. This field is set once on
* certificate creation. Must include the header and footer. Example:
* -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----
*
* @var string
*/
public $publicCertificate;
/**
* Unencrypted PEM encoded RSA private key. This field is set once on
* certificate creation and then encrypted. The key size must be 2048 bits or
* fewer. Must include the header and footer. Example: -----BEGIN RSA PRIVATE
* KEY----- -----END RSA PRIVATE KEY----- @InputOnly
*
* @param string $privateKey
*/
public function setPrivateKey($privateKey)
{
$this->privateKey = $privateKey;
}
/**
* @return string
*/
public function getPrivateKey()
{
return $this->privateKey;
}
/**
* PEM encoded x.509 public key certificate. This field is set once on
* certificate creation. Must include the header and footer. Example:
* -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----
*
* @param string $publicCertificate
*/
public function setPublicCertificate($publicCertificate)
{
$this->publicCertificate = $publicCertificate;
}
/**
* @return string
*/
public function getPublicCertificate()
{
return $this->publicCertificate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CertificateRawData::class, 'Google_Service_Appengine_CertificateRawData');
@@ -0,0 +1,78 @@
<?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 CloudBuildOptions extends \Google\Model
{
/**
* Path to the yaml file used in deployment, used to determine runtime
* configuration details.Required for flexible environment builds.See
* https://cloud.google.com/appengine/docs/standard/python/config/appref for
* more details.
*
* @var string
*/
public $appYamlPath;
/**
* The Cloud Build timeout used as part of any dependent builds performed by
* version creation. Defaults to 10 minutes.
*
* @var string
*/
public $cloudBuildTimeout;
/**
* Path to the yaml file used in deployment, used to determine runtime
* configuration details.Required for flexible environment builds.See
* https://cloud.google.com/appengine/docs/standard/python/config/appref for
* more details.
*
* @param string $appYamlPath
*/
public function setAppYamlPath($appYamlPath)
{
$this->appYamlPath = $appYamlPath;
}
/**
* @return string
*/
public function getAppYamlPath()
{
return $this->appYamlPath;
}
/**
* The Cloud Build timeout used as part of any dependent builds performed by
* version creation. Defaults to 10 minutes.
*
* @param string $cloudBuildTimeout
*/
public function setCloudBuildTimeout($cloudBuildTimeout)
{
$this->cloudBuildTimeout = $cloudBuildTimeout;
}
/**
* @return string
*/
public function getCloudBuildTimeout()
{
return $this->cloudBuildTimeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudBuildOptions::class, 'Google_Service_Appengine_CloudBuildOptions');
@@ -0,0 +1,52 @@
<?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 ContainerInfo extends \Google\Model
{
/**
* URI to the hosted container image in Google Container Registry. The URI
* must be fully qualified and include a tag or digest. Examples: "gcr.io/my-
* project/image:tag" or "gcr.io/my-project/image@digest"
*
* @var string
*/
public $image;
/**
* URI to the hosted container image in Google Container Registry. The URI
* must be fully qualified and include a tag or digest. Examples: "gcr.io/my-
* project/image:tag" or "gcr.io/my-project/image@digest"
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContainerInfo::class, 'Google_Service_Appengine_ContainerInfo');
@@ -0,0 +1,124 @@
<?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 ContainerState extends \Google\Model
{
/**
* A container should never be in an unknown state. Receipt of a container
* with this state is an error.
*/
public const STATE_UNKNOWN_STATE = 'UNKNOWN_STATE';
/**
* CCFE considers the container to be serving or transitioning into serving.
*/
public const STATE_ON = 'ON';
/**
* CCFE considers the container to be in an OFF state. This could occur due to
* various factors. The state could be triggered by Google-internal audits
* (ex. abuse suspension, billing closed) or cleanups trigged by compliance
* systems (ex. data governance hide). User-initiated events such as service
* management deactivation trigger a container to an OFF state.CLHs might
* choose to do nothing in this case or to turn off costly resources. CLHs
* need to consider the customer experience if an ON/OFF/ON sequence of state
* transitions occurs vs. the cost of deleting resources, keeping metadata
* about resources, or even keeping resources live for a period of time.CCFE
* will not send any new customer requests to the CLH when the container is in
* an OFF state. However, CCFE will allow all previous customer requests
* relayed to CLH to complete.
*/
public const STATE_OFF = 'OFF';
/**
* This state indicates that the container has been (or is being) completely
* removed. This is often due to a data governance purge request and therefore
* resources should be deleted when this state is reached.
*/
public const STATE_DELETED = 'DELETED';
protected $currentReasonsType = Reasons::class;
protected $currentReasonsDataType = '';
protected $previousReasonsType = Reasons::class;
protected $previousReasonsDataType = '';
/**
* The current state of the container. This state is the culmination of all of
* the opinions from external systems that CCFE knows about of the container.
*
* @var string
*/
public $state;
/**
* @param Reasons $currentReasons
*/
public function setCurrentReasons(Reasons $currentReasons)
{
$this->currentReasons = $currentReasons;
}
/**
* @return Reasons
*/
public function getCurrentReasons()
{
return $this->currentReasons;
}
/**
* The previous and current reasons for a container state will be sent for a
* container event. CLHs that need to know the signal that caused the
* container event to trigger (edges) as opposed to just knowing the state can
* act upon differences in the previous and current reasons.Reasons will be
* provided for every system: service management, data governance, abuse, and
* billing.If this is a CCFE-triggered event used for reconciliation then the
* current reasons will be set to their *_CONTROL_PLANE_SYNC state. The
* previous reasons will contain the last known set of non-unknown non-
* control_plane_sync reasons for the state.
*
* @param Reasons $previousReasons
*/
public function setPreviousReasons(Reasons $previousReasons)
{
$this->previousReasons = $previousReasons;
}
/**
* @return Reasons
*/
public function getPreviousReasons()
{
return $this->previousReasons;
}
/**
* The current state of the container. This state is the culmination of all of
* the opinions from external systems that CCFE knows about of the container.
*
* Accepted values: UNKNOWN_STATE, ON, OFF, DELETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContainerState::class, 'Google_Service_Appengine_ContainerState');
@@ -0,0 +1,63 @@
<?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 CpuUtilization extends \Google\Model
{
/**
* Period of time over which CPU utilization is calculated.
*
* @var string
*/
public $aggregationWindowLength;
/**
* Target CPU utilization ratio to maintain when scaling. Must be between 0
* and 1.
*
* @var
*/
public $targetUtilization;
/**
* Period of time over which CPU utilization is calculated.
*
* @param string $aggregationWindowLength
*/
public function setAggregationWindowLength($aggregationWindowLength)
{
$this->aggregationWindowLength = $aggregationWindowLength;
}
/**
* @return string
*/
public function getAggregationWindowLength()
{
return $this->aggregationWindowLength;
}
public function setTargetUtilization($targetUtilization)
{
$this->targetUtilization = $targetUtilization;
}
public function getTargetUtilization()
{
return $this->targetUtilization;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CpuUtilization::class, 'Google_Service_Appengine_CpuUtilization');
@@ -0,0 +1,50 @@
<?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 CreateVersionMetadataV1 extends \Google\Model
{
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @var string
*/
public $cloudBuildId;
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @param string $cloudBuildId
*/
public function setCloudBuildId($cloudBuildId)
{
$this->cloudBuildId = $cloudBuildId;
}
/**
* @return string
*/
public function getCloudBuildId()
{
return $this->cloudBuildId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateVersionMetadataV1::class, 'Google_Service_Appengine_CreateVersionMetadataV1');
@@ -0,0 +1,50 @@
<?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 CreateVersionMetadataV1Alpha extends \Google\Model
{
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @var string
*/
public $cloudBuildId;
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @param string $cloudBuildId
*/
public function setCloudBuildId($cloudBuildId)
{
$this->cloudBuildId = $cloudBuildId;
}
/**
* @return string
*/
public function getCloudBuildId()
{
return $this->cloudBuildId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateVersionMetadataV1Alpha::class, 'Google_Service_Appengine_CreateVersionMetadataV1Alpha');
@@ -0,0 +1,50 @@
<?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 CreateVersionMetadataV1Beta extends \Google\Model
{
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @var string
*/
public $cloudBuildId;
/**
* The Cloud Build ID if one was created as part of the version create.
* @OutputOnly
*
* @param string $cloudBuildId
*/
public function setCloudBuildId($cloudBuildId)
{
$this->cloudBuildId = $cloudBuildId;
}
/**
* @return string
*/
public function getCloudBuildId()
{
return $this->cloudBuildId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateVersionMetadataV1Beta::class, 'Google_Service_Appengine_CreateVersionMetadataV1Beta');
+100
View File
@@ -0,0 +1,100 @@
<?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 Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Appengine_Date');
@@ -0,0 +1,56 @@
<?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 DebugInstanceRequest extends \Google\Model
{
/**
* Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa
* [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh
* {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information,
* see Adding and Removing SSH Keys
* (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
*
* @var string
*/
public $sshKey;
/**
* Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa
* [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh
* {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information,
* see Adding and Removing SSH Keys
* (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys).
*
* @param string $sshKey
*/
public function setSshKey($sshKey)
{
$this->sshKey = $sshKey;
}
/**
* @return string
*/
public function getSshKey()
{
return $this->sshKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DebugInstanceRequest::class, 'Google_Service_Appengine_DebugInstanceRequest');
@@ -0,0 +1,104 @@
<?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 Deployment extends \Google\Model
{
protected $cloudBuildOptionsType = CloudBuildOptions::class;
protected $cloudBuildOptionsDataType = '';
protected $containerType = ContainerInfo::class;
protected $containerDataType = '';
protected $filesType = FileInfo::class;
protected $filesDataType = 'map';
protected $zipType = ZipInfo::class;
protected $zipDataType = '';
/**
* Options for any Google Cloud Build builds created as a part of this
* deployment.These options will only be used if a new build is created, such
* as when deploying to the App Engine flexible environment using files or
* zip.
*
* @param CloudBuildOptions $cloudBuildOptions
*/
public function setCloudBuildOptions(CloudBuildOptions $cloudBuildOptions)
{
$this->cloudBuildOptions = $cloudBuildOptions;
}
/**
* @return CloudBuildOptions
*/
public function getCloudBuildOptions()
{
return $this->cloudBuildOptions;
}
/**
* The Docker image for the container that runs the version. Only applicable
* for instances running in the App Engine flexible environment.
*
* @param ContainerInfo $container
*/
public function setContainer(ContainerInfo $container)
{
$this->container = $container;
}
/**
* @return ContainerInfo
*/
public function getContainer()
{
return $this->container;
}
/**
* Manifest of the files stored in Google Cloud Storage that are included as
* part of this version. All files must be readable using the credentials
* supplied with this call.
*
* @param FileInfo[] $files
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return FileInfo[]
*/
public function getFiles()
{
return $this->files;
}
/**
* The zip file for this deployment, if this is a zip deployment.
*
* @param ZipInfo $zip
*/
public function setZip(ZipInfo $zip)
{
$this->zip = $zip;
}
/**
* @return ZipInfo
*/
public function getZip()
{
return $this->zip;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_Appengine_Deployment');
@@ -0,0 +1,114 @@
<?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 DiskUtilization extends \Google\Model
{
/**
* Target bytes read per second.
*
* @var int
*/
public $targetReadBytesPerSecond;
/**
* Target ops read per seconds.
*
* @var int
*/
public $targetReadOpsPerSecond;
/**
* Target bytes written per second.
*
* @var int
*/
public $targetWriteBytesPerSecond;
/**
* Target ops written per second.
*
* @var int
*/
public $targetWriteOpsPerSecond;
/**
* Target bytes read per second.
*
* @param int $targetReadBytesPerSecond
*/
public function setTargetReadBytesPerSecond($targetReadBytesPerSecond)
{
$this->targetReadBytesPerSecond = $targetReadBytesPerSecond;
}
/**
* @return int
*/
public function getTargetReadBytesPerSecond()
{
return $this->targetReadBytesPerSecond;
}
/**
* Target ops read per seconds.
*
* @param int $targetReadOpsPerSecond
*/
public function setTargetReadOpsPerSecond($targetReadOpsPerSecond)
{
$this->targetReadOpsPerSecond = $targetReadOpsPerSecond;
}
/**
* @return int
*/
public function getTargetReadOpsPerSecond()
{
return $this->targetReadOpsPerSecond;
}
/**
* Target bytes written per second.
*
* @param int $targetWriteBytesPerSecond
*/
public function setTargetWriteBytesPerSecond($targetWriteBytesPerSecond)
{
$this->targetWriteBytesPerSecond = $targetWriteBytesPerSecond;
}
/**
* @return int
*/
public function getTargetWriteBytesPerSecond()
{
return $this->targetWriteBytesPerSecond;
}
/**
* Target ops written per second.
*
* @param int $targetWriteOpsPerSecond
*/
public function setTargetWriteOpsPerSecond($targetWriteOpsPerSecond)
{
$this->targetWriteOpsPerSecond = $targetWriteOpsPerSecond;
}
/**
* @return int
*/
public function getTargetWriteOpsPerSecond()
{
return $this->targetWriteOpsPerSecond;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskUtilization::class, 'Google_Service_Appengine_DiskUtilization');
@@ -0,0 +1,112 @@
<?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 DomainMapping extends \Google\Collection
{
protected $collection_key = 'resourceRecords';
/**
* Relative name of the domain serving the application. Example: example.com.
*
* @var string
*/
public $id;
/**
* Output only. Full path to the DomainMapping resource in the API. Example:
* apps/myapp/domainMapping/example.com.@OutputOnly
*
* @var string
*/
public $name;
protected $resourceRecordsType = ResourceRecord::class;
protected $resourceRecordsDataType = 'array';
protected $sslSettingsType = SslSettings::class;
protected $sslSettingsDataType = '';
/**
* Relative name of the domain serving the application. Example: example.com.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Full path to the DomainMapping resource in the API. Example:
* apps/myapp/domainMapping/example.com.@OutputOnly
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resource records required to configure this domain
* mapping. These records must be added to the domain's DNS configuration in
* order to serve the application via this domain mapping.@OutputOnly
*
* @param ResourceRecord[] $resourceRecords
*/
public function setResourceRecords($resourceRecords)
{
$this->resourceRecords = $resourceRecords;
}
/**
* @return ResourceRecord[]
*/
public function getResourceRecords()
{
return $this->resourceRecords;
}
/**
* SSL configuration for this domain. If unconfigured, this domain will not
* serve with SSL.
*
* @param SslSettings $sslSettings
*/
public function setSslSettings(SslSettings $sslSettings)
{
$this->sslSettings = $sslSettings;
}
/**
* @return SslSettings
*/
public function getSslSettings()
{
return $this->sslSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainMapping::class, 'Google_Service_Appengine_DomainMapping');
@@ -0,0 +1,151 @@
<?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 EndpointsApiService extends \Google\Model
{
/**
* Not specified. Defaults to FIXED.
*/
public const ROLLOUT_STRATEGY_UNSPECIFIED_ROLLOUT_STRATEGY = 'UNSPECIFIED_ROLLOUT_STRATEGY';
/**
* Endpoints service configuration ID will be fixed to the configuration ID
* specified by config_id.
*/
public const ROLLOUT_STRATEGY_FIXED = 'FIXED';
/**
* Endpoints service configuration ID will be updated with each rollout.
*/
public const ROLLOUT_STRATEGY_MANAGED = 'MANAGED';
/**
* Endpoints service configuration ID as specified by the Service Management
* API. For example "2016-09-19r1".By default, the rollout strategy for
* Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up
* with a particular configuration ID. When a new configuration is rolled out,
* Endpoints must be given the new configuration ID. The config_id field is
* used to give the configuration ID and is required in this case.Endpoints
* also has a rollout strategy called RolloutStrategy.MANAGED. When using
* this, Endpoints fetches the latest configuration and does not need the
* configuration ID. In this case, config_id must be omitted.
*
* @var string
*/
public $configId;
/**
* Enable or disable trace sampling. By default, this is set to false for
* enabled.
*
* @var bool
*/
public $disableTraceSampling;
/**
* Endpoints service name which is the name of the "service" resource in the
* Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
*
* @var string
*/
public $name;
/**
* Endpoints rollout strategy. If FIXED, config_id must be specified. If
* MANAGED, config_id must be omitted.
*
* @var string
*/
public $rolloutStrategy;
/**
* Endpoints service configuration ID as specified by the Service Management
* API. For example "2016-09-19r1".By default, the rollout strategy for
* Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up
* with a particular configuration ID. When a new configuration is rolled out,
* Endpoints must be given the new configuration ID. The config_id field is
* used to give the configuration ID and is required in this case.Endpoints
* also has a rollout strategy called RolloutStrategy.MANAGED. When using
* this, Endpoints fetches the latest configuration and does not need the
* configuration ID. In this case, config_id must be omitted.
*
* @param string $configId
*/
public function setConfigId($configId)
{
$this->configId = $configId;
}
/**
* @return string
*/
public function getConfigId()
{
return $this->configId;
}
/**
* Enable or disable trace sampling. By default, this is set to false for
* enabled.
*
* @param bool $disableTraceSampling
*/
public function setDisableTraceSampling($disableTraceSampling)
{
$this->disableTraceSampling = $disableTraceSampling;
}
/**
* @return bool
*/
public function getDisableTraceSampling()
{
return $this->disableTraceSampling;
}
/**
* Endpoints service name which is the name of the "service" resource in the
* Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Endpoints rollout strategy. If FIXED, config_id must be specified. If
* MANAGED, config_id must be omitted.
*
* Accepted values: UNSPECIFIED_ROLLOUT_STRATEGY, FIXED, MANAGED
*
* @param self::ROLLOUT_STRATEGY_* $rolloutStrategy
*/
public function setRolloutStrategy($rolloutStrategy)
{
$this->rolloutStrategy = $rolloutStrategy;
}
/**
* @return self::ROLLOUT_STRATEGY_*
*/
public function getRolloutStrategy()
{
return $this->rolloutStrategy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointsApiService::class, 'Google_Service_Appengine_EndpointsApiService');
@@ -0,0 +1,48 @@
<?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 Entrypoint extends \Google\Model
{
/**
* The format should be a shell command that can be fed to bash -c.
*
* @var string
*/
public $shell;
/**
* The format should be a shell command that can be fed to bash -c.
*
* @param string $shell
*/
public function setShell($shell)
{
$this->shell = $shell;
}
/**
* @return string
*/
public function getShell()
{
return $this->shell;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entrypoint::class, 'Google_Service_Appengine_Entrypoint');
@@ -0,0 +1,116 @@
<?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 ErrorHandler extends \Google\Model
{
/**
* Not specified. ERROR_CODE_DEFAULT is assumed.
*/
public const ERROR_CODE_ERROR_CODE_UNSPECIFIED = 'ERROR_CODE_UNSPECIFIED';
/**
* All other error types.
*/
public const ERROR_CODE_ERROR_CODE_DEFAULT = 'ERROR_CODE_DEFAULT';
/**
* Application has exceeded a resource quota.
*/
public const ERROR_CODE_ERROR_CODE_OVER_QUOTA = 'ERROR_CODE_OVER_QUOTA';
/**
* Client blocked by the application's Denial of Service protection
* configuration.
*/
public const ERROR_CODE_ERROR_CODE_DOS_API_DENIAL = 'ERROR_CODE_DOS_API_DENIAL';
/**
* Deadline reached before the application responds.
*/
public const ERROR_CODE_ERROR_CODE_TIMEOUT = 'ERROR_CODE_TIMEOUT';
/**
* Error condition this handler applies to.
*
* @var string
*/
public $errorCode;
/**
* MIME type of file. Defaults to text/html.
*
* @var string
*/
public $mimeType;
/**
* Static file content to be served for this error.
*
* @var string
*/
public $staticFile;
/**
* Error condition this handler applies to.
*
* Accepted values: ERROR_CODE_UNSPECIFIED, ERROR_CODE_DEFAULT,
* ERROR_CODE_OVER_QUOTA, ERROR_CODE_DOS_API_DENIAL, ERROR_CODE_TIMEOUT
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* MIME type of file. Defaults to text/html.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* Static file content to be served for this error.
*
* @param string $staticFile
*/
public function setStaticFile($staticFile)
{
$this->staticFile = $staticFile;
}
/**
* @return string
*/
public function getStaticFile()
{
return $this->staticFile;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorHandler::class, 'Google_Service_Appengine_ErrorHandler');
@@ -0,0 +1,58 @@
<?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 ExportAppImageRequest extends \Google\Model
{
/**
* Optional. The full resource name of the AR repository to export to. Format:
* projects/{project}/locations/{location}/repositories/{repository} If not
* specified, defaults to
* projects/{project}/locations/{location}/repositories/gae-standard in the
* same region as the app. The default repository will be created if it does
* not exist.
*
* @var string
*/
public $destinationRepository;
/**
* Optional. The full resource name of the AR repository to export to. Format:
* projects/{project}/locations/{location}/repositories/{repository} If not
* specified, defaults to
* projects/{project}/locations/{location}/repositories/gae-standard in the
* same region as the app. The default repository will be created if it does
* not exist.
*
* @param string $destinationRepository
*/
public function setDestinationRepository($destinationRepository)
{
$this->destinationRepository = $destinationRepository;
}
/**
* @return string
*/
public function getDestinationRepository()
{
return $this->destinationRepository;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportAppImageRequest::class, 'Google_Service_Appengine_ExportAppImageRequest');
@@ -0,0 +1,80 @@
<?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 FeatureSettings extends \Google\Model
{
/**
* Boolean value indicating if split health checks should be used instead of
* the legacy health checks. At an app.yaml level, this means defaulting to
* 'readiness_check' and 'liveness_check' values instead of 'health_check'
* ones. Once the legacy 'health_check' behavior is deprecated, and this value
* is always true, this setting can be removed.
*
* @var bool
*/
public $splitHealthChecks;
/**
* If true, use Container-Optimized OS (https://cloud.google.com/container-
* optimized-os/) base image for VMs, rather than a base Debian image.
*
* @var bool
*/
public $useContainerOptimizedOs;
/**
* Boolean value indicating if split health checks should be used instead of
* the legacy health checks. At an app.yaml level, this means defaulting to
* 'readiness_check' and 'liveness_check' values instead of 'health_check'
* ones. Once the legacy 'health_check' behavior is deprecated, and this value
* is always true, this setting can be removed.
*
* @param bool $splitHealthChecks
*/
public function setSplitHealthChecks($splitHealthChecks)
{
$this->splitHealthChecks = $splitHealthChecks;
}
/**
* @return bool
*/
public function getSplitHealthChecks()
{
return $this->splitHealthChecks;
}
/**
* If true, use Container-Optimized OS (https://cloud.google.com/container-
* optimized-os/) base image for VMs, rather than a base Debian image.
*
* @param bool $useContainerOptimizedOs
*/
public function setUseContainerOptimizedOs($useContainerOptimizedOs)
{
$this->useContainerOptimizedOs = $useContainerOptimizedOs;
}
/**
* @return bool
*/
public function getUseContainerOptimizedOs()
{
return $this->useContainerOptimizedOs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeatureSettings::class, 'Google_Service_Appengine_FeatureSettings');
@@ -0,0 +1,94 @@
<?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 FileInfo extends \Google\Model
{
/**
* The MIME type of the file.Defaults to the value from Google Cloud Storage.
*
* @var string
*/
public $mimeType;
/**
* The SHA1 hash of the file, in hex.
*
* @var string
*/
public $sha1Sum;
/**
* URL source to use to fetch this file. Must be a URL to a resource in Google
* Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
*
* @var string
*/
public $sourceUrl;
/**
* The MIME type of the file.Defaults to the value from Google Cloud Storage.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* The SHA1 hash of the file, in hex.
*
* @param string $sha1Sum
*/
public function setSha1Sum($sha1Sum)
{
$this->sha1Sum = $sha1Sum;
}
/**
* @return string
*/
public function getSha1Sum()
{
return $this->sha1Sum;
}
/**
* URL source to use to fetch this file. Must be a URL to a resource in Google
* Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
*
* @param string $sourceUrl
*/
public function setSourceUrl($sourceUrl)
{
$this->sourceUrl = $sourceUrl;
}
/**
* @return string
*/
public function getSourceUrl()
{
return $this->sourceUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileInfo::class, 'Google_Service_Appengine_FileInfo');
@@ -0,0 +1,137 @@
<?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 FirewallRule extends \Google\Model
{
public const ACTION_UNSPECIFIED_ACTION = 'UNSPECIFIED_ACTION';
/**
* Matching requests are allowed.
*/
public const ACTION_ALLOW = 'ALLOW';
/**
* Matching requests are denied.
*/
public const ACTION_DENY = 'DENY';
/**
* The action to take on matched requests.
*
* @var string
*/
public $action;
/**
* An optional string description of this rule. This field has a maximum
* length of 400 characters.
*
* @var string
*/
public $description;
/**
* @var int
*/
public $priority;
/**
* IP address or range, defined using CIDR notation, of requests that this
* rule applies to. You can use the wildcard character "*" to match all IPs
* equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1 or
* 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334.
* Truncation will be silently performed on addresses which are not properly
* truncated. For example, 1.2.3.4/24 is accepted as the same address as
* 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 is accepted as the same
* address as 2001:db8::/32.
*
* @var string
*/
public $sourceRange;
/**
* The action to take on matched requests.
*
* Accepted values: UNSPECIFIED_ACTION, ALLOW, DENY
*
* @param self::ACTION_* $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return self::ACTION_*
*/
public function getAction()
{
return $this->action;
}
/**
* An optional string description of this rule. This field has a maximum
* length of 400 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param int $priority
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return int
*/
public function getPriority()
{
return $this->priority;
}
/**
* IP address or range, defined using CIDR notation, of requests that this
* rule applies to. You can use the wildcard character "*" to match all IPs
* equivalent to "0/0" and "::/0" together. Examples: 192.168.1.1 or
* 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334.
* Truncation will be silently performed on addresses which are not properly
* truncated. For example, 1.2.3.4/24 is accepted as the same address as
* 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 is accepted as the same
* address as 2001:db8::/32.
*
* @param string $sourceRange
*/
public function setSourceRange($sourceRange)
{
$this->sourceRange = $sourceRange;
}
/**
* @return string
*/
public function getSourceRange()
{
return $this->sourceRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirewallRule::class, 'Google_Service_Appengine_FirewallRule');
@@ -0,0 +1,70 @@
<?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 FlexibleRuntimeSettings extends \Google\Model
{
/**
* The operating system of the application runtime.
*
* @var string
*/
public $operatingSystem;
/**
* The runtime version of an App Engine flexible application.
*
* @var string
*/
public $runtimeVersion;
/**
* The operating system of the application runtime.
*
* @param string $operatingSystem
*/
public function setOperatingSystem($operatingSystem)
{
$this->operatingSystem = $operatingSystem;
}
/**
* @return string
*/
public function getOperatingSystem()
{
return $this->operatingSystem;
}
/**
* The runtime version of an App Engine flexible application.
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FlexibleRuntimeSettings::class, 'Google_Service_Appengine_FlexibleRuntimeSettings');
@@ -0,0 +1,75 @@
<?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 GceTag extends \Google\Collection
{
protected $collection_key = 'parent';
/**
* The parents(s) of the tag. Eg. projects/123, folders/456 It usually
* contains only one parent. But, in some corner cases, it can contain
* multiple parents. Currently, organizations are not supported.
*
* @var string[]
*/
public $parent;
/**
* The administrative_tag name.
*
* @var string
*/
public $tag;
/**
* The parents(s) of the tag. Eg. projects/123, folders/456 It usually
* contains only one parent. But, in some corner cases, it can contain
* multiple parents. Currently, organizations are not supported.
*
* @param string[] $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string[]
*/
public function getParent()
{
return $this->parent;
}
/**
* The administrative_tag name.
*
* @param string $tag
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GceTag::class, 'Google_Service_Appengine_GceTag');
@@ -0,0 +1,100 @@
<?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 GoogleAppengineV1betaLocationMetadata extends \Google\Model
{
/**
* App Engine flexible environment is available in the given
* location.@OutputOnly
*
* @var bool
*/
public $flexibleEnvironmentAvailable;
/**
* Output only. Search API
* (https://cloud.google.com/appengine/docs/standard/python/search) is
* available in the given location.
*
* @var bool
*/
public $searchApiAvailable;
/**
* App Engine standard environment is available in the given
* location.@OutputOnly
*
* @var bool
*/
public $standardEnvironmentAvailable;
/**
* App Engine flexible environment is available in the given
* location.@OutputOnly
*
* @param bool $flexibleEnvironmentAvailable
*/
public function setFlexibleEnvironmentAvailable($flexibleEnvironmentAvailable)
{
$this->flexibleEnvironmentAvailable = $flexibleEnvironmentAvailable;
}
/**
* @return bool
*/
public function getFlexibleEnvironmentAvailable()
{
return $this->flexibleEnvironmentAvailable;
}
/**
* Output only. Search API
* (https://cloud.google.com/appengine/docs/standard/python/search) is
* available in the given location.
*
* @param bool $searchApiAvailable
*/
public function setSearchApiAvailable($searchApiAvailable)
{
$this->searchApiAvailable = $searchApiAvailable;
}
/**
* @return bool
*/
public function getSearchApiAvailable()
{
return $this->searchApiAvailable;
}
/**
* App Engine standard environment is available in the given
* location.@OutputOnly
*
* @param bool $standardEnvironmentAvailable
*/
public function setStandardEnvironmentAvailable($standardEnvironmentAvailable)
{
$this->standardEnvironmentAvailable = $standardEnvironmentAvailable;
}
/**
* @return bool
*/
public function getStandardEnvironmentAvailable()
{
return $this->standardEnvironmentAvailable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppengineV1betaLocationMetadata::class, 'Google_Service_Appengine_GoogleAppengineV1betaLocationMetadata');
@@ -0,0 +1,108 @@
<?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 GoogleAppengineV2OperationMetadata extends \Google\Collection
{
protected $collection_key = 'warning';
public $apiVersion;
public $createTime;
public $endTime;
public $ephemeralMessage;
public $requestedCancellation;
public $statusMessage;
public $target;
public $verb;
public $warning;
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
public function getCreateTime()
{
return $this->createTime;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setEphemeralMessage($ephemeralMessage)
{
$this->ephemeralMessage = $ephemeralMessage;
}
public function getEphemeralMessage()
{
return $this->ephemeralMessage;
}
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
public function getStatusMessage()
{
return $this->statusMessage;
}
public function setTarget($target)
{
$this->target = $target;
}
public function getTarget()
{
return $this->target;
}
public function setVerb($verb)
{
$this->verb = $verb;
}
public function getVerb()
{
return $this->verb;
}
public function setWarning($warning)
{
$this->warning = $warning;
}
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppengineV2OperationMetadata::class, 'Google_Service_Appengine_GoogleAppengineV2OperationMetadata');
@@ -0,0 +1,108 @@
<?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 GoogleAppengineV2mainOperationMetadata extends \Google\Collection
{
protected $collection_key = 'warning';
public $apiVersion;
public $createTime;
public $endTime;
public $ephemeralMessage;
public $requestedCancellation;
public $statusMessage;
public $target;
public $verb;
public $warning;
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
public function getCreateTime()
{
return $this->createTime;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function getEndTime()
{
return $this->endTime;
}
public function setEphemeralMessage($ephemeralMessage)
{
$this->ephemeralMessage = $ephemeralMessage;
}
public function getEphemeralMessage()
{
return $this->ephemeralMessage;
}
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
public function getStatusMessage()
{
return $this->statusMessage;
}
public function setTarget($target)
{
$this->target = $target;
}
public function getTarget()
{
return $this->target;
}
public function setVerb($verb)
{
$this->verb = $verb;
}
public function getVerb()
{
return $this->verb;
}
public function setWarning($warning)
{
$this->warning = $warning;
}
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAppengineV2mainOperationMetadata::class, 'Google_Service_Appengine_GoogleAppengineV2mainOperationMetadata');
@@ -0,0 +1,188 @@
<?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 HealthCheck extends \Google\Model
{
/**
* Interval between health checks.
*
* @var string
*/
public $checkInterval;
/**
* Whether to explicitly disable health checks for this instance.
*
* @var bool
*/
public $disableHealthCheck;
/**
* Number of consecutive successful health checks required before receiving
* traffic.
*
* @var string
*/
public $healthyThreshold;
/**
* Host header to send when performing an HTTP health check. Example:
* "myapp.appspot.com"
*
* @var string
*/
public $host;
/**
* Number of consecutive failed health checks required before an instance is
* restarted.
*
* @var string
*/
public $restartThreshold;
/**
* Time before the health check is considered failed.
*
* @var string
*/
public $timeout;
/**
* Number of consecutive failed health checks required before removing
* traffic.
*
* @var string
*/
public $unhealthyThreshold;
/**
* Interval between health checks.
*
* @param string $checkInterval
*/
public function setCheckInterval($checkInterval)
{
$this->checkInterval = $checkInterval;
}
/**
* @return string
*/
public function getCheckInterval()
{
return $this->checkInterval;
}
/**
* Whether to explicitly disable health checks for this instance.
*
* @param bool $disableHealthCheck
*/
public function setDisableHealthCheck($disableHealthCheck)
{
$this->disableHealthCheck = $disableHealthCheck;
}
/**
* @return bool
*/
public function getDisableHealthCheck()
{
return $this->disableHealthCheck;
}
/**
* Number of consecutive successful health checks required before receiving
* traffic.
*
* @param string $healthyThreshold
*/
public function setHealthyThreshold($healthyThreshold)
{
$this->healthyThreshold = $healthyThreshold;
}
/**
* @return string
*/
public function getHealthyThreshold()
{
return $this->healthyThreshold;
}
/**
* Host header to send when performing an HTTP health check. Example:
* "myapp.appspot.com"
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* Number of consecutive failed health checks required before an instance is
* restarted.
*
* @param string $restartThreshold
*/
public function setRestartThreshold($restartThreshold)
{
$this->restartThreshold = $restartThreshold;
}
/**
* @return string
*/
public function getRestartThreshold()
{
return $this->restartThreshold;
}
/**
* Time before the health check is considered failed.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Number of consecutive failed health checks required before removing
* traffic.
*
* @param string $unhealthyThreshold
*/
public function setUnhealthyThreshold($unhealthyThreshold)
{
$this->unhealthyThreshold = $unhealthyThreshold;
}
/**
* @return string
*/
public function getUnhealthyThreshold()
{
return $this->unhealthyThreshold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HealthCheck::class, 'Google_Service_Appengine_HealthCheck');
@@ -0,0 +1,124 @@
<?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 IdentityAwareProxy extends \Google\Model
{
/**
* Whether the serving infrastructure will authenticate and authorize all
* incoming requests.If true, the oauth2_client_id and oauth2_client_secret
* fields must be non-empty.
*
* @var bool
*/
public $enabled;
/**
* OAuth2 client ID to use for the authentication flow.
*
* @var string
*/
public $oauth2ClientId;
/**
* OAuth2 client secret to use for the authentication flow.For security
* reasons, this value cannot be retrieved via the API. Instead, the SHA-256
* hash of the value is returned in the oauth2_client_secret_sha256
* field.@InputOnly
*
* @var string
*/
public $oauth2ClientSecret;
/**
* Output only. Hex-encoded SHA-256 hash of the client secret.@OutputOnly
*
* @var string
*/
public $oauth2ClientSecretSha256;
/**
* Whether the serving infrastructure will authenticate and authorize all
* incoming requests.If true, the oauth2_client_id and oauth2_client_secret
* fields must be non-empty.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* OAuth2 client ID to use for the authentication flow.
*
* @param string $oauth2ClientId
*/
public function setOauth2ClientId($oauth2ClientId)
{
$this->oauth2ClientId = $oauth2ClientId;
}
/**
* @return string
*/
public function getOauth2ClientId()
{
return $this->oauth2ClientId;
}
/**
* OAuth2 client secret to use for the authentication flow.For security
* reasons, this value cannot be retrieved via the API. Instead, the SHA-256
* hash of the value is returned in the oauth2_client_secret_sha256
* field.@InputOnly
*
* @param string $oauth2ClientSecret
*/
public function setOauth2ClientSecret($oauth2ClientSecret)
{
$this->oauth2ClientSecret = $oauth2ClientSecret;
}
/**
* @return string
*/
public function getOauth2ClientSecret()
{
return $this->oauth2ClientSecret;
}
/**
* Output only. Hex-encoded SHA-256 hash of the client secret.@OutputOnly
*
* @param string $oauth2ClientSecretSha256
*/
public function setOauth2ClientSecretSha256($oauth2ClientSecretSha256)
{
$this->oauth2ClientSecretSha256 = $oauth2ClientSecretSha256;
}
/**
* @return string
*/
public function getOauth2ClientSecretSha256()
{
return $this->oauth2ClientSecretSha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IdentityAwareProxy::class, 'Google_Service_Appengine_IdentityAwareProxy');
@@ -0,0 +1,458 @@
<?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 Instance extends \Google\Model
{
public const AVAILABILITY_UNSPECIFIED = 'UNSPECIFIED';
public const AVAILABILITY_RESIDENT = 'RESIDENT';
public const AVAILABILITY_DYNAMIC = 'DYNAMIC';
/**
* There is no liveness health check for the instance. Only applicable for
* instances in App Engine standard environment.
*/
public const VM_LIVENESS_LIVENESS_STATE_UNSPECIFIED = 'LIVENESS_STATE_UNSPECIFIED';
/**
* The health checking system is aware of the instance but its health is not
* known at the moment.
*/
public const VM_LIVENESS_UNKNOWN = 'UNKNOWN';
/**
* The instance is reachable i.e. a connection to the application health
* checking endpoint can be established, and conforms to the requirements
* defined by the health check.
*/
public const VM_LIVENESS_HEALTHY = 'HEALTHY';
/**
* The instance is reachable, but does not conform to the requirements defined
* by the health check.
*/
public const VM_LIVENESS_UNHEALTHY = 'UNHEALTHY';
/**
* The instance is being drained. The existing connections to the instance
* have time to complete, but the new ones are being refused.
*/
public const VM_LIVENESS_DRAINING = 'DRAINING';
/**
* The instance is unreachable i.e. a connection to the application health
* checking endpoint cannot be established, or the server does not respond
* within the specified timeout.
*/
public const VM_LIVENESS_TIMEOUT = 'TIMEOUT';
/**
* Output only. App Engine release this instance is running on.
*
* @var string
*/
public $appEngineRelease;
/**
* Output only. Availability of the instance.
*
* @var string
*/
public $availability;
/**
* Output only. Average latency (ms) over the last minute.
*
* @var int
*/
public $averageLatency;
/**
* Output only. Number of errors since this instance was started.
*
* @var int
*/
public $errors;
/**
* Output only. Relative name of the instance within the version. Example:
* instance-1.
*
* @var string
*/
public $id;
/**
* Output only. Total memory in use (bytes).
*
* @var string
*/
public $memoryUsage;
/**
* Output only. Full path to the Instance resource in the API. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
*
* @var string
*/
public $name;
/**
* Output only. Average queries per second (QPS) over the last minute.
*
* @var float
*/
public $qps;
/**
* Output only. Number of requests since this instance was started.
*
* @var int
*/
public $requests;
/**
* Output only. Time that this instance was started.@OutputOnly
*
* @var string
*/
public $startTime;
/**
* Output only. Whether this instance is in debug mode. Only applicable for
* instances in App Engine flexible environment.
*
* @var bool
*/
public $vmDebugEnabled;
/**
* Output only. Virtual machine ID of this instance. Only applicable for
* instances in App Engine flexible environment.
*
* @var string
*/
public $vmId;
/**
* Output only. The IP address of this instance. Only applicable for instances
* in App Engine flexible environment.
*
* @var string
*/
public $vmIp;
/**
* Output only. The liveness health check of this instance. Only applicable
* for instances in App Engine flexible environment.
*
* @var string
*/
public $vmLiveness;
/**
* Output only. Name of the virtual machine where this instance lives. Only
* applicable for instances in App Engine flexible environment.
*
* @var string
*/
public $vmName;
/**
* Output only. Status of the virtual machine where this instance lives. Only
* applicable for instances in App Engine flexible environment.
*
* @var string
*/
public $vmStatus;
/**
* Output only. Zone where the virtual machine is located. Only applicable for
* instances in App Engine flexible environment.
*
* @var string
*/
public $vmZoneName;
/**
* Output only. App Engine release this instance is running on.
*
* @param string $appEngineRelease
*/
public function setAppEngineRelease($appEngineRelease)
{
$this->appEngineRelease = $appEngineRelease;
}
/**
* @return string
*/
public function getAppEngineRelease()
{
return $this->appEngineRelease;
}
/**
* Output only. Availability of the instance.
*
* Accepted values: UNSPECIFIED, RESIDENT, DYNAMIC
*
* @param self::AVAILABILITY_* $availability
*/
public function setAvailability($availability)
{
$this->availability = $availability;
}
/**
* @return self::AVAILABILITY_*
*/
public function getAvailability()
{
return $this->availability;
}
/**
* Output only. Average latency (ms) over the last minute.
*
* @param int $averageLatency
*/
public function setAverageLatency($averageLatency)
{
$this->averageLatency = $averageLatency;
}
/**
* @return int
*/
public function getAverageLatency()
{
return $this->averageLatency;
}
/**
* Output only. Number of errors since this instance was started.
*
* @param int $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return int
*/
public function getErrors()
{
return $this->errors;
}
/**
* Output only. Relative name of the instance within the version. Example:
* instance-1.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Total memory in use (bytes).
*
* @param string $memoryUsage
*/
public function setMemoryUsage($memoryUsage)
{
$this->memoryUsage = $memoryUsage;
}
/**
* @return string
*/
public function getMemoryUsage()
{
return $this->memoryUsage;
}
/**
* Output only. Full path to the Instance resource in the API. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Average queries per second (QPS) over the last minute.
*
* @param float $qps
*/
public function setQps($qps)
{
$this->qps = $qps;
}
/**
* @return float
*/
public function getQps()
{
return $this->qps;
}
/**
* Output only. Number of requests since this instance was started.
*
* @param int $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return int
*/
public function getRequests()
{
return $this->requests;
}
/**
* Output only. Time that this instance was started.@OutputOnly
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Output only. Whether this instance is in debug mode. Only applicable for
* instances in App Engine flexible environment.
*
* @param bool $vmDebugEnabled
*/
public function setVmDebugEnabled($vmDebugEnabled)
{
$this->vmDebugEnabled = $vmDebugEnabled;
}
/**
* @return bool
*/
public function getVmDebugEnabled()
{
return $this->vmDebugEnabled;
}
/**
* Output only. Virtual machine ID of this instance. Only applicable for
* instances in App Engine flexible environment.
*
* @param string $vmId
*/
public function setVmId($vmId)
{
$this->vmId = $vmId;
}
/**
* @return string
*/
public function getVmId()
{
return $this->vmId;
}
/**
* Output only. The IP address of this instance. Only applicable for instances
* in App Engine flexible environment.
*
* @param string $vmIp
*/
public function setVmIp($vmIp)
{
$this->vmIp = $vmIp;
}
/**
* @return string
*/
public function getVmIp()
{
return $this->vmIp;
}
/**
* Output only. The liveness health check of this instance. Only applicable
* for instances in App Engine flexible environment.
*
* Accepted values: LIVENESS_STATE_UNSPECIFIED, UNKNOWN, HEALTHY, UNHEALTHY,
* DRAINING, TIMEOUT
*
* @param self::VM_LIVENESS_* $vmLiveness
*/
public function setVmLiveness($vmLiveness)
{
$this->vmLiveness = $vmLiveness;
}
/**
* @return self::VM_LIVENESS_*
*/
public function getVmLiveness()
{
return $this->vmLiveness;
}
/**
* Output only. Name of the virtual machine where this instance lives. Only
* applicable for instances in App Engine flexible environment.
*
* @param string $vmName
*/
public function setVmName($vmName)
{
$this->vmName = $vmName;
}
/**
* @return string
*/
public function getVmName()
{
return $this->vmName;
}
/**
* Output only. Status of the virtual machine where this instance lives. Only
* applicable for instances in App Engine flexible environment.
*
* @param string $vmStatus
*/
public function setVmStatus($vmStatus)
{
$this->vmStatus = $vmStatus;
}
/**
* @return string
*/
public function getVmStatus()
{
return $this->vmStatus;
}
/**
* Output only. Zone where the virtual machine is located. Only applicable for
* instances in App Engine flexible environment.
*
* @param string $vmZoneName
*/
public function setVmZoneName($vmZoneName)
{
$this->vmZoneName = $vmZoneName;
}
/**
* @return string
*/
public function getVmZoneName()
{
return $this->vmZoneName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_Appengine_Instance');
@@ -0,0 +1,70 @@
<?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 Library extends \Google\Model
{
/**
* Name of the library. Example: "django".
*
* @var string
*/
public $name;
/**
* Version of the library to select, or "latest".
*
* @var string
*/
public $version;
/**
* Name of the library. Example: "django".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Version of the library to select, or "latest".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Library::class, 'Google_Service_Appengine_Library');
@@ -0,0 +1,67 @@
<?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 ListAuthorizedCertificatesResponse extends \Google\Collection
{
protected $collection_key = 'certificates';
protected $certificatesType = AuthorizedCertificate::class;
protected $certificatesDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The SSL certificates the user is authorized to administer.
*
* @param AuthorizedCertificate[] $certificates
*/
public function setCertificates($certificates)
{
$this->certificates = $certificates;
}
/**
* @return AuthorizedCertificate[]
*/
public function getCertificates()
{
return $this->certificates;
}
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAuthorizedCertificatesResponse::class, 'Google_Service_Appengine_ListAuthorizedCertificatesResponse');
@@ -0,0 +1,67 @@
<?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 ListAuthorizedDomainsResponse extends \Google\Collection
{
protected $collection_key = 'domains';
protected $domainsType = AuthorizedDomain::class;
protected $domainsDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The authorized domains belonging to the user.
*
* @param AuthorizedDomain[] $domains
*/
public function setDomains($domains)
{
$this->domains = $domains;
}
/**
* @return AuthorizedDomain[]
*/
public function getDomains()
{
return $this->domains;
}
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAuthorizedDomainsResponse::class, 'Google_Service_Appengine_ListAuthorizedDomainsResponse');
@@ -0,0 +1,67 @@
<?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 ListDomainMappingsResponse extends \Google\Collection
{
protected $collection_key = 'domainMappings';
protected $domainMappingsType = DomainMapping::class;
protected $domainMappingsDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The domain mappings for the application.
*
* @param DomainMapping[] $domainMappings
*/
public function setDomainMappings($domainMappings)
{
$this->domainMappings = $domainMappings;
}
/**
* @return DomainMapping[]
*/
public function getDomainMappings()
{
return $this->domainMappings;
}
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDomainMappingsResponse::class, 'Google_Service_Appengine_ListDomainMappingsResponse');
@@ -0,0 +1,67 @@
<?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 ListIngressRulesResponse extends \Google\Collection
{
protected $collection_key = 'ingressRules';
protected $ingressRulesType = FirewallRule::class;
protected $ingressRulesDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The ingress FirewallRules for this application.
*
* @param FirewallRule[] $ingressRules
*/
public function setIngressRules($ingressRules)
{
$this->ingressRules = $ingressRules;
}
/**
* @return FirewallRule[]
*/
public function getIngressRules()
{
return $this->ingressRules;
}
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListIngressRulesResponse::class, 'Google_Service_Appengine_ListIngressRulesResponse');
@@ -0,0 +1,67 @@
<?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 ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'instances';
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* The instances belonging to the requested version.
*
* @param Instance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInstancesResponse::class, 'Google_Service_Appengine_ListInstancesResponse');
@@ -0,0 +1,67 @@
<?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 ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_Appengine_ListLocationsResponse');
@@ -0,0 +1,95 @@
<?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 ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* ListOperationsRequest.return_partial_success and reads across collections.
* For example, when attempting to list all resources across all supported
* locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* ListOperationsRequest.return_partial_success and reads across collections.
* For example, when attempting to list all resources across all supported
* locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Appengine_ListOperationsResponse');
@@ -0,0 +1,67 @@
<?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 ListRuntimesResponse extends \Google\Collection
{
protected $collection_key = 'runtimes';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $runtimesType = Runtime::class;
protected $runtimesDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The runtimes available to the requested application.
*
* @param Runtime[] $runtimes
*/
public function setRuntimes($runtimes)
{
$this->runtimes = $runtimes;
}
/**
* @return Runtime[]
*/
public function getRuntimes()
{
return $this->runtimes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRuntimesResponse::class, 'Google_Service_Appengine_ListRuntimesResponse');
@@ -0,0 +1,67 @@
<?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 ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $servicesType = Service::class;
protected $servicesDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The services belonging to the requested application.
*
* @param Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServicesResponse::class, 'Google_Service_Appengine_ListServicesResponse');
@@ -0,0 +1,67 @@
<?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 ListVersionsResponse extends \Google\Collection
{
protected $collection_key = 'versions';
/**
* Continuation token for fetching the next page of results.
*
* @var string
*/
public $nextPageToken;
protected $versionsType = Version::class;
protected $versionsDataType = 'array';
/**
* Continuation token for fetching the next page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The versions belonging to the requested service.
*
* @param Version[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return Version[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVersionsResponse::class, 'Google_Service_Appengine_ListVersionsResponse');
@@ -0,0 +1,186 @@
<?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 LivenessCheck extends \Google\Model
{
/**
* Interval between health checks.
*
* @var string
*/
public $checkInterval;
/**
* Number of consecutive failed checks required before considering the VM
* unhealthy.
*
* @var string
*/
public $failureThreshold;
/**
* Host header to send when performing a HTTP Liveness check. Example:
* "myapp.appspot.com"
*
* @var string
*/
public $host;
/**
* The initial delay before starting to execute the checks.
*
* @var string
*/
public $initialDelay;
/**
* The request path.
*
* @var string
*/
public $path;
/**
* Number of consecutive successful checks required before considering the VM
* healthy.
*
* @var string
*/
public $successThreshold;
/**
* Time before the check is considered failed.
*
* @var string
*/
public $timeout;
/**
* Interval between health checks.
*
* @param string $checkInterval
*/
public function setCheckInterval($checkInterval)
{
$this->checkInterval = $checkInterval;
}
/**
* @return string
*/
public function getCheckInterval()
{
return $this->checkInterval;
}
/**
* Number of consecutive failed checks required before considering the VM
* unhealthy.
*
* @param string $failureThreshold
*/
public function setFailureThreshold($failureThreshold)
{
$this->failureThreshold = $failureThreshold;
}
/**
* @return string
*/
public function getFailureThreshold()
{
return $this->failureThreshold;
}
/**
* Host header to send when performing a HTTP Liveness check. Example:
* "myapp.appspot.com"
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* The initial delay before starting to execute the checks.
*
* @param string $initialDelay
*/
public function setInitialDelay($initialDelay)
{
$this->initialDelay = $initialDelay;
}
/**
* @return string
*/
public function getInitialDelay()
{
return $this->initialDelay;
}
/**
* The request path.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Number of consecutive successful checks required before considering the VM
* healthy.
*
* @param string $successThreshold
*/
public function setSuccessThreshold($successThreshold)
{
$this->successThreshold = $successThreshold;
}
/**
* @return string
*/
public function getSuccessThreshold()
{
return $this->successThreshold;
}
/**
* Time before the check is considered failed.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LivenessCheck::class, 'Google_Service_Appengine_LivenessCheck');
@@ -0,0 +1,144 @@
<?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 Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: "us-east1".
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: "projects/example-project/locations/us-east1"
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: "us-east1".
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: "projects/example-project/locations/us-east1"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_Appengine_Location');
@@ -0,0 +1,100 @@
<?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 LocationMetadata extends \Google\Model
{
/**
* App Engine flexible environment is available in the given
* location.@OutputOnly
*
* @var bool
*/
public $flexibleEnvironmentAvailable;
/**
* Output only. Search API
* (https://cloud.google.com/appengine/docs/standard/python/search) is
* available in the given location.
*
* @var bool
*/
public $searchApiAvailable;
/**
* App Engine standard environment is available in the given
* location.@OutputOnly
*
* @var bool
*/
public $standardEnvironmentAvailable;
/**
* App Engine flexible environment is available in the given
* location.@OutputOnly
*
* @param bool $flexibleEnvironmentAvailable
*/
public function setFlexibleEnvironmentAvailable($flexibleEnvironmentAvailable)
{
$this->flexibleEnvironmentAvailable = $flexibleEnvironmentAvailable;
}
/**
* @return bool
*/
public function getFlexibleEnvironmentAvailable()
{
return $this->flexibleEnvironmentAvailable;
}
/**
* Output only. Search API
* (https://cloud.google.com/appengine/docs/standard/python/search) is
* available in the given location.
*
* @param bool $searchApiAvailable
*/
public function setSearchApiAvailable($searchApiAvailable)
{
$this->searchApiAvailable = $searchApiAvailable;
}
/**
* @return bool
*/
public function getSearchApiAvailable()
{
return $this->searchApiAvailable;
}
/**
* App Engine standard environment is available in the given
* location.@OutputOnly
*
* @param bool $standardEnvironmentAvailable
*/
public function setStandardEnvironmentAvailable($standardEnvironmentAvailable)
{
$this->standardEnvironmentAvailable = $standardEnvironmentAvailable;
}
/**
* @return bool
*/
public function getStandardEnvironmentAvailable()
{
return $this->standardEnvironmentAvailable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_Appengine_LocationMetadata');
@@ -0,0 +1,119 @@
<?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 ManagedCertificate extends \Google\Model
{
public const STATUS_MANAGEMENT_STATUS_UNSPECIFIED = 'MANAGEMENT_STATUS_UNSPECIFIED';
/**
* Certificate was successfully obtained and inserted into the serving system.
*/
public const STATUS_OK = 'OK';
/**
* Certificate is under active attempts to acquire or renew.
*/
public const STATUS_PENDING = 'PENDING';
/**
* Most recent renewal failed due to an invalid DNS setup and will be retried.
* Renewal attempts will continue to fail until the certificate domain's DNS
* configuration is fixed. The last successfully provisioned certificate may
* still be serving.
*/
public const STATUS_FAILED_RETRYING_NOT_VISIBLE = 'FAILED_RETRYING_NOT_VISIBLE';
/**
* All renewal attempts have been exhausted, likely due to an invalid DNS
* setup.
*/
public const STATUS_FAILED_PERMANENT = 'FAILED_PERMANENT';
/**
* Most recent renewal failed due to an explicit CAA record that does not
* include one of the in-use CAs (Google CA and Let's Encrypt). Renewals will
* continue to fail until the CAA is reconfigured. The last successfully
* provisioned certificate may still be serving.
*/
public const STATUS_FAILED_RETRYING_CAA_FORBIDDEN = 'FAILED_RETRYING_CAA_FORBIDDEN';
/**
* Most recent renewal failed due to a CAA retrieval failure. This means that
* the domain's DNS provider does not properly handle CAA records, failing
* requests for CAA records when no CAA records are defined. Renewals will
* continue to fail until the DNS provider is changed or a CAA record is added
* for the given domain. The last successfully provisioned certificate may
* still be serving.
*/
public const STATUS_FAILED_RETRYING_CAA_CHECKING = 'FAILED_RETRYING_CAA_CHECKING';
/**
* Time at which the certificate was last renewed. The renewal process is
* fully managed. Certificate renewal will automatically occur before the
* certificate expires. Renewal errors can be tracked via
* ManagementStatus.@OutputOnly
*
* @var string
*/
public $lastRenewalTime;
/**
* Status of certificate management. Refers to the most recent certificate
* acquisition or renewal attempt.@OutputOnly
*
* @var string
*/
public $status;
/**
* Time at which the certificate was last renewed. The renewal process is
* fully managed. Certificate renewal will automatically occur before the
* certificate expires. Renewal errors can be tracked via
* ManagementStatus.@OutputOnly
*
* @param string $lastRenewalTime
*/
public function setLastRenewalTime($lastRenewalTime)
{
$this->lastRenewalTime = $lastRenewalTime;
}
/**
* @return string
*/
public function getLastRenewalTime()
{
return $this->lastRenewalTime;
}
/**
* Status of certificate management. Refers to the most recent certificate
* acquisition or renewal attempt.@OutputOnly
*
* Accepted values: MANAGEMENT_STATUS_UNSPECIFIED, OK, PENDING,
* FAILED_RETRYING_NOT_VISIBLE, FAILED_PERMANENT,
* FAILED_RETRYING_CAA_FORBIDDEN, FAILED_RETRYING_CAA_CHECKING
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedCertificate::class, 'Google_Service_Appengine_ManagedCertificate');
@@ -0,0 +1,54 @@
<?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 ManualScaling extends \Google\Model
{
/**
* Number of instances to assign to the service at the start. This number can
* later be altered by using the Modules API
* (https://cloud.google.com/appengine/docs/python/modules/functions)
* set_num_instances() function.
*
* @var int
*/
public $instances;
/**
* Number of instances to assign to the service at the start. This number can
* later be altered by using the Modules API
* (https://cloud.google.com/appengine/docs/python/modules/functions)
* set_num_instances() function.
*
* @param int $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return int
*/
public function getInstances()
{
return $this->instances;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManualScaling::class, 'Google_Service_Appengine_ManualScaling');
@@ -0,0 +1,209 @@
<?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 Network extends \Google\Collection
{
/**
* Unspecified is treated as EXTERNAL.
*/
public const INSTANCE_IP_MODE_INSTANCE_IP_MODE_UNSPECIFIED = 'INSTANCE_IP_MODE_UNSPECIFIED';
/**
* Instances are created with both internal and external IP addresses.
*/
public const INSTANCE_IP_MODE_EXTERNAL = 'EXTERNAL';
/**
* Instances are created with internal IP addresses only.
*/
public const INSTANCE_IP_MODE_INTERNAL = 'INTERNAL';
protected $collection_key = 'forwardedPorts';
/**
* List of ports, or port pairs, to forward from the virtual machine to the
* application container. Only applicable in the App Engine flexible
* environment.
*
* @var string[]
*/
public $forwardedPorts;
/**
* The IP mode for instances. Only applicable in the App Engine flexible
* environment.
*
* @var string
*/
public $instanceIpMode;
/**
* Tag to apply to the instance during creation. Only applicable in the App
* Engine flexible environment.
*
* @var string
*/
public $instanceTag;
/**
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.Defaults to default.
*
* @var string
*/
public $name;
/**
* Enable session affinity. Only applicable in the App Engine flexible
* environment.
*
* @var bool
*/
public $sessionAffinity;
/**
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.If a subnetwork name is
* specified, a network name will also be required unless it is for the
* default network. If the network that the instance is being created in is a
* Legacy network, then the IP address is allocated from the IPv4Range. If the
* network that the instance is being created in is an auto Subnet Mode
* Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network. If the network that
* the instance is being created in is a custom Subnet Mode Network, then the
* subnetwork_name must be specified and the IP address is created from the
* IPCidrRange of the subnetwork.If specified, the subnetwork must exist in
* the same region as the App Engine flexible environment application.
*
* @var string
*/
public $subnetworkName;
/**
* List of ports, or port pairs, to forward from the virtual machine to the
* application container. Only applicable in the App Engine flexible
* environment.
*
* @param string[] $forwardedPorts
*/
public function setForwardedPorts($forwardedPorts)
{
$this->forwardedPorts = $forwardedPorts;
}
/**
* @return string[]
*/
public function getForwardedPorts()
{
return $this->forwardedPorts;
}
/**
* The IP mode for instances. Only applicable in the App Engine flexible
* environment.
*
* Accepted values: INSTANCE_IP_MODE_UNSPECIFIED, EXTERNAL, INTERNAL
*
* @param self::INSTANCE_IP_MODE_* $instanceIpMode
*/
public function setInstanceIpMode($instanceIpMode)
{
$this->instanceIpMode = $instanceIpMode;
}
/**
* @return self::INSTANCE_IP_MODE_*
*/
public function getInstanceIpMode()
{
return $this->instanceIpMode;
}
/**
* Tag to apply to the instance during creation. Only applicable in the App
* Engine flexible environment.
*
* @param string $instanceTag
*/
public function setInstanceTag($instanceTag)
{
$this->instanceTag = $instanceTag;
}
/**
* @return string
*/
public function getInstanceTag()
{
return $this->instanceTag;
}
/**
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.Defaults to default.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Enable session affinity. Only applicable in the App Engine flexible
* environment.
*
* @param bool $sessionAffinity
*/
public function setSessionAffinity($sessionAffinity)
{
$this->sessionAffinity = $sessionAffinity;
}
/**
* @return bool
*/
public function getSessionAffinity()
{
return $this->sessionAffinity;
}
/**
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.If a subnetwork name is
* specified, a network name will also be required unless it is for the
* default network. If the network that the instance is being created in is a
* Legacy network, then the IP address is allocated from the IPv4Range. If the
* network that the instance is being created in is an auto Subnet Mode
* Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network. If the network that
* the instance is being created in is a custom Subnet Mode Network, then the
* subnetwork_name must be specified and the IP address is created from the
* IPCidrRange of the subnetwork.If specified, the subnetwork must exist in
* the same region as the App Engine flexible environment application.
*
* @param string $subnetworkName
*/
public function setSubnetworkName($subnetworkName)
{
$this->subnetworkName = $subnetworkName;
}
/**
* @return string
*/
public function getSubnetworkName()
{
return $this->subnetworkName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Network::class, 'Google_Service_Appengine_Network');
@@ -0,0 +1,68 @@
<?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 NetworkSettings extends \Google\Model
{
/**
* Unspecified
*/
public const INGRESS_TRAFFIC_ALLOWED_INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED = 'INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED';
/**
* Allow HTTP traffic from public and private sources.
*/
public const INGRESS_TRAFFIC_ALLOWED_INGRESS_TRAFFIC_ALLOWED_ALL = 'INGRESS_TRAFFIC_ALLOWED_ALL';
/**
* Allow HTTP traffic from only private VPC sources.
*/
public const INGRESS_TRAFFIC_ALLOWED_INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY = 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY';
/**
* Allow HTTP traffic from private VPC sources and through load balancers.
*/
public const INGRESS_TRAFFIC_ALLOWED_INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB = 'INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB';
/**
* The ingress settings for version or service.
*
* @var string
*/
public $ingressTrafficAllowed;
/**
* The ingress settings for version or service.
*
* Accepted values: INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED,
* INGRESS_TRAFFIC_ALLOWED_ALL, INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY,
* INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB
*
* @param self::INGRESS_TRAFFIC_ALLOWED_* $ingressTrafficAllowed
*/
public function setIngressTrafficAllowed($ingressTrafficAllowed)
{
$this->ingressTrafficAllowed = $ingressTrafficAllowed;
}
/**
* @return self::INGRESS_TRAFFIC_ALLOWED_*
*/
public function getIngressTrafficAllowed()
{
return $this->ingressTrafficAllowed;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkSettings::class, 'Google_Service_Appengine_NetworkSettings');
@@ -0,0 +1,114 @@
<?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 NetworkUtilization extends \Google\Model
{
/**
* Target bytes received per second.
*
* @var int
*/
public $targetReceivedBytesPerSecond;
/**
* Target packets received per second.
*
* @var int
*/
public $targetReceivedPacketsPerSecond;
/**
* Target bytes sent per second.
*
* @var int
*/
public $targetSentBytesPerSecond;
/**
* Target packets sent per second.
*
* @var int
*/
public $targetSentPacketsPerSecond;
/**
* Target bytes received per second.
*
* @param int $targetReceivedBytesPerSecond
*/
public function setTargetReceivedBytesPerSecond($targetReceivedBytesPerSecond)
{
$this->targetReceivedBytesPerSecond = $targetReceivedBytesPerSecond;
}
/**
* @return int
*/
public function getTargetReceivedBytesPerSecond()
{
return $this->targetReceivedBytesPerSecond;
}
/**
* Target packets received per second.
*
* @param int $targetReceivedPacketsPerSecond
*/
public function setTargetReceivedPacketsPerSecond($targetReceivedPacketsPerSecond)
{
$this->targetReceivedPacketsPerSecond = $targetReceivedPacketsPerSecond;
}
/**
* @return int
*/
public function getTargetReceivedPacketsPerSecond()
{
return $this->targetReceivedPacketsPerSecond;
}
/**
* Target bytes sent per second.
*
* @param int $targetSentBytesPerSecond
*/
public function setTargetSentBytesPerSecond($targetSentBytesPerSecond)
{
$this->targetSentBytesPerSecond = $targetSentBytesPerSecond;
}
/**
* @return int
*/
public function getTargetSentBytesPerSecond()
{
return $this->targetSentBytesPerSecond;
}
/**
* Target packets sent per second.
*
* @param int $targetSentPacketsPerSecond
*/
public function setTargetSentPacketsPerSecond($targetSentPacketsPerSecond)
{
$this->targetSentPacketsPerSecond = $targetSentPacketsPerSecond;
}
/**
* @return int
*/
public function getTargetSentPacketsPerSecond()
{
return $this->targetSentPacketsPerSecond;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkUtilization::class, 'Google_Service_Appengine_NetworkUtilization');
@@ -0,0 +1,158 @@
<?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 Operation extends \Google\Model
{
/**
* If the value is false, it means the operation is still in progress. If
* true, the operation is completed, and either error or response is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the name should
* be a resource name ending with operations/{unique_id}.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as Delete, the response is
* google.protobuf.Empty. If the original method is standard
* Get/Create/Update, the response should be the resource. For other methods,
* the response should have the type XxxResponse, where Xxx is the original
* method name. For example, if the original method name is TakeSnapshot(),
* the inferred response type is TakeSnapshotResponse.
*
* @var array[]
*/
public $response;
/**
* If the value is false, it means the operation is still in progress. If
* true, the operation is completed, and either error or response is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the name should
* be a resource name ending with operations/{unique_id}.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as Delete, the response is
* google.protobuf.Empty. If the original method is standard
* Get/Create/Update, the response should be the resource. For other methods,
* the response should have the type XxxResponse, where Xxx is the original
* method name. For example, if the original method name is TakeSnapshot(),
* the inferred response type is TakeSnapshotResponse.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Appengine_Operation');
@@ -0,0 +1,203 @@
<?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 OperationMetadataV1 extends \Google\Collection
{
protected $collection_key = 'warning';
protected $createVersionMetadataType = CreateVersionMetadataV1::class;
protected $createVersionMetadataDataType = '';
/**
* Time that this operation completed.@OutputOnly
*
* @var string
*/
public $endTime;
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @var string
*/
public $ephemeralMessage;
/**
* Time that this operation was created.@OutputOnly
*
* @var string
*/
public $insertTime;
/**
* API method that initiated this operation. Example:
* google.appengine.v1.Versions.CreateVersion.@OutputOnly
*
* @var string
*/
public $method;
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @var string
*/
public $target;
/**
* User who requested this operation.@OutputOnly
*
* @var string
*/
public $user;
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @var string[]
*/
public $warning;
/**
* @param CreateVersionMetadataV1 $createVersionMetadata
*/
public function setCreateVersionMetadata(CreateVersionMetadataV1 $createVersionMetadata)
{
$this->createVersionMetadata = $createVersionMetadata;
}
/**
* @return CreateVersionMetadataV1
*/
public function getCreateVersionMetadata()
{
return $this->createVersionMetadata;
}
/**
* Time that this operation completed.@OutputOnly
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @param string $ephemeralMessage
*/
public function setEphemeralMessage($ephemeralMessage)
{
$this->ephemeralMessage = $ephemeralMessage;
}
/**
* @return string
*/
public function getEphemeralMessage()
{
return $this->ephemeralMessage;
}
/**
* Time that this operation was created.@OutputOnly
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* API method that initiated this operation. Example:
* google.appengine.v1.Versions.CreateVersion.@OutputOnly
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* User who requested this operation.@OutputOnly
*
* @param string $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @param string[] $warning
*/
public function setWarning($warning)
{
$this->warning = $warning;
}
/**
* @return string[]
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadataV1::class, 'Google_Service_Appengine_OperationMetadataV1');
@@ -0,0 +1,203 @@
<?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 OperationMetadataV1Alpha extends \Google\Collection
{
protected $collection_key = 'warning';
protected $createVersionMetadataType = CreateVersionMetadataV1Alpha::class;
protected $createVersionMetadataDataType = '';
/**
* Time that this operation completed.@OutputOnly
*
* @var string
*/
public $endTime;
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @var string
*/
public $ephemeralMessage;
/**
* Time that this operation was created.@OutputOnly
*
* @var string
*/
public $insertTime;
/**
* API method that initiated this operation. Example:
* google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
*
* @var string
*/
public $method;
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @var string
*/
public $target;
/**
* User who requested this operation.@OutputOnly
*
* @var string
*/
public $user;
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @var string[]
*/
public $warning;
/**
* @param CreateVersionMetadataV1Alpha $createVersionMetadata
*/
public function setCreateVersionMetadata(CreateVersionMetadataV1Alpha $createVersionMetadata)
{
$this->createVersionMetadata = $createVersionMetadata;
}
/**
* @return CreateVersionMetadataV1Alpha
*/
public function getCreateVersionMetadata()
{
return $this->createVersionMetadata;
}
/**
* Time that this operation completed.@OutputOnly
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @param string $ephemeralMessage
*/
public function setEphemeralMessage($ephemeralMessage)
{
$this->ephemeralMessage = $ephemeralMessage;
}
/**
* @return string
*/
public function getEphemeralMessage()
{
return $this->ephemeralMessage;
}
/**
* Time that this operation was created.@OutputOnly
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* API method that initiated this operation. Example:
* google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* User who requested this operation.@OutputOnly
*
* @param string $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @param string[] $warning
*/
public function setWarning($warning)
{
$this->warning = $warning;
}
/**
* @return string[]
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadataV1Alpha::class, 'Google_Service_Appengine_OperationMetadataV1Alpha');
@@ -0,0 +1,203 @@
<?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 OperationMetadataV1Beta extends \Google\Collection
{
protected $collection_key = 'warning';
protected $createVersionMetadataType = CreateVersionMetadataV1Beta::class;
protected $createVersionMetadataDataType = '';
/**
* Time that this operation completed.@OutputOnly
*
* @var string
*/
public $endTime;
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @var string
*/
public $ephemeralMessage;
/**
* Time that this operation was created.@OutputOnly
*
* @var string
*/
public $insertTime;
/**
* API method that initiated this operation. Example:
* google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
*
* @var string
*/
public $method;
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @var string
*/
public $target;
/**
* User who requested this operation.@OutputOnly
*
* @var string
*/
public $user;
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @var string[]
*/
public $warning;
/**
* @param CreateVersionMetadataV1Beta $createVersionMetadata
*/
public function setCreateVersionMetadata(CreateVersionMetadataV1Beta $createVersionMetadata)
{
$this->createVersionMetadata = $createVersionMetadata;
}
/**
* @return CreateVersionMetadataV1Beta
*/
public function getCreateVersionMetadata()
{
return $this->createVersionMetadata;
}
/**
* Time that this operation completed.@OutputOnly
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Ephemeral message that may change every time the operation is polled.
* @OutputOnly
*
* @param string $ephemeralMessage
*/
public function setEphemeralMessage($ephemeralMessage)
{
$this->ephemeralMessage = $ephemeralMessage;
}
/**
* @return string
*/
public function getEphemeralMessage()
{
return $this->ephemeralMessage;
}
/**
* Time that this operation was created.@OutputOnly
*
* @param string $insertTime
*/
public function setInsertTime($insertTime)
{
$this->insertTime = $insertTime;
}
/**
* @return string
*/
public function getInsertTime()
{
return $this->insertTime;
}
/**
* API method that initiated this operation. Example:
* google.appengine.v1beta.Versions.CreateVersion.@OutputOnly
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Name of the resource that this operation is acting on. Example:
* apps/myapp/services/default.@OutputOnly
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* User who requested this operation.@OutputOnly
*
* @param string $user
*/
public function setUser($user)
{
$this->user = $user;
}
/**
* @return string
*/
public function getUser()
{
return $this->user;
}
/**
* Durable messages that persist on every operation poll. @OutputOnly
*
* @param string[] $warning
*/
public function setWarning($warning)
{
$this->warning = $warning;
}
/**
* @return string[]
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadataV1Beta::class, 'Google_Service_Appengine_OperationMetadataV1Beta');
@@ -0,0 +1,118 @@
<?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 ProjectEvent extends \Google\Model
{
public const PHASE_CONTAINER_EVENT_PHASE_UNSPECIFIED = 'CONTAINER_EVENT_PHASE_UNSPECIFIED';
public const PHASE_BEFORE_RESOURCE_HANDLING = 'BEFORE_RESOURCE_HANDLING';
public const PHASE_AFTER_RESOURCE_HANDLING = 'AFTER_RESOURCE_HANDLING';
/**
* The unique ID for this project event. CLHs can use this value to dedup
* repeated calls. required
*
* @var string
*/
public $eventId;
/**
* Phase indicates when in the container event propagation this event is being
* communicated. Events are sent before and after the per-resource events are
* propagated. required
*
* @var string
*/
public $phase;
protected $projectMetadataType = ProjectsMetadata::class;
protected $projectMetadataDataType = '';
protected $stateType = ContainerState::class;
protected $stateDataType = '';
/**
* The unique ID for this project event. CLHs can use this value to dedup
* repeated calls. required
*
* @param string $eventId
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* Phase indicates when in the container event propagation this event is being
* communicated. Events are sent before and after the per-resource events are
* propagated. required
*
* Accepted values: CONTAINER_EVENT_PHASE_UNSPECIFIED,
* BEFORE_RESOURCE_HANDLING, AFTER_RESOURCE_HANDLING
*
* @param self::PHASE_* $phase
*/
public function setPhase($phase)
{
$this->phase = $phase;
}
/**
* @return self::PHASE_*
*/
public function getPhase()
{
return $this->phase;
}
/**
* The projects metadata for this project. required
*
* @param ProjectsMetadata $projectMetadata
*/
public function setProjectMetadata(ProjectsMetadata $projectMetadata)
{
$this->projectMetadata = $projectMetadata;
}
/**
* @return ProjectsMetadata
*/
public function getProjectMetadata()
{
return $this->projectMetadata;
}
/**
* The state of the organization that led to this event.
*
* @param ContainerState $state
*/
public function setState(ContainerState $state)
{
$this->state = $state;
}
/**
* @return ContainerState
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectEvent::class, 'Google_Service_Appengine_ProjectEvent');
@@ -0,0 +1,76 @@
<?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 ProjectState extends \Google\Model
{
protected $currentReasonsType = Reasons::class;
protected $currentReasonsDataType = '';
protected $previousReasonsType = Reasons::class;
protected $previousReasonsDataType = '';
/**
* @var string
*/
public $state;
/**
* @param Reasons
*/
public function setCurrentReasons(Reasons $currentReasons)
{
$this->currentReasons = $currentReasons;
}
/**
* @return Reasons
*/
public function getCurrentReasons()
{
return $this->currentReasons;
}
/**
* @param Reasons
*/
public function setPreviousReasons(Reasons $previousReasons)
{
$this->previousReasons = $previousReasons;
}
/**
* @return Reasons
*/
public function getPreviousReasons()
{
return $this->previousReasons;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectState::class, 'Google_Service_Appengine_ProjectState');
@@ -0,0 +1,293 @@
<?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 ProjectsMetadata extends \Google\Collection
{
/**
* A container should never be in an unknown state. Receipt of a container
* with this state is an error.
*/
public const CONSUMER_PROJECT_STATE_UNKNOWN_STATE = 'UNKNOWN_STATE';
/**
* CCFE considers the container to be serving or transitioning into serving.
*/
public const CONSUMER_PROJECT_STATE_ON = 'ON';
/**
* CCFE considers the container to be in an OFF state. This could occur due to
* various factors. The state could be triggered by Google-internal audits
* (ex. abuse suspension, billing closed) or cleanups trigged by compliance
* systems (ex. data governance hide). User-initiated events such as service
* management deactivation trigger a container to an OFF state.CLHs might
* choose to do nothing in this case or to turn off costly resources. CLHs
* need to consider the customer experience if an ON/OFF/ON sequence of state
* transitions occurs vs. the cost of deleting resources, keeping metadata
* about resources, or even keeping resources live for a period of time.CCFE
* will not send any new customer requests to the CLH when the container is in
* an OFF state. However, CCFE will allow all previous customer requests
* relayed to CLH to complete.
*/
public const CONSUMER_PROJECT_STATE_OFF = 'OFF';
/**
* This state indicates that the container has been (or is being) completely
* removed. This is often due to a data governance purge request and therefore
* resources should be deleted when this state is reached.
*/
public const CONSUMER_PROJECT_STATE_DELETED = 'DELETED';
protected $collection_key = 'gceTag';
/**
* The consumer project id.
*
* @var string
*/
public $consumerProjectId;
/**
* The consumer project number.
*
* @var string
*/
public $consumerProjectNumber;
/**
* The CCFE state of the consumer project. It is the same state that is
* communicated to the CLH during project events. Notice that this field is
* not set in the DB, it is only set in this proto when communicated to CLH in
* the side channel.
*
* @var string
*/
public $consumerProjectState;
protected $gceTagType = GceTag::class;
protected $gceTagDataType = 'array';
/**
* DEPRECATED: Indicates whether the GCE project is in the DEPROVISIONING
* state. This field is a temporary workaround (see b/475310865) to allow GCE
* extensions to bypass certain checks during deprovisioning. It will be
* replaced by a permanent solution in the future.
*
* @deprecated
* @var bool
*/
public $isGceProjectDeprovisioning;
/**
* The service account authorized to operate on the consumer project. Note:
* CCFE only propagates P4SA with default tag to CLH.
*
* @var string
*/
public $p4ServiceAccount;
/**
* The producer project id.
*
* @var string
*/
public $producerProjectId;
/**
* The producer project number.
*
* @var string
*/
public $producerProjectNumber;
/**
* The tenant project id.
*
* @var string
*/
public $tenantProjectId;
/**
* The tenant project number.
*
* @var string
*/
public $tenantProjectNumber;
/**
* The consumer project id.
*
* @param string $consumerProjectId
*/
public function setConsumerProjectId($consumerProjectId)
{
$this->consumerProjectId = $consumerProjectId;
}
/**
* @return string
*/
public function getConsumerProjectId()
{
return $this->consumerProjectId;
}
/**
* The consumer project number.
*
* @param string $consumerProjectNumber
*/
public function setConsumerProjectNumber($consumerProjectNumber)
{
$this->consumerProjectNumber = $consumerProjectNumber;
}
/**
* @return string
*/
public function getConsumerProjectNumber()
{
return $this->consumerProjectNumber;
}
/**
* The CCFE state of the consumer project. It is the same state that is
* communicated to the CLH during project events. Notice that this field is
* not set in the DB, it is only set in this proto when communicated to CLH in
* the side channel.
*
* Accepted values: UNKNOWN_STATE, ON, OFF, DELETED
*
* @param self::CONSUMER_PROJECT_STATE_* $consumerProjectState
*/
public function setConsumerProjectState($consumerProjectState)
{
$this->consumerProjectState = $consumerProjectState;
}
/**
* @return self::CONSUMER_PROJECT_STATE_*
*/
public function getConsumerProjectState()
{
return $this->consumerProjectState;
}
/**
* The GCE tags associated with the consumer project and those inherited due
* to their ancestry, if any. Not supported by CCFE.
*
* @param GceTag[] $gceTag
*/
public function setGceTag($gceTag)
{
$this->gceTag = $gceTag;
}
/**
* @return GceTag[]
*/
public function getGceTag()
{
return $this->gceTag;
}
/**
* DEPRECATED: Indicates whether the GCE project is in the DEPROVISIONING
* state. This field is a temporary workaround (see b/475310865) to allow GCE
* extensions to bypass certain checks during deprovisioning. It will be
* replaced by a permanent solution in the future.
*
* @deprecated
* @param bool $isGceProjectDeprovisioning
*/
public function setIsGceProjectDeprovisioning($isGceProjectDeprovisioning)
{
$this->isGceProjectDeprovisioning = $isGceProjectDeprovisioning;
}
/**
* @deprecated
* @return bool
*/
public function getIsGceProjectDeprovisioning()
{
return $this->isGceProjectDeprovisioning;
}
/**
* The service account authorized to operate on the consumer project. Note:
* CCFE only propagates P4SA with default tag to CLH.
*
* @param string $p4ServiceAccount
*/
public function setP4ServiceAccount($p4ServiceAccount)
{
$this->p4ServiceAccount = $p4ServiceAccount;
}
/**
* @return string
*/
public function getP4ServiceAccount()
{
return $this->p4ServiceAccount;
}
/**
* The producer project id.
*
* @param string $producerProjectId
*/
public function setProducerProjectId($producerProjectId)
{
$this->producerProjectId = $producerProjectId;
}
/**
* @return string
*/
public function getProducerProjectId()
{
return $this->producerProjectId;
}
/**
* The producer project number.
*
* @param string $producerProjectNumber
*/
public function setProducerProjectNumber($producerProjectNumber)
{
$this->producerProjectNumber = $producerProjectNumber;
}
/**
* @return string
*/
public function getProducerProjectNumber()
{
return $this->producerProjectNumber;
}
/**
* The tenant project id.
*
* @param string $tenantProjectId
*/
public function setTenantProjectId($tenantProjectId)
{
$this->tenantProjectId = $tenantProjectId;
}
/**
* @return string
*/
public function getTenantProjectId()
{
return $this->tenantProjectId;
}
/**
* The tenant project number.
*
* @param string $tenantProjectNumber
*/
public function setTenantProjectNumber($tenantProjectNumber)
{
$this->tenantProjectNumber = $tenantProjectNumber;
}
/**
* @return string
*/
public function getTenantProjectNumber()
{
return $this->tenantProjectNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsMetadata::class, 'Google_Service_Appengine_ProjectsMetadata');
@@ -0,0 +1,186 @@
<?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 ReadinessCheck extends \Google\Model
{
/**
* A maximum time limit on application initialization, measured from moment
* the application successfully replies to a healthcheck until it is ready to
* serve traffic.
*
* @var string
*/
public $appStartTimeout;
/**
* Interval between health checks.
*
* @var string
*/
public $checkInterval;
/**
* Number of consecutive failed checks required before removing traffic.
*
* @var string
*/
public $failureThreshold;
/**
* Host header to send when performing a HTTP Readiness check. Example:
* "myapp.appspot.com"
*
* @var string
*/
public $host;
/**
* The request path.
*
* @var string
*/
public $path;
/**
* Number of consecutive successful checks required before receiving traffic.
*
* @var string
*/
public $successThreshold;
/**
* Time before the check is considered failed.
*
* @var string
*/
public $timeout;
/**
* A maximum time limit on application initialization, measured from moment
* the application successfully replies to a healthcheck until it is ready to
* serve traffic.
*
* @param string $appStartTimeout
*/
public function setAppStartTimeout($appStartTimeout)
{
$this->appStartTimeout = $appStartTimeout;
}
/**
* @return string
*/
public function getAppStartTimeout()
{
return $this->appStartTimeout;
}
/**
* Interval between health checks.
*
* @param string $checkInterval
*/
public function setCheckInterval($checkInterval)
{
$this->checkInterval = $checkInterval;
}
/**
* @return string
*/
public function getCheckInterval()
{
return $this->checkInterval;
}
/**
* Number of consecutive failed checks required before removing traffic.
*
* @param string $failureThreshold
*/
public function setFailureThreshold($failureThreshold)
{
$this->failureThreshold = $failureThreshold;
}
/**
* @return string
*/
public function getFailureThreshold()
{
return $this->failureThreshold;
}
/**
* Host header to send when performing a HTTP Readiness check. Example:
* "myapp.appspot.com"
*
* @param string $host
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* The request path.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Number of consecutive successful checks required before receiving traffic.
*
* @param string $successThreshold
*/
public function setSuccessThreshold($successThreshold)
{
$this->successThreshold = $successThreshold;
}
/**
* @return string
*/
public function getSuccessThreshold()
{
return $this->successThreshold;
}
/**
* Time before the check is considered failed.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadinessCheck::class, 'Google_Service_Appengine_ReadinessCheck');
@@ -0,0 +1,274 @@
<?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 Reasons extends \Google\Model
{
/**
* An unknown reason indicates that the abuse system has not sent a signal for
* this container.
*/
public const ABUSE_ABUSE_UNKNOWN_REASON = 'ABUSE_UNKNOWN_REASON';
/**
* Due to various reasons CCFE might proactively restate a container state to
* a CLH to ensure that the CLH and CCFE are both aware of the container
* state. This reason can be tied to any of the states.
*/
public const ABUSE_ABUSE_CONTROL_PLANE_SYNC = 'ABUSE_CONTROL_PLANE_SYNC';
/**
* If a container is deemed abusive we receive a suspend signal. Suspend is a
* reason to put the container into an INTERNAL_OFF state.
*/
public const ABUSE_SUSPEND = 'SUSPEND';
/**
* Containers that were once considered abusive can later be deemed non-
* abusive. When this happens we must reinstate the container. Reinstate is a
* reason to put the container into an ON state.
*/
public const ABUSE_REINSTATE = 'REINSTATE';
/**
* An unknown reason indicates that the billing system has not sent a signal
* for this container.
*/
public const BILLING_BILLING_UNKNOWN_REASON = 'BILLING_UNKNOWN_REASON';
/**
* Due to various reasons CCFE might proactively restate a container state to
* a CLH to ensure that the CLH and CCFE are both aware of the container
* state. This reason can be tied to any of the states.
*/
public const BILLING_BILLING_CONTROL_PLANE_SYNC = 'BILLING_CONTROL_PLANE_SYNC';
/**
* Minor infractions cause a probation signal to be sent. Probation is a
* reason to put the container into a ON state even though it is a negative
* signal. CCFE will block mutations for this container while it is on billing
* probation, but the CLH is expected to serve non-mutation requests.
*/
public const BILLING_PROBATION = 'PROBATION';
/**
* When a billing account is closed, it is a stronger signal about non-
* payment. Close is a reason to put the container into an INTERNAL_OFF state.
*/
public const BILLING_CLOSE = 'CLOSE';
/**
* Consumers can re-open billing accounts and update accounts to pull them out
* of probation. When this happens, we get a signal that the account is open.
* Open is a reason to put the container into an ON state.
*/
public const BILLING_OPEN = 'OPEN';
/**
* An unknown reason indicates that data governance has not sent a signal for
* this container.
*/
public const DATA_GOVERNANCE_DATA_GOVERNANCE_UNKNOWN_REASON = 'DATA_GOVERNANCE_UNKNOWN_REASON';
/**
* Due to various reasons CCFE might proactively restate a container state to
* a CLH to ensure that the CLH and CCFE are both aware of the container
* state. This reason can be tied to any of the states.
*/
public const DATA_GOVERNANCE_DATA_GOVERNANCE_CONTROL_PLANE_SYNC = 'DATA_GOVERNANCE_CONTROL_PLANE_SYNC';
/**
* When a container is deleted we retain some data for a period of time to
* allow the consumer to change their mind. Data governance sends a signal to
* hide the data when this occurs. Hide is a reason to put the container in an
* INTERNAL_OFF state.
*/
public const DATA_GOVERNANCE_HIDE = 'HIDE';
/**
* The decision to un-delete a container can be made. When this happens data
* governance tells us to unhide any hidden data. Unhide is a reason to put
* the container in an ON state.
*/
public const DATA_GOVERNANCE_UNHIDE = 'UNHIDE';
/**
* After a period of time data must be completely removed from our systems.
* When data governance sends a purge signal we need to remove data. Purge is
* a reason to put the container in a DELETED state. Purge is the only event
* that triggers a delete mutation. All other events have update semantics.
*/
public const DATA_GOVERNANCE_PURGE = 'PURGE';
/**
* Default Unspecified status
*/
public const SERVICE_ACTIVATION_SERVICE_ACTIVATION_STATUS_UNSPECIFIED = 'SERVICE_ACTIVATION_STATUS_UNSPECIFIED';
/**
* Service is active in the project.
*/
public const SERVICE_ACTIVATION_SERVICE_ACTIVATION_ENABLED = 'SERVICE_ACTIVATION_ENABLED';
/**
* Service is disabled in the project recently i.e., within last 24 hours.
*/
public const SERVICE_ACTIVATION_SERVICE_ACTIVATION_DISABLED = 'SERVICE_ACTIVATION_DISABLED';
/**
* Service has been disabled for configured grace_period (default 30 days).
*/
public const SERVICE_ACTIVATION_SERVICE_ACTIVATION_DISABLED_FULL = 'SERVICE_ACTIVATION_DISABLED_FULL';
/**
* Happens when PSM cannot determine the status of service in a project Could
* happen due to variety of reasons like PERMISSION_DENIED or Project got
* deleted etc.
*/
public const SERVICE_ACTIVATION_SERVICE_ACTIVATION_UNKNOWN_REASON = 'SERVICE_ACTIVATION_UNKNOWN_REASON';
/**
* An unknown reason indicates that we have not received a signal from service
* management about this container. Since containers are created by request of
* service management, this reason should never be set.
*/
public const SERVICE_MANAGEMENT_SERVICE_MANAGEMENT_UNKNOWN_REASON = 'SERVICE_MANAGEMENT_UNKNOWN_REASON';
/**
* Due to various reasons CCFE might proactively restate a container state to
* a CLH to ensure that the CLH and CCFE are both aware of the container
* state. This reason can be tied to any of the states.
*/
public const SERVICE_MANAGEMENT_SERVICE_MANAGEMENT_CONTROL_PLANE_SYNC = 'SERVICE_MANAGEMENT_CONTROL_PLANE_SYNC';
/**
* When a customer activates an API CCFE notifies the CLH and sets the
* container to the ON state.
*
* @deprecated
*/
public const SERVICE_MANAGEMENT_ACTIVATION = 'ACTIVATION';
/**
* When a customer deactivates and API service management starts a two-step
* process to perform the deactivation. The first step is to prepare. Prepare
* is a reason to put the container in a EXTERNAL_OFF state.
*
* @deprecated
*/
public const SERVICE_MANAGEMENT_PREPARE_DEACTIVATION = 'PREPARE_DEACTIVATION';
/**
* If the deactivation is cancelled, service managed needs to abort the
* deactivation. Abort is a reason to put the container in an ON state.
*
* @deprecated
*/
public const SERVICE_MANAGEMENT_ABORT_DEACTIVATION = 'ABORT_DEACTIVATION';
/**
* If the deactivation is followed through with, service management needs to
* finish deactivation. Commit is a reason to put the container in a DELETED
* state.
*
* @deprecated
*/
public const SERVICE_MANAGEMENT_COMMIT_DEACTIVATION = 'COMMIT_DEACTIVATION';
/**
* @var string
*/
public $abuse;
/**
* @var string
*/
public $billing;
/**
* @var string
*/
public $dataGovernance;
/**
* Consumer Container denotes if the service is active within a project or
* not. This information could be used to clean up resources in case service
* in DISABLED_FULL i.e. Service is inactive > 30 days.
*
* @var string
*/
public $serviceActivation;
/**
* @var string
*/
public $serviceManagement;
/**
* @param self::ABUSE_* $abuse
*/
public function setAbuse($abuse)
{
$this->abuse = $abuse;
}
/**
* @return self::ABUSE_*
*/
public function getAbuse()
{
return $this->abuse;
}
/**
* @param self::BILLING_* $billing
*/
public function setBilling($billing)
{
$this->billing = $billing;
}
/**
* @return self::BILLING_*
*/
public function getBilling()
{
return $this->billing;
}
/**
* @param self::DATA_GOVERNANCE_* $dataGovernance
*/
public function setDataGovernance($dataGovernance)
{
$this->dataGovernance = $dataGovernance;
}
/**
* @return self::DATA_GOVERNANCE_*
*/
public function getDataGovernance()
{
return $this->dataGovernance;
}
/**
* Consumer Container denotes if the service is active within a project or
* not. This information could be used to clean up resources in case service
* in DISABLED_FULL i.e. Service is inactive > 30 days.
*
* Accepted values: SERVICE_ACTIVATION_STATUS_UNSPECIFIED,
* SERVICE_ACTIVATION_ENABLED, SERVICE_ACTIVATION_DISABLED,
* SERVICE_ACTIVATION_DISABLED_FULL, SERVICE_ACTIVATION_UNKNOWN_REASON
*
* @param self::SERVICE_ACTIVATION_* $serviceActivation
*/
public function setServiceActivation($serviceActivation)
{
$this->serviceActivation = $serviceActivation;
}
/**
* @return self::SERVICE_ACTIVATION_*
*/
public function getServiceActivation()
{
return $this->serviceActivation;
}
/**
* @param self::SERVICE_MANAGEMENT_* $serviceManagement
*/
public function setServiceManagement($serviceManagement)
{
$this->serviceManagement = $serviceManagement;
}
/**
* @return self::SERVICE_MANAGEMENT_*
*/
public function getServiceManagement()
{
return $this->serviceManagement;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reasons::class, 'Google_Service_Appengine_Reasons');
@@ -0,0 +1,25 @@
<?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 RepairApplicationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RepairApplicationRequest::class, 'Google_Service_Appengine_RepairApplicationRequest');
@@ -0,0 +1,70 @@
<?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 RequestUtilization extends \Google\Model
{
/**
* Target number of concurrent requests.
*
* @var int
*/
public $targetConcurrentRequests;
/**
* Target requests per second.
*
* @var int
*/
public $targetRequestCountPerSecond;
/**
* Target number of concurrent requests.
*
* @param int $targetConcurrentRequests
*/
public function setTargetConcurrentRequests($targetConcurrentRequests)
{
$this->targetConcurrentRequests = $targetConcurrentRequests;
}
/**
* @return int
*/
public function getTargetConcurrentRequests()
{
return $this->targetConcurrentRequests;
}
/**
* Target requests per second.
*
* @param int $targetRequestCountPerSecond
*/
public function setTargetRequestCountPerSecond($targetRequestCountPerSecond)
{
$this->targetRequestCountPerSecond = $targetRequestCountPerSecond;
}
/**
* @return int
*/
public function getTargetRequestCountPerSecond()
{
return $this->targetRequestCountPerSecond;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestUtilization::class, 'Google_Service_Appengine_RequestUtilization');
@@ -0,0 +1,141 @@
<?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\Resource;
use Google\Service\Appengine\Application;
use Google\Service\Appengine\ListRuntimesResponse;
use Google\Service\Appengine\Operation;
use Google\Service\Appengine\RepairApplicationRequest;
/**
* The "apps" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $apps = $appengineService->apps;
* </code>
*/
class Apps extends \Google\Service\Resource
{
/**
* Creates an App Engine application for a Google Cloud Platform project.
* Required fields: id - The ID of the target Cloud Platform project. location -
* The region (https://cloud.google.com/appengine/docs/locations) where you want
* the App Engine application located.For more information about App Engine
* applications, see Managing Projects, Applications, and Billing
* (https://cloud.google.com/appengine/docs/standard/python/console/).
* (apps.create)
*
* @param Application $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(Application $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets information about an application. (apps.get)
*
* @param string $appsId Part of `name`. Required. Name of the Application
* resource to get. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param string includeExtraData Options to include extra data
* @return Application
* @throws \Google\Service\Exception
*/
public function get($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Application::class);
}
/**
* Lists all the available runtimes for the application. (apps.listRuntimes)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param string environment Optional. The environment of the Application.
* @return ListRuntimesResponse
* @throws \Google\Service\Exception
*/
public function listRuntimes($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('listRuntimes', [$params], ListRuntimesResponse::class);
}
/**
* Updates the specified Application resource. You can update the following
* fields: auth_domain - Google authentication domain for controlling user
* access to the application. default_cookie_expiration - Cookie expiration
* policy for the application. iap - Identity-Aware Proxy properties for the
* application. (apps.patch)
*
* @param string $appsId Part of `name`. Required. Name of the Application
* resource to update. Example: apps/myapp.
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($appsId, Application $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Recreates the required App Engine features for the specified App Engine
* application, for example a Cloud Storage bucket or App Engine service
* account. Use this method if you receive an error message about a missing
* feature, for example, Error retrieving the App Engine service account. If you
* have deleted your App Engine service account, this will not be able to
* recreate it. Instead, you should attempt to use the IAM undelete API if
* possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAc
* counts/undelete?apix_params=%7B"name"%3A"projects%2F-
* %2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D . If the deletion
* was recent, the numeric ID can be found in the Cloud Console Activity Log.
* (apps.repair)
*
* @param string $appsId Part of `name`. Required. Name of the application to
* repair. Example: apps/myapp
* @param RepairApplicationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function repair($appsId, RepairApplicationRequest $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('repair', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Apps::class, 'Google_Service_Appengine_Resource_Apps');
@@ -0,0 +1,138 @@
<?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\Resource;
use Google\Service\Appengine\AppengineEmpty;
use Google\Service\Appengine\AuthorizedCertificate;
use Google\Service\Appengine\ListAuthorizedCertificatesResponse;
/**
* The "authorizedCertificates" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $authorizedCertificates = $appengineService->apps_authorizedCertificates;
* </code>
*/
class AppsAuthorizedCertificates extends \Google\Service\Resource
{
/**
* Uploads the specified SSL certificate. (authorizedCertificates.create)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param AuthorizedCertificate $postBody
* @param array $optParams Optional parameters.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function create($appsId, AuthorizedCertificate $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AuthorizedCertificate::class);
}
/**
* Deletes the specified SSL certificate. (authorizedCertificates.delete)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* delete. Example: apps/myapp/authorizedCertificates/12345.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `appsId`.
* @param array $optParams Optional parameters.
* @return AppengineEmpty
* @throws \Google\Service\Exception
*/
public function delete($appsId, $authorizedCertificatesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AppengineEmpty::class);
}
/**
* Gets the specified SSL certificate. (authorizedCertificates.get)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/authorizedCertificates/12345.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `appsId`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Controls the set of fields returned in the GET
* response.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function get($appsId, $authorizedCertificatesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthorizedCertificate::class);
}
/**
* Lists all SSL certificates the user is authorized to administer.
* (authorizedCertificates.listAppsAuthorizedCertificates)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @opt_param string view Controls the set of fields returned in the LIST
* response.
* @return ListAuthorizedCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listAppsAuthorizedCertificates($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizedCertificatesResponse::class);
}
/**
* Updates the specified SSL certificate. To renew a certificate and maintain
* its existing domain mappings, update certificate_data with a new certificate.
* The new certificate must be applicable to the same domains as the original
* certificate. The certificate display_name may also be updated.
* (authorizedCertificates.patch)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/authorizedCertificates/12345.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `appsId`.
* @param AuthorizedCertificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated. Updates are only supported on the certificate_raw_data and
* display_name fields.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function patch($appsId, $authorizedCertificatesId, AuthorizedCertificate $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AuthorizedCertificate::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsAuthorizedCertificates::class, 'Google_Service_Appengine_Resource_AppsAuthorizedCertificates');
@@ -0,0 +1,55 @@
<?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\Resource;
use Google\Service\Appengine\ListAuthorizedDomainsResponse;
/**
* The "authorizedDomains" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $authorizedDomains = $appengineService->apps_authorizedDomains;
* </code>
*/
class AppsAuthorizedDomains extends \Google\Service\Resource
{
/**
* Lists all domains the user is authorized to administer.
* (authorizedDomains.listAppsAuthorizedDomains)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListAuthorizedDomainsResponse
* @throws \Google\Service\Exception
*/
public function listAppsAuthorizedDomains($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizedDomainsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsAuthorizedDomains::class, 'Google_Service_Appengine_Resource_AppsAuthorizedDomains');
@@ -0,0 +1,140 @@
<?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\Resource;
use Google\Service\Appengine\DomainMapping;
use Google\Service\Appengine\ListDomainMappingsResponse;
use Google\Service\Appengine\Operation;
/**
* The "domainMappings" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $domainMappings = $appengineService->apps_domainMappings;
* </code>
*/
class AppsDomainMappings extends \Google\Service\Resource
{
/**
* Maps a domain to an application. A user must be authorized to administer a
* domain in order to map it to an application. For a list of available
* authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
* (domainMappings.create)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param DomainMapping $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string overrideStrategy Whether the domain creation should
* override any existing mappings for this domain. By default, overrides are
* rejected.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($appsId, DomainMapping $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified domain mapping. A user must be authorized to administer
* the associated domain in order to delete a DomainMapping resource.
* (domainMappings.delete)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* delete. Example: apps/myapp/domainMappings/example.com.
* @param string $domainMappingsId Part of `name`. See documentation of
* `appsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($appsId, $domainMappingsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'domainMappingsId' => $domainMappingsId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets the specified domain mapping. (domainMappings.get)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/domainMappings/example.com.
* @param string $domainMappingsId Part of `name`. See documentation of
* `appsId`.
* @param array $optParams Optional parameters.
* @return DomainMapping
* @throws \Google\Service\Exception
*/
public function get($appsId, $domainMappingsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'domainMappingsId' => $domainMappingsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DomainMapping::class);
}
/**
* Lists the domain mappings on an application.
* (domainMappings.listAppsDomainMappings)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListDomainMappingsResponse
* @throws \Google\Service\Exception
*/
public function listAppsDomainMappings($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDomainMappingsResponse::class);
}
/**
* Updates the specified domain mapping. To map an SSL certificate to a domain
* mapping, update certificate_id to point to an AuthorizedCertificate resource.
* A user must be authorized to administer the associated domain in order to
* update a DomainMapping resource. (domainMappings.patch)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/domainMappings/example.com.
* @param string $domainMappingsId Part of `name`. See documentation of
* `appsId`.
* @param DomainMapping $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($appsId, $domainMappingsId, DomainMapping $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'domainMappingsId' => $domainMappingsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsDomainMappings::class, 'Google_Service_Appengine_Resource_AppsDomainMappings');
@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "firewall" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $firewall = $appengineService->apps_firewall;
* </code>
*/
class AppsFirewall extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsFirewall::class, 'Google_Service_Appengine_Resource_AppsFirewall');
@@ -0,0 +1,151 @@
<?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\Resource;
use Google\Service\Appengine\AppengineEmpty;
use Google\Service\Appengine\BatchUpdateIngressRulesRequest;
use Google\Service\Appengine\BatchUpdateIngressRulesResponse;
use Google\Service\Appengine\FirewallRule;
use Google\Service\Appengine\ListIngressRulesResponse;
/**
* The "ingressRules" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $ingressRules = $appengineService->apps_firewall_ingressRules;
* </code>
*/
class AppsFirewallIngressRules extends \Google\Service\Resource
{
/**
* Replaces the entire firewall ruleset in one bulk operation. This overrides
* and replaces the rules of an existing firewall with the new rules.If the
* final rule does not match traffic with the '*' wildcard IP range, then an
* "allow all" rule is explicitly added to the end of the list.
* (ingressRules.batchUpdate)
*
* @param string $appsId Part of `name`. Name of the Firewall collection to set.
* Example: apps/myapp/firewall/ingressRules.
* @param BatchUpdateIngressRulesRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUpdateIngressRulesResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate($appsId, BatchUpdateIngressRulesRequest $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], BatchUpdateIngressRulesResponse::class);
}
/**
* Creates a firewall rule for the application. (ingressRules.create)
*
* @param string $appsId Part of `parent`. Required. Name of the parent Firewall
* collection in which to create a new rule. Example:
* apps/myapp/firewall/ingressRules.
* @param FirewallRule $postBody
* @param array $optParams Optional parameters.
* @return FirewallRule
* @throws \Google\Service\Exception
*/
public function create($appsId, FirewallRule $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], FirewallRule::class);
}
/**
* Deletes the specified firewall rule. (ingressRules.delete)
*
* @param string $appsId Part of `name`. Name of the Firewall resource to
* delete. Example: apps/myapp/firewall/ingressRules/100.
* @param string $ingressRulesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return AppengineEmpty
* @throws \Google\Service\Exception
*/
public function delete($appsId, $ingressRulesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'ingressRulesId' => $ingressRulesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AppengineEmpty::class);
}
/**
* Gets the specified firewall rule. (ingressRules.get)
*
* @param string $appsId Part of `name`. Name of the Firewall resource to
* retrieve. Example: apps/myapp/firewall/ingressRules/100.
* @param string $ingressRulesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return FirewallRule
* @throws \Google\Service\Exception
*/
public function get($appsId, $ingressRulesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'ingressRulesId' => $ingressRulesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], FirewallRule::class);
}
/**
* Lists the firewall rules of an application.
* (ingressRules.listAppsFirewallIngressRules)
*
* @param string $appsId Part of `parent`. Name of the Firewall collection to
* retrieve. Example: apps/myapp/firewall/ingressRules.
* @param array $optParams Optional parameters.
*
* @opt_param string matchingAddress A valid IP Address. If set, only rules
* matching this address will be returned. The first returned rule will be the
* rule that fires on requests from this IP.
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListIngressRulesResponse
* @throws \Google\Service\Exception
*/
public function listAppsFirewallIngressRules($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIngressRulesResponse::class);
}
/**
* Updates the specified firewall rule. (ingressRules.patch)
*
* @param string $appsId Part of `name`. Name of the Firewall resource to
* update. Example: apps/myapp/firewall/ingressRules/100.
* @param string $ingressRulesId Part of `name`. See documentation of `appsId`.
* @param FirewallRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return FirewallRule
* @throws \Google\Service\Exception
*/
public function patch($appsId, $ingressRulesId, FirewallRule $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'ingressRulesId' => $ingressRulesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], FirewallRule::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsFirewallIngressRules::class, 'Google_Service_Appengine_Resource_AppsFirewallIngressRules');
@@ -0,0 +1,86 @@
<?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\Resource;
use Google\Service\Appengine\ListLocationsResponse;
use Google\Service\Appengine\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $locations = $appengineService->apps_locations;
* </code>
*/
class AppsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $appsId Part of `name`. Resource name for the location.
* @param string $locationsId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($appsId, $locationsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'locationsId' => $locationsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: Global locations: If name is empty, the
* method lists the public locations available to all projects. Project-specific
* locations: If name follows the format projects/{project}, the method lists
* locations visible to that specific project. This includes public, private, or
* other project-specific locations enabled for the project.For gRPC and client
* library implementations, the resource name is passed as the name field. For
* direct service calls, the resource name is incorporated into the request path
* based on the specific service implementation and version.
* (locations.listAppsLocations)
*
* @param string $appsId Part of `name`. The resource that owns the locations
* collection, if applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like "displayName=tokyo", and
* is documented in more detail in AIP-160 (https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the next_page_token
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listAppsLocations($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsLocations::class, 'Google_Service_Appengine_Resource_AppsLocations');
@@ -0,0 +1,81 @@
<?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\Resource;
use Google\Service\Appengine\ListOperationsResponse;
use Google\Service\Appengine\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $operations = $appengineService->apps_operations;
* </code>
*/
class AppsOperations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $appsId Part of `name`. The name of the operation resource.
* @param string $operationsId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($appsId, $operationsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'operationsId' => $operationsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns UNIMPLEMENTED.
* (operations.listAppsOperations)
*
* @param string $appsId Part of `name`. The name of the operation's parent
* resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to true, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field.This can only be true when
* reading across collections. For example, when parent is set to
* "projects/example/locations/-".This field is not supported by default and
* will result in an UNIMPLEMENTED error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listAppsOperations($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsOperations::class, 'Google_Service_Appengine_Resource_AppsOperations');
@@ -0,0 +1,122 @@
<?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\Resource;
use Google\Service\Appengine\ListServicesResponse;
use Google\Service\Appengine\Operation;
use Google\Service\Appengine\Service;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $services = $appengineService->apps_services;
* </code>
*/
class AppsServices extends \Google\Service\Resource
{
/**
* Deletes the specified service and all enclosed versions. (services.delete)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($appsId, $servicesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets the current configuration of the specified service. (services.get)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Service
* @throws \Google\Service\Exception
*/
public function get($appsId, $servicesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Service::class);
}
/**
* Lists all the services in the application. (services.listAppsServices)
*
* @param string $appsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListServicesResponse
* @throws \Google\Service\Exception
*/
public function listAppsServices($appsId, $optParams = [])
{
$params = ['appsId' => $appsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServicesResponse::class);
}
/**
* Updates the configuration of the specified service. (services.patch)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/services/default.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool migrateTraffic Set to true to gradually shift traffic to one
* or more versions that you specify. By default, traffic is shifted
* immediately. For gradual traffic migration, the target versions must be
* located within instances that are configured for both warmup requests
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#InboundServiceType) and
* automatic scaling (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must
* specify the shardBy (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services#ShardBy) field in the Service resource.
* Gradual traffic migration is not supported in the App Engine flexible
* environment. For examples, see Migrating and Splitting Traffic
* (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-
* traffic).
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($appsId, $servicesId, Service $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsServices::class, 'Google_Service_Appengine_Resource_AppsServices');
@@ -0,0 +1,200 @@
<?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\Resource;
use Google\Service\Appengine\ExportAppImageRequest;
use Google\Service\Appengine\ListVersionsResponse;
use Google\Service\Appengine\Operation;
use Google\Service\Appengine\Version;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $versions = $appengineService->apps_services_versions;
* </code>
*/
class AppsServicesVersions extends \Google\Service\Resource
{
/**
* Deploys code and resource files to a new version. (versions.create)
*
* @param string $appsId Part of `parent`. Required. Name of the parent resource
* to create this version under. Example: apps/myapp/services/default.
* @param string $servicesId Part of `parent`. See documentation of `appsId`.
* @param Version $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($appsId, $servicesId, Version $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an existing Version resource. (versions.delete)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default/versions/v1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($appsId, $servicesId, $versionsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Exports a user image to Artifact Registry. (versions.exportAppImage)
*
* @param string $appsId Part of `name`. Required. Name of the App Engine
* version resource. Format: apps/{app}/services/{service}/versions/{version}
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param ExportAppImageRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function exportAppImage($appsId, $servicesId, $versionsId, ExportAppImageRequest $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('exportAppImage', [$params], Operation::class);
}
/**
* Gets the specified Version resource. By default, only a BASIC_VIEW will be
* returned. Specify the FULL_VIEW parameter to get the full resource.
* (versions.get)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default/versions/v1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Controls the set of fields returned in the Get
* response.
* @return Version
* @throws \Google\Service\Exception
*/
public function get($appsId, $servicesId, $versionsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Version::class);
}
/**
* Lists the versions of a service. (versions.listAppsServicesVersions)
*
* @param string $appsId Part of `parent`. Required. Name of the parent Service
* resource. Example: apps/myapp/services/default.
* @param string $servicesId Part of `parent`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @opt_param string view Controls the set of fields returned in the List
* response.
* @return ListVersionsResponse
* @throws \Google\Service\Exception
*/
public function listAppsServicesVersions($appsId, $servicesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVersionsResponse::class);
}
/**
* Updates the specified Version resource. You can specify the following fields
* depending on the App Engine environment and type of scaling that the version
* resource uses:Standard environment instance_class
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.instance_class)automatic scaling in the
* standard environment: automatic_scaling.min_idle_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.max_idle_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automaticScaling.standard_scheduler_settings.max_instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.min_instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.target_cpu_utilization
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.target_throughput_utilization
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic
* scaling or manual scaling in the standard environment: serving_status
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)
* manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#manualscaling)Flexible
* environment serving_status (https://cloud.google.com/appengine/docs/admin-api
* /reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)autom
* atic scaling in the flexible environment:
* automatic_scaling.min_total_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.max_total_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.cool_down_period_sec
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.cpu_utilization.target_utilization
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)manual scaling in the
* flexible environment: manual_scaling.instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#manualscaling) (versions.patch)
*
* @param string $appsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/services/default/versions/1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param Version $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($appsId, $servicesId, $versionsId, Version $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsServicesVersions::class, 'Google_Service_Appengine_Resource_AppsServicesVersions');
@@ -0,0 +1,136 @@
<?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\Resource;
use Google\Service\Appengine\DebugInstanceRequest;
use Google\Service\Appengine\Instance;
use Google\Service\Appengine\ListInstancesResponse;
use Google\Service\Appengine\Operation;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $instances = $appengineService->apps_services_versions_instances;
* </code>
*/
class AppsServicesVersionsInstances extends \Google\Service\Resource
{
/**
* Enables debugging on a VM instance. This allows you to use the SSH command to
* connect to the virtual machine where the instance lives. While in "debug
* mode", the instance continues to serve live traffic. You should delete the
* instance when you are done debugging and then allow the system to take over
* and determine if another instance should be started.Only applicable for
* instances in App Engine flexible environment. (instances.debug)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param string $instancesId Part of `name`. See documentation of `appsId`.
* @param DebugInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function debug($appsId, $servicesId, $versionsId, $instancesId, DebugInstanceRequest $postBody, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('debug', [$params], Operation::class);
}
/**
* Stops a running instance.The instance might be automatically recreated based
* on the scaling settings of the version. For more information, see "How
* Instances are Managed" (standard environment
* (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-
* managed) | flexible environment
* (https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-
* managed)).To ensure that instances are not re-created and avoid getting
* billed, you can stop all instances within the target version by changing the
* serving status of the version to STOPPED with the
* apps.services.versions.patch (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions/patch) method.
* (instances.delete)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param string $instancesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($appsId, $servicesId, $versionsId, $instancesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets instance information. (instances.get)
*
* @param string $appsId Part of `name`. Required. Name of the resource
* requested. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
* @param string $servicesId Part of `name`. See documentation of `appsId`.
* @param string $versionsId Part of `name`. See documentation of `appsId`.
* @param string $instancesId Part of `name`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($appsId, $servicesId, $versionsId, $instancesId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Lists the instances of a version.Tip: To aggregate details about instances
* over time, see the Stackdriver Monitoring API (https://cloud.google.com/monit
* oring/api/ref_v3/rest/v3/projects.timeSeries/list).
* (instances.listAppsServicesVersionsInstances)
*
* @param string $appsId Part of `parent`. Required. Name of the parent Version
* resource. Example: apps/myapp/services/default/versions/v1.
* @param string $servicesId Part of `parent`. See documentation of `appsId`.
* @param string $versionsId Part of `parent`. See documentation of `appsId`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listAppsServicesVersionsInstances($appsId, $servicesId, $versionsId, $optParams = [])
{
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsServicesVersionsInstances::class, 'Google_Service_Appengine_Resource_AppsServicesVersionsInstances');
@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $projects = $appengineService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Appengine_Resource_Projects');
@@ -0,0 +1,33 @@
<?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\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $locations = $appengineService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Appengine_Resource_ProjectsLocations');
@@ -0,0 +1,62 @@
<?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\Resource;
use Google\Service\Appengine\Application;
use Google\Service\Appengine\Operation;
/**
* The "applications" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $applications = $appengineService->projects_locations_applications;
* </code>
*/
class ProjectsLocationsApplications extends \Google\Service\Resource
{
/**
* Updates the specified Application resource. You can update the following
* fields: auth_domain - Google authentication domain for controlling user
* access to the application. default_cookie_expiration - Cookie expiration
* policy for the application. iap - Identity-Aware Proxy properties for the
* application. (applications.patch)
*
* @param string $projectsId Part of `name`. Required. Name of the Application
* resource to update. Example: apps/myapp.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($projectsId, $locationsId, $applicationsId, Application $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplications::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplications');
@@ -0,0 +1,155 @@
<?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\Resource;
use Google\Service\Appengine\AppengineEmpty;
use Google\Service\Appengine\AuthorizedCertificate;
use Google\Service\Appengine\ListAuthorizedCertificatesResponse;
/**
* The "authorizedCertificates" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $authorizedCertificates = $appengineService->projects_locations_applications_authorizedCertificates;
* </code>
*/
class ProjectsLocationsApplicationsAuthorizedCertificates extends \Google\Service\Resource
{
/**
* Uploads the specified SSL certificate. (authorizedCertificates.create)
*
* @param string $projectsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param string $locationsId Part of `parent`. See documentation of
* `projectsId`.
* @param string $applicationsId Part of `parent`. See documentation of
* `projectsId`.
* @param AuthorizedCertificate $postBody
* @param array $optParams Optional parameters.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function create($projectsId, $locationsId, $applicationsId, AuthorizedCertificate $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AuthorizedCertificate::class);
}
/**
* Deletes the specified SSL certificate. (authorizedCertificates.delete)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* delete. Example: apps/myapp/authorizedCertificates/12345.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
* @return AppengineEmpty
* @throws \Google\Service\Exception
*/
public function delete($projectsId, $locationsId, $applicationsId, $authorizedCertificatesId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AppengineEmpty::class);
}
/**
* Gets the specified SSL certificate. (authorizedCertificates.get)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/authorizedCertificates/12345.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Controls the set of fields returned in the GET
* response.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function get($projectsId, $locationsId, $applicationsId, $authorizedCertificatesId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthorizedCertificate::class);
}
/**
* Lists all SSL certificates the user is authorized to administer. (authorizedC
* ertificates.listProjectsLocationsApplicationsAuthorizedCertificates)
*
* @param string $projectsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param string $locationsId Part of `parent`. See documentation of
* `projectsId`.
* @param string $applicationsId Part of `parent`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @opt_param string view Controls the set of fields returned in the LIST
* response.
* @return ListAuthorizedCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsAuthorizedCertificates($projectsId, $locationsId, $applicationsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizedCertificatesResponse::class);
}
/**
* Updates the specified SSL certificate. To renew a certificate and maintain
* its existing domain mappings, update certificate_data with a new certificate.
* The new certificate must be applicable to the same domains as the original
* certificate. The certificate display_name may also be updated.
* (authorizedCertificates.patch)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/authorizedCertificates/12345.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $authorizedCertificatesId Part of `name`. See documentation of
* `projectsId`.
* @param AuthorizedCertificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated. Updates are only supported on the certificate_raw_data and
* display_name fields.
* @return AuthorizedCertificate
* @throws \Google\Service\Exception
*/
public function patch($projectsId, $locationsId, $applicationsId, $authorizedCertificatesId, AuthorizedCertificate $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'authorizedCertificatesId' => $authorizedCertificatesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AuthorizedCertificate::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsAuthorizedCertificates::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsAuthorizedCertificates');
@@ -0,0 +1,59 @@
<?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\Resource;
use Google\Service\Appengine\ListAuthorizedDomainsResponse;
/**
* The "authorizedDomains" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $authorizedDomains = $appengineService->projects_locations_applications_authorizedDomains;
* </code>
*/
class ProjectsLocationsApplicationsAuthorizedDomains extends \Google\Service\Resource
{
/**
* Lists all domains the user is authorized to administer.
* (authorizedDomains.listProjectsLocationsApplicationsAuthorizedDomains)
*
* @param string $projectsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param string $locationsId Part of `parent`. See documentation of
* `projectsId`.
* @param string $applicationsId Part of `parent`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListAuthorizedDomainsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsAuthorizedDomains($projectsId, $locationsId, $applicationsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizedDomainsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsAuthorizedDomains::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsAuthorizedDomains');
@@ -0,0 +1,157 @@
<?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\Resource;
use Google\Service\Appengine\DomainMapping;
use Google\Service\Appengine\ListDomainMappingsResponse;
use Google\Service\Appengine\Operation;
/**
* The "domainMappings" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $domainMappings = $appengineService->projects_locations_applications_domainMappings;
* </code>
*/
class ProjectsLocationsApplicationsDomainMappings extends \Google\Service\Resource
{
/**
* Maps a domain to an application. A user must be authorized to administer a
* domain in order to map it to an application. For a list of available
* authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
* (domainMappings.create)
*
* @param string $projectsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param string $locationsId Part of `parent`. See documentation of
* `projectsId`.
* @param string $applicationsId Part of `parent`. See documentation of
* `projectsId`.
* @param DomainMapping $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string overrideStrategy Whether the domain creation should
* override any existing mappings for this domain. By default, overrides are
* rejected.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($projectsId, $locationsId, $applicationsId, DomainMapping $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified domain mapping. A user must be authorized to administer
* the associated domain in order to delete a DomainMapping resource.
* (domainMappings.delete)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* delete. Example: apps/myapp/domainMappings/example.com.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $domainMappingsId Part of `name`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectsId, $locationsId, $applicationsId, $domainMappingsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'domainMappingsId' => $domainMappingsId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets the specified domain mapping. (domainMappings.get)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/domainMappings/example.com.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $domainMappingsId Part of `name`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
* @return DomainMapping
* @throws \Google\Service\Exception
*/
public function get($projectsId, $locationsId, $applicationsId, $domainMappingsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'domainMappingsId' => $domainMappingsId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DomainMapping::class);
}
/**
* Lists the domain mappings on an application.
* (domainMappings.listProjectsLocationsApplicationsDomainMappings)
*
* @param string $projectsId Part of `parent`. Required. Name of the parent
* Application resource. Example: apps/myapp.
* @param string $locationsId Part of `parent`. See documentation of
* `projectsId`.
* @param string $applicationsId Part of `parent`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum results to return per page.
* @opt_param string pageToken Continuation token for fetching the next page of
* results.
* @return ListDomainMappingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsDomainMappings($projectsId, $locationsId, $applicationsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDomainMappingsResponse::class);
}
/**
* Updates the specified domain mapping. To map an SSL certificate to a domain
* mapping, update certificate_id to point to an AuthorizedCertificate resource.
* A user must be authorized to administer the associated domain in order to
* update a DomainMapping resource. (domainMappings.patch)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/domainMappings/example.com.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $domainMappingsId Part of `name`. See documentation of
* `projectsId`.
* @param DomainMapping $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($projectsId, $locationsId, $applicationsId, $domainMappingsId, DomainMapping $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'domainMappingsId' => $domainMappingsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsDomainMappings::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsDomainMappings');
@@ -0,0 +1,92 @@
<?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\Resource;
use Google\Service\Appengine\Operation;
use Google\Service\Appengine\Service;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $services = $appengineService->projects_locations_applications_services;
* </code>
*/
class ProjectsLocationsApplicationsServices extends \Google\Service\Resource
{
/**
* Deletes the specified service and all enclosed versions. (services.delete)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectsId, $locationsId, $applicationsId, $servicesId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Updates the configuration of the specified service. (services.patch)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/services/default.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool migrateTraffic Set to true to gradually shift traffic to one
* or more versions that you specify. By default, traffic is shifted
* immediately. For gradual traffic migration, the target versions must be
* located within instances that are configured for both warmup requests
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#InboundServiceType) and
* automatic scaling (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#AutomaticScaling). You must
* specify the shardBy (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services#ShardBy) field in the Service resource.
* Gradual traffic migration is not supported in the App Engine flexible
* environment. For examples, see Migrating and Splitting Traffic
* (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-
* traffic).
* @opt_param string updateMask Required. Standard field mask for the set of
* fields to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($projectsId, $locationsId, $applicationsId, $servicesId, Service $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServices::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServices');
@@ -0,0 +1,147 @@
<?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\Resource;
use Google\Service\Appengine\ExportAppImageRequest;
use Google\Service\Appengine\Operation;
use Google\Service\Appengine\Version;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $versions = $appengineService->projects_locations_applications_services_versions;
* </code>
*/
class ProjectsLocationsApplicationsServicesVersions extends \Google\Service\Resource
{
/**
* Deletes an existing Version resource. (versions.delete)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example: apps/myapp/services/default/versions/v1.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Exports a user image to Artifact Registry. (versions.exportAppImage)
*
* @param string $projectsId Part of `name`. Required. Name of the App Engine
* version resource. Format: apps/{app}/services/{service}/versions/{version}
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
* @param ExportAppImageRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function exportAppImage($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, ExportAppImageRequest $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('exportAppImage', [$params], Operation::class);
}
/**
* Updates the specified Version resource. You can specify the following fields
* depending on the App Engine environment and type of scaling that the version
* resource uses:Standard environment instance_class
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.instance_class)automatic scaling in the
* standard environment: automatic_scaling.min_idle_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.max_idle_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automaticScaling.standard_scheduler_settings.max_instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.min_instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.target_cpu_utilization
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)
* automaticScaling.standard_scheduler_settings.target_throughput_utilization
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic
* scaling or manual scaling in the standard environment: serving_status
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)
* manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#manualscaling)Flexible
* environment serving_status (https://cloud.google.com/appengine/docs/admin-api
* /reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)autom
* atic scaling in the flexible environment:
* automatic_scaling.min_total_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.max_total_instances
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.cool_down_period_sec
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)
* automatic_scaling.cpu_utilization.target_utilization
* (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser
* vices.versions#Version.FIELDS.automatic_scaling)manual scaling in the
* flexible environment: manual_scaling.instances
* (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions#manualscaling) (versions.patch)
*
* @param string $projectsId Part of `name`. Required. Name of the resource to
* update. Example: apps/myapp/services/default/versions/1.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
* @param Version $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, Version $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServicesVersions::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServicesVersions');
@@ -0,0 +1,97 @@
<?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\Resource;
use Google\Service\Appengine\DebugInstanceRequest;
use Google\Service\Appengine\Operation;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $appengineService = new Google\Service\Appengine(...);
* $instances = $appengineService->projects_locations_applications_services_versions_instances;
* </code>
*/
class ProjectsLocationsApplicationsServicesVersionsInstances extends \Google\Service\Resource
{
/**
* Enables debugging on a VM instance. This allows you to use the SSH command to
* connect to the virtual machine where the instance lives. While in "debug
* mode", the instance continues to serve live traffic. You should delete the
* instance when you are done debugging and then allow the system to take over
* and determine if another instance should be started.Only applicable for
* instances in App Engine flexible environment. (instances.debug)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
* @param string $instancesId Part of `name`. See documentation of `projectsId`.
* @param DebugInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function debug($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, $instancesId, DebugInstanceRequest $postBody, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('debug', [$params], Operation::class);
}
/**
* Stops a running instance.The instance might be automatically recreated based
* on the scaling settings of the version. For more information, see "How
* Instances are Managed" (standard environment
* (https://cloud.google.com/appengine/docs/standard/python/how-instances-are-
* managed) | flexible environment
* (https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-
* managed)).To ensure that instances are not re-created and avoid getting
* billed, you can stop all instances within the target version by changing the
* serving status of the version to STOPPED with the
* apps.services.versions.patch (https://cloud.google.com/appengine/docs/admin-
* api/reference/rest/v1/apps.services.versions/patch) method.
* (instances.delete)
*
* @param string $projectsId Part of `name`. Required. Name of the resource
* requested. Example:
* apps/myapp/services/default/versions/v1/instances/instance-1.
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
* @param string $applicationsId Part of `name`. See documentation of
* `projectsId`.
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
* @param string $instancesId Part of `name`. See documentation of `projectsId`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, $instancesId, $optParams = [])
{
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServicesVersionsInstances::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServicesVersionsInstances');
@@ -0,0 +1,90 @@
<?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 ResourceEvent extends \Google\Model
{
/**
* The unique ID for this per-resource event. CLHs can use this value to dedup
* repeated calls. required
*
* @var string
*/
public $eventId;
/**
* The name of the resource for which this event is. required
*
* @var string
*/
public $name;
protected $stateType = ContainerState::class;
protected $stateDataType = '';
/**
* The unique ID for this per-resource event. CLHs can use this value to dedup
* repeated calls. required
*
* @param string $eventId
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* The name of the resource for which this event is. required
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The state of the project that led to this event.
*
* @param ContainerState $state
*/
public function setState(ContainerState $state)
{
$this->state = $state;
}
/**
* @return ContainerState
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceEvent::class, 'Google_Service_Appengine_ResourceEvent');
@@ -0,0 +1,114 @@
<?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 ResourceRecord extends \Google\Model
{
/**
* An unknown resource record.
*/
public const TYPE_RECORD_TYPE_UNSPECIFIED = 'RECORD_TYPE_UNSPECIFIED';
/**
* An A resource record. Data is an IPv4 address.
*/
public const TYPE_A = 'A';
/**
* An AAAA resource record. Data is an IPv6 address.
*/
public const TYPE_AAAA = 'AAAA';
/**
* A CNAME resource record. Data is a domain name to be aliased.
*/
public const TYPE_CNAME = 'CNAME';
/**
* Relative name of the object affected by this record. Only applicable for
* CNAME records. Example: 'www'.
*
* @var string
*/
public $name;
/**
* Data for this record. Values vary by record type, as defined in RFC 1035
* (section 5) and RFC 1034 (section 3.6.1).
*
* @var string
*/
public $rrdata;
/**
* Resource record type. Example: AAAA.
*
* @var string
*/
public $type;
/**
* Relative name of the object affected by this record. Only applicable for
* CNAME records. Example: 'www'.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Data for this record. Values vary by record type, as defined in RFC 1035
* (section 5) and RFC 1034 (section 3.6.1).
*
* @param string $rrdata
*/
public function setRrdata($rrdata)
{
$this->rrdata = $rrdata;
}
/**
* @return string
*/
public function getRrdata()
{
return $this->rrdata;
}
/**
* Resource record type. Example: AAAA.
*
* Accepted values: RECORD_TYPE_UNSPECIFIED, A, AAAA, CNAME
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceRecord::class, 'Google_Service_Appengine_ResourceRecord');
@@ -0,0 +1,111 @@
<?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 Resources extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* Number of CPU cores needed.
*
* @var
*/
public $cpu;
/**
* Disk size (GB) needed.
*
* @var
*/
public $diskGb;
/**
* The name of the encryption key that is stored in Google Cloud KMS. Only
* should be used by Cloud Composer to encrypt the vm disk
*
* @var string
*/
public $kmsKeyReference;
/**
* Memory (GB) needed.
*
* @var
*/
public $memoryGb;
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
public function setCpu($cpu)
{
$this->cpu = $cpu;
}
public function getCpu()
{
return $this->cpu;
}
public function setDiskGb($diskGb)
{
$this->diskGb = $diskGb;
}
public function getDiskGb()
{
return $this->diskGb;
}
/**
* The name of the encryption key that is stored in Google Cloud KMS. Only
* should be used by Cloud Composer to encrypt the vm disk
*
* @param string $kmsKeyReference
*/
public function setKmsKeyReference($kmsKeyReference)
{
$this->kmsKeyReference = $kmsKeyReference;
}
/**
* @return string
*/
public function getKmsKeyReference()
{
return $this->kmsKeyReference;
}
public function setMemoryGb($memoryGb)
{
$this->memoryGb = $memoryGb;
}
public function getMemoryGb()
{
return $this->memoryGb;
}
/**
* User specified volumes.
*
* @param Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Resources::class, 'Google_Service_Appengine_Resources');
@@ -0,0 +1,262 @@
<?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 Runtime extends \Google\Collection
{
/**
* Default value.
*/
public const ENVIRONMENT_ENVIRONMENT_UNSPECIFIED = 'ENVIRONMENT_UNSPECIFIED';
/**
* App Engine Standard.
*/
public const ENVIRONMENT_STANDARD = 'STANDARD';
/**
* App Engine Flexible
*/
public const ENVIRONMENT_FLEXIBLE = 'FLEXIBLE';
/**
* Not specified.
*/
public const STAGE_RUNTIME_STAGE_UNSPECIFIED = 'RUNTIME_STAGE_UNSPECIFIED';
/**
* The runtime is in development.
*/
public const STAGE_DEVELOPMENT = 'DEVELOPMENT';
/**
* The runtime is in the Alpha stage.
*/
public const STAGE_ALPHA = 'ALPHA';
/**
* The runtime is in the Beta stage.
*/
public const STAGE_BETA = 'BETA';
/**
* The runtime is generally available.
*/
public const STAGE_GA = 'GA';
/**
* The runtime is deprecated.
*/
public const STAGE_DEPRECATED = 'DEPRECATED';
/**
* The runtime is no longer supported.
*/
public const STAGE_DECOMMISSIONED = 'DECOMMISSIONED';
/**
* The runtime is end of support.
*/
public const STAGE_END_OF_SUPPORT = 'END_OF_SUPPORT';
protected $collection_key = 'warnings';
protected $decommissionedDateType = Date::class;
protected $decommissionedDateDataType = '';
protected $deprecationDateType = Date::class;
protected $deprecationDateDataType = '';
/**
* User-friendly display name, e.g. 'Node.js 12', etc.
*
* @var string
*/
public $displayName;
protected $endOfSupportDateType = Date::class;
protected $endOfSupportDateDataType = '';
/**
* The environment of the runtime.
*
* @var string
*/
public $environment;
/**
* The name of the runtime, e.g., 'go113', 'nodejs12', etc.
*
* @var string
*/
public $name;
/**
* The stage of life this runtime is in, e.g., BETA, GA, etc.
*
* @var string
*/
public $stage;
/**
* Supported operating systems for the runtime, e.g., 'ubuntu22', etc.
*
* @var string[]
*/
public $supportedOperatingSystems;
/**
* Warning messages, e.g., a deprecation warning.
*
* @var string[]
*/
public $warnings;
/**
* Date when Runtime is decommissioned.
*
* @param Date $decommissionedDate
*/
public function setDecommissionedDate(Date $decommissionedDate)
{
$this->decommissionedDate = $decommissionedDate;
}
/**
* @return Date
*/
public function getDecommissionedDate()
{
return $this->decommissionedDate;
}
/**
* Date when Runtime is deprecated.
*
* @param Date $deprecationDate
*/
public function setDeprecationDate(Date $deprecationDate)
{
$this->deprecationDate = $deprecationDate;
}
/**
* @return Date
*/
public function getDeprecationDate()
{
return $this->deprecationDate;
}
/**
* User-friendly display name, e.g. 'Node.js 12', etc.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Date when Runtime is end of support.
*
* @param Date $endOfSupportDate
*/
public function setEndOfSupportDate(Date $endOfSupportDate)
{
$this->endOfSupportDate = $endOfSupportDate;
}
/**
* @return Date
*/
public function getEndOfSupportDate()
{
return $this->endOfSupportDate;
}
/**
* The environment of the runtime.
*
* Accepted values: ENVIRONMENT_UNSPECIFIED, STANDARD, FLEXIBLE
*
* @param self::ENVIRONMENT_* $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return self::ENVIRONMENT_*
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* The name of the runtime, e.g., 'go113', 'nodejs12', etc.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The stage of life this runtime is in, e.g., BETA, GA, etc.
*
* Accepted values: RUNTIME_STAGE_UNSPECIFIED, DEVELOPMENT, ALPHA, BETA, GA,
* DEPRECATED, DECOMMISSIONED, END_OF_SUPPORT
*
* @param self::STAGE_* $stage
*/
public function setStage($stage)
{
$this->stage = $stage;
}
/**
* @return self::STAGE_*
*/
public function getStage()
{
return $this->stage;
}
/**
* Supported operating systems for the runtime, e.g., 'ubuntu22', etc.
*
* @param string[] $supportedOperatingSystems
*/
public function setSupportedOperatingSystems($supportedOperatingSystems)
{
$this->supportedOperatingSystems = $supportedOperatingSystems;
}
/**
* @return string[]
*/
public function getSupportedOperatingSystems()
{
return $this->supportedOperatingSystems;
}
/**
* Warning messages, e.g., a deprecation warning.
*
* @param string[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return string[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Runtime::class, 'Google_Service_Appengine_Runtime');
@@ -0,0 +1,48 @@
<?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 ScriptHandler extends \Google\Model
{
/**
* Path to the script from the application root directory.
*
* @var string
*/
public $scriptPath;
/**
* Path to the script from the application root directory.
*
* @param string $scriptPath
*/
public function setScriptPath($scriptPath)
{
$this->scriptPath = $scriptPath;
}
/**
* @return string
*/
public function getScriptPath()
{
return $this->scriptPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScriptHandler::class, 'Google_Service_Appengine_ScriptHandler');
@@ -0,0 +1,177 @@
<?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 Service extends \Google\Model
{
/**
* Additional Google Generated Customer Metadata, this field won't be provided
* by default and can be requested by setting the IncludeExtraData field in
* GetServiceRequest
*
* @var array[]
*/
public $generatedCustomerMetadata;
/**
* Output only. Relative name of the service within the application. Example:
* default.@OutputOnly
*
* @var string
*/
public $id;
/**
* A set of labels to apply to this service. Labels are key/value pairs that
* describe the service and all resources that belong to it (e.g., versions).
* The labels can be used to search and group resources, and are propagated to
* the usage and billing reports, enabling fine-grain analysis of costs. An
* example of using labels is to tag resources belonging to different
* environments (e.g., "env=prod", "env=qa"). Label keys and values can be no
* longer than 63 characters and can only contain lowercase letters, numeric
* characters, underscores, dashes, and international characters. Label keys
* must start with a lowercase letter or an international character. Each
* service can have at most 32 labels.
*
* @var string[]
*/
public $labels;
/**
* Output only. Full path to the Service resource in the API. Example:
* apps/myapp/services/default.@OutputOnly
*
* @var string
*/
public $name;
protected $networkSettingsType = NetworkSettings::class;
protected $networkSettingsDataType = '';
protected $splitType = TrafficSplit::class;
protected $splitDataType = '';
/**
* Additional Google Generated Customer Metadata, this field won't be provided
* by default and can be requested by setting the IncludeExtraData field in
* GetServiceRequest
*
* @param array[] $generatedCustomerMetadata
*/
public function setGeneratedCustomerMetadata($generatedCustomerMetadata)
{
$this->generatedCustomerMetadata = $generatedCustomerMetadata;
}
/**
* @return array[]
*/
public function getGeneratedCustomerMetadata()
{
return $this->generatedCustomerMetadata;
}
/**
* Output only. Relative name of the service within the application. Example:
* default.@OutputOnly
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A set of labels to apply to this service. Labels are key/value pairs that
* describe the service and all resources that belong to it (e.g., versions).
* The labels can be used to search and group resources, and are propagated to
* the usage and billing reports, enabling fine-grain analysis of costs. An
* example of using labels is to tag resources belonging to different
* environments (e.g., "env=prod", "env=qa"). Label keys and values can be no
* longer than 63 characters and can only contain lowercase letters, numeric
* characters, underscores, dashes, and international characters. Label keys
* must start with a lowercase letter or an international character. Each
* service can have at most 32 labels.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Full path to the Service resource in the API. Example:
* apps/myapp/services/default.@OutputOnly
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Ingress settings for this service. Will apply to all versions.
*
* @param NetworkSettings $networkSettings
*/
public function setNetworkSettings(NetworkSettings $networkSettings)
{
$this->networkSettings = $networkSettings;
}
/**
* @return NetworkSettings
*/
public function getNetworkSettings()
{
return $this->networkSettings;
}
/**
* Mapping that defines fractional HTTP traffic diversion to different
* versions within the service.
*
* @param TrafficSplit $split
*/
public function setSplit(TrafficSplit $split)
{
$this->split = $split;
}
/**
* @return TrafficSplit
*/
public function getSplit()
{
return $this->split;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Service::class, 'Google_Service_Appengine_Service');
@@ -0,0 +1,139 @@
<?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 SslSettings extends \Google\Model
{
/**
* Defaults to AUTOMATIC.
*/
public const SSL_MANAGEMENT_TYPE_SSL_MANAGEMENT_TYPE_UNSPECIFIED = 'SSL_MANAGEMENT_TYPE_UNSPECIFIED';
/**
* SSL support for this domain is configured automatically. The mapped SSL
* certificate will be automatically renewed.
*/
public const SSL_MANAGEMENT_TYPE_AUTOMATIC = 'AUTOMATIC';
/**
* SSL support for this domain is configured manually by the user. Either the
* domain has no SSL support or a user-obtained SSL certificate has been
* explicitly mapped to this domain.
*/
public const SSL_MANAGEMENT_TYPE_MANUAL = 'MANUAL';
/**
* ID of the AuthorizedCertificate resource configuring SSL for the
* application. Clearing this field will remove SSL support.By default, a
* managed certificate is automatically created for every domain mapping. To
* omit SSL support or to configure SSL manually, specify
* SslManagementType.MANUAL on a CREATE or UPDATE request. You must be
* authorized to administer the AuthorizedCertificate resource to manually map
* it to a DomainMapping resource. Example: 12345.
*
* @var string
*/
public $certificateId;
/**
* Output only. ID of the managed AuthorizedCertificate resource currently
* being provisioned, if applicable. Until the new managed certificate has
* been successfully provisioned, the previous SSL state will be preserved.
* Once the provisioning process completes, the certificate_id field will
* reflect the new managed certificate and this field will be left empty. To
* remove SSL support while there is still a pending managed certificate,
* clear the certificate_id field with an
* UpdateDomainMappingRequest.@OutputOnly
*
* @var string
*/
public $pendingManagedCertificateId;
/**
* SSL management type for this domain. If AUTOMATIC, a managed certificate is
* automatically provisioned. If MANUAL, certificate_id must be manually
* specified in order to configure SSL for this domain.
*
* @var string
*/
public $sslManagementType;
/**
* ID of the AuthorizedCertificate resource configuring SSL for the
* application. Clearing this field will remove SSL support.By default, a
* managed certificate is automatically created for every domain mapping. To
* omit SSL support or to configure SSL manually, specify
* SslManagementType.MANUAL on a CREATE or UPDATE request. You must be
* authorized to administer the AuthorizedCertificate resource to manually map
* it to a DomainMapping resource. Example: 12345.
*
* @param string $certificateId
*/
public function setCertificateId($certificateId)
{
$this->certificateId = $certificateId;
}
/**
* @return string
*/
public function getCertificateId()
{
return $this->certificateId;
}
/**
* Output only. ID of the managed AuthorizedCertificate resource currently
* being provisioned, if applicable. Until the new managed certificate has
* been successfully provisioned, the previous SSL state will be preserved.
* Once the provisioning process completes, the certificate_id field will
* reflect the new managed certificate and this field will be left empty. To
* remove SSL support while there is still a pending managed certificate,
* clear the certificate_id field with an
* UpdateDomainMappingRequest.@OutputOnly
*
* @param string $pendingManagedCertificateId
*/
public function setPendingManagedCertificateId($pendingManagedCertificateId)
{
$this->pendingManagedCertificateId = $pendingManagedCertificateId;
}
/**
* @return string
*/
public function getPendingManagedCertificateId()
{
return $this->pendingManagedCertificateId;
}
/**
* SSL management type for this domain. If AUTOMATIC, a managed certificate is
* automatically provisioned. If MANUAL, certificate_id must be manually
* specified in order to configure SSL for this domain.
*
* Accepted values: SSL_MANAGEMENT_TYPE_UNSPECIFIED, AUTOMATIC, MANUAL
*
* @param self::SSL_MANAGEMENT_TYPE_* $sslManagementType
*/
public function setSslManagementType($sslManagementType)
{
$this->sslManagementType = $sslManagementType;
}
/**
* @return self::SSL_MANAGEMENT_TYPE_*
*/
public function getSslManagementType()
{
return $this->sslManagementType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SslSettings::class, 'Google_Service_Appengine_SslSettings');
@@ -0,0 +1,102 @@
<?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 StandardSchedulerSettings extends \Google\Model
{
/**
* Maximum number of instances to run for this version. Set to 2147483647 to
* disable max_instances configuration.
*
* @var int
*/
public $maxInstances;
/**
* Minimum number of instances to run for this version. Set to zero to disable
* min_instances configuration.
*
* @var int
*/
public $minInstances;
/**
* Target CPU utilization ratio to maintain when scaling.
*
* @var
*/
public $targetCpuUtilization;
/**
* Target throughput utilization ratio to maintain when scaling
*
* @var
*/
public $targetThroughputUtilization;
/**
* Maximum number of instances to run for this version. Set to 2147483647 to
* disable max_instances configuration.
*
* @param int $maxInstances
*/
public function setMaxInstances($maxInstances)
{
$this->maxInstances = $maxInstances;
}
/**
* @return int
*/
public function getMaxInstances()
{
return $this->maxInstances;
}
/**
* Minimum number of instances to run for this version. Set to zero to disable
* min_instances configuration.
*
* @param int $minInstances
*/
public function setMinInstances($minInstances)
{
$this->minInstances = $minInstances;
}
/**
* @return int
*/
public function getMinInstances()
{
return $this->minInstances;
}
public function setTargetCpuUtilization($targetCpuUtilization)
{
$this->targetCpuUtilization = $targetCpuUtilization;
}
public function getTargetCpuUtilization()
{
return $this->targetCpuUtilization;
}
public function setTargetThroughputUtilization($targetThroughputUtilization)
{
$this->targetThroughputUtilization = $targetThroughputUtilization;
}
public function getTargetThroughputUtilization()
{
return $this->targetThroughputUtilization;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StandardSchedulerSettings::class, 'Google_Service_Appengine_StandardSchedulerSettings');
@@ -0,0 +1,200 @@
<?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 StaticFilesHandler extends \Google\Model
{
/**
* Whether files should also be uploaded as code data. By default, files
* declared in static file handlers are uploaded as static data and are only
* served to end users; they cannot be read by the application. If enabled,
* uploads are charged against both your code and static data storage resource
* quotas.
*
* @var bool
*/
public $applicationReadable;
/**
* Time a static file served by this handler should be cached by web proxies
* and browsers.
*
* @var string
*/
public $expiration;
/**
* HTTP headers to use for all responses from these URLs.
*
* @var string[]
*/
public $httpHeaders;
/**
* MIME type used to serve all files served by this handler.Defaults to file-
* specific MIME types, which are derived from each file's filename extension.
*
* @var string
*/
public $mimeType;
/**
* Path to the static files matched by the URL pattern, from the application
* root directory. The path can refer to text matched in groupings in the URL
* pattern.
*
* @var string
*/
public $path;
/**
* Whether this handler should match the request if the file referenced by the
* handler does not exist.
*
* @var bool
*/
public $requireMatchingFile;
/**
* Regular expression that matches the file paths for all files that should be
* referenced by this handler.
*
* @var string
*/
public $uploadPathRegex;
/**
* Whether files should also be uploaded as code data. By default, files
* declared in static file handlers are uploaded as static data and are only
* served to end users; they cannot be read by the application. If enabled,
* uploads are charged against both your code and static data storage resource
* quotas.
*
* @param bool $applicationReadable
*/
public function setApplicationReadable($applicationReadable)
{
$this->applicationReadable = $applicationReadable;
}
/**
* @return bool
*/
public function getApplicationReadable()
{
return $this->applicationReadable;
}
/**
* Time a static file served by this handler should be cached by web proxies
* and browsers.
*
* @param string $expiration
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* HTTP headers to use for all responses from these URLs.
*
* @param string[] $httpHeaders
*/
public function setHttpHeaders($httpHeaders)
{
$this->httpHeaders = $httpHeaders;
}
/**
* @return string[]
*/
public function getHttpHeaders()
{
return $this->httpHeaders;
}
/**
* MIME type used to serve all files served by this handler.Defaults to file-
* specific MIME types, which are derived from each file's filename extension.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* Path to the static files matched by the URL pattern, from the application
* root directory. The path can refer to text matched in groupings in the URL
* pattern.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Whether this handler should match the request if the file referenced by the
* handler does not exist.
*
* @param bool $requireMatchingFile
*/
public function setRequireMatchingFile($requireMatchingFile)
{
$this->requireMatchingFile = $requireMatchingFile;
}
/**
* @return bool
*/
public function getRequireMatchingFile()
{
return $this->requireMatchingFile;
}
/**
* Regular expression that matches the file paths for all files that should be
* referenced by this handler.
*
* @param string $uploadPathRegex
*/
public function setUploadPathRegex($uploadPathRegex)
{
$this->uploadPathRegex = $uploadPathRegex;
}
/**
* @return string
*/
public function getUploadPathRegex()
{
return $this->uploadPathRegex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StaticFilesHandler::class, 'Google_Service_Appengine_StaticFilesHandler');
@@ -0,0 +1,99 @@
<?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 Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_Appengine_Status');
@@ -0,0 +1,94 @@
<?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 TrafficSplit extends \Google\Model
{
/**
* Diversion method unspecified.
*/
public const SHARD_BY_UNSPECIFIED = 'UNSPECIFIED';
/**
* Diversion based on a specially named cookie, "GOOGAPPUID." The cookie must
* be set by the application itself or no diversion will occur.
*/
public const SHARD_BY_COOKIE = 'COOKIE';
/**
* Diversion based on applying the modulus operation to a fingerprint of the
* IP address.
*/
public const SHARD_BY_IP = 'IP';
/**
* Diversion based on weighted random assignment. An incoming request is
* randomly routed to a version in the traffic split, with probability
* proportional to the version's traffic share.
*/
public const SHARD_BY_RANDOM = 'RANDOM';
/**
* Mapping from version IDs within the service to fractional (0.000, 1]
* allocations of traffic for that version. Each version can be specified only
* once, but some versions in the service may not have any traffic allocation.
* Services that have traffic allocated cannot be deleted until either the
* service is deleted or their traffic allocation is removed. Allocations must
* sum to 1. Up to two decimal place precision is supported for IP-based
* splits and up to three decimal places is supported for cookie-based splits.
*
* @var []
*/
public $allocations;
/**
* Mechanism used to determine which version a request is sent to. The traffic
* selection algorithm will be stable for either type until allocations are
* changed.
*
* @var string
*/
public $shardBy;
public function setAllocations($allocations)
{
$this->allocations = $allocations;
}
public function getAllocations()
{
return $this->allocations;
}
/**
* Mechanism used to determine which version a request is sent to. The traffic
* selection algorithm will be stable for either type until allocations are
* changed.
*
* Accepted values: UNSPECIFIED, COOKIE, IP, RANDOM
*
* @param self::SHARD_BY_* $shardBy
*/
public function setShardBy($shardBy)
{
$this->shardBy = $shardBy;
}
/**
* @return self::SHARD_BY_*
*/
public function getShardBy()
{
return $this->shardBy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrafficSplit::class, 'Google_Service_Appengine_TrafficSplit');
@@ -0,0 +1,100 @@
<?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 UrlDispatchRule extends \Google\Model
{
/**
* Domain name to match against. The wildcard "*" is supported if specified
* before a period: "*.".Defaults to matching all domains: "*".
*
* @var string
*/
public $domain;
/**
* Pathname within the host. Must start with a "/". A single "*" can be
* included at the end of the path.The sum of the lengths of the domain and
* path may not exceed 100 characters.
*
* @var string
*/
public $path;
/**
* Resource ID of a service in this application that should serve the matched
* request. The service must already exist. Example: default.
*
* @var string
*/
public $service;
/**
* Domain name to match against. The wildcard "*" is supported if specified
* before a period: "*.".Defaults to matching all domains: "*".
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Pathname within the host. Must start with a "/". A single "*" can be
* included at the end of the path.The sum of the lengths of the domain and
* path may not exceed 100 characters.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Resource ID of a service in this application that should serve the matched
* request. The service must already exist. Example: default.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UrlDispatchRule::class, 'Google_Service_Appengine_UrlDispatchRule');

Some files were not shown because too many files have changed in this diff Show More