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,94 @@
<?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\Acceleratedmobilepageurl;
class AmpUrl extends \Google\Model
{
/**
* The AMP URL pointing to the publisher's web server.
*
* @var string
*/
public $ampUrl;
/**
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
* the cached document in the Google AMP Cache.
*
* @var string
*/
public $cdnAmpUrl;
/**
* The original non-AMP URL.
*
* @var string
*/
public $originalUrl;
/**
* The AMP URL pointing to the publisher's web server.
*
* @param string $ampUrl
*/
public function setAmpUrl($ampUrl)
{
$this->ampUrl = $ampUrl;
}
/**
* @return string
*/
public function getAmpUrl()
{
return $this->ampUrl;
}
/**
* The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
* the cached document in the Google AMP Cache.
*
* @param string $cdnAmpUrl
*/
public function setCdnAmpUrl($cdnAmpUrl)
{
$this->cdnAmpUrl = $cdnAmpUrl;
}
/**
* @return string
*/
public function getCdnAmpUrl()
{
return $this->cdnAmpUrl;
}
/**
* The original non-AMP URL.
*
* @param string $originalUrl
*/
public function setOriginalUrl($originalUrl)
{
$this->originalUrl = $originalUrl;
}
/**
* @return string
*/
public function getOriginalUrl()
{
return $this->originalUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AmpUrl::class, 'Google_Service_Acceleratedmobilepageurl_AmpUrl');
@@ -0,0 +1,127 @@
<?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\Acceleratedmobilepageurl;
class AmpUrlError extends \Google\Model
{
/**
* Not specified error.
*/
public const ERROR_CODE_ERROR_CODE_UNSPECIFIED = 'ERROR_CODE_UNSPECIFIED';
/**
* Indicates the requested URL is not found in the index, possibly because
* it's unable to be found, not able to be accessed by Googlebot, or some
* other error.
*/
public const ERROR_CODE_INPUT_URL_NOT_FOUND = 'INPUT_URL_NOT_FOUND';
/**
* Indicates no AMP URL has been found that corresponds to the requested URL.
*/
public const ERROR_CODE_NO_AMP_URL = 'NO_AMP_URL';
/**
* Indicates some kind of application error occurred at the server. Client
* advised to retry.
*/
public const ERROR_CODE_APPLICATION_ERROR = 'APPLICATION_ERROR';
/**
* DEPRECATED: Indicates the requested URL is a valid AMP URL. This is a non-
* error state, should not be relied upon as a sign of success or failure. It
* will be removed in future versions of the API.
*
* @deprecated
*/
public const ERROR_CODE_URL_IS_VALID_AMP = 'URL_IS_VALID_AMP';
/**
* Indicates that an AMP URL has been found that corresponds to the request
* URL, but it is not valid AMP HTML.
*/
public const ERROR_CODE_URL_IS_INVALID_AMP = 'URL_IS_INVALID_AMP';
/**
* The error code of an API call.
*
* @var string
*/
public $errorCode;
/**
* An optional descriptive error message.
*
* @var string
*/
public $errorMessage;
/**
* The original non-AMP URL.
*
* @var string
*/
public $originalUrl;
/**
* The error code of an API call.
*
* Accepted values: ERROR_CODE_UNSPECIFIED, INPUT_URL_NOT_FOUND, NO_AMP_URL,
* APPLICATION_ERROR, URL_IS_VALID_AMP, URL_IS_INVALID_AMP
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* An optional descriptive error message.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* The original non-AMP URL.
*
* @param string $originalUrl
*/
public function setOriginalUrl($originalUrl)
{
$this->originalUrl = $originalUrl;
}
/**
* @return string
*/
public function getOriginalUrl()
{
return $this->originalUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AmpUrlError::class, 'Google_Service_Acceleratedmobilepageurl_AmpUrlError');
@@ -0,0 +1,92 @@
<?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\Acceleratedmobilepageurl;
class BatchGetAmpUrlsRequest extends \Google\Collection
{
/**
* FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in
* the index. Any request URL not found in the index is crawled in realtime to
* validate if there is a corresponding AMP URL. This strategy has higher
* coverage but with extra latency introduced by realtime crawling. This is
* the default strategy. Applications using this strategy should set higher
* HTTP timeouts of the API calls.
*/
public const LOOKUP_STRATEGY_FETCH_LIVE_DOC = 'FETCH_LIVE_DOC';
/**
* IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found in
* index. For applications which need low latency use of IN_INDEX_DOC strategy
* is recommended.
*/
public const LOOKUP_STRATEGY_IN_INDEX_DOC = 'IN_INDEX_DOC';
protected $collection_key = 'urls';
/**
* The lookup_strategy being requested.
*
* @var string
*/
public $lookupStrategy;
/**
* List of URLs to look up for the paired AMP URLs. The URLs are case-
* sensitive. Up to 50 URLs per lookup (see [Usage
* Limits](/amp/cache/reference/limits)).
*
* @var string[]
*/
public $urls;
/**
* The lookup_strategy being requested.
*
* Accepted values: FETCH_LIVE_DOC, IN_INDEX_DOC
*
* @param self::LOOKUP_STRATEGY_* $lookupStrategy
*/
public function setLookupStrategy($lookupStrategy)
{
$this->lookupStrategy = $lookupStrategy;
}
/**
* @return self::LOOKUP_STRATEGY_*
*/
public function getLookupStrategy()
{
return $this->lookupStrategy;
}
/**
* List of URLs to look up for the paired AMP URLs. The URLs are case-
* sensitive. Up to 50 URLs per lookup (see [Usage
* Limits](/amp/cache/reference/limits)).
*
* @param string[] $urls
*/
public function setUrls($urls)
{
$this->urls = $urls;
}
/**
* @return string[]
*/
public function getUrls()
{
return $this->urls;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetAmpUrlsRequest::class, 'Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest');
@@ -0,0 +1,65 @@
<?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\Acceleratedmobilepageurl;
class BatchGetAmpUrlsResponse extends \Google\Collection
{
protected $collection_key = 'urlErrors';
protected $ampUrlsType = AmpUrl::class;
protected $ampUrlsDataType = 'array';
protected $urlErrorsType = AmpUrlError::class;
protected $urlErrorsDataType = 'array';
/**
* For each URL in BatchAmpUrlsRequest, the URL response. The response might
* not be in the same order as URLs in the batch request. If
* BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only once.
*
* @param AmpUrl[] $ampUrls
*/
public function setAmpUrls($ampUrls)
{
$this->ampUrls = $ampUrls;
}
/**
* @return AmpUrl[]
*/
public function getAmpUrls()
{
return $this->ampUrls;
}
/**
* The errors for requested URLs that have no AMP URL.
*
* @param AmpUrlError[] $urlErrors
*/
public function setUrlErrors($urlErrors)
{
$this->urlErrors = $urlErrors;
}
/**
* @return AmpUrlError[]
*/
public function getUrlErrors()
{
return $this->urlErrors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetAmpUrlsResponse::class, 'Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse');
@@ -0,0 +1,51 @@
<?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\Acceleratedmobilepageurl\Resource;
use Google\Service\Acceleratedmobilepageurl\BatchGetAmpUrlsRequest;
use Google\Service\Acceleratedmobilepageurl\BatchGetAmpUrlsResponse;
/**
* The "ampUrls" collection of methods.
* Typical usage is:
* <code>
* $acceleratedmobilepageurlService = new Google\Service\Acceleratedmobilepageurl(...);
* $ampUrls = $acceleratedmobilepageurlService->ampUrls;
* </code>
*/
class AmpUrls extends \Google\Service\Resource
{
/**
* Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-
* cache-url-format). (ampUrls.batchGet)
*
* @param BatchGetAmpUrlsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchGetAmpUrlsResponse
* @throws \Google\Service\Exception
*/
public function batchGet(BatchGetAmpUrlsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], BatchGetAmpUrlsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AmpUrls::class, 'Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls');