gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,178 @@
<?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
{
/**
* Unknown.
*/
public const RESPONSE_TYPE_RESPONSE_TYPE_UNSPECIFIED = 'RESPONSE_TYPE_UNSPECIFIED';
/**
* Partial updates are applied to the client's existing local database.
*/
public const RESPONSE_TYPE_DIFF = 'DIFF';
/**
* Full updates resets the client's entire local database. This means that
* either the client had no state, was seriously out-of-date, or the client is
* believed to be corrupt.
*/
public const RESPONSE_TYPE_RESET = 'RESET';
protected $additionsType = GoogleCloudWebriskV1ThreatEntryAdditions::class;
protected $additionsDataType = '';
protected $checksumType = GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum::class;
protected $checksumDataType = '';
/**
* The new opaque client version token. This should be retained by the client
* and passed into the next call of ComputeThreatListDiff as 'version_token'.
* A separate version token should be stored and used for each threatList.
*
* @var string
*/
public $newVersionToken;
/**
* The soonest the client should wait before issuing any diff request.
* Querying sooner is unlikely to produce a meaningful diff. Waiting longer is
* acceptable considering the use case. If this field is not set clients may
* update as soon as they want.
*
* @var string
*/
public $recommendedNextDiff;
protected $removalsType = GoogleCloudWebriskV1ThreatEntryRemovals::class;
protected $removalsDataType = '';
/**
* The type of response. This may indicate that an action must be taken by the
* client when the response is received.
*
* @var string
*/
public $responseType;
/**
* A set of entries to add to a local threat type's list.
*
* @param GoogleCloudWebriskV1ThreatEntryAdditions $additions
*/
public function setAdditions(GoogleCloudWebriskV1ThreatEntryAdditions $additions)
{
$this->additions = $additions;
}
/**
* @return GoogleCloudWebriskV1ThreatEntryAdditions
*/
public function getAdditions()
{
return $this->additions;
}
/**
* The expected SHA256 hash of the client state; that is, of the sorted list
* of all hashes present in the database after applying the provided diff. If
* the client state doesn't match the expected state, the client must discard
* this diff and retry later.
*
* @param GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum $checksum
*/
public function setChecksum(GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum $checksum)
{
$this->checksum = $checksum;
}
/**
* @return GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum
*/
public function getChecksum()
{
return $this->checksum;
}
/**
* The new opaque client version token. This should be retained by the client
* and passed into the next call of ComputeThreatListDiff as 'version_token'.
* A separate version token should be stored and used for each threatList.
*
* @param string $newVersionToken
*/
public function setNewVersionToken($newVersionToken)
{
$this->newVersionToken = $newVersionToken;
}
/**
* @return string
*/
public function getNewVersionToken()
{
return $this->newVersionToken;
}
/**
* The soonest the client should wait before issuing any diff request.
* Querying sooner is unlikely to produce a meaningful diff. Waiting longer is
* acceptable considering the use case. If this field is not set clients may
* update as soon as they want.
*
* @param string $recommendedNextDiff
*/
public function setRecommendedNextDiff($recommendedNextDiff)
{
$this->recommendedNextDiff = $recommendedNextDiff;
}
/**
* @return string
*/
public function getRecommendedNextDiff()
{
return $this->recommendedNextDiff;
}
/**
* A set of entries to remove from a local threat type's list. This field may
* be empty.
*
* @param GoogleCloudWebriskV1ThreatEntryRemovals $removals
*/
public function setRemovals(GoogleCloudWebriskV1ThreatEntryRemovals $removals)
{
$this->removals = $removals;
}
/**
* @return GoogleCloudWebriskV1ThreatEntryRemovals
*/
public function getRemovals()
{
return $this->removals;
}
/**
* The type of response. This may indicate that an action must be taken by the
* client when the response is received.
*
* Accepted values: RESPONSE_TYPE_UNSPECIFIED, DIFF, RESET
*
* @param self::RESPONSE_TYPE_* $responseType
*/
public function setResponseType($responseType)
{
$this->responseType = $responseType;
}
/**
* @return self::RESPONSE_TYPE_*
*/
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');
@@ -0,0 +1,50 @@
<?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
{
/**
* The SHA256 hash of the client state; that is, of the sorted list of all
* hashes present in the database.
*
* @var string
*/
public $sha256;
/**
* The SHA256 hash of the client state; that is, of the sorted list of all
* hashes present in the database.
*
* @param string $sha256
*/
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');
@@ -0,0 +1,78 @@
<?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
{
/**
* The number of bytes for each prefix encoded below. This field can be
* anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice
* this is almost always 4, except in exceptional circumstances.
*
* @var int
*/
public $prefixSize;
/**
* The hashes, in binary format, concatenated into one long string. Hashes are
* sorted in lexicographic order. For JSON API users, hashes are
* base64-encoded.
*
* @var string
*/
public $rawHashes;
/**
* The number of bytes for each prefix encoded below. This field can be
* anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). In practice
* this is almost always 4, except in exceptional circumstances.
*
* @param int $prefixSize
*/
public function setPrefixSize($prefixSize)
{
$this->prefixSize = $prefixSize;
}
/**
* @return int
*/
public function getPrefixSize()
{
return $this->prefixSize;
}
/**
* The hashes, in binary format, concatenated into one long string. Hashes are
* sorted in lexicographic order. For JSON API users, hashes are
* base64-encoded.
*
* @param string $rawHashes
*/
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');
@@ -0,0 +1,49 @@
<?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';
/**
* The indices to remove from a lexicographically-sorted local list.
*
* @var int[]
*/
public $indices;
/**
* The indices to remove from a lexicographically-sorted local list.
*
* @param int[] $indices
*/
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');
@@ -0,0 +1,124 @@
<?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
{
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @var string
*/
public $encodedData;
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @var int
*/
public $entryCount;
/**
* The offset of the first entry in the encoded data, or, if only a single
* integer was encoded, that single integer's value. If the field is empty or
* missing, assume zero.
*
* @var string
*/
public $firstValue;
/**
* The Golomb-Rice parameter, which is a number between 2 and 28. This field
* is missing (that is, zero) if `num_entries` is zero.
*
* @var int
*/
public $riceParameter;
/**
* The encoded deltas that are encoded using the Golomb-Rice coder.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* The number of entries that are delta encoded in the encoded data. If only a
* single integer was encoded, this will be zero and the single value will be
* stored in `first_value`.
*
* @param int $entryCount
*/
public function setEntryCount($entryCount)
{
$this->entryCount = $entryCount;
}
/**
* @return int
*/
public function getEntryCount()
{
return $this->entryCount;
}
/**
* The offset of the first entry in the encoded data, or, if only a single
* integer was encoded, that single integer's value. If the field is empty or
* missing, assume zero.
*
* @param string $firstValue
*/
public function setFirstValue($firstValue)
{
$this->firstValue = $firstValue;
}
/**
* @return string
*/
public function getFirstValue()
{
return $this->firstValue;
}
/**
* The Golomb-Rice parameter, which is a number between 2 and 28. This field
* is missing (that is, zero) if `num_entries` is zero.
*
* @param int $riceParameter
*/
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');
@@ -0,0 +1,70 @@
<?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';
/**
* For requested entities that did not match the threat list, how long to
* cache the response until.
*
* @var string
*/
public $negativeExpireTime;
protected $threatsType = GoogleCloudWebriskV1SearchHashesResponseThreatHash::class;
protected $threatsDataType = 'array';
/**
* For requested entities that did not match the threat list, how long to
* cache the response until.
*
* @param string $negativeExpireTime
*/
public function setNegativeExpireTime($negativeExpireTime)
{
$this->negativeExpireTime = $negativeExpireTime;
}
/**
* @return string
*/
public function getNegativeExpireTime()
{
return $this->negativeExpireTime;
}
/**
* The full hashes that matched the requested prefixes. The hash will be
* populated in the key.
*
* @param GoogleCloudWebriskV1SearchHashesResponseThreatHash[] $threats
*/
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');
@@ -0,0 +1,99 @@
<?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';
/**
* The cache lifetime for the returned match. Clients must not cache this
* response past this timestamp to avoid false positives.
*
* @var string
*/
public $expireTime;
/**
* A 32 byte SHA256 hash. This field is in binary format. For JSON requests,
* hashes are base64-encoded.
*
* @var string
*/
public $hash;
/**
* The ThreatList this threat belongs to. This must contain at least one
* entry.
*
* @var string[]
*/
public $threatTypes;
/**
* The cache lifetime for the returned match. Clients must not cache this
* response past this timestamp to avoid false positives.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* A 32 byte SHA256 hash. This field is in binary format. For JSON requests,
* hashes are base64-encoded.
*
* @param string $hash
*/
public function setHash($hash)
{
$this->hash = $hash;
}
/**
* @return string
*/
public function getHash()
{
return $this->hash;
}
/**
* The ThreatList this threat belongs to. This must contain at least one
* entry.
*
* @param string[] $threatTypes
*/
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');
@@ -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 GoogleCloudWebriskV1SearchUrisResponse extends \Google\Model
{
protected $threatType = GoogleCloudWebriskV1SearchUrisResponseThreatUri::class;
protected $threatDataType = '';
/**
* The threat list matches. This might be empty if the URI is on no list.
*
* @param GoogleCloudWebriskV1SearchUrisResponseThreatUri $threat
*/
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');
@@ -0,0 +1,73 @@
<?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';
/**
* The cache lifetime for the returned match. Clients must not cache this
* response past this timestamp to avoid false positives.
*
* @var string
*/
public $expireTime;
/**
* The ThreatList this threat belongs to.
*
* @var string[]
*/
public $threatTypes;
/**
* The cache lifetime for the returned match. Clients must not cache this
* response past this timestamp to avoid false positives.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* The ThreatList this threat belongs to.
*
* @param string[] $threatTypes
*/
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');
@@ -0,0 +1,50 @@
<?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
{
/**
* Required. The URI that is being reported for malicious content to be
* analyzed.
*
* @var string
*/
public $uri;
/**
* Required. The URI that is being reported for malicious content to be
* analyzed.
*
* @param string $uri
*/
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');
@@ -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');
@@ -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');
@@ -0,0 +1,66 @@
<?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 = '';
/**
* The raw SHA256-formatted entries. Repeated to allow returning sets of
* hashes with different prefix sizes.
*
* @param GoogleCloudWebriskV1RawHashes[] $rawHashes
*/
public function setRawHashes($rawHashes)
{
$this->rawHashes = $rawHashes;
}
/**
* @return GoogleCloudWebriskV1RawHashes[]
*/
public function getRawHashes()
{
return $this->rawHashes;
}
/**
* The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-
* Rice encoding. The hashes are converted to uint32, sorted in ascending
* order, then delta encoded and stored as encoded_data.
*
* @param GoogleCloudWebriskV1RiceDeltaEncoding $riceHashes
*/
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');
@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\WebRisk;
class GoogleCloudWebriskV1ThreatEntryRemovals extends \Google\Model
{
protected $rawIndicesType = GoogleCloudWebriskV1RawIndices::class;
protected $rawIndicesDataType = '';
protected $riceIndicesType = GoogleCloudWebriskV1RiceDeltaEncoding::class;
protected $riceIndicesDataType = '';
/**
* The raw removal indices for a local list.
*
* @param GoogleCloudWebriskV1RawIndices $rawIndices
*/
public function setRawIndices(GoogleCloudWebriskV1RawIndices $rawIndices)
{
$this->rawIndices = $rawIndices;
}
/**
* @return GoogleCloudWebriskV1RawIndices
*/
public function getRawIndices()
{
return $this->rawIndices;
}
/**
* The encoded local, lexicographically-sorted list indices, using a Golomb-
* Rice encoding. Used for sending compressed removal indices. The removal
* indices (uint32) are sorted in ascending order, then delta encoded and
* stored as encoded_data.
*
* @param GoogleCloudWebriskV1RiceDeltaEncoding $riceIndices
*/
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');
@@ -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');
@@ -0,0 +1,95 @@
<?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 = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param GoogleLongrunningOperation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_WebRisk_GoogleLongrunningListOperationsResponse');
@@ -0,0 +1,148 @@
<?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
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
/**
* Contains a `SubmitUriMetadata` object.
*
* @var array[]
*/
public $metadata;
/**
* Matches the `/v1/{project-name}/operations/{operation-id}` pattern.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Contains a `SubmitUriMetadata` object.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Matches the `/v1/{project-name}/operations/{operation-id}` pattern.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
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');
@@ -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');
@@ -0,0 +1,99 @@
<?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';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
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');
@@ -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');
@@ -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');
@@ -0,0 +1,121 @@
<?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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @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');
@@ -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\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 for
* review. If the review confirms malicious phishing content, Google adds the
* site to [Google's Social Engineering
* lists](https://support.google.com/webmasters/answer/6350487/) to help protect
* users. Only allowlisted projects can use this method during Early Access. To
* obtain access, contact Sales or your customer engineer. (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');
@@ -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');
@@ -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');
@@ -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');