gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,48 @@
<?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\Oauth2\Resource;
use Google\Service\Oauth2\Userinfo as UserinfoModel;
/**
* The "userinfo" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google\Service\Oauth2(...);
* $userinfo = $oauth2Service->userinfo;
* </code>
*/
class Userinfo extends \Google\Service\Resource
{
/**
* (userinfo.get)
*
* @param array $optParams Optional parameters.
* @return UserinfoModel
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UserinfoModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Userinfo::class, 'Google_Service_Oauth2_Resource_Userinfo');
@@ -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\Oauth2\Resource;
/**
* The "v2" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google\Service\Oauth2(...);
* $v2 = $oauth2Service->userinfo_v2;
* </code>
*/
class UserinfoV2 extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserinfoV2::class, 'Google_Service_Oauth2_Resource_UserinfoV2');
@@ -0,0 +1,48 @@
<?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\Oauth2\Resource;
use Google\Service\Oauth2\Userinfo as UserinfoModel;
/**
* The "me" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google\Service\Oauth2(...);
* $me = $oauth2Service->userinfo_v2_me;
* </code>
*/
class UserinfoV2Me extends \Google\Service\Resource
{
/**
* (me.get)
*
* @param array $optParams Optional parameters.
* @return UserinfoModel
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UserinfoModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserinfoV2Me::class, 'Google_Service_Oauth2_Resource_UserinfoV2Me');
@@ -0,0 +1,192 @@
<?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\Oauth2;
class Tokeninfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"expiresIn" => "expires_in",
"issuedTo" => "issued_to",
"userId" => "user_id",
"verifiedEmail" => "verified_email",
];
/**
* Who is the intended audience for this token. In general the same as
* issued_to.
*
* @var string
*/
public $audience;
/**
* The email address of the user. Present only if the email scope is present
* in the request.
*
* @var string
*/
public $email;
/**
* The expiry time of the token, as number of seconds left until expiry.
*
* @var int
*/
public $expiresIn;
/**
* To whom was the token issued to. In general the same as audience.
*
* @var string
*/
public $issuedTo;
/**
* The space separated list of scopes granted to this token.
*
* @var string
*/
public $scope;
/**
* The obfuscated user id.
*
* @var string
*/
public $userId;
/**
* Boolean flag which is true if the email address is verified. Present only
* if the email scope is present in the request.
*
* @var bool
*/
public $verifiedEmail;
/**
* Who is the intended audience for this token. In general the same as
* issued_to.
*
* @param string $audience
*/
public function setAudience($audience)
{
$this->audience = $audience;
}
/**
* @return string
*/
public function getAudience()
{
return $this->audience;
}
/**
* The email address of the user. Present only if the email scope is present
* in the request.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The expiry time of the token, as number of seconds left until expiry.
*
* @param int $expiresIn
*/
public function setExpiresIn($expiresIn)
{
$this->expiresIn = $expiresIn;
}
/**
* @return int
*/
public function getExpiresIn()
{
return $this->expiresIn;
}
/**
* To whom was the token issued to. In general the same as audience.
*
* @param string $issuedTo
*/
public function setIssuedTo($issuedTo)
{
$this->issuedTo = $issuedTo;
}
/**
* @return string
*/
public function getIssuedTo()
{
return $this->issuedTo;
}
/**
* The space separated list of scopes granted to this token.
*
* @param string $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* The obfuscated user id.
*
* @param string $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
/**
* Boolean flag which is true if the email address is verified. Present only
* if the email scope is present in the request.
*
* @param bool $verifiedEmail
*/
public function setVerifiedEmail($verifiedEmail)
{
$this->verifiedEmail = $verifiedEmail;
}
/**
* @return bool
*/
public function getVerifiedEmail()
{
return $this->verifiedEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tokeninfo::class, 'Google_Service_Oauth2_Tokeninfo');
+275
View File
@@ -0,0 +1,275 @@
<?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\Oauth2;
class Userinfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"familyName" => "family_name",
"givenName" => "given_name",
"verifiedEmail" => "verified_email",
];
/**
* The user's email address.
*
* @var string
*/
public $email;
/**
* The user's last name.
*
* @var string
*/
public $familyName;
/**
* The user's gender.
*
* @var string
*/
public $gender;
/**
* The user's first name.
*
* @var string
*/
public $givenName;
/**
* The hosted domain e.g. example.com if the user is Google apps user.
*
* @var string
*/
public $hd;
/**
* The obfuscated ID of the user.
*
* @var string
*/
public $id;
/**
* URL of the profile page.
*
* @var string
*/
public $link;
/**
* The user's preferred locale.
*
* @var string
*/
public $locale;
/**
* The user's full name.
*
* @var string
*/
public $name;
/**
* URL of the user's picture image.
*
* @var string
*/
public $picture;
/**
* Boolean flag which is true if the email address is verified. Always
* verified because we only return the user's primary email address.
*
* @var bool
*/
public $verifiedEmail;
/**
* The user's email address.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The user's last name.
*
* @param string $familyName
*/
public function setFamilyName($familyName)
{
$this->familyName = $familyName;
}
/**
* @return string
*/
public function getFamilyName()
{
return $this->familyName;
}
/**
* The user's gender.
*
* @param string $gender
*/
public function setGender($gender)
{
$this->gender = $gender;
}
/**
* @return string
*/
public function getGender()
{
return $this->gender;
}
/**
* The user's first name.
*
* @param string $givenName
*/
public function setGivenName($givenName)
{
$this->givenName = $givenName;
}
/**
* @return string
*/
public function getGivenName()
{
return $this->givenName;
}
/**
* The hosted domain e.g. example.com if the user is Google apps user.
*
* @param string $hd
*/
public function setHd($hd)
{
$this->hd = $hd;
}
/**
* @return string
*/
public function getHd()
{
return $this->hd;
}
/**
* The obfuscated ID of the user.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* URL of the profile page.
*
* @param string $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* The user's preferred locale.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The user's full name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* URL of the user's picture image.
*
* @param string $picture
*/
public function setPicture($picture)
{
$this->picture = $picture;
}
/**
* @return string
*/
public function getPicture()
{
return $this->picture;
}
/**
* Boolean flag which is true if the email address is verified. Always
* verified because we only return the user's primary email address.
*
* @param bool $verifiedEmail
*/
public function setVerifiedEmail($verifiedEmail)
{
$this->verifiedEmail = $verifiedEmail;
}
/**
* @return bool
*/
public function getVerifiedEmail()
{
return $this->verifiedEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Userinfo::class, 'Google_Service_Oauth2_Userinfo');