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
@@ -0,0 +1,79 @@
<?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\CloudSecurityToken;
class GoogleIamV1Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = GoogleTypeExpr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param GoogleTypeExpr
*/
public function setCondition(GoogleTypeExpr $condition)
{
$this->condition = $condition;
}
/**
* @return GoogleTypeExpr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIamV1Binding::class, 'Google_Service_CloudSecurityToken_GoogleIamV1Binding');
@@ -0,0 +1,43 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1AccessBoundary extends \Google\Collection
{
protected $collection_key = 'accessBoundaryRules';
protected $accessBoundaryRulesType = GoogleIdentityStsV1AccessBoundaryRule::class;
protected $accessBoundaryRulesDataType = 'array';
/**
* @param GoogleIdentityStsV1AccessBoundaryRule[]
*/
public function setAccessBoundaryRules($accessBoundaryRules)
{
$this->accessBoundaryRules = $accessBoundaryRules;
}
/**
* @return GoogleIdentityStsV1AccessBoundaryRule[]
*/
public function getAccessBoundaryRules()
{
return $this->accessBoundaryRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1AccessBoundary::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1AccessBoundary');
@@ -0,0 +1,79 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1AccessBoundaryRule extends \Google\Collection
{
protected $collection_key = 'availablePermissions';
protected $availabilityConditionType = GoogleTypeExpr::class;
protected $availabilityConditionDataType = '';
/**
* @var string[]
*/
public $availablePermissions;
/**
* @var string
*/
public $availableResource;
/**
* @param GoogleTypeExpr
*/
public function setAvailabilityCondition(GoogleTypeExpr $availabilityCondition)
{
$this->availabilityCondition = $availabilityCondition;
}
/**
* @return GoogleTypeExpr
*/
public function getAvailabilityCondition()
{
return $this->availabilityCondition;
}
/**
* @param string[]
*/
public function setAvailablePermissions($availablePermissions)
{
$this->availablePermissions = $availablePermissions;
}
/**
* @return string[]
*/
public function getAvailablePermissions()
{
return $this->availablePermissions;
}
/**
* @param string
*/
public function setAvailableResource($availableResource)
{
$this->availableResource = $availableResource;
}
/**
* @return string
*/
public function getAvailableResource()
{
return $this->availableResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1AccessBoundaryRule::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1AccessBoundaryRule');
@@ -0,0 +1,152 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1ExchangeOauthTokenRequest extends \Google\Model
{
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $codeVerifier;
/**
* @var string
*/
public $grantType;
/**
* @var string
*/
public $redirectUri;
/**
* @var string
*/
public $refreshToken;
/**
* @var string
*/
public $scope;
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string
*/
public function setCodeVerifier($codeVerifier)
{
$this->codeVerifier = $codeVerifier;
}
/**
* @return string
*/
public function getCodeVerifier()
{
return $this->codeVerifier;
}
/**
* @param string
*/
public function setGrantType($grantType)
{
$this->grantType = $grantType;
}
/**
* @return string
*/
public function getGrantType()
{
return $this->grantType;
}
/**
* @param string
*/
public function setRedirectUri($redirectUri)
{
$this->redirectUri = $redirectUri;
}
/**
* @return string
*/
public function getRedirectUri()
{
return $this->redirectUri;
}
/**
* @param string
*/
public function setRefreshToken($refreshToken)
{
$this->refreshToken = $refreshToken;
}
/**
* @return string
*/
public function getRefreshToken()
{
return $this->refreshToken;
}
/**
* @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(GoogleIdentityStsV1ExchangeOauthTokenRequest::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1ExchangeOauthTokenRequest');
@@ -0,0 +1,141 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1ExchangeOauthTokenResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"accessToken" => "access_token",
"expiresIn" => "expires_in",
"idToken" => "id_token",
"refreshToken" => "refresh_token",
"tokenType" => "token_type",
];
/**
* @var string
*/
public $accessToken;
/**
* @var int
*/
public $expiresIn;
/**
* @var string
*/
public $idToken;
/**
* @var string
*/
public $refreshToken;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $tokenType;
/**
* @param string
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* @param int
*/
public function setExpiresIn($expiresIn)
{
$this->expiresIn = $expiresIn;
}
/**
* @return int
*/
public function getExpiresIn()
{
return $this->expiresIn;
}
/**
* @param string
*/
public function setIdToken($idToken)
{
$this->idToken = $idToken;
}
/**
* @return string
*/
public function getIdToken()
{
return $this->idToken;
}
/**
* @param string
*/
public function setRefreshToken($refreshToken)
{
$this->refreshToken = $refreshToken;
}
/**
* @return string
*/
public function getRefreshToken()
{
return $this->refreshToken;
}
/**
* @param string
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* @param string
*/
public function setTokenType($tokenType)
{
$this->tokenType = $tokenType;
}
/**
* @return string
*/
public function getTokenType()
{
return $this->tokenType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1ExchangeOauthTokenResponse::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1ExchangeOauthTokenResponse');
@@ -0,0 +1,152 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1ExchangeTokenRequest extends \Google\Model
{
/**
* @var string
*/
public $audience;
/**
* @var string
*/
public $grantType;
/**
* @var string
*/
public $options;
/**
* @var string
*/
public $requestedTokenType;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $subjectToken;
/**
* @var string
*/
public $subjectTokenType;
/**
* @param string
*/
public function setAudience($audience)
{
$this->audience = $audience;
}
/**
* @return string
*/
public function getAudience()
{
return $this->audience;
}
/**
* @param string
*/
public function setGrantType($grantType)
{
$this->grantType = $grantType;
}
/**
* @return string
*/
public function getGrantType()
{
return $this->grantType;
}
/**
* @param string
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return string
*/
public function getOptions()
{
return $this->options;
}
/**
* @param string
*/
public function setRequestedTokenType($requestedTokenType)
{
$this->requestedTokenType = $requestedTokenType;
}
/**
* @return string
*/
public function getRequestedTokenType()
{
return $this->requestedTokenType;
}
/**
* @param string
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* @param string
*/
public function setSubjectToken($subjectToken)
{
$this->subjectToken = $subjectToken;
}
/**
* @return string
*/
public function getSubjectToken()
{
return $this->subjectToken;
}
/**
* @param string
*/
public function setSubjectTokenType($subjectTokenType)
{
$this->subjectTokenType = $subjectTokenType;
}
/**
* @return string
*/
public function getSubjectTokenType()
{
return $this->subjectTokenType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1ExchangeTokenRequest::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1ExchangeTokenRequest');
@@ -0,0 +1,123 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1ExchangeTokenResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"accessBoundarySessionKey" => "access_boundary_session_key",
"accessToken" => "access_token",
"expiresIn" => "expires_in",
"issuedTokenType" => "issued_token_type",
"tokenType" => "token_type",
];
/**
* @var string
*/
public $accessBoundarySessionKey;
/**
* @var string
*/
public $accessToken;
/**
* @var int
*/
public $expiresIn;
/**
* @var string
*/
public $issuedTokenType;
/**
* @var string
*/
public $tokenType;
/**
* @param string
*/
public function setAccessBoundarySessionKey($accessBoundarySessionKey)
{
$this->accessBoundarySessionKey = $accessBoundarySessionKey;
}
/**
* @return string
*/
public function getAccessBoundarySessionKey()
{
return $this->accessBoundarySessionKey;
}
/**
* @param string
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* @param int
*/
public function setExpiresIn($expiresIn)
{
$this->expiresIn = $expiresIn;
}
/**
* @return int
*/
public function getExpiresIn()
{
return $this->expiresIn;
}
/**
* @param string
*/
public function setIssuedTokenType($issuedTokenType)
{
$this->issuedTokenType = $issuedTokenType;
}
/**
* @return string
*/
public function getIssuedTokenType()
{
return $this->issuedTokenType;
}
/**
* @param string
*/
public function setTokenType($tokenType)
{
$this->tokenType = $tokenType;
}
/**
* @return string
*/
public function getTokenType()
{
return $this->tokenType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1ExchangeTokenResponse::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1ExchangeTokenResponse');
@@ -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\CloudSecurityToken;
class GoogleIdentityStsV1IntrospectTokenRequest extends \Google\Model
{
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $tokenTypeHint;
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
public function setTokenTypeHint($tokenTypeHint)
{
$this->tokenTypeHint = $tokenTypeHint;
}
/**
* @return string
*/
public function getTokenTypeHint()
{
return $this->tokenTypeHint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1IntrospectTokenRequest::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1IntrospectTokenRequest');
@@ -0,0 +1,173 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1IntrospectTokenResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"clientId" => "client_id",
];
/**
* @var bool
*/
public $active;
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $exp;
/**
* @var string
*/
public $iat;
/**
* @var string
*/
public $iss;
/**
* @var string
*/
public $scope;
/**
* @var string
*/
public $sub;
/**
* @var string
*/
public $username;
/**
* @param bool
*/
public function setActive($active)
{
$this->active = $active;
}
/**
* @return bool
*/
public function getActive()
{
return $this->active;
}
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setExp($exp)
{
$this->exp = $exp;
}
/**
* @return string
*/
public function getExp()
{
return $this->exp;
}
/**
* @param string
*/
public function setIat($iat)
{
$this->iat = $iat;
}
/**
* @return string
*/
public function getIat()
{
return $this->iat;
}
/**
* @param string
*/
public function setIss($iss)
{
$this->iss = $iss;
}
/**
* @return string
*/
public function getIss()
{
return $this->iss;
}
/**
* @param string
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* @param string
*/
public function setSub($sub)
{
$this->sub = $sub;
}
/**
* @return string
*/
public function getSub()
{
return $this->sub;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1IntrospectTokenResponse::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1IntrospectTokenResponse');
@@ -0,0 +1,60 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1Options extends \Google\Model
{
protected $accessBoundaryType = GoogleIdentityStsV1AccessBoundary::class;
protected $accessBoundaryDataType = '';
/**
* @var string
*/
public $userProject;
/**
* @param GoogleIdentityStsV1AccessBoundary
*/
public function setAccessBoundary(GoogleIdentityStsV1AccessBoundary $accessBoundary)
{
$this->accessBoundary = $accessBoundary;
}
/**
* @return GoogleIdentityStsV1AccessBoundary
*/
public function getAccessBoundary()
{
return $this->accessBoundary;
}
/**
* @param string
*/
public function setUserProject($userProject)
{
$this->userProject = $userProject;
}
/**
* @return string
*/
public function getUserProject()
{
return $this->userProject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1Options::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1Options');
@@ -0,0 +1,43 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1betaAccessBoundary extends \Google\Collection
{
protected $collection_key = 'accessBoundaryRules';
protected $accessBoundaryRulesType = GoogleIdentityStsV1betaAccessBoundaryRule::class;
protected $accessBoundaryRulesDataType = 'array';
/**
* @param GoogleIdentityStsV1betaAccessBoundaryRule[]
*/
public function setAccessBoundaryRules($accessBoundaryRules)
{
$this->accessBoundaryRules = $accessBoundaryRules;
}
/**
* @return GoogleIdentityStsV1betaAccessBoundaryRule[]
*/
public function getAccessBoundaryRules()
{
return $this->accessBoundaryRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1betaAccessBoundary::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1betaAccessBoundary');
@@ -0,0 +1,79 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1betaAccessBoundaryRule extends \Google\Collection
{
protected $collection_key = 'availablePermissions';
protected $availabilityConditionType = GoogleTypeExpr::class;
protected $availabilityConditionDataType = '';
/**
* @var string[]
*/
public $availablePermissions;
/**
* @var string
*/
public $availableResource;
/**
* @param GoogleTypeExpr
*/
public function setAvailabilityCondition(GoogleTypeExpr $availabilityCondition)
{
$this->availabilityCondition = $availabilityCondition;
}
/**
* @return GoogleTypeExpr
*/
public function getAvailabilityCondition()
{
return $this->availabilityCondition;
}
/**
* @param string[]
*/
public function setAvailablePermissions($availablePermissions)
{
$this->availablePermissions = $availablePermissions;
}
/**
* @return string[]
*/
public function getAvailablePermissions()
{
return $this->availablePermissions;
}
/**
* @param string
*/
public function setAvailableResource($availableResource)
{
$this->availableResource = $availableResource;
}
/**
* @return string
*/
public function getAvailableResource()
{
return $this->availableResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1betaAccessBoundaryRule::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1betaAccessBoundaryRule');
@@ -0,0 +1,60 @@
<?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\CloudSecurityToken;
class GoogleIdentityStsV1betaOptions extends \Google\Model
{
protected $accessBoundaryType = GoogleIdentityStsV1betaAccessBoundary::class;
protected $accessBoundaryDataType = '';
/**
* @var string
*/
public $userProject;
/**
* @param GoogleIdentityStsV1betaAccessBoundary
*/
public function setAccessBoundary(GoogleIdentityStsV1betaAccessBoundary $accessBoundary)
{
$this->accessBoundary = $accessBoundary;
}
/**
* @return GoogleIdentityStsV1betaAccessBoundary
*/
public function getAccessBoundary()
{
return $this->accessBoundary;
}
/**
* @param string
*/
public function setUserProject($userProject)
{
$this->userProject = $userProject;
}
/**
* @return string
*/
public function getUserProject()
{
return $this->userProject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleIdentityStsV1betaOptions::class, 'Google_Service_CloudSecurityToken_GoogleIdentityStsV1betaOptions');
@@ -0,0 +1,98 @@
<?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\CloudSecurityToken;
class GoogleTypeExpr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeExpr::class, 'Google_Service_CloudSecurityToken_GoogleTypeExpr');
@@ -0,0 +1,56 @@
<?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\CloudSecurityToken\Resource;
use Google\Service\CloudSecurityToken\GoogleIdentityStsV1ExchangeTokenRequest;
use Google\Service\CloudSecurityToken\GoogleIdentityStsV1ExchangeTokenResponse;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $stsService = new Google\Service\CloudSecurityToken(...);
* $v1 = $stsService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* Exchanges a credential for a Google OAuth 2.0 access token. The token asserts
* an external identity within an identity pool, or it applies a Credential
* Access Boundary to a Google access token. Note that workforce pools do not
* support Credential Access Boundaries. When you call this method, do not send
* the `Authorization` HTTP header in the request. This method does not require
* the `Authorization` header, and using the header can cause the request to
* fail. (v1.token)
*
* @param GoogleIdentityStsV1ExchangeTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIdentityStsV1ExchangeTokenResponse
* @throws \Google\Service\Exception
*/
public function token(GoogleIdentityStsV1ExchangeTokenRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('token', [$params], GoogleIdentityStsV1ExchangeTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_CloudSecurityToken_Resource_V1');