Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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`. 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,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\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.
* (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 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,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\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.
* @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`. 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`. 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`. 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`. 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,181 @@
<?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\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`. 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`. 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);
}
/**
* 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`. 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`. 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`. 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,133 @@
<?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`. 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`. 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`. 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`. 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,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 "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
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplications::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplications');
@@ -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`. 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,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\Resource;
use Google\Service\Appengine\Operation;
/**
* 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`. 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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServices::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServices');
@@ -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\Operation;
/**
* 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`. 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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsApplicationsServicesVersions::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServicesVersions');