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,128 @@
<?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\WebRisk;
class GoogleCloudWebriskV1ComputeThreatListDiffResponse extends \Google\Model
{
protected $additionsType = GoogleCloudWebriskV1ThreatEntryAdditions::class;
protected $additionsDataType = '';
protected $checksumType = GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum::class;
protected $checksumDataType = '';
/**
* @var string
*/
public $newVersionToken;
/**
* @var string
*/
public $recommendedNextDiff;
protected $removalsType = GoogleCloudWebriskV1ThreatEntryRemovals::class;
protected $removalsDataType = '';
/**
* @var string
*/
public $responseType;
/**
* @param GoogleCloudWebriskV1ThreatEntryAdditions
*/
public function setAdditions(GoogleCloudWebriskV1ThreatEntryAdditions $additions)
{
$this->additions = $additions;
}
/**
* @return GoogleCloudWebriskV1ThreatEntryAdditions
*/
public function getAdditions()
{
return $this->additions;
}
/**
* @param GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum
*/
public function setChecksum(GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum $checksum)
{
$this->checksum = $checksum;
}
/**
* @return GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* @param string
*/
public function setNewVersionToken($newVersionToken)
{
$this->newVersionToken = $newVersionToken;
}
/**
* @return string
*/
public function getNewVersionToken()
{
return $this->newVersionToken;
}
/**
* @param string
*/
public function setRecommendedNextDiff($recommendedNextDiff)
{
$this->recommendedNextDiff = $recommendedNextDiff;
}
/**
* @return string
*/
public function getRecommendedNextDiff()
{
return $this->recommendedNextDiff;
}
/**
* @param GoogleCloudWebriskV1ThreatEntryRemovals
*/
public function setRemovals(GoogleCloudWebriskV1ThreatEntryRemovals $removals)
{
$this->removals = $removals;
}
/**
* @return GoogleCloudWebriskV1ThreatEntryRemovals
*/
public function getRemovals()
{
return $this->removals;
}
/**
* @param string
*/
public function setResponseType($responseType)
{
$this->responseType = $responseType;
}
/**
* @return string
*/
public function getResponseType()
{
return $this->responseType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1ComputeThreatListDiffResponse::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1ComputeThreatListDiffResponse');

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\WebRisk;
class GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum extends \Google\Model
{
/**
* @var string
*/
public $sha256;
/**
* @param string
*/
public function setSha256($sha256)
{
$this->sha256 = $sha256;
}
/**
* @return string
*/
public function getSha256()
{
return $this->sha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum');

View File

@@ -0,0 +1,62 @@
<?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\WebRisk;
class GoogleCloudWebriskV1RawHashes extends \Google\Model
{
/**
* @var int
*/
public $prefixSize;
/**
* @var string
*/
public $rawHashes;
/**
* @param int
*/
public function setPrefixSize($prefixSize)
{
$this->prefixSize = $prefixSize;
}
/**
* @return int
*/
public function getPrefixSize()
{
return $this->prefixSize;
}
/**
* @param string
*/
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return string
*/
public function getRawHashes()
{
return $this->rawHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1RawHashes::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1RawHashes');

View File

@@ -0,0 +1,45 @@
<?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\WebRisk;
class GoogleCloudWebriskV1RawIndices extends \Google\Collection
{
protected $collection_key = 'indices';
/**
* @var int[]
*/
public $indices;
/**
* @param int[]
*/
public function setIndices($indices)
{
$this->indices = $indices;
}
/**
* @return int[]
*/
public function getIndices()
{
return $this->indices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1RawIndices::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1RawIndices');

View File

@@ -0,0 +1,98 @@
<?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\WebRisk;
class GoogleCloudWebriskV1RiceDeltaEncoding extends \Google\Model
{
/**
* @var string
*/
public $encodedData;
/**
* @var int
*/
public $entryCount;
/**
* @var string
*/
public $firstValue;
/**
* @var int
*/
public $riceParameter;
/**
* @param string
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* @param int
*/
public function setEntryCount($entryCount)
{
$this->entryCount = $entryCount;
}
/**
* @return int
*/
public function getEntryCount()
{
return $this->entryCount;
}
/**
* @param string
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* @param int
*/
public function setRiceParameter($riceParameter)
{
$this->riceParameter = $riceParameter;
}
/**
* @return int
*/
public function getRiceParameter()
{
return $this->riceParameter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1RiceDeltaEncoding::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1RiceDeltaEncoding');

View File

@@ -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\WebRisk;
class GoogleCloudWebriskV1SearchHashesResponse extends \Google\Collection
{
protected $collection_key = 'threats';
/**
* @var string
*/
public $negativeExpireTime;
protected $threatsType = GoogleCloudWebriskV1SearchHashesResponseThreatHash::class;
protected $threatsDataType = 'array';
/**
* @param string
*/
public function setNegativeExpireTime($negativeExpireTime)
{
$this->negativeExpireTime = $negativeExpireTime;
}
/**
* @return string
*/
public function getNegativeExpireTime()
{
return $this->negativeExpireTime;
}
/**
* @param GoogleCloudWebriskV1SearchHashesResponseThreatHash[]
*/
public function setThreats($threats)
{
$this->threats = $threats;
}
/**
* @return GoogleCloudWebriskV1SearchHashesResponseThreatHash[]
*/
public function getThreats()
{
return $this->threats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SearchHashesResponse::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SearchHashesResponse');

View File

@@ -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\WebRisk;
class GoogleCloudWebriskV1SearchHashesResponseThreatHash extends \Google\Collection
{
protected $collection_key = 'threatTypes';
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $hash;
/**
* @var string[]
*/
public $threatTypes;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* @param string[]
*/
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
/**
* @return string[]
*/
public function getThreatTypes()
{
return $this->threatTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SearchHashesResponseThreatHash::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SearchHashesResponseThreatHash');

View File

@@ -0,0 +1,42 @@
<?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\WebRisk;
class GoogleCloudWebriskV1SearchUrisResponse extends \Google\Model
{
protected $threatType = GoogleCloudWebriskV1SearchUrisResponseThreatUri::class;
protected $threatDataType = '';
/**
* @param GoogleCloudWebriskV1SearchUrisResponseThreatUri
*/
public function setThreat(GoogleCloudWebriskV1SearchUrisResponseThreatUri $threat)
{
$this->threat = $threat;
}
/**
* @return GoogleCloudWebriskV1SearchUrisResponseThreatUri
*/
public function getThreat()
{
return $this->threat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SearchUrisResponse::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SearchUrisResponse');

View File

@@ -0,0 +1,63 @@
<?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\WebRisk;
class GoogleCloudWebriskV1SearchUrisResponseThreatUri extends \Google\Collection
{
protected $collection_key = 'threatTypes';
/**
* @var string
*/
public $expireTime;
/**
* @var string[]
*/
public $threatTypes;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string[]
*/
public function setThreatTypes($threatTypes)
{
$this->threatTypes = $threatTypes;
}
/**
* @return string[]
*/
public function getThreatTypes()
{
return $this->threatTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SearchUrisResponseThreatUri::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SearchUrisResponseThreatUri');

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\WebRisk;
class GoogleCloudWebriskV1Submission extends \Google\Model
{
/**
* @var string
*/
public $uri;
/**
* @param string
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1Submission::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1Submission');

View File

@@ -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\WebRisk;
class GoogleCloudWebriskV1SubmitUriMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SubmitUriMetadata::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SubmitUriMetadata');

View File

@@ -0,0 +1,42 @@
<?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\WebRisk;
class GoogleCloudWebriskV1SubmitUriRequest extends \Google\Model
{
protected $submissionType = GoogleCloudWebriskV1Submission::class;
protected $submissionDataType = '';
/**
* @param GoogleCloudWebriskV1Submission
*/
public function setSubmission(GoogleCloudWebriskV1Submission $submission)
{
$this->submission = $submission;
}
/**
* @return GoogleCloudWebriskV1Submission
*/
public function getSubmission()
{
return $this->submission;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1SubmitUriRequest::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1SubmitUriRequest');

View File

@@ -0,0 +1,59 @@
<?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\WebRisk;
class GoogleCloudWebriskV1ThreatEntryAdditions extends \Google\Collection
{
protected $collection_key = 'rawHashes';
protected $rawHashesType = GoogleCloudWebriskV1RawHashes::class;
protected $rawHashesDataType = 'array';
protected $riceHashesType = GoogleCloudWebriskV1RiceDeltaEncoding::class;
protected $riceHashesDataType = '';
/**
* @param GoogleCloudWebriskV1RawHashes[]
*/
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return GoogleCloudWebriskV1RawHashes[]
*/
public function getRawHashes()
{
return $this->rawHashes;
}
/**
* @param GoogleCloudWebriskV1RiceDeltaEncoding
*/
public function setRiceHashes(GoogleCloudWebriskV1RiceDeltaEncoding $riceHashes)
{
$this->riceHashes = $riceHashes;
}
/**
* @return GoogleCloudWebriskV1RiceDeltaEncoding
*/
public function getRiceHashes()
{
return $this->riceHashes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1ThreatEntryAdditions::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1ThreatEntryAdditions');

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\WebRisk;
class GoogleCloudWebriskV1ThreatEntryRemovals extends \Google\Model
{
protected $rawIndicesType = GoogleCloudWebriskV1RawIndices::class;
protected $rawIndicesDataType = '';
protected $riceIndicesType = GoogleCloudWebriskV1RiceDeltaEncoding::class;
protected $riceIndicesDataType = '';
/**
* @param GoogleCloudWebriskV1RawIndices
*/
public function setRawIndices(GoogleCloudWebriskV1RawIndices $rawIndices)
{
$this->rawIndices = $rawIndices;
}
/**
* @return GoogleCloudWebriskV1RawIndices
*/
public function getRawIndices()
{
return $this->rawIndices;
}
/**
* @param GoogleCloudWebriskV1RiceDeltaEncoding
*/
public function setRiceIndices(GoogleCloudWebriskV1RiceDeltaEncoding $riceIndices)
{
$this->riceIndices = $riceIndices;
}
/**
* @return GoogleCloudWebriskV1RiceDeltaEncoding
*/
public function getRiceIndices()
{
return $this->riceIndices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudWebriskV1ThreatEntryRemovals::class, 'Google_Service_WebRisk_GoogleCloudWebriskV1ThreatEntryRemovals');

View File

@@ -0,0 +1,25 @@
<?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\WebRisk;
class GoogleLongrunningCancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningCancelOperationRequest::class, 'Google_Service_WebRisk_GoogleLongrunningCancelOperationRequest');

View File

@@ -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\WebRisk;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleLongrunningOperation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_WebRisk_GoogleLongrunningListOperationsResponse');

View File

@@ -0,0 +1,114 @@
<?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\WebRisk;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param GoogleRpcStatus
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_WebRisk_GoogleLongrunningOperation');

View File

@@ -0,0 +1,25 @@
<?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\WebRisk;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_WebRisk_GoogleProtobufEmpty');

View File

@@ -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\WebRisk;
class GoogleRpcStatus extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRpcStatus::class, 'Google_Service_WebRisk_GoogleRpcStatus');

View File

@@ -0,0 +1,59 @@
<?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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleCloudWebriskV1SearchHashesResponse;
/**
* The "hashes" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $hashes = $webriskService->hashes;
* </code>
*/
class Hashes extends \Google\Service\Resource
{
/**
* Gets the full hashes that match the requested hash prefix. This is used after
* a hash prefix is looked up in a threatList and there is a match. The client
* side threatList only holds partial hashes so the client must query this
* method to determine if there is a full hash match of a threat.
* (hashes.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string hashPrefix A hash prefix, consisting of the most
* significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is
* base64-encoded. Note that if this parameter is provided by a URI, it must be
* encoded using the web safe base64 variant (RFC 4648).
* @opt_param string threatTypes Required. The ThreatLists to search in.
* Multiple ThreatLists may be specified.
* @return GoogleCloudWebriskV1SearchHashesResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleCloudWebriskV1SearchHashesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Hashes::class, 'Google_Service_WebRisk_Resource_Hashes');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WebRisk\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $projects = $webriskService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_WebRisk_Resource_Projects');

View File

@@ -0,0 +1,114 @@
<?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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleLongrunningCancelOperationRequest;
use Google\Service\WebRisk\GoogleLongrunningListOperationsResponse;
use Google\Service\WebRisk\GoogleLongrunningOperation;
use Google\Service\WebRisk\GoogleProtobufEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $operations = $webriskService->projects_operations;
* </code>
*/
class ProjectsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param GoogleLongrunningCancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleLongrunningCancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsOperations::class, 'Google_Service_WebRisk_Resource_ProjectsOperations');

View File

@@ -0,0 +1,57 @@
<?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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleCloudWebriskV1Submission;
/**
* The "submissions" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $submissions = $webriskService->projects_submissions;
* </code>
*/
class ProjectsSubmissions extends \Google\Service\Resource
{
/**
* Creates a Submission of a URI suspected of containing phishing content to be
* reviewed. If the result verifies the existence of malicious phishing content,
* the site will be added to the [Google's Social Engineering
* lists](https://support.google.com/webmasters/answer/6350487/) in order to
* protect users that could get exposed to this threat in the future. Only
* allowlisted projects can use this method during Early Access. Please reach
* out to Sales or your customer engineer to obtain access. (submissions.create)
*
* @param string $parent Required. The name of the project that is making the
* submission. This string is in the format "projects/{project_number}".
* @param GoogleCloudWebriskV1Submission $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudWebriskV1Submission
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudWebriskV1Submission $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudWebriskV1Submission::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSubmissions::class, 'Google_Service_WebRisk_Resource_ProjectsSubmissions');

View File

@@ -0,0 +1,60 @@
<?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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleCloudWebriskV1SubmitUriRequest;
use Google\Service\WebRisk\GoogleLongrunningOperation;
/**
* The "uris" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $uris = $webriskService->projects_uris;
* </code>
*/
class ProjectsUris extends \Google\Service\Resource
{
/**
* Submits a URI suspected of containing malicious content to be reviewed.
* Returns a google.longrunning.Operation which, once the review is complete, is
* updated with its result. You can use the [Pub/Sub API]
* (https://cloud.google.com/pubsub) to receive notifications for the returned
* Operation. If the result verifies the existence of malicious content, the
* site will be added to the [Google's Social Engineering lists]
* (https://support.google.com/webmasters/answer/6350487/) in order to protect
* users that could get exposed to this threat in the future. Only allowlisted
* projects can use this method during Early Access. Please reach out to Sales
* or your customer engineer to obtain access. (uris.submit)
*
* @param string $parent Required. The name of the project that is making the
* submission. This string is in the format "projects/{project_number}".
* @param GoogleCloudWebriskV1SubmitUriRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
*/
public function submit($parent, GoogleCloudWebriskV1SubmitUriRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('submit', [$params], GoogleLongrunningOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsUris::class, 'Google_Service_WebRisk_Resource_ProjectsUris');

View File

@@ -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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleCloudWebriskV1ComputeThreatListDiffResponse;
/**
* The "threatLists" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $threatLists = $webriskService->threatLists;
* </code>
*/
class ThreatLists extends \Google\Service\Resource
{
/**
* Gets the most recent threat list diffs. These diffs should be applied to a
* local database of hashes to keep it up-to-date. If the local database is
* empty or excessively out-of-date, a complete snapshot of the database will be
* returned. This Method only updates a single ThreatList at a time. To update
* multiple ThreatList databases, this method needs to be called once for each
* list. (threatLists.computeDiff)
*
* @param array $optParams Optional parameters.
*
* @opt_param int constraints.maxDatabaseEntries Sets the maximum number of
* entries that the client is willing to have in the local database. This should
* be a power of 2 between 2**10 and 2**20. If zero, no database size limit is
* set.
* @opt_param int constraints.maxDiffEntries The maximum size in number of
* entries. The diff will not contain more entries than this value. This should
* be a power of 2 between 2**10 and 2**20. If zero, no diff size limit is set.
* @opt_param string constraints.supportedCompressions The compression types
* supported by the client.
* @opt_param string threatType Required. The threat list to update. Only a
* single ThreatType should be specified per request. If you want to handle
* multiple ThreatTypes, you must make one request per ThreatType.
* @opt_param string versionToken The current version token of the client for
* the requested list (the client version that was received from the last
* successful diff). If the client does not have a version token (this is the
* first time calling ComputeThreatListDiff), this may be left empty and a full
* database snapshot will be returned.
* @return GoogleCloudWebriskV1ComputeThreatListDiffResponse
* @throws \Google\Service\Exception
*/
public function computeDiff($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('computeDiff', [$params], GoogleCloudWebriskV1ComputeThreatListDiffResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ThreatLists::class, 'Google_Service_WebRisk_Resource_ThreatLists');

View File

@@ -0,0 +1,56 @@
<?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\WebRisk\Resource;
use Google\Service\WebRisk\GoogleCloudWebriskV1SearchUrisResponse;
/**
* The "uris" collection of methods.
* Typical usage is:
* <code>
* $webriskService = new Google\Service\WebRisk(...);
* $uris = $webriskService->uris;
* </code>
*/
class Uris extends \Google\Service\Resource
{
/**
* This method is used to check whether a URI is on a given threatList. Multiple
* threatLists may be searched in a single query. The response will list all
* requested threatLists the URI was found to match. If the URI is not found on
* any of the requested ThreatList an empty response will be returned.
* (uris.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string threatTypes Required. The ThreatLists to search in.
* Multiple ThreatLists may be specified.
* @opt_param string uri Required. The URI to be checked for matches.
* @return GoogleCloudWebriskV1SearchUrisResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleCloudWebriskV1SearchUrisResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Uris::class, 'Google_Service_WebRisk_Resource_Uris');