Skip to content

Commit 4bbc19a

Browse files
1 parent 8959e9d commit 4bbc19a

4 files changed

Lines changed: 213 additions & 5 deletions

File tree

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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 IngressIpAllowlistConfig extends \Google\Collection
21+
{
22+
protected $collection_key = 'allowlistRules';
23+
protected $allowlistRulesType = IngressIpAllowlistRule::class;
24+
protected $allowlistRulesDataType = 'array';
25+
/**
26+
* Optional. Whether ingress IP allowlist functionality is enabled on the
27+
* Looker instance.
28+
*
29+
* @var bool
30+
*/
31+
public $enabled;
32+
/**
33+
* Optional. Whether google service connections are enabled for the instance.
34+
*
35+
* @var bool
36+
*/
37+
public $googleServicesEnabled;
38+
39+
/**
40+
* Optional. List of IP range rules to allow ingress traffic.
41+
*
42+
* @param IngressIpAllowlistRule[] $allowlistRules
43+
*/
44+
public function setAllowlistRules($allowlistRules)
45+
{
46+
$this->allowlistRules = $allowlistRules;
47+
}
48+
/**
49+
* @return IngressIpAllowlistRule[]
50+
*/
51+
public function getAllowlistRules()
52+
{
53+
return $this->allowlistRules;
54+
}
55+
/**
56+
* Optional. Whether ingress IP allowlist functionality is enabled on the
57+
* Looker instance.
58+
*
59+
* @param bool $enabled
60+
*/
61+
public function setEnabled($enabled)
62+
{
63+
$this->enabled = $enabled;
64+
}
65+
/**
66+
* @return bool
67+
*/
68+
public function getEnabled()
69+
{
70+
return $this->enabled;
71+
}
72+
/**
73+
* Optional. Whether google service connections are enabled for the instance.
74+
*
75+
* @param bool $googleServicesEnabled
76+
*/
77+
public function setGoogleServicesEnabled($googleServicesEnabled)
78+
{
79+
$this->googleServicesEnabled = $googleServicesEnabled;
80+
}
81+
/**
82+
* @return bool
83+
*/
84+
public function getGoogleServicesEnabled()
85+
{
86+
return $this->googleServicesEnabled;
87+
}
88+
}
89+
90+
// Adding a class alias for backwards compatibility with the previous class name.
91+
class_alias(IngressIpAllowlistConfig::class, 'Google_Service_Looker_IngressIpAllowlistConfig');
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 IngressIpAllowlistRule extends \Google\Model
21+
{
22+
/**
23+
* Optional. Description for the IP range.
24+
*
25+
* @var string
26+
*/
27+
public $description;
28+
/**
29+
* Optional. The IP range to allow ingress traffic from.
30+
*
31+
* @var string
32+
*/
33+
public $ipRange;
34+
35+
/**
36+
* Optional. Description for the IP range.
37+
*
38+
* @param string $description
39+
*/
40+
public function setDescription($description)
41+
{
42+
$this->description = $description;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getDescription()
48+
{
49+
return $this->description;
50+
}
51+
/**
52+
* Optional. The IP range to allow ingress traffic from.
53+
*
54+
* @param string $ipRange
55+
*/
56+
public function setIpRange($ipRange)
57+
{
58+
$this->ipRange = $ipRange;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getIpRange()
64+
{
65+
return $this->ipRange;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(IngressIpAllowlistRule::class, 'Google_Service_Looker_IngressIpAllowlistRule');

src/Looker/Instance.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ class Instance extends \Google\Model
117117
public const STATE_IMPORTING = 'IMPORTING';
118118
protected $adminSettingsType = AdminSettings::class;
119119
protected $adminSettingsDataType = '';
120+
/**
121+
* Optional. Indicates whether catalog integration is disabled for the Looker
122+
* instance.
123+
*
124+
* @var bool
125+
*/
126+
public $catalogIntegrationOptOut;
120127
/**
121128
* Optional. Storage class of the instance.
122129
*
@@ -171,6 +178,8 @@ class Instance extends \Google\Model
171178
* @var bool
172179
*/
173180
public $geminiEnabled;
181+
protected $ingressIpAllowlistConfigType = IngressIpAllowlistConfig::class;
182+
protected $ingressIpAllowlistConfigDataType = '';
174183
/**
175184
* Output only. Private Ingress IP (IPv4).
176185
*
@@ -298,6 +307,23 @@ public function getAdminSettings()
298307
{
299308
return $this->adminSettings;
300309
}
310+
/**
311+
* Optional. Indicates whether catalog integration is disabled for the Looker
312+
* instance.
313+
*
314+
* @param bool $catalogIntegrationOptOut
315+
*/
316+
public function setCatalogIntegrationOptOut($catalogIntegrationOptOut)
317+
{
318+
$this->catalogIntegrationOptOut = $catalogIntegrationOptOut;
319+
}
320+
/**
321+
* @return bool
322+
*/
323+
public function getCatalogIntegrationOptOut()
324+
{
325+
return $this->catalogIntegrationOptOut;
326+
}
301327
/**
302328
* Optional. Storage class of the instance.
303329
*
@@ -481,6 +507,22 @@ public function getGeminiEnabled()
481507
{
482508
return $this->geminiEnabled;
483509
}
510+
/**
511+
* Optional. Ingress IP allowlist configuration for the Looker instance.
512+
*
513+
* @param IngressIpAllowlistConfig $ingressIpAllowlistConfig
514+
*/
515+
public function setIngressIpAllowlistConfig(IngressIpAllowlistConfig $ingressIpAllowlistConfig)
516+
{
517+
$this->ingressIpAllowlistConfig = $ingressIpAllowlistConfig;
518+
}
519+
/**
520+
* @return IngressIpAllowlistConfig
521+
*/
522+
public function getIngressIpAllowlistConfig()
523+
{
524+
return $this->ingressIpAllowlistConfig;
525+
}
484526
/**
485527
* Output only. Private Ingress IP (IPv4).
486528
*

src/Looker/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ public function get($name, $optParams = [])
4646
}
4747
/**
4848
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: * **List all public locations:** Use the path `GET
50-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
51-
* /v1/projects/{project_id}/locations`. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
53-
* (locations.listProjectsLocations)
49+
* lists locations based on the resource scope provided in the
50+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
51+
* empty, the method lists the public locations available to all projects. *
52+
* **Project-specific locations**: If `name` follows the format
53+
* `projects/{project}`, the method lists locations visible to that specific
54+
* project. This includes public, private, or other project-specific locations
55+
* enabled for the project. For gRPC and client library implementations, the
56+
* resource name is passed as the `name` field. For direct service calls, the
57+
* resource name is incorporated into the request path based on the specific
58+
* service implementation and version. (locations.listProjectsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if
5661
* applicable.

0 commit comments

Comments
 (0)