Skip to content

Commit 2a0b941

Browse files
1 parent 427eec8 commit 2a0b941

4 files changed

Lines changed: 141 additions & 0 deletions

File tree

src/Looker.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
224224
'required' => true,
225225
],
226226
],
227+
],'undelete' => [
228+
'path' => 'v1/{+name}:undelete',
229+
'httpMethod' => 'POST',
230+
'parameters' => [
231+
'name' => [
232+
'location' => 'path',
233+
'type' => 'string',
234+
'required' => true,
235+
],
236+
],
227237
],
228238
]
229239
]

src/Looker/Instance.php

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ class Instance extends \Google\Model
7979
* Trial Embed.
8080
*/
8181
public const PLATFORM_EDITION_LOOKER_CORE_TRIAL_EMBED = 'LOOKER_CORE_TRIAL_EMBED';
82+
/**
83+
* Soft delete reason is unspecified. This is the default value.
84+
*/
85+
public const SOFT_DELETE_REASON_SOFT_DELETE_REASON_UNSPECIFIED = 'SOFT_DELETE_REASON_UNSPECIFIED';
86+
/**
87+
* Instance is soft deleted due to billing account issues.
88+
*/
89+
public const SOFT_DELETE_REASON_BILLING_ACCOUNT_ISSUE = 'BILLING_ACCOUNT_ISSUE';
90+
/**
91+
* Instance is soft deleted due to trial expiration.
92+
*/
93+
public const SOFT_DELETE_REASON_TRIAL_EXPIRED = 'TRIAL_EXPIRED';
94+
/**
95+
* Instance is soft deleted by the customer.
96+
*/
97+
public const SOFT_DELETE_REASON_CUSTOMER_REQUEST = 'CUSTOMER_REQUEST';
8298
/**
8399
* State is unspecified.
84100
*/
@@ -117,6 +133,13 @@ class Instance extends \Google\Model
117133
public const STATE_IMPORTING = 'IMPORTING';
118134
protected $adminSettingsType = AdminSettings::class;
119135
protected $adminSettingsDataType = '';
136+
/**
137+
* Optional. Indicates whether catalog integration is enabled for the Looker
138+
* instance.
139+
*
140+
* @var bool
141+
*/
142+
public $catalogIntegrationEnabled;
120143
/**
121144
* Optional. Storage class of the instance.
122145
*
@@ -267,12 +290,25 @@ class Instance extends \Google\Model
267290
* @var bool
268291
*/
269292
public $satisfiesPzs;
293+
/**
294+
* Output only. The reason for the instance being in a soft-deleted state.
295+
*
296+
* @var string
297+
*/
298+
public $softDeleteReason;
270299
/**
271300
* Output only. The state of the instance.
272301
*
273302
* @var string
274303
*/
275304
public $state;
305+
/**
306+
* Output only. The time when the Looker instance was suspended (soft
307+
* deleted).
308+
*
309+
* @var string
310+
*/
311+
public $suspendedTime;
276312
/**
277313
* Output only. The time when the Looker instance was last updated.
278314
*
@@ -298,6 +334,23 @@ public function getAdminSettings()
298334
{
299335
return $this->adminSettings;
300336
}
337+
/**
338+
* Optional. Indicates whether catalog integration is enabled for the Looker
339+
* instance.
340+
*
341+
* @param bool $catalogIntegrationEnabled
342+
*/
343+
public function setCatalogIntegrationEnabled($catalogIntegrationEnabled)
344+
{
345+
$this->catalogIntegrationEnabled = $catalogIntegrationEnabled;
346+
}
347+
/**
348+
* @return bool
349+
*/
350+
public function getCatalogIntegrationEnabled()
351+
{
352+
return $this->catalogIntegrationEnabled;
353+
}
301354
/**
302355
* Optional. Storage class of the instance.
303356
*
@@ -798,6 +851,25 @@ public function getSatisfiesPzs()
798851
{
799852
return $this->satisfiesPzs;
800853
}
854+
/**
855+
* Output only. The reason for the instance being in a soft-deleted state.
856+
*
857+
* Accepted values: SOFT_DELETE_REASON_UNSPECIFIED, BILLING_ACCOUNT_ISSUE,
858+
* TRIAL_EXPIRED, CUSTOMER_REQUEST
859+
*
860+
* @param self::SOFT_DELETE_REASON_* $softDeleteReason
861+
*/
862+
public function setSoftDeleteReason($softDeleteReason)
863+
{
864+
$this->softDeleteReason = $softDeleteReason;
865+
}
866+
/**
867+
* @return self::SOFT_DELETE_REASON_*
868+
*/
869+
public function getSoftDeleteReason()
870+
{
871+
return $this->softDeleteReason;
872+
}
801873
/**
802874
* Output only. The state of the instance.
803875
*
@@ -817,6 +889,23 @@ public function getState()
817889
{
818890
return $this->state;
819891
}
892+
/**
893+
* Output only. The time when the Looker instance was suspended (soft
894+
* deleted).
895+
*
896+
* @param string $suspendedTime
897+
*/
898+
public function setSuspendedTime($suspendedTime)
899+
{
900+
$this->suspendedTime = $suspendedTime;
901+
}
902+
/**
903+
* @return string
904+
*/
905+
public function getSuspendedTime()
906+
{
907+
return $this->suspendedTime;
908+
}
820909
/**
821910
* Output only. The time when the Looker instance was last updated.
822911
*

src/Looker/Resource/ProjectsLocationsInstances.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Google\Service\Looker\Operation;
2525
use Google\Service\Looker\RestartInstanceRequest;
2626
use Google\Service\Looker\RestoreInstanceRequest;
27+
use Google\Service\Looker\UndeleteInstanceRequest;
2728

2829
/**
2930
* The "instances" collection of methods.
@@ -193,6 +194,22 @@ public function restore($name, RestoreInstanceRequest $postBody, $optParams = []
193194
$params = array_merge($params, $optParams);
194195
return $this->call('restore', [$params], Operation::class);
195196
}
197+
/**
198+
* Undeletes Looker instance. (instances.undelete)
199+
*
200+
* @param string $name Required. Format:
201+
* projects/{project}/locations/{location}/instances/{instance}
202+
* @param UndeleteInstanceRequest $postBody
203+
* @param array $optParams Optional parameters.
204+
* @return Operation
205+
* @throws \Google\Service\Exception
206+
*/
207+
public function undelete($name, UndeleteInstanceRequest $postBody, $optParams = [])
208+
{
209+
$params = ['name' => $name, 'postBody' => $postBody];
210+
$params = array_merge($params, $optParams);
211+
return $this->call('undelete', [$params], Operation::class);
212+
}
196213
}
197214

198215
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\Looker;
19+
20+
class UndeleteInstanceRequest extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(UndeleteInstanceRequest::class, 'Google_Service_Looker_UndeleteInstanceRequest');

0 commit comments

Comments
 (0)