Skip to content

Commit 050440f

Browse files
Regenerate recaptchaenterprise client (googleapis#6610)
Co-authored-by: Brent Shaffer <betterbrent@google.com>
1 parent f497040 commit 050440f

4 files changed

+141
-2
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\RecaptchaEnterprise;
19+
20+
class GoogleCloudRecaptchaenterpriseV1Bot extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $botType;
26+
/**
27+
* @var string
28+
*/
29+
public $name;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setBotType($botType)
35+
{
36+
$this->botType = $botType;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getBotType()
42+
{
43+
return $this->botType;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setName($name)
49+
{
50+
$this->name = $name;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getName()
56+
{
57+
return $this->name;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(GoogleCloudRecaptchaenterpriseV1Bot::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1Bot');

src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717

1818
namespace Google\Service\RecaptchaEnterprise;
1919

20-
class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment extends \Google\Model
20+
class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment extends \Google\Collection
2121
{
22+
protected $collection_key = 'riskReasons';
2223
protected $behavioralTrustVerdictType = GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict::class;
2324
protected $behavioralTrustVerdictDataType = '';
2425
protected $cardTestingVerdictType = GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict::class;
2526
protected $cardTestingVerdictDataType = '';
27+
protected $riskReasonsType = GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason::class;
28+
protected $riskReasonsDataType = 'array';
2629
protected $stolenInstrumentVerdictType = GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict::class;
2730
protected $stolenInstrumentVerdictDataType = '';
2831
/**
@@ -58,6 +61,20 @@ public function getCardTestingVerdict()
5861
{
5962
return $this->cardTestingVerdict;
6063
}
64+
/**
65+
* @param GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason[]
66+
*/
67+
public function setRiskReasons($riskReasons)
68+
{
69+
$this->riskReasons = $riskReasons;
70+
}
71+
/**
72+
* @return GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason[]
73+
*/
74+
public function getRiskReasons()
75+
{
76+
return $this->riskReasons;
77+
}
6178
/**
6279
* @param GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
6380
*/
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\RecaptchaEnterprise;
19+
20+
class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $reason;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setReason($reason)
31+
{
32+
$this->reason = $reason;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getReason()
38+
{
39+
return $this->reason;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason::class, 'Google_Service_RecaptchaEnterprise_GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason');

src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1RiskAnalysis.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class GoogleCloudRecaptchaenterpriseV1RiskAnalysis extends \Google\Collection
2121
{
22-
protected $collection_key = 'reasons';
22+
protected $collection_key = 'verifiedBots';
2323
/**
2424
* @var string
2525
*/
@@ -36,6 +36,8 @@ class GoogleCloudRecaptchaenterpriseV1RiskAnalysis extends \Google\Collection
3636
* @var float
3737
*/
3838
public $score;
39+
protected $verifiedBotsType = GoogleCloudRecaptchaenterpriseV1Bot::class;
40+
protected $verifiedBotsDataType = 'array';
3941

4042
/**
4143
* @param string
@@ -93,6 +95,20 @@ public function getScore()
9395
{
9496
return $this->score;
9597
}
98+
/**
99+
* @param GoogleCloudRecaptchaenterpriseV1Bot[]
100+
*/
101+
public function setVerifiedBots($verifiedBots)
102+
{
103+
$this->verifiedBots = $verifiedBots;
104+
}
105+
/**
106+
* @return GoogleCloudRecaptchaenterpriseV1Bot[]
107+
*/
108+
public function getVerifiedBots()
109+
{
110+
return $this->verifiedBots;
111+
}
96112
}
97113

98114
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)