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,71 @@
<?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\PostmasterTools;
class DeliveryError extends \Google\Model
{
/**
* @var string
*/
public $errorClass;
public $errorRatio;
/**
* @var string
*/
public $errorType;
/**
* @param string
*/
public function setErrorClass($errorClass)
{
$this->errorClass = $errorClass;
}
/**
* @return string
*/
public function getErrorClass()
{
return $this->errorClass;
}
public function setErrorRatio($errorRatio)
{
$this->errorRatio = $errorRatio;
}
public function getErrorRatio()
{
return $this->errorRatio;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryError::class, 'Google_Service_PostmasterTools_DeliveryError');
@@ -0,0 +1,80 @@
<?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\PostmasterTools;
class Domain extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $permission;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPermission($permission)
{
$this->permission = $permission;
}
/**
* @return string
*/
public function getPermission()
{
return $this->permission;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Domain::class, 'Google_Service_PostmasterTools_Domain');
@@ -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\PostmasterTools;
class FeedbackLoop extends \Google\Model
{
/**
* @var string
*/
public $id;
public $spamRatio;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
public function setSpamRatio($spamRatio)
{
$this->spamRatio = $spamRatio;
}
public function getSpamRatio()
{
return $this->spamRatio;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeedbackLoop::class, 'Google_Service_PostmasterTools_FeedbackLoop');
@@ -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\PostmasterTools;
class IpReputation extends \Google\Collection
{
protected $collection_key = 'sampleIps';
/**
* @var string
*/
public $ipCount;
/**
* @var string
*/
public $reputation;
/**
* @var string[]
*/
public $sampleIps;
/**
* @param string
*/
public function setIpCount($ipCount)
{
$this->ipCount = $ipCount;
}
/**
* @return string
*/
public function getIpCount()
{
return $this->ipCount;
}
/**
* @param string
*/
public function setReputation($reputation)
{
$this->reputation = $reputation;
}
/**
* @return string
*/
public function getReputation()
{
return $this->reputation;
}
/**
* @param string[]
*/
public function setSampleIps($sampleIps)
{
$this->sampleIps = $sampleIps;
}
/**
* @return string[]
*/
public function getSampleIps()
{
return $this->sampleIps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IpReputation::class, 'Google_Service_PostmasterTools_IpReputation');
@@ -0,0 +1,61 @@
<?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\PostmasterTools;
class ListDomainsResponse extends \Google\Collection
{
protected $collection_key = 'domains';
protected $domainsType = Domain::class;
protected $domainsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Domain[]
*/
public function setDomains($domains)
{
$this->domains = $domains;
}
/**
* @return Domain[]
*/
public function getDomains()
{
return $this->domains;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDomainsResponse::class, 'Google_Service_PostmasterTools_ListDomainsResponse');
@@ -0,0 +1,61 @@
<?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\PostmasterTools;
class ListTrafficStatsResponse extends \Google\Collection
{
protected $collection_key = 'trafficStats';
/**
* @var string
*/
public $nextPageToken;
protected $trafficStatsType = TrafficStats::class;
protected $trafficStatsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param TrafficStats[]
*/
public function setTrafficStats($trafficStats)
{
$this->trafficStats = $trafficStats;
}
/**
* @return TrafficStats[]
*/
public function getTrafficStats()
{
return $this->trafficStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTrafficStatsResponse::class, 'Google_Service_PostmasterTools_ListTrafficStatsResponse');
@@ -0,0 +1,76 @@
<?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\PostmasterTools\Resource;
use Google\Service\PostmasterTools\Domain;
use Google\Service\PostmasterTools\ListDomainsResponse;
/**
* The "domains" collection of methods.
* Typical usage is:
* <code>
* $gmailpostmastertoolsService = new Google\Service\PostmasterTools(...);
* $domains = $gmailpostmastertoolsService->domains;
* </code>
*/
class Domains extends \Google\Service\Resource
{
/**
* Gets a specific domain registered by the client. Returns NOT_FOUND if the
* domain does not exist. (domains.get)
*
* @param string $name The resource name of the domain. It should have the form
* `domains/{domain_name}`, where domain_name is the fully qualified domain
* name.
* @param array $optParams Optional parameters.
* @return Domain
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Domain::class);
}
/**
* Lists the domains that have been registered by the client. The order of
* domains in the response is unspecified and non-deterministic. Newly created
* domains will not necessarily be added to the end of this list.
* (domains.listDomains)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Server may return fewer domains
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any. This is the value of
* ListDomainsResponse.next_page_token returned from the previous call to
* `ListDomains` method.
* @return ListDomainsResponse
* @throws \Google\Service\Exception
*/
public function listDomains($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDomainsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Domains::class, 'Google_Service_PostmasterTools_Resource_Domains');
@@ -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\PostmasterTools\Resource;
use Google\Service\PostmasterTools\ListTrafficStatsResponse;
use Google\Service\PostmasterTools\TrafficStats;
/**
* The "trafficStats" collection of methods.
* Typical usage is:
* <code>
* $gmailpostmastertoolsService = new Google\Service\PostmasterTools(...);
* $trafficStats = $gmailpostmastertoolsService->domains_trafficStats;
* </code>
*/
class DomainsTrafficStats extends \Google\Service\Resource
{
/**
* Get traffic statistics for a domain on a specific date. Returns
* PERMISSION_DENIED if user does not have permission to access TrafficStats for
* the domain. (trafficStats.get)
*
* @param string $name The resource name of the traffic statistics to get. E.g.,
* domains/mymail.mydomain.com/trafficStats/20160807.
* @param array $optParams Optional parameters.
* @return TrafficStats
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TrafficStats::class);
}
/**
* List traffic statistics for all available days. Returns PERMISSION_DENIED if
* user does not have permission to access TrafficStats for the domain.
* (trafficStats.listDomainsTrafficStats)
*
* @param string $parent The resource name of the domain whose traffic
* statistics we'd like to list. It should have the form
* `domains/{domain_name}`, where domain_name is the fully qualified domain
* name.
* @param array $optParams Optional parameters.
*
* @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for
* the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to
* specify a date without a year.
* @opt_param int pageSize Requested page size. Server may return fewer
* TrafficStats than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any. This is the value of
* ListTrafficStatsResponse.next_page_token returned from the previous call to
* `ListTrafficStats` method.
* @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid
* for the year and month, or 0 to specify a year by itself or a year and month
* where the day isn't significant.
* @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to
* specify a year without a month and day.
* @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0
* to specify a date without a year.
* @return ListTrafficStatsResponse
* @throws \Google\Service\Exception
*/
public function listDomainsTrafficStats($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTrafficStatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainsTrafficStats::class, 'Google_Service_PostmasterTools_Resource_DomainsTrafficStats');
@@ -0,0 +1,183 @@
<?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\PostmasterTools;
class TrafficStats extends \Google\Collection
{
protected $collection_key = 'spammyFeedbackLoops';
protected $deliveryErrorsType = DeliveryError::class;
protected $deliveryErrorsDataType = 'array';
public $dkimSuccessRatio;
public $dmarcSuccessRatio;
/**
* @var string
*/
public $domainReputation;
public $inboundEncryptionRatio;
protected $ipReputationsType = IpReputation::class;
protected $ipReputationsDataType = 'array';
/**
* @var string
*/
public $name;
public $outboundEncryptionRatio;
protected $spammyFeedbackLoopsType = FeedbackLoop::class;
protected $spammyFeedbackLoopsDataType = 'array';
public $spfSuccessRatio;
public $userReportedSpamRatio;
public $userReportedSpamRatioLowerBound;
public $userReportedSpamRatioUpperBound;
/**
* @param DeliveryError[]
*/
public function setDeliveryErrors($deliveryErrors)
{
$this->deliveryErrors = $deliveryErrors;
}
/**
* @return DeliveryError[]
*/
public function getDeliveryErrors()
{
return $this->deliveryErrors;
}
public function setDkimSuccessRatio($dkimSuccessRatio)
{
$this->dkimSuccessRatio = $dkimSuccessRatio;
}
public function getDkimSuccessRatio()
{
return $this->dkimSuccessRatio;
}
public function setDmarcSuccessRatio($dmarcSuccessRatio)
{
$this->dmarcSuccessRatio = $dmarcSuccessRatio;
}
public function getDmarcSuccessRatio()
{
return $this->dmarcSuccessRatio;
}
/**
* @param string
*/
public function setDomainReputation($domainReputation)
{
$this->domainReputation = $domainReputation;
}
/**
* @return string
*/
public function getDomainReputation()
{
return $this->domainReputation;
}
public function setInboundEncryptionRatio($inboundEncryptionRatio)
{
$this->inboundEncryptionRatio = $inboundEncryptionRatio;
}
public function getInboundEncryptionRatio()
{
return $this->inboundEncryptionRatio;
}
/**
* @param IpReputation[]
*/
public function setIpReputations($ipReputations)
{
$this->ipReputations = $ipReputations;
}
/**
* @return IpReputation[]
*/
public function getIpReputations()
{
return $this->ipReputations;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
public function setOutboundEncryptionRatio($outboundEncryptionRatio)
{
$this->outboundEncryptionRatio = $outboundEncryptionRatio;
}
public function getOutboundEncryptionRatio()
{
return $this->outboundEncryptionRatio;
}
/**
* @param FeedbackLoop[]
*/
public function setSpammyFeedbackLoops($spammyFeedbackLoops)
{
$this->spammyFeedbackLoops = $spammyFeedbackLoops;
}
/**
* @return FeedbackLoop[]
*/
public function getSpammyFeedbackLoops()
{
return $this->spammyFeedbackLoops;
}
public function setSpfSuccessRatio($spfSuccessRatio)
{
$this->spfSuccessRatio = $spfSuccessRatio;
}
public function getSpfSuccessRatio()
{
return $this->spfSuccessRatio;
}
public function setUserReportedSpamRatio($userReportedSpamRatio)
{
$this->userReportedSpamRatio = $userReportedSpamRatio;
}
public function getUserReportedSpamRatio()
{
return $this->userReportedSpamRatio;
}
public function setUserReportedSpamRatioLowerBound($userReportedSpamRatioLowerBound)
{
$this->userReportedSpamRatioLowerBound = $userReportedSpamRatioLowerBound;
}
public function getUserReportedSpamRatioLowerBound()
{
return $this->userReportedSpamRatioLowerBound;
}
public function setUserReportedSpamRatioUpperBound($userReportedSpamRatioUpperBound)
{
$this->userReportedSpamRatioUpperBound = $userReportedSpamRatioUpperBound;
}
public function getUserReportedSpamRatioUpperBound()
{
return $this->userReportedSpamRatioUpperBound;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrafficStats::class, 'Google_Service_PostmasterTools_TrafficStats');