Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_Checksum extends Google_Model
{
public $sha256;
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
public function getSha256()
{
return $this->sha256;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ClientInfo extends Google_Model
{
public $clientId;
public $clientVersion;
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
public function getClientId()
{
return $this->clientId;
}
public function setClientVersion($clientVersion)
{
$this->clientVersion = $clientVersion;
}
public function getClientVersion()
{
return $this->clientVersion;
}
}

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_Constraints extends Google_Collection
{
protected $collection_key = 'supportedCompressions';
public $maxDatabaseEntries;
public $maxUpdateEntries;
public $region;
public $supportedCompressions;
public function setMaxDatabaseEntries($maxDatabaseEntries)
{
$this->maxDatabaseEntries = $maxDatabaseEntries;
}
public function getMaxDatabaseEntries()
{
return $this->maxDatabaseEntries;
}
public function setMaxUpdateEntries($maxUpdateEntries)
{
$this->maxUpdateEntries = $maxUpdateEntries;
}
public function getMaxUpdateEntries()
{
return $this->maxUpdateEntries;
}
public function setRegion($region)
{
$this->region = $region;
}
public function getRegion()
{
return $this->region;
}
public function setSupportedCompressions($supportedCompressions)
{
$this->supportedCompressions = $supportedCompressions;
}
public function getSupportedCompressions()
{
return $this->supportedCompressions;
}
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FetchThreatListUpdatesRequest extends Google_Collection
{
protected $collection_key = 'listUpdateRequests';
protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
protected $clientDataType = '';
protected $listUpdateRequestsType = 'Google_Service_Safebrowsing_ListUpdateRequest';
protected $listUpdateRequestsDataType = 'array';
public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
{
$this->client = $client;
}
public function getClient()
{
return $this->client;
}
public function setListUpdateRequests($listUpdateRequests)
{
$this->listUpdateRequests = $listUpdateRequests;
}
public function getListUpdateRequests()
{
return $this->listUpdateRequests;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FetchThreatListUpdatesResponse extends Google_Collection
{
protected $collection_key = 'listUpdateResponses';
protected $listUpdateResponsesType = 'Google_Service_Safebrowsing_ListUpdateResponse';
protected $listUpdateResponsesDataType = 'array';
public $minimumWaitDuration;
public function setListUpdateResponses($listUpdateResponses)
{
$this->listUpdateResponses = $listUpdateResponses;
}
public function getListUpdateResponses()
{
return $this->listUpdateResponses;
}
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
}

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FindFullHashesRequest extends Google_Collection
{
protected $collection_key = 'clientStates';
protected $apiClientType = 'Google_Service_Safebrowsing_ClientInfo';
protected $apiClientDataType = '';
protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
protected $clientDataType = '';
public $clientStates;
protected $threatInfoType = 'Google_Service_Safebrowsing_ThreatInfo';
protected $threatInfoDataType = '';
public function setApiClient(Google_Service_Safebrowsing_ClientInfo $apiClient)
{
$this->apiClient = $apiClient;
}
public function getApiClient()
{
return $this->apiClient;
}
public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
{
$this->client = $client;
}
public function getClient()
{
return $this->client;
}
public function setClientStates($clientStates)
{
$this->clientStates = $clientStates;
}
public function getClientStates()
{
return $this->clientStates;
}
public function setThreatInfo(Google_Service_Safebrowsing_ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
public function getThreatInfo()
{
return $this->threatInfo;
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FindFullHashesResponse extends Google_Collection
{
protected $collection_key = 'matches';
protected $matchesType = 'Google_Service_Safebrowsing_ThreatMatch';
protected $matchesDataType = 'array';
public $minimumWaitDuration;
public $negativeCacheDuration;
public function setMatches($matches)
{
$this->matches = $matches;
}
public function getMatches()
{
return $this->matches;
}
public function setMinimumWaitDuration($minimumWaitDuration)
{
$this->minimumWaitDuration = $minimumWaitDuration;
}
public function getMinimumWaitDuration()
{
return $this->minimumWaitDuration;
}
public function setNegativeCacheDuration($negativeCacheDuration)
{
$this->negativeCacheDuration = $negativeCacheDuration;
}
public function getNegativeCacheDuration()
{
return $this->negativeCacheDuration;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FindThreatMatchesRequest extends Google_Model
{
protected $clientType = 'Google_Service_Safebrowsing_ClientInfo';
protected $clientDataType = '';
protected $threatInfoType = 'Google_Service_Safebrowsing_ThreatInfo';
protected $threatInfoDataType = '';
public function setClient(Google_Service_Safebrowsing_ClientInfo $client)
{
$this->client = $client;
}
public function getClient()
{
return $this->client;
}
public function setThreatInfo(Google_Service_Safebrowsing_ThreatInfo $threatInfo)
{
$this->threatInfo = $threatInfo;
}
public function getThreatInfo()
{
return $this->threatInfo;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_FindThreatMatchesResponse extends Google_Collection
{
protected $collection_key = 'matches';
protected $matchesType = 'Google_Service_Safebrowsing_ThreatMatch';
protected $matchesDataType = 'array';
public function setMatches($matches)
{
$this->matches = $matches;
}
public function getMatches()
{
return $this->matches;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ListThreatListsResponse extends Google_Collection
{
protected $collection_key = 'threatLists';
protected $threatListsType = 'Google_Service_Safebrowsing_ThreatListDescriptor';
protected $threatListsDataType = 'array';
public function setThreatLists($threatLists)
{
$this->threatLists = $threatLists;
}
public function getThreatLists()
{
return $this->threatLists;
}
}

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ListUpdateRequest extends Google_Model
{
protected $constraintsType = 'Google_Service_Safebrowsing_Constraints';
protected $constraintsDataType = '';
public $platformType;
public $state;
public $threatEntryType;
public $threatType;
public function setConstraints(Google_Service_Safebrowsing_Constraints $constraints)
{
$this->constraints = $constraints;
}
public function getConstraints()
{
return $this->constraints;
}
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
public function getPlatformType()
{
return $this->platformType;
}
public function setState($state)
{
$this->state = $state;
}
public function getState()
{
return $this->state;
}
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
public function getThreatEntryType()
{
return $this->threatEntryType;
}
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
public function getThreatType()
{
return $this->threatType;
}
}

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ListUpdateResponse extends Google_Collection
{
protected $collection_key = 'removals';
protected $additionsType = 'Google_Service_Safebrowsing_ThreatEntrySet';
protected $additionsDataType = 'array';
protected $checksumType = 'Google_Service_Safebrowsing_Checksum';
protected $checksumDataType = '';
public $newClientState;
public $platformType;
protected $removalsType = 'Google_Service_Safebrowsing_ThreatEntrySet';
protected $removalsDataType = 'array';
public $responseType;
public $threatEntryType;
public $threatType;
public function setAdditions($additions)
{
$this->additions = $additions;
}
public function getAdditions()
{
return $this->additions;
}
public function setChecksum(Google_Service_Safebrowsing_Checksum $checksum)
{
$this->checksum = $checksum;
}
public function getChecksum()
{
return $this->checksum;
}
public function setNewClientState($newClientState)
{
$this->newClientState = $newClientState;
}
public function getNewClientState()
{
return $this->newClientState;
}
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
public function getPlatformType()
{
return $this->platformType;
}
public function setRemovals($removals)
{
$this->removals = $removals;
}
public function getRemovals()
{
return $this->removals;
}
public function setResponseType($responseType)
{
$this->responseType = $responseType;
}
public function getResponseType()
{
return $this->responseType;
}
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
public function getThreatEntryType()
{
return $this->threatEntryType;
}
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
public function getThreatType()
{
return $this->threatType;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_MetadataEntry extends Google_Model
{
public $key;
public $value;
public function setKey($key)
{
$this->key = $key;
}
public function getKey()
{
return $this->key;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_RawHashes extends Google_Model
{
public $prefixSize;
public $rawHashes;
public function setPrefixSize($prefixSize)
{
$this->prefixSize = $prefixSize;
}
public function getPrefixSize()
{
return $this->prefixSize;
}
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
public function getRawHashes()
{
return $this->rawHashes;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_RawIndices extends Google_Collection
{
protected $collection_key = 'indices';
public $indices;
public function setIndices($indices)
{
$this->indices = $indices;
}
public function getIndices()
{
return $this->indices;
}
}

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "encodedFullHashes" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $encodedFullHashes = $safebrowsingService->encodedFullHashes;
* </code>
*/
class Google_Service_Safebrowsing_Resource_EncodedFullHashes extends Google_Service_Resource
{
/**
* (encodedFullHashes.get)
*
* @param string $encodedRequest A serialized FindFullHashesRequest proto.
* @param array $optParams Optional parameters.
*
* @opt_param string clientId A client ID that (hopefully) uniquely identifies
* the client implementation of the Safe Browsing API.
* @opt_param string clientVersion The version of the client implementation.
* @return Google_Service_Safebrowsing_FindFullHashesResponse
*/
public function get($encodedRequest, $optParams = array())
{
$params = array('encodedRequest' => $encodedRequest);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Safebrowsing_FindFullHashesResponse");
}
}

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "encodedUpdates" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $encodedUpdates = $safebrowsingService->encodedUpdates;
* </code>
*/
class Google_Service_Safebrowsing_Resource_EncodedUpdates extends Google_Service_Resource
{
/**
* (encodedUpdates.get)
*
* @param string $encodedRequest A serialized FetchThreatListUpdatesRequest
* proto.
* @param array $optParams Optional parameters.
*
* @opt_param string clientId A client ID that uniquely identifies the client
* implementation of the Safe Browsing API.
* @opt_param string clientVersion The version of the client implementation.
* @return Google_Service_Safebrowsing_FetchThreatListUpdatesResponse
*/
public function get($encodedRequest, $optParams = array())
{
$params = array('encodedRequest' => $encodedRequest);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Safebrowsing_FetchThreatListUpdatesResponse");
}
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "fullHashes" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $fullHashes = $safebrowsingService->fullHashes;
* </code>
*/
class Google_Service_Safebrowsing_Resource_FullHashes extends Google_Service_Resource
{
/**
* Finds the full hashes that match the requested hash prefixes.
* (fullHashes.find)
*
* @param Google_Service_Safebrowsing_FindFullHashesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Safebrowsing_FindFullHashesResponse
*/
public function find(Google_Service_Safebrowsing_FindFullHashesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('find', array($params), "Google_Service_Safebrowsing_FindFullHashesResponse");
}
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "threatListUpdates" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $threatListUpdates = $safebrowsingService->threatListUpdates;
* </code>
*/
class Google_Service_Safebrowsing_Resource_ThreatListUpdates extends Google_Service_Resource
{
/**
* Fetches the most recent threat list updates. A client can request updates for
* multiple lists at once. (threatListUpdates.fetch)
*
* @param Google_Service_Safebrowsing_FetchThreatListUpdatesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Safebrowsing_FetchThreatListUpdatesResponse
*/
public function fetch(Google_Service_Safebrowsing_FetchThreatListUpdatesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('fetch', array($params), "Google_Service_Safebrowsing_FetchThreatListUpdatesResponse");
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "threatLists" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $threatLists = $safebrowsingService->threatLists;
* </code>
*/
class Google_Service_Safebrowsing_Resource_ThreatLists extends Google_Service_Resource
{
/**
* Lists the Safe Browsing threat lists available for download.
* (threatLists.listThreatLists)
*
* @param array $optParams Optional parameters.
* @return Google_Service_Safebrowsing_ListThreatListsResponse
*/
public function listThreatLists($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Safebrowsing_ListThreatListsResponse");
}
}

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "threatMatches" collection of methods.
* Typical usage is:
* <code>
* $safebrowsingService = new Google_Service_Safebrowsing(...);
* $threatMatches = $safebrowsingService->threatMatches;
* </code>
*/
class Google_Service_Safebrowsing_Resource_ThreatMatches extends Google_Service_Resource
{
/**
* Finds the threat entries that match the Safe Browsing lists.
* (threatMatches.find)
*
* @param Google_Service_Safebrowsing_FindThreatMatchesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Safebrowsing_FindThreatMatchesResponse
*/
public function find(Google_Service_Safebrowsing_FindThreatMatchesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('find', array($params), "Google_Service_Safebrowsing_FindThreatMatchesResponse");
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_RiceDeltaEncoding extends Google_Model
{
public $encodedData;
public $firstValue;
public $numEntries;
public $riceParameter;
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
public function getEncodedData()
{
return $this->encodedData;
}
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
public function getFirstValue()
{
return $this->firstValue;
}
public function setNumEntries($numEntries)
{
$this->numEntries = $numEntries;
}
public function getNumEntries()
{
return $this->numEntries;
}
public function setRiceParameter($riceParameter)
{
$this->riceParameter = $riceParameter;
}
public function getRiceParameter()
{
return $this->riceParameter;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatEntry extends Google_Model
{
public $digest;
public $hash;
public $url;
public function setDigest($digest)
{
$this->digest = $digest;
}
public function getDigest()
{
return $this->digest;
}
public function setHash($hash)
{
$this->hash = $hash;
}
public function getHash()
{
return $this->hash;
}
public function setUrl($url)
{
$this->url = $url;
}
public function getUrl()
{
return $this->url;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatEntryMetadata extends Google_Collection
{
protected $collection_key = 'entries';
protected $entriesType = 'Google_Service_Safebrowsing_MetadataEntry';
protected $entriesDataType = 'array';
public function setEntries($entries)
{
$this->entries = $entries;
}
public function getEntries()
{
return $this->entries;
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatEntrySet extends Google_Model
{
public $compressionType;
protected $rawHashesType = 'Google_Service_Safebrowsing_RawHashes';
protected $rawHashesDataType = '';
protected $rawIndicesType = 'Google_Service_Safebrowsing_RawIndices';
protected $rawIndicesDataType = '';
protected $riceHashesType = 'Google_Service_Safebrowsing_RiceDeltaEncoding';
protected $riceHashesDataType = '';
protected $riceIndicesType = 'Google_Service_Safebrowsing_RiceDeltaEncoding';
protected $riceIndicesDataType = '';
public function setCompressionType($compressionType)
{
$this->compressionType = $compressionType;
}
public function getCompressionType()
{
return $this->compressionType;
}
public function setRawHashes(Google_Service_Safebrowsing_RawHashes $rawHashes)
{
$this->rawHashes = $rawHashes;
}
public function getRawHashes()
{
return $this->rawHashes;
}
public function setRawIndices(Google_Service_Safebrowsing_RawIndices $rawIndices)
{
$this->rawIndices = $rawIndices;
}
public function getRawIndices()
{
return $this->rawIndices;
}
public function setRiceHashes(Google_Service_Safebrowsing_RiceDeltaEncoding $riceHashes)
{
$this->riceHashes = $riceHashes;
}
public function getRiceHashes()
{
return $this->riceHashes;
}
public function setRiceIndices(Google_Service_Safebrowsing_RiceDeltaEncoding $riceIndices)
{
$this->riceIndices = $riceIndices;
}
public function getRiceIndices()
{
return $this->riceIndices;
}
}

View File

@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatInfo extends Google_Collection
{
protected $collection_key = 'threatTypes';
public $platformTypes;
protected $threatEntriesType = 'Google_Service_Safebrowsing_ThreatEntry';
protected $threatEntriesDataType = 'array';
public $threatEntryTypes;
public $threatTypes;
public function setPlatformTypes($platformTypes)
{
$this->platformTypes = $platformTypes;
}
public function getPlatformTypes()
{
return $this->platformTypes;
}
public function setThreatEntries($threatEntries)
{
$this->threatEntries = $threatEntries;
}
public function getThreatEntries()
{
return $this->threatEntries;
}
public function setThreatEntryTypes($threatEntryTypes)
{
$this->threatEntryTypes = $threatEntryTypes;
}
public function getThreatEntryTypes()
{
return $this->threatEntryTypes;
}
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
public function getThreatTypes()
{
return $this->threatTypes;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatListDescriptor extends Google_Model
{
public $platformType;
public $threatEntryType;
public $threatType;
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
public function getPlatformType()
{
return $this->platformType;
}
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
public function getThreatEntryType()
{
return $this->threatEntryType;
}
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
public function getThreatType()
{
return $this->threatType;
}
}

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Safebrowsing_ThreatMatch extends Google_Model
{
public $cacheDuration;
public $platformType;
protected $threatDataType = '';
protected $threatEntryMetadataType = 'Google_Service_Safebrowsing_ThreatEntryMetadata';
protected $threatEntryMetadataDataType = '';
public $threatEntryType;
public $threatType;
public function setCacheDuration($cacheDuration)
{
$this->cacheDuration = $cacheDuration;
}
public function getCacheDuration()
{
return $this->cacheDuration;
}
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
public function getPlatformType()
{
return $this->platformType;
}
public function setThreat(Google_Service_Safebrowsing_ThreatEntry $threat)
{
$this->threat = $threat;
}
public function getThreat()
{
return $this->threat;
}
public function setThreatEntryMetadata(Google_Service_Safebrowsing_ThreatEntryMetadata $threatEntryMetadata)
{
$this->threatEntryMetadata = $threatEntryMetadata;
}
public function getThreatEntryMetadata()
{
return $this->threatEntryMetadata;
}
public function setThreatEntryType($threatEntryType)
{
$this->threatEntryType = $threatEntryType;
}
public function getThreatEntryType()
{
return $this->threatEntryType;
}
public function setThreatType($threatType)
{
$this->threatType = $threatType;
}
public function getThreatType()
{
return $this->threatType;
}
}