Skip to content

Commit da6c786

Browse files
Regenerate iamcredentials client (#6590)
1 parent 27fc658 commit da6c786

8 files changed

Lines changed: 352 additions & 0 deletions

src/IAMCredentials.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class IAMCredentials extends \Google\Service
4040
const CLOUD_PLATFORM =
4141
"https://www.googleapis.com/auth/cloud-platform";
4242

43+
public $locations_workforcePools;
44+
public $projects_locations_workloadIdentityPools;
4345
public $projects_serviceAccounts;
4446
public $rootUrlTemplate;
4547

@@ -60,6 +62,46 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
6062
$this->version = 'v1';
6163
$this->serviceName = 'iamcredentials';
6264

65+
$this->locations_workforcePools = new IAMCredentials\Resource\LocationsWorkforcePools(
66+
$this,
67+
$this->serviceName,
68+
'workforcePools',
69+
[
70+
'methods' => [
71+
'getAllowedLocations' => [
72+
'path' => 'v1/{+name}/allowedLocations',
73+
'httpMethod' => 'GET',
74+
'parameters' => [
75+
'name' => [
76+
'location' => 'path',
77+
'type' => 'string',
78+
'required' => true,
79+
],
80+
],
81+
],
82+
]
83+
]
84+
);
85+
$this->projects_locations_workloadIdentityPools = new IAMCredentials\Resource\ProjectsLocationsWorkloadIdentityPools(
86+
$this,
87+
$this->serviceName,
88+
'workloadIdentityPools',
89+
[
90+
'methods' => [
91+
'getAllowedLocations' => [
92+
'path' => 'v1/{+name}/allowedLocations',
93+
'httpMethod' => 'GET',
94+
'parameters' => [
95+
'name' => [
96+
'location' => 'path',
97+
'type' => 'string',
98+
'required' => true,
99+
],
100+
],
101+
],
102+
]
103+
]
104+
);
63105
$this->projects_serviceAccounts = new IAMCredentials\Resource\ProjectsServiceAccounts(
64106
$this,
65107
$this->serviceName,

src/IAMCredentials/GenerateIdTokenRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ class GenerateIdTokenRequest extends \Google\Collection
3232
* @var bool
3333
*/
3434
public $includeEmail;
35+
/**
36+
* @var bool
37+
*/
38+
public $organizationNumberIncluded;
3539

3640
/**
3741
* @param string
@@ -75,6 +79,20 @@ public function getIncludeEmail()
7579
{
7680
return $this->includeEmail;
7781
}
82+
/**
83+
* @param bool
84+
*/
85+
public function setOrganizationNumberIncluded($organizationNumberIncluded)
86+
{
87+
$this->organizationNumberIncluded = $organizationNumberIncluded;
88+
}
89+
/**
90+
* @return bool
91+
*/
92+
public function getOrganizationNumberIncluded()
93+
{
94+
return $this->organizationNumberIncluded;
95+
}
7896
}
7997

8098
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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\IAMCredentials\Resource;
19+
20+
/**
21+
* The "locations" collection of methods.
22+
* Typical usage is:
23+
* <code>
24+
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
25+
* $locations = $iamcredentialsService->locations;
26+
* </code>
27+
*/
28+
class Locations extends \Google\Service\Resource
29+
{
30+
}
31+
32+
// Adding a class alias for backwards compatibility with the previous class name.
33+
class_alias(Locations::class, 'Google_Service_IAMCredentials_Resource_Locations');
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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\IAMCredentials\Resource;
19+
20+
use Google\Service\IAMCredentials\WorkforcePoolAllowedLocations;
21+
22+
/**
23+
* The "workforcePools" collection of methods.
24+
* Typical usage is:
25+
* <code>
26+
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
27+
* $workforcePools = $iamcredentialsService->locations_workforcePools;
28+
* </code>
29+
*/
30+
class LocationsWorkforcePools extends \Google\Service\Resource
31+
{
32+
/**
33+
* Returns the trust boundary info for a given workforce pool.
34+
* (workforcePools.getAllowedLocations)
35+
*
36+
* @param string $name Required. Resource name of workforce pool.
37+
* @param array $optParams Optional parameters.
38+
* @return WorkforcePoolAllowedLocations
39+
* @throws \Google\Service\Exception
40+
*/
41+
public function getAllowedLocations($name, $optParams = [])
42+
{
43+
$params = ['name' => $name];
44+
$params = array_merge($params, $optParams);
45+
return $this->call('getAllowedLocations', [$params], WorkforcePoolAllowedLocations::class);
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(LocationsWorkforcePools::class, 'Google_Service_IAMCredentials_Resource_LocationsWorkforcePools');
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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\IAMCredentials\Resource;
19+
20+
/**
21+
* The "locations" collection of methods.
22+
* Typical usage is:
23+
* <code>
24+
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
25+
* $locations = $iamcredentialsService->projects_locations;
26+
* </code>
27+
*/
28+
class ProjectsLocations extends \Google\Service\Resource
29+
{
30+
}
31+
32+
// Adding a class alias for backwards compatibility with the previous class name.
33+
class_alias(ProjectsLocations::class, 'Google_Service_IAMCredentials_Resource_ProjectsLocations');
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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\IAMCredentials\Resource;
19+
20+
use Google\Service\IAMCredentials\WorkloadIdentityPoolAllowedLocations;
21+
22+
/**
23+
* The "workloadIdentityPools" collection of methods.
24+
* Typical usage is:
25+
* <code>
26+
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
27+
* $workloadIdentityPools = $iamcredentialsService->projects_locations_workloadIdentityPools;
28+
* </code>
29+
*/
30+
class ProjectsLocationsWorkloadIdentityPools extends \Google\Service\Resource
31+
{
32+
/**
33+
* Returns the trust boundary info for a given workload identity pool.
34+
* (workloadIdentityPools.getAllowedLocations)
35+
*
36+
* @param string $name Required. Resource name of workload identity pool.
37+
* @param array $optParams Optional parameters.
38+
* @return WorkloadIdentityPoolAllowedLocations
39+
* @throws \Google\Service\Exception
40+
*/
41+
public function getAllowedLocations($name, $optParams = [])
42+
{
43+
$params = ['name' => $name];
44+
$params = array_merge($params, $optParams);
45+
return $this->call('getAllowedLocations', [$params], WorkloadIdentityPoolAllowedLocations::class);
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(ProjectsLocationsWorkloadIdentityPools::class, 'Google_Service_IAMCredentials_Resource_ProjectsLocationsWorkloadIdentityPools');
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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\IAMCredentials;
19+
20+
class WorkforcePoolAllowedLocations extends \Google\Collection
21+
{
22+
protected $collection_key = 'locations';
23+
/**
24+
* @var string
25+
*/
26+
public $encodedLocations;
27+
/**
28+
* @var string[]
29+
*/
30+
public $locations;
31+
32+
/**
33+
* @param string
34+
*/
35+
public function setEncodedLocations($encodedLocations)
36+
{
37+
$this->encodedLocations = $encodedLocations;
38+
}
39+
/**
40+
* @return string
41+
*/
42+
public function getEncodedLocations()
43+
{
44+
return $this->encodedLocations;
45+
}
46+
/**
47+
* @param string[]
48+
*/
49+
public function setLocations($locations)
50+
{
51+
$this->locations = $locations;
52+
}
53+
/**
54+
* @return string[]
55+
*/
56+
public function getLocations()
57+
{
58+
return $this->locations;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(WorkforcePoolAllowedLocations::class, 'Google_Service_IAMCredentials_WorkforcePoolAllowedLocations');
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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\IAMCredentials;
19+
20+
class WorkloadIdentityPoolAllowedLocations extends \Google\Collection
21+
{
22+
protected $collection_key = 'locations';
23+
/**
24+
* @var string
25+
*/
26+
public $encodedLocations;
27+
/**
28+
* @var string[]
29+
*/
30+
public $locations;
31+
32+
/**
33+
* @param string
34+
*/
35+
public function setEncodedLocations($encodedLocations)
36+
{
37+
$this->encodedLocations = $encodedLocations;
38+
}
39+
/**
40+
* @return string
41+
*/
42+
public function getEncodedLocations()
43+
{
44+
return $this->encodedLocations;
45+
}
46+
/**
47+
* @param string[]
48+
*/
49+
public function setLocations($locations)
50+
{
51+
$this->locations = $locations;
52+
}
53+
/**
54+
* @return string[]
55+
*/
56+
public function getLocations()
57+
{
58+
return $this->locations;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(WorkloadIdentityPoolAllowedLocations::class, 'Google_Service_IAMCredentials_WorkloadIdentityPoolAllowedLocations');

0 commit comments

Comments
 (0)