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

View File

@@ -0,0 +1,81 @@
<?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\IAMCredentials;
class GenerateAccessTokenRequest extends \Google\Collection
{
protected $collection_key = 'scope';
/**
* @var string[]
*/
public $delegates;
/**
* @var string
*/
public $lifetime;
/**
* @var string[]
*/
public $scope;
/**
* @param string[]
*/
public function setDelegates($delegates)
{
$this->delegates = $delegates;
}
/**
* @return string[]
*/
public function getDelegates()
{
return $this->delegates;
}
/**
* @param string
*/
public function setLifetime($lifetime)
{
$this->lifetime = $lifetime;
}
/**
* @return string
*/
public function getLifetime()
{
return $this->lifetime;
}
/**
* @param string[]
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string[]
*/
public function getScope()
{
return $this->scope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateAccessTokenRequest::class, 'Google_Service_IAMCredentials_GenerateAccessTokenRequest');

View File

@@ -0,0 +1,62 @@
<?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\IAMCredentials;
class GenerateAccessTokenResponse extends \Google\Model
{
/**
* @var string
*/
public $accessToken;
/**
* @var string
*/
public $expireTime;
/**
* @param string
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateAccessTokenResponse::class, 'Google_Service_IAMCredentials_GenerateAccessTokenResponse');

View File

@@ -0,0 +1,81 @@
<?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\IAMCredentials;
class GenerateIdTokenRequest extends \Google\Collection
{
protected $collection_key = 'delegates';
/**
* @var string
*/
public $audience;
/**
* @var string[]
*/
public $delegates;
/**
* @var bool
*/
public $includeEmail;
/**
* @param string
*/
public function setAudience($audience)
{
$this->audience = $audience;
}
/**
* @return string
*/
public function getAudience()
{
return $this->audience;
}
/**
* @param string[]
*/
public function setDelegates($delegates)
{
$this->delegates = $delegates;
}
/**
* @return string[]
*/
public function getDelegates()
{
return $this->delegates;
}
/**
* @param bool
*/
public function setIncludeEmail($includeEmail)
{
$this->includeEmail = $includeEmail;
}
/**
* @return bool
*/
public function getIncludeEmail()
{
return $this->includeEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateIdTokenRequest::class, 'Google_Service_IAMCredentials_GenerateIdTokenRequest');

View File

@@ -0,0 +1,44 @@
<?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\IAMCredentials;
class GenerateIdTokenResponse extends \Google\Model
{
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateIdTokenResponse::class, 'Google_Service_IAMCredentials_GenerateIdTokenResponse');

View File

@@ -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\IAMCredentials\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
* $projects = $iamcredentialsService->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_IAMCredentials_Resource_Projects');

View File

@@ -0,0 +1,134 @@
<?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\IAMCredentials\Resource;
use Google\Service\IAMCredentials\GenerateAccessTokenRequest;
use Google\Service\IAMCredentials\GenerateAccessTokenResponse;
use Google\Service\IAMCredentials\GenerateIdTokenRequest;
use Google\Service\IAMCredentials\GenerateIdTokenResponse;
use Google\Service\IAMCredentials\ServiceAccountAllowedLocations;
use Google\Service\IAMCredentials\SignBlobRequest;
use Google\Service\IAMCredentials\SignBlobResponse;
use Google\Service\IAMCredentials\SignJwtRequest;
use Google\Service\IAMCredentials\SignJwtResponse;
/**
* The "serviceAccounts" collection of methods.
* Typical usage is:
* <code>
* $iamcredentialsService = new Google\Service\IAMCredentials(...);
* $serviceAccounts = $iamcredentialsService->projects_serviceAccounts;
* </code>
*/
class ProjectsServiceAccounts extends \Google\Service\Resource
{
/**
* Generates an OAuth 2.0 access token for a service account.
* (serviceAccounts.generateAccessToken)
*
* @param string $name Required. The resource name of the service account for
* which the credentials are requested, in the following format:
* `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
* character is required; replacing it with a project ID is invalid.
* @param GenerateAccessTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateAccessTokenResponse
* @throws \Google\Service\Exception
*/
public function generateAccessToken($name, GenerateAccessTokenRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateAccessToken', [$params], GenerateAccessTokenResponse::class);
}
/**
* Generates an OpenID Connect ID token for a service account.
* (serviceAccounts.generateIdToken)
*
* @param string $name Required. The resource name of the service account for
* which the credentials are requested, in the following format:
* `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
* character is required; replacing it with a project ID is invalid.
* @param GenerateIdTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateIdTokenResponse
* @throws \Google\Service\Exception
*/
public function generateIdToken($name, GenerateIdTokenRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateIdToken', [$params], GenerateIdTokenResponse::class);
}
/**
* Returns the trust boundary info for a given service account.
* (serviceAccounts.getAllowedLocations)
*
* @param string $name Required. Resource name of service account.
* @param array $optParams Optional parameters.
* @return ServiceAccountAllowedLocations
* @throws \Google\Service\Exception
*/
public function getAllowedLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getAllowedLocations', [$params], ServiceAccountAllowedLocations::class);
}
/**
* Signs a blob using a service account's system-managed private key.
* (serviceAccounts.signBlob)
*
* @param string $name Required. The resource name of the service account for
* which the credentials are requested, in the following format:
* `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
* character is required; replacing it with a project ID is invalid.
* @param SignBlobRequest $postBody
* @param array $optParams Optional parameters.
* @return SignBlobResponse
* @throws \Google\Service\Exception
*/
public function signBlob($name, SignBlobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('signBlob', [$params], SignBlobResponse::class);
}
/**
* Signs a JWT using a service account's system-managed private key.
* (serviceAccounts.signJwt)
*
* @param string $name Required. The resource name of the service account for
* which the credentials are requested, in the following format:
* `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard
* character is required; replacing it with a project ID is invalid.
* @param SignJwtRequest $postBody
* @param array $optParams Optional parameters.
* @return SignJwtResponse
* @throws \Google\Service\Exception
*/
public function signJwt($name, SignJwtRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('signJwt', [$params], SignJwtResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsServiceAccounts::class, 'Google_Service_IAMCredentials_Resource_ProjectsServiceAccounts');

View File

@@ -0,0 +1,63 @@
<?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\IAMCredentials;
class ServiceAccountAllowedLocations extends \Google\Collection
{
protected $collection_key = 'locations';
/**
* @var string
*/
public $encodedLocations;
/**
* @var string[]
*/
public $locations;
/**
* @param string
*/
public function setEncodedLocations($encodedLocations)
{
$this->encodedLocations = $encodedLocations;
}
/**
* @return string
*/
public function getEncodedLocations()
{
return $this->encodedLocations;
}
/**
* @param string[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return string[]
*/
public function getLocations()
{
return $this->locations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccountAllowedLocations::class, 'Google_Service_IAMCredentials_ServiceAccountAllowedLocations');

View File

@@ -0,0 +1,63 @@
<?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\IAMCredentials;
class SignBlobRequest extends \Google\Collection
{
protected $collection_key = 'delegates';
/**
* @var string[]
*/
public $delegates;
/**
* @var string
*/
public $payload;
/**
* @param string[]
*/
public function setDelegates($delegates)
{
$this->delegates = $delegates;
}
/**
* @return string[]
*/
public function getDelegates()
{
return $this->delegates;
}
/**
* @param string
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignBlobRequest::class, 'Google_Service_IAMCredentials_SignBlobRequest');

View File

@@ -0,0 +1,62 @@
<?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\IAMCredentials;
class SignBlobResponse extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @var string
*/
public $signedBlob;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
/**
* @param string
*/
public function setSignedBlob($signedBlob)
{
$this->signedBlob = $signedBlob;
}
/**
* @return string
*/
public function getSignedBlob()
{
return $this->signedBlob;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignBlobResponse::class, 'Google_Service_IAMCredentials_SignBlobResponse');

View File

@@ -0,0 +1,63 @@
<?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\IAMCredentials;
class SignJwtRequest extends \Google\Collection
{
protected $collection_key = 'delegates';
/**
* @var string[]
*/
public $delegates;
/**
* @var string
*/
public $payload;
/**
* @param string[]
*/
public function setDelegates($delegates)
{
$this->delegates = $delegates;
}
/**
* @return string[]
*/
public function getDelegates()
{
return $this->delegates;
}
/**
* @param string
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return string
*/
public function getPayload()
{
return $this->payload;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignJwtRequest::class, 'Google_Service_IAMCredentials_SignJwtRequest');

View File

@@ -0,0 +1,62 @@
<?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\IAMCredentials;
class SignJwtResponse extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @var string
*/
public $signedJwt;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
/**
* @param string
*/
public function setSignedJwt($signedJwt)
{
$this->signedJwt = $signedJwt;
}
/**
* @return string
*/
public function getSignedJwt()
{
return $this->signedJwt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SignJwtResponse::class, 'Google_Service_IAMCredentials_SignJwtResponse');