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,72 @@
<?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\Webmasters;
class ApiDataRow extends \Google\Collection
{
protected $collection_key = 'keys';
public $clicks;
public $ctr;
public $impressions;
public $keys;
public $position;
public function setClicks($clicks)
{
$this->clicks = $clicks;
}
public function getClicks()
{
return $this->clicks;
}
public function setCtr($ctr)
{
$this->ctr = $ctr;
}
public function getCtr()
{
return $this->ctr;
}
public function setImpressions($impressions)
{
$this->impressions = $impressions;
}
public function getImpressions()
{
return $this->impressions;
}
public function setKeys($keys)
{
$this->keys = $keys;
}
public function getKeys()
{
return $this->keys;
}
public function setPosition($position)
{
$this->position = $position;
}
public function getPosition()
{
return $this->position;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDataRow::class, 'Google_Service_Webmasters_ApiDataRow');

View File

@@ -0,0 +1,53 @@
<?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\Webmasters;
class ApiDimensionFilter extends \Google\Model
{
public $dimension;
public $expression;
public $operator;
public function setDimension($dimension)
{
$this->dimension = $dimension;
}
public function getDimension()
{
return $this->dimension;
}
public function setExpression($expression)
{
$this->expression = $expression;
}
public function getExpression()
{
return $this->expression;
}
public function setOperator($operator)
{
$this->operator = $operator;
}
public function getOperator()
{
return $this->operator;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDimensionFilter::class, 'Google_Service_Webmasters_ApiDimensionFilter');

View File

@@ -0,0 +1,52 @@
<?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\Webmasters;
class ApiDimensionFilterGroup extends \Google\Collection
{
protected $collection_key = 'filters';
protected $filtersType = ApiDimensionFilter::class;
protected $filtersDataType = 'array';
public $groupType;
/**
* @param ApiDimensionFilter[]
*/
public function setFilters($filters)
{
$this->filters = $filters;
}
/**
* @return ApiDimensionFilter[]
*/
public function getFilters()
{
return $this->filters;
}
public function setGroupType($groupType)
{
$this->groupType = $groupType;
}
public function getGroupType()
{
return $this->groupType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApiDimensionFilterGroup::class, 'Google_Service_Webmasters_ApiDimensionFilterGroup');

View File

@@ -0,0 +1,58 @@
<?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\Webmasters\Resource;
use Google\Service\Webmasters\SearchAnalyticsQueryRequest;
use Google\Service\Webmasters\SearchAnalyticsQueryResponse;
/**
* The "searchanalytics" collection of methods.
* Typical usage is:
* <code>
* $webmastersService = new Google\Service\Webmasters(...);
* $searchanalytics = $webmastersService->searchanalytics;
* </code>
*/
class Searchanalytics extends \Google\Service\Resource
{
/**
* Query your data with filters and parameters that you define. Returns zero or
* more rows grouped by the row keys that you define. You must define a date
* range of one or more days.
*
* When date is one of the group by values, any days without data are omitted
* from the result list. If you need to know which days have data, issue a broad
* date range query grouped by date for any metric, and see which day rows are
* returned. (searchanalytics.query)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* http://www.example.com/
* @param SearchAnalyticsQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchAnalyticsQueryResponse
*/
public function query($siteUrl, SearchAnalyticsQueryRequest $postBody, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], SearchAnalyticsQueryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Searchanalytics::class, 'Google_Service_Webmasters_Resource_Searchanalytics');

View File

@@ -0,0 +1,101 @@
<?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\Webmasters\Resource;
use Google\Service\Webmasters\SitemapsListResponse;
use Google\Service\Webmasters\WmxSitemap;
/**
* The "sitemaps" collection of methods.
* Typical usage is:
* <code>
* $webmastersService = new Google\Service\Webmasters(...);
* $sitemaps = $webmastersService->sitemaps;
* </code>
*/
class Sitemaps extends \Google\Service\Resource
{
/**
* Deletes a sitemap from this site. (sitemaps.delete)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* http://www.example.com/
* @param string $feedpath The URL of the actual sitemap. For example:
* http://www.example.com/sitemap.xml
* @param array $optParams Optional parameters.
*/
public function delete($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves information about a specific sitemap. (sitemaps.get)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* http://www.example.com/
* @param string $feedpath The URL of the actual sitemap. For example:
* http://www.example.com/sitemap.xml
* @param array $optParams Optional parameters.
* @return WmxSitemap
*/
public function get($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WmxSitemap::class);
}
/**
* Lists the sitemaps-entries submitted for this site, or included in the
* sitemap index file (if sitemapIndex is specified in the request).
* (sitemaps.listSitemaps)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* http://www.example.com/
* @param array $optParams Optional parameters.
*
* @opt_param string sitemapIndex A URL of a site's sitemap index. For example:
* http://www.example.com/sitemapindex.xml
* @return SitemapsListResponse
*/
public function listSitemaps($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SitemapsListResponse::class);
}
/**
* Submits a sitemap for a site. (sitemaps.submit)
*
* @param string $siteUrl The site's URL, including protocol. For example:
* http://www.example.com/
* @param string $feedpath The URL of the sitemap to add. For example:
* http://www.example.com/sitemap.xml
* @param array $optParams Optional parameters.
*/
public function submit($siteUrl, $feedpath, $optParams = [])
{
$params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath];
$params = array_merge($params, $optParams);
return $this->call('submit', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sitemaps::class, 'Google_Service_Webmasters_Resource_Sitemaps');

View File

@@ -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\Webmasters\Resource;
use Google\Service\Webmasters\SitesListResponse;
use Google\Service\Webmasters\WmxSite;
/**
* The "sites" collection of methods.
* Typical usage is:
* <code>
* $webmastersService = new Google\Service\Webmasters(...);
* $sites = $webmastersService->sites;
* </code>
*/
class Sites extends \Google\Service\Resource
{
/**
* Adds a site to the set of the user's sites in Search Console. (sites.add)
*
* @param string $siteUrl The URL of the site to add.
* @param array $optParams Optional parameters.
*/
public function add($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('add', [$params]);
}
/**
* Removes a site from the set of the user's Search Console sites.
* (sites.delete)
*
* @param string $siteUrl The URI of the property as defined in Search Console.
* Examples: http://www.example.com/ or android-app://com.example/ Note: for
* property-sets, use the URI that starts with sc-set: which is used in Search
* Console URLs.
* @param array $optParams Optional parameters.
*/
public function delete($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Retrieves information about specific site. (sites.get)
*
* @param string $siteUrl The URI of the property as defined in Search Console.
* Examples: http://www.example.com/ or android-app://com.example/ Note: for
* property-sets, use the URI that starts with sc-set: which is used in Search
* Console URLs.
* @param array $optParams Optional parameters.
* @return WmxSite
*/
public function get($siteUrl, $optParams = [])
{
$params = ['siteUrl' => $siteUrl];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WmxSite::class);
}
/**
* Lists the user's Search Console sites. (sites.listSites)
*
* @param array $optParams Optional parameters.
* @return SitesListResponse
*/
public function listSites($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SitesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sites::class, 'Google_Service_Webmasters_Resource_Sites');

View File

@@ -0,0 +1,115 @@
<?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\Webmasters;
class SearchAnalyticsQueryRequest extends \Google\Collection
{
protected $collection_key = 'dimensions';
public $aggregationType;
public $dataState;
protected $dimensionFilterGroupsType = ApiDimensionFilterGroup::class;
protected $dimensionFilterGroupsDataType = 'array';
public $dimensions;
public $endDate;
public $rowLimit;
public $searchType;
public $startDate;
public $startRow;
public function setAggregationType($aggregationType)
{
$this->aggregationType = $aggregationType;
}
public function getAggregationType()
{
return $this->aggregationType;
}
public function setDataState($dataState)
{
$this->dataState = $dataState;
}
public function getDataState()
{
return $this->dataState;
}
/**
* @param ApiDimensionFilterGroup[]
*/
public function setDimensionFilterGroups($dimensionFilterGroups)
{
$this->dimensionFilterGroups = $dimensionFilterGroups;
}
/**
* @return ApiDimensionFilterGroup[]
*/
public function getDimensionFilterGroups()
{
return $this->dimensionFilterGroups;
}
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
public function getDimensions()
{
return $this->dimensions;
}
public function setEndDate($endDate)
{
$this->endDate = $endDate;
}
public function getEndDate()
{
return $this->endDate;
}
public function setRowLimit($rowLimit)
{
$this->rowLimit = $rowLimit;
}
public function getRowLimit()
{
return $this->rowLimit;
}
public function setSearchType($searchType)
{
$this->searchType = $searchType;
}
public function getSearchType()
{
return $this->searchType;
}
public function setStartDate($startDate)
{
$this->startDate = $startDate;
}
public function getStartDate()
{
return $this->startDate;
}
public function setStartRow($startRow)
{
$this->startRow = $startRow;
}
public function getStartRow()
{
return $this->startRow;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAnalyticsQueryRequest::class, 'Google_Service_Webmasters_SearchAnalyticsQueryRequest');

View File

@@ -0,0 +1,52 @@
<?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\Webmasters;
class SearchAnalyticsQueryResponse extends \Google\Collection
{
protected $collection_key = 'rows';
public $responseAggregationType;
protected $rowsType = ApiDataRow::class;
protected $rowsDataType = 'array';
public function setResponseAggregationType($responseAggregationType)
{
$this->responseAggregationType = $responseAggregationType;
}
public function getResponseAggregationType()
{
return $this->responseAggregationType;
}
/**
* @param ApiDataRow[]
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return ApiDataRow[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAnalyticsQueryResponse::class, 'Google_Service_Webmasters_SearchAnalyticsQueryResponse');

View File

@@ -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\Webmasters;
class SitemapsListResponse extends \Google\Collection
{
protected $collection_key = 'sitemap';
protected $sitemapType = WmxSitemap::class;
protected $sitemapDataType = 'array';
/**
* @param WmxSitemap[]
*/
public function setSitemap($sitemap)
{
$this->sitemap = $sitemap;
}
/**
* @return WmxSitemap[]
*/
public function getSitemap()
{
return $this->sitemap;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SitemapsListResponse::class, 'Google_Service_Webmasters_SitemapsListResponse');

View File

@@ -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\Webmasters;
class SitesListResponse extends \Google\Collection
{
protected $collection_key = 'siteEntry';
protected $siteEntryType = WmxSite::class;
protected $siteEntryDataType = 'array';
/**
* @param WmxSite[]
*/
public function setSiteEntry($siteEntry)
{
$this->siteEntry = $siteEntry;
}
/**
* @return WmxSite[]
*/
public function getSiteEntry()
{
return $this->siteEntry;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SitesListResponse::class, 'Google_Service_Webmasters_SitesListResponse');

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\Webmasters;
class WmxSite extends \Google\Model
{
public $permissionLevel;
public $siteUrl;
public function setPermissionLevel($permissionLevel)
{
$this->permissionLevel = $permissionLevel;
}
public function getPermissionLevel()
{
return $this->permissionLevel;
}
public function setSiteUrl($siteUrl)
{
$this->siteUrl = $siteUrl;
}
public function getSiteUrl()
{
return $this->siteUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSite::class, 'Google_Service_Webmasters_WmxSite');

View File

@@ -0,0 +1,115 @@
<?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\Webmasters;
class WmxSitemap extends \Google\Collection
{
protected $collection_key = 'contents';
protected $contentsType = WmxSitemapContent::class;
protected $contentsDataType = 'array';
public $errors;
public $isPending;
public $isSitemapsIndex;
public $lastDownloaded;
public $lastSubmitted;
public $path;
public $type;
public $warnings;
/**
* @param WmxSitemapContent[]
*/
public function setContents($contents)
{
$this->contents = $contents;
}
/**
* @return WmxSitemapContent[]
*/
public function getContents()
{
return $this->contents;
}
public function setErrors($errors)
{
$this->errors = $errors;
}
public function getErrors()
{
return $this->errors;
}
public function setIsPending($isPending)
{
$this->isPending = $isPending;
}
public function getIsPending()
{
return $this->isPending;
}
public function setIsSitemapsIndex($isSitemapsIndex)
{
$this->isSitemapsIndex = $isSitemapsIndex;
}
public function getIsSitemapsIndex()
{
return $this->isSitemapsIndex;
}
public function setLastDownloaded($lastDownloaded)
{
$this->lastDownloaded = $lastDownloaded;
}
public function getLastDownloaded()
{
return $this->lastDownloaded;
}
public function setLastSubmitted($lastSubmitted)
{
$this->lastSubmitted = $lastSubmitted;
}
public function getLastSubmitted()
{
return $this->lastSubmitted;
}
public function setPath($path)
{
$this->path = $path;
}
public function getPath()
{
return $this->path;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSitemap::class, 'Google_Service_Webmasters_WmxSitemap');

View File

@@ -0,0 +1,53 @@
<?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\Webmasters;
class WmxSitemapContent extends \Google\Model
{
public $indexed;
public $submitted;
public $type;
public function setIndexed($indexed)
{
$this->indexed = $indexed;
}
public function getIndexed()
{
return $this->indexed;
}
public function setSubmitted($submitted)
{
$this->submitted = $submitted;
}
public function getSubmitted()
{
return $this->submitted;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WmxSitemapContent::class, 'Google_Service_Webmasters_WmxSitemapContent');