Skip to content

Commit e0a1fe7

Browse files
1 parent 90c1b52 commit e0a1fe7

File tree

4 files changed

+88
-69
lines changed

4 files changed

+88
-69
lines changed

src/Appengine.php

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Appengine extends \Google\Service
6060
public $projects_locations_applications_domainMappings;
6161
public $projects_locations_applications_services;
6262
public $projects_locations_applications_services_versions;
63+
public $projects_locations_applications_services_versions_instances;
6364
public $rootUrlTemplate;
6465

6566
/**
@@ -685,26 +686,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
685686
'required' => true,
686687
],
687688
],
688-
],'exportAppImage' => [
689-
'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}:exportAppImage',
690-
'httpMethod' => 'POST',
691-
'parameters' => [
692-
'appsId' => [
693-
'location' => 'path',
694-
'type' => 'string',
695-
'required' => true,
696-
],
697-
'servicesId' => [
698-
'location' => 'path',
699-
'type' => 'string',
700-
'required' => true,
701-
],
702-
'versionsId' => [
703-
'location' => 'path',
704-
'type' => 'string',
705-
'required' => true,
706-
],
707-
],
708689
],'get' => [
709690
'path' => 'v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}',
710691
'httpMethod' => 'GET',
@@ -1359,9 +1340,9 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
13591340
'required' => true,
13601341
],
13611342
],
1362-
],'exportAppImage' => [
1363-
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}:exportAppImage',
1364-
'httpMethod' => 'POST',
1343+
],'patch' => [
1344+
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}',
1345+
'httpMethod' => 'PATCH',
13651346
'parameters' => [
13661347
'projectsId' => [
13671348
'location' => 'path',
@@ -1388,10 +1369,24 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
13881369
'type' => 'string',
13891370
'required' => true,
13901371
],
1372+
'updateMask' => [
1373+
'location' => 'query',
1374+
'type' => 'string',
1375+
],
13911376
],
1392-
],'patch' => [
1393-
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}',
1394-
'httpMethod' => 'PATCH',
1377+
],
1378+
]
1379+
]
1380+
);
1381+
$this->projects_locations_applications_services_versions_instances = new Appengine\Resource\ProjectsLocationsApplicationsServicesVersionsInstances(
1382+
$this,
1383+
$this->serviceName,
1384+
'instances',
1385+
[
1386+
'methods' => [
1387+
'debug' => [
1388+
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug',
1389+
'httpMethod' => 'POST',
13951390
'parameters' => [
13961391
'projectsId' => [
13971392
'location' => 'path',
@@ -1418,9 +1413,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
14181413
'type' => 'string',
14191414
'required' => true,
14201415
],
1421-
'updateMask' => [
1422-
'location' => 'query',
1416+
'instancesId' => [
1417+
'location' => 'path',
14231418
'type' => 'string',
1419+
'required' => true,
14241420
],
14251421
],
14261422
],

src/Appengine/Resource/AppsServicesVersions.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
namespace Google\Service\Appengine\Resource;
1919

20-
use Google\Service\Appengine\ExportAppImageRequest;
2120
use Google\Service\Appengine\ListVersionsResponse;
2221
use Google\Service\Appengine\Operation;
2322
use Google\Service\Appengine\Version;
@@ -66,24 +65,6 @@ public function delete($appsId, $servicesId, $versionsId, $optParams = [])
6665
$params = array_merge($params, $optParams);
6766
return $this->call('delete', [$params], Operation::class);
6867
}
69-
/**
70-
* Exports a user image to Artifact Registry. (versions.exportAppImage)
71-
*
72-
* @param string $appsId Part of `name`. Required. Name of the App Engine
73-
* version resource. Format: apps/{app}/services/{service}/versions/{version}
74-
* @param string $servicesId Part of `name`. See documentation of `appsId`.
75-
* @param string $versionsId Part of `name`. See documentation of `appsId`.
76-
* @param ExportAppImageRequest $postBody
77-
* @param array $optParams Optional parameters.
78-
* @return Operation
79-
* @throws \Google\Service\Exception
80-
*/
81-
public function exportAppImage($appsId, $servicesId, $versionsId, ExportAppImageRequest $postBody, $optParams = [])
82-
{
83-
$params = ['appsId' => $appsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
84-
$params = array_merge($params, $optParams);
85-
return $this->call('exportAppImage', [$params], Operation::class);
86-
}
8768
/**
8869
* Gets the specified Version resource. By default, only a BASIC_VIEW will be
8970
* returned. Specify the FULL_VIEW parameter to get the full resource.

src/Appengine/Resource/ProjectsLocationsApplicationsServicesVersions.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
namespace Google\Service\Appengine\Resource;
1919

20-
use Google\Service\Appengine\ExportAppImageRequest;
2120
use Google\Service\Appengine\Operation;
2221
use Google\Service\Appengine\Version;
2322

@@ -51,27 +50,6 @@ public function delete($projectsId, $locationsId, $applicationsId, $servicesId,
5150
$params = array_merge($params, $optParams);
5251
return $this->call('delete', [$params], Operation::class);
5352
}
54-
/**
55-
* Exports a user image to Artifact Registry. (versions.exportAppImage)
56-
*
57-
* @param string $projectsId Part of `name`. Required. Name of the App Engine
58-
* version resource. Format: apps/{app}/services/{service}/versions/{version}
59-
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
60-
* @param string $applicationsId Part of `name`. See documentation of
61-
* `projectsId`.
62-
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
63-
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
64-
* @param ExportAppImageRequest $postBody
65-
* @param array $optParams Optional parameters.
66-
* @return Operation
67-
* @throws \Google\Service\Exception
68-
*/
69-
public function exportAppImage($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, ExportAppImageRequest $postBody, $optParams = [])
70-
{
71-
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'postBody' => $postBody];
72-
$params = array_merge($params, $optParams);
73-
return $this->call('exportAppImage', [$params], Operation::class);
74-
}
7553
/**
7654
* Updates the specified Version resource. You can specify the following fields
7755
* depending on the App Engine environment and type of scaling that the version
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Appengine\Resource;
19+
20+
use Google\Service\Appengine\DebugInstanceRequest;
21+
use Google\Service\Appengine\Operation;
22+
23+
/**
24+
* The "instances" collection of methods.
25+
* Typical usage is:
26+
* <code>
27+
* $appengineService = new Google\Service\Appengine(...);
28+
* $instances = $appengineService->projects_locations_applications_services_versions_instances;
29+
* </code>
30+
*/
31+
class ProjectsLocationsApplicationsServicesVersionsInstances extends \Google\Service\Resource
32+
{
33+
/**
34+
* Enables debugging on a VM instance. This allows you to use the SSH command to
35+
* connect to the virtual machine where the instance lives. While in "debug
36+
* mode", the instance continues to serve live traffic. You should delete the
37+
* instance when you are done debugging and then allow the system to take over
38+
* and determine if another instance should be started.Only applicable for
39+
* instances in App Engine flexible environment. (instances.debug)
40+
*
41+
* @param string $projectsId Part of `name`. Required. Name of the resource
42+
* requested. Example:
43+
* apps/myapp/services/default/versions/v1/instances/instance-1.
44+
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
45+
* @param string $applicationsId Part of `name`. See documentation of
46+
* `projectsId`.
47+
* @param string $servicesId Part of `name`. See documentation of `projectsId`.
48+
* @param string $versionsId Part of `name`. See documentation of `projectsId`.
49+
* @param string $instancesId Part of `name`. See documentation of `projectsId`.
50+
* @param DebugInstanceRequest $postBody
51+
* @param array $optParams Optional parameters.
52+
* @return Operation
53+
* @throws \Google\Service\Exception
54+
*/
55+
public function debug($projectsId, $locationsId, $applicationsId, $servicesId, $versionsId, $instancesId, DebugInstanceRequest $postBody, $optParams = [])
56+
{
57+
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'servicesId' => $servicesId, 'versionsId' => $versionsId, 'instancesId' => $instancesId, 'postBody' => $postBody];
58+
$params = array_merge($params, $optParams);
59+
return $this->call('debug', [$params], Operation::class);
60+
}
61+
}
62+
63+
// Adding a class alias for backwards compatibility with the previous class name.
64+
class_alias(ProjectsLocationsApplicationsServicesVersionsInstances::class, 'Google_Service_Appengine_Resource_ProjectsLocationsApplicationsServicesVersionsInstances');

0 commit comments

Comments
 (0)