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,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\PlayIntegrity;
class AccountActivity extends \Google\Model
{
/**
* @var string
*/
public $activityLevel;
/**
* @param string
*/
public function setActivityLevel($activityLevel)
{
$this->activityLevel = $activityLevel;
}
/**
* @return string
*/
public function getActivityLevel()
{
return $this->activityLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountActivity::class, 'Google_Service_PlayIntegrity_AccountActivity');

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\PlayIntegrity;
class AccountDetails extends \Google\Model
{
protected $accountActivityType = AccountActivity::class;
protected $accountActivityDataType = '';
/**
* @var string
*/
public $appLicensingVerdict;
/**
* @param AccountActivity
*/
public function setAccountActivity(AccountActivity $accountActivity)
{
$this->accountActivity = $accountActivity;
}
/**
* @return AccountActivity
*/
public function getAccountActivity()
{
return $this->accountActivity;
}
/**
* @param string
*/
public function setAppLicensingVerdict($appLicensingVerdict)
{
$this->appLicensingVerdict = $appLicensingVerdict;
}
/**
* @return string
*/
public function getAppLicensingVerdict()
{
return $this->appLicensingVerdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountDetails::class, 'Google_Service_PlayIntegrity_AccountDetails');

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\PlayIntegrity;
class AccountRiskVerdict extends \Google\Model
{
/**
* @var string
*/
public $risk;
/**
* @var string
*/
public $riskLevel;
/**
* @param string
*/
public function setRisk($risk)
{
$this->risk = $risk;
}
/**
* @return string
*/
public function getRisk()
{
return $this->risk;
}
/**
* @param string
*/
public function setRiskLevel($riskLevel)
{
$this->riskLevel = $riskLevel;
}
/**
* @return string
*/
public function getRiskLevel()
{
return $this->riskLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountRiskVerdict::class, 'Google_Service_PlayIntegrity_AccountRiskVerdict');

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\PlayIntegrity;
class AppAccessRiskVerdict extends \Google\Collection
{
protected $collection_key = 'appsDetected';
/**
* @var string[]
*/
public $appsDetected;
/**
* @var string
*/
public $otherApps;
/**
* @var string
*/
public $playOrSystemApps;
/**
* @param string[]
*/
public function setAppsDetected($appsDetected)
{
$this->appsDetected = $appsDetected;
}
/**
* @return string[]
*/
public function getAppsDetected()
{
return $this->appsDetected;
}
/**
* @param string
*/
public function setOtherApps($otherApps)
{
$this->otherApps = $otherApps;
}
/**
* @return string
*/
public function getOtherApps()
{
return $this->otherApps;
}
/**
* @param string
*/
public function setPlayOrSystemApps($playOrSystemApps)
{
$this->playOrSystemApps = $playOrSystemApps;
}
/**
* @return string
*/
public function getPlayOrSystemApps()
{
return $this->playOrSystemApps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppAccessRiskVerdict::class, 'Google_Service_PlayIntegrity_AppAccessRiskVerdict');

View File

@@ -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\PlayIntegrity;
class AppIntegrity extends \Google\Collection
{
protected $collection_key = 'certificateSha256Digest';
/**
* @var string
*/
public $appRecognitionVerdict;
/**
* @var string[]
*/
public $certificateSha256Digest;
/**
* @var string
*/
public $packageName;
/**
* @var string
*/
public $versionCode;
/**
* @param string
*/
public function setAppRecognitionVerdict($appRecognitionVerdict)
{
$this->appRecognitionVerdict = $appRecognitionVerdict;
}
/**
* @return string
*/
public function getAppRecognitionVerdict()
{
return $this->appRecognitionVerdict;
}
/**
* @param string[]
*/
public function setCertificateSha256Digest($certificateSha256Digest)
{
$this->certificateSha256Digest = $certificateSha256Digest;
}
/**
* @return string[]
*/
public function getCertificateSha256Digest()
{
return $this->certificateSha256Digest;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param string
*/
public function setVersionCode($versionCode)
{
$this->versionCode = $versionCode;
}
/**
* @return string
*/
public function getVersionCode()
{
return $this->versionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppIntegrity::class, 'Google_Service_PlayIntegrity_AppIntegrity');

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\PlayIntegrity;
class DecodeIntegrityTokenRequest extends \Google\Model
{
/**
* @var string
*/
public $integrityToken;
/**
* @param string
*/
public function setIntegrityToken($integrityToken)
{
$this->integrityToken = $integrityToken;
}
/**
* @return string
*/
public function getIntegrityToken()
{
return $this->integrityToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DecodeIntegrityTokenRequest::class, 'Google_Service_PlayIntegrity_DecodeIntegrityTokenRequest');

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\PlayIntegrity;
class DecodeIntegrityTokenResponse extends \Google\Model
{
protected $tokenPayloadExternalType = TokenPayloadExternal::class;
protected $tokenPayloadExternalDataType = '';
/**
* @param TokenPayloadExternal
*/
public function setTokenPayloadExternal(TokenPayloadExternal $tokenPayloadExternal)
{
$this->tokenPayloadExternal = $tokenPayloadExternal;
}
/**
* @return TokenPayloadExternal
*/
public function getTokenPayloadExternal()
{
return $this->tokenPayloadExternal;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DecodeIntegrityTokenResponse::class, 'Google_Service_PlayIntegrity_DecodeIntegrityTokenResponse');

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\PlayIntegrity;
class DeviceAttributes extends \Google\Model
{
/**
* @var int
*/
public $sdkVersion;
/**
* @param int
*/
public function setSdkVersion($sdkVersion)
{
$this->sdkVersion = $sdkVersion;
}
/**
* @return int
*/
public function getSdkVersion()
{
return $this->sdkVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceAttributes::class, 'Google_Service_PlayIntegrity_DeviceAttributes');

View File

@@ -0,0 +1,111 @@
<?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\PlayIntegrity;
class DeviceIntegrity extends \Google\Collection
{
protected $collection_key = 'legacyDeviceRecognitionVerdict';
protected $deviceAttributesType = DeviceAttributes::class;
protected $deviceAttributesDataType = '';
protected $deviceRecallType = DeviceRecall::class;
protected $deviceRecallDataType = '';
/**
* @var string[]
*/
public $deviceRecognitionVerdict;
/**
* @var string[]
*/
public $legacyDeviceRecognitionVerdict;
protected $recentDeviceActivityType = RecentDeviceActivity::class;
protected $recentDeviceActivityDataType = '';
/**
* @param DeviceAttributes
*/
public function setDeviceAttributes(DeviceAttributes $deviceAttributes)
{
$this->deviceAttributes = $deviceAttributes;
}
/**
* @return DeviceAttributes
*/
public function getDeviceAttributes()
{
return $this->deviceAttributes;
}
/**
* @param DeviceRecall
*/
public function setDeviceRecall(DeviceRecall $deviceRecall)
{
$this->deviceRecall = $deviceRecall;
}
/**
* @return DeviceRecall
*/
public function getDeviceRecall()
{
return $this->deviceRecall;
}
/**
* @param string[]
*/
public function setDeviceRecognitionVerdict($deviceRecognitionVerdict)
{
$this->deviceRecognitionVerdict = $deviceRecognitionVerdict;
}
/**
* @return string[]
*/
public function getDeviceRecognitionVerdict()
{
return $this->deviceRecognitionVerdict;
}
/**
* @param string[]
*/
public function setLegacyDeviceRecognitionVerdict($legacyDeviceRecognitionVerdict)
{
$this->legacyDeviceRecognitionVerdict = $legacyDeviceRecognitionVerdict;
}
/**
* @return string[]
*/
public function getLegacyDeviceRecognitionVerdict()
{
return $this->legacyDeviceRecognitionVerdict;
}
/**
* @param RecentDeviceActivity
*/
public function setRecentDeviceActivity(RecentDeviceActivity $recentDeviceActivity)
{
$this->recentDeviceActivity = $recentDeviceActivity;
}
/**
* @return RecentDeviceActivity
*/
public function getRecentDeviceActivity()
{
return $this->recentDeviceActivity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceIntegrity::class, 'Google_Service_PlayIntegrity_DeviceIntegrity');

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\PlayIntegrity;
class DeviceRecall extends \Google\Model
{
protected $valuesType = Values::class;
protected $valuesDataType = '';
protected $writeDatesType = WriteDates::class;
protected $writeDatesDataType = '';
/**
* @param Values
*/
public function setValues(Values $values)
{
$this->values = $values;
}
/**
* @return Values
*/
public function getValues()
{
return $this->values;
}
/**
* @param WriteDates
*/
public function setWriteDates(WriteDates $writeDates)
{
$this->writeDates = $writeDates;
}
/**
* @return WriteDates
*/
public function getWriteDates()
{
return $this->writeDates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceRecall::class, 'Google_Service_PlayIntegrity_DeviceRecall');

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\PlayIntegrity;
class EnvironmentDetails extends \Google\Model
{
protected $appAccessRiskVerdictType = AppAccessRiskVerdict::class;
protected $appAccessRiskVerdictDataType = '';
/**
* @var string
*/
public $playProtectVerdict;
/**
* @param AppAccessRiskVerdict
*/
public function setAppAccessRiskVerdict(AppAccessRiskVerdict $appAccessRiskVerdict)
{
$this->appAccessRiskVerdict = $appAccessRiskVerdict;
}
/**
* @return AppAccessRiskVerdict
*/
public function getAppAccessRiskVerdict()
{
return $this->appAccessRiskVerdict;
}
/**
* @param string
*/
public function setPlayProtectVerdict($playProtectVerdict)
{
$this->playProtectVerdict = $playProtectVerdict;
}
/**
* @return string
*/
public function getPlayProtectVerdict()
{
return $this->playProtectVerdict;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentDetails::class, 'Google_Service_PlayIntegrity_EnvironmentDetails');

View File

@@ -0,0 +1,43 @@
<?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\PlayIntegrity;
class GuidanceDetails extends \Google\Collection
{
protected $collection_key = 'userRemediationDetails';
protected $userRemediationDetailsType = UserRemediationDetails::class;
protected $userRemediationDetailsDataType = 'array';
/**
* @param UserRemediationDetails[]
*/
public function setUserRemediationDetails($userRemediationDetails)
{
$this->userRemediationDetails = $userRemediationDetails;
}
/**
* @return UserRemediationDetails[]
*/
public function getUserRemediationDetails()
{
return $this->userRemediationDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuidanceDetails::class, 'Google_Service_PlayIntegrity_GuidanceDetails');

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\PlayIntegrity;
class RecentDeviceActivity extends \Google\Model
{
/**
* @var string
*/
public $deviceActivityLevel;
/**
* @param string
*/
public function setDeviceActivityLevel($deviceActivityLevel)
{
$this->deviceActivityLevel = $deviceActivityLevel;
}
/**
* @return string
*/
public function getDeviceActivityLevel()
{
return $this->deviceActivityLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecentDeviceActivity::class, 'Google_Service_PlayIntegrity_RecentDeviceActivity');

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\PlayIntegrity;
class RequestDetails extends \Google\Model
{
/**
* @var string
*/
public $nonce;
/**
* @var string
*/
public $requestHash;
/**
* @var string
*/
public $requestPackageName;
/**
* @var string
*/
public $timestampMillis;
/**
* @param string
*/
public function setNonce($nonce)
{
$this->nonce = $nonce;
}
/**
* @return string
*/
public function getNonce()
{
return $this->nonce;
}
/**
* @param string
*/
public function setRequestHash($requestHash)
{
$this->requestHash = $requestHash;
}
/**
* @return string
*/
public function getRequestHash()
{
return $this->requestHash;
}
/**
* @param string
*/
public function setRequestPackageName($requestPackageName)
{
$this->requestPackageName = $requestPackageName;
}
/**
* @return string
*/
public function getRequestPackageName()
{
return $this->requestPackageName;
}
/**
* @param string
*/
public function setTimestampMillis($timestampMillis)
{
$this->timestampMillis = $timestampMillis;
}
/**
* @return string
*/
public function getTimestampMillis()
{
return $this->timestampMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestDetails::class, 'Google_Service_PlayIntegrity_RequestDetails');

View File

@@ -0,0 +1,54 @@
<?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\PlayIntegrity\Resource;
use Google\Service\PlayIntegrity\WriteDeviceRecallRequest;
use Google\Service\PlayIntegrity\WriteDeviceRecallResponse;
/**
* The "deviceRecall" collection of methods.
* Typical usage is:
* <code>
* $playintegrityService = new Google\Service\PlayIntegrity(...);
* $deviceRecall = $playintegrityService->deviceRecall;
* </code>
*/
class DeviceRecall extends \Google\Service\Resource
{
/**
* Writes recall bits for the device where Play Integrity API token is obtained.
* The endpoint is available to select Play partners in an early access program
* (EAP). (deviceRecall.write)
*
* @param string $packageName Required. Package name of the app the attached
* integrity token belongs to.
* @param WriteDeviceRecallRequest $postBody
* @param array $optParams Optional parameters.
* @return WriteDeviceRecallResponse
* @throws \Google\Service\Exception
*/
public function write($packageName, WriteDeviceRecallRequest $postBody, $optParams = [])
{
$params = ['packageName' => $packageName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('write', [$params], WriteDeviceRecallResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceRecall::class, 'Google_Service_PlayIntegrity_Resource_DeviceRecall');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PlayIntegrity\Resource;
use Google\Service\PlayIntegrity\DecodeIntegrityTokenRequest;
use Google\Service\PlayIntegrity\DecodeIntegrityTokenResponse;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $playintegrityService = new Google\Service\PlayIntegrity(...);
* $v1 = $playintegrityService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* Decodes the integrity token and returns the token payload.
* (v1.decodeIntegrityToken)
*
* @param string $packageName Package name of the app the attached integrity
* token belongs to.
* @param DecodeIntegrityTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return DecodeIntegrityTokenResponse
* @throws \Google\Service\Exception
*/
public function decodeIntegrityToken($packageName, DecodeIntegrityTokenRequest $postBody, $optParams = [])
{
$params = ['packageName' => $packageName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('decodeIntegrityToken', [$params], DecodeIntegrityTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_PlayIntegrity_Resource_V1');

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\PlayIntegrity;
class TestingDetails extends \Google\Model
{
/**
* @var bool
*/
public $isTestingResponse;
/**
* @param bool
*/
public function setIsTestingResponse($isTestingResponse)
{
$this->isTestingResponse = $isTestingResponse;
}
/**
* @return bool
*/
public function getIsTestingResponse()
{
return $this->isTestingResponse;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestingDetails::class, 'Google_Service_PlayIntegrity_TestingDetails');

View File

@@ -0,0 +1,122 @@
<?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\PlayIntegrity;
class TokenPayloadExternal extends \Google\Model
{
protected $accountDetailsType = AccountDetails::class;
protected $accountDetailsDataType = '';
protected $appIntegrityType = AppIntegrity::class;
protected $appIntegrityDataType = '';
protected $deviceIntegrityType = DeviceIntegrity::class;
protected $deviceIntegrityDataType = '';
protected $environmentDetailsType = EnvironmentDetails::class;
protected $environmentDetailsDataType = '';
protected $requestDetailsType = RequestDetails::class;
protected $requestDetailsDataType = '';
protected $testingDetailsType = TestingDetails::class;
protected $testingDetailsDataType = '';
/**
* @param AccountDetails
*/
public function setAccountDetails(AccountDetails $accountDetails)
{
$this->accountDetails = $accountDetails;
}
/**
* @return AccountDetails
*/
public function getAccountDetails()
{
return $this->accountDetails;
}
/**
* @param AppIntegrity
*/
public function setAppIntegrity(AppIntegrity $appIntegrity)
{
$this->appIntegrity = $appIntegrity;
}
/**
* @return AppIntegrity
*/
public function getAppIntegrity()
{
return $this->appIntegrity;
}
/**
* @param DeviceIntegrity
*/
public function setDeviceIntegrity(DeviceIntegrity $deviceIntegrity)
{
$this->deviceIntegrity = $deviceIntegrity;
}
/**
* @return DeviceIntegrity
*/
public function getDeviceIntegrity()
{
return $this->deviceIntegrity;
}
/**
* @param EnvironmentDetails
*/
public function setEnvironmentDetails(EnvironmentDetails $environmentDetails)
{
$this->environmentDetails = $environmentDetails;
}
/**
* @return EnvironmentDetails
*/
public function getEnvironmentDetails()
{
return $this->environmentDetails;
}
/**
* @param RequestDetails
*/
public function setRequestDetails(RequestDetails $requestDetails)
{
$this->requestDetails = $requestDetails;
}
/**
* @return RequestDetails
*/
public function getRequestDetails()
{
return $this->requestDetails;
}
/**
* @param TestingDetails
*/
public function setTestingDetails(TestingDetails $testingDetails)
{
$this->testingDetails = $testingDetails;
}
/**
* @return TestingDetails
*/
public function getTestingDetails()
{
return $this->testingDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TokenPayloadExternal::class, 'Google_Service_PlayIntegrity_TokenPayloadExternal');

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\PlayIntegrity;
class UserRemediationDetails extends \Google\Model
{
/**
* @var string
*/
public $remediation;
/**
* @param string
*/
public function setRemediation($remediation)
{
$this->remediation = $remediation;
}
/**
* @return string
*/
public function getRemediation()
{
return $this->remediation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserRemediationDetails::class, 'Google_Service_PlayIntegrity_UserRemediationDetails');

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\PlayIntegrity;
class Values extends \Google\Model
{
/**
* @var bool
*/
public $bitFirst;
/**
* @var bool
*/
public $bitSecond;
/**
* @var bool
*/
public $bitThird;
/**
* @param bool
*/
public function setBitFirst($bitFirst)
{
$this->bitFirst = $bitFirst;
}
/**
* @return bool
*/
public function getBitFirst()
{
return $this->bitFirst;
}
/**
* @param bool
*/
public function setBitSecond($bitSecond)
{
$this->bitSecond = $bitSecond;
}
/**
* @return bool
*/
public function getBitSecond()
{
return $this->bitSecond;
}
/**
* @param bool
*/
public function setBitThird($bitThird)
{
$this->bitThird = $bitThird;
}
/**
* @return bool
*/
public function getBitThird()
{
return $this->bitThird;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Values::class, 'Google_Service_PlayIntegrity_Values');

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\PlayIntegrity;
class WriteDates extends \Google\Model
{
/**
* @var int
*/
public $yyyymmFirst;
/**
* @var int
*/
public $yyyymmSecond;
/**
* @var int
*/
public $yyyymmThird;
/**
* @param int
*/
public function setYyyymmFirst($yyyymmFirst)
{
$this->yyyymmFirst = $yyyymmFirst;
}
/**
* @return int
*/
public function getYyyymmFirst()
{
return $this->yyyymmFirst;
}
/**
* @param int
*/
public function setYyyymmSecond($yyyymmSecond)
{
$this->yyyymmSecond = $yyyymmSecond;
}
/**
* @return int
*/
public function getYyyymmSecond()
{
return $this->yyyymmSecond;
}
/**
* @param int
*/
public function setYyyymmThird($yyyymmThird)
{
$this->yyyymmThird = $yyyymmThird;
}
/**
* @return int
*/
public function getYyyymmThird()
{
return $this->yyyymmThird;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WriteDates::class, 'Google_Service_PlayIntegrity_WriteDates');

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\PlayIntegrity;
class WriteDeviceRecallRequest extends \Google\Model
{
/**
* @var string
*/
public $integrityToken;
protected $newValuesType = Values::class;
protected $newValuesDataType = '';
/**
* @param string
*/
public function setIntegrityToken($integrityToken)
{
$this->integrityToken = $integrityToken;
}
/**
* @return string
*/
public function getIntegrityToken()
{
return $this->integrityToken;
}
/**
* @param Values
*/
public function setNewValues(Values $newValues)
{
$this->newValues = $newValues;
}
/**
* @return Values
*/
public function getNewValues()
{
return $this->newValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WriteDeviceRecallRequest::class, 'Google_Service_PlayIntegrity_WriteDeviceRecallRequest');

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\PlayIntegrity;
class WriteDeviceRecallResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WriteDeviceRecallResponse::class, 'Google_Service_PlayIntegrity_WriteDeviceRecallResponse');