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,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\Testing;
class Account extends \Google\Model
{
protected $googleAutoType = GoogleAuto::class;
protected $googleAutoDataType = '';
/**
* An automatic google login account.
*
* @param GoogleAuto $googleAuto
*/
public function setGoogleAuto(GoogleAuto $googleAuto)
{
$this->googleAuto = $googleAuto;
}
/**
* @return GoogleAuto
*/
public function getGoogleAuto()
{
return $this->googleAuto;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Account::class, 'Google_Service_Testing_Account');
@@ -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\Testing;
class AndroidDevice extends \Google\Model
{
/**
* Required. The id of the Android device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $androidModelId;
/**
* Required. The id of the Android OS version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $androidVersionId;
/**
* Required. The locale the test device used for testing. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $locale;
/**
* Required. How the device is oriented during the test. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $orientation;
/**
* Required. The id of the Android device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $androidModelId
*/
public function setAndroidModelId($androidModelId)
{
$this->androidModelId = $androidModelId;
}
/**
* @return string
*/
public function getAndroidModelId()
{
return $this->androidModelId;
}
/**
* Required. The id of the Android OS version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $androidVersionId
*/
public function setAndroidVersionId($androidVersionId)
{
$this->androidVersionId = $androidVersionId;
}
/**
* @return string
*/
public function getAndroidVersionId()
{
return $this->androidVersionId;
}
/**
* Required. The locale the test device used for testing. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Required. How the device is oriented during the test. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $orientation
*/
public function setOrientation($orientation)
{
$this->orientation = $orientation;
}
/**
* @return string
*/
public function getOrientation()
{
return $this->orientation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidDevice::class, 'Google_Service_Testing_AndroidDevice');
@@ -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\Testing;
class AndroidDeviceCatalog extends \Google\Collection
{
protected $collection_key = 'versions';
protected $modelsType = AndroidModel::class;
protected $modelsDataType = 'array';
protected $runtimeConfigurationType = AndroidRuntimeConfiguration::class;
protected $runtimeConfigurationDataType = '';
protected $versionsType = AndroidVersion::class;
protected $versionsDataType = 'array';
/**
* The set of supported Android device models.
*
* @param AndroidModel[] $models
*/
public function setModels($models)
{
$this->models = $models;
}
/**
* @return AndroidModel[]
*/
public function getModels()
{
return $this->models;
}
/**
* The set of supported runtime configurations.
*
* @param AndroidRuntimeConfiguration $runtimeConfiguration
*/
public function setRuntimeConfiguration(AndroidRuntimeConfiguration $runtimeConfiguration)
{
$this->runtimeConfiguration = $runtimeConfiguration;
}
/**
* @return AndroidRuntimeConfiguration
*/
public function getRuntimeConfiguration()
{
return $this->runtimeConfiguration;
}
/**
* The set of supported Android OS versions.
*
* @param AndroidVersion[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return AndroidVersion[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidDeviceCatalog::class, 'Google_Service_Testing_AndroidDeviceCatalog');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class AndroidDeviceList extends \Google\Collection
{
protected $collection_key = 'androidDevices';
protected $androidDevicesType = AndroidDevice::class;
protected $androidDevicesDataType = 'array';
/**
* Required. A list of Android devices.
*
* @param AndroidDevice[] $androidDevices
*/
public function setAndroidDevices($androidDevices)
{
$this->androidDevices = $androidDevices;
}
/**
* @return AndroidDevice[]
*/
public function getAndroidDevices()
{
return $this->androidDevices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidDeviceList::class, 'Google_Service_Testing_AndroidDeviceList');
@@ -0,0 +1,252 @@
<?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\Testing;
class AndroidInstrumentationTest extends \Google\Collection
{
/**
* Default value: the server will choose the mode. Currently implies that the
* test will run without the orchestrator. In the future, all instrumentation
* tests will be run with the orchestrator. Using the orchestrator is highly
* encouraged because of all the benefits it offers.
*/
public const ORCHESTRATOR_OPTION_ORCHESTRATOR_OPTION_UNSPECIFIED = 'ORCHESTRATOR_OPTION_UNSPECIFIED';
/**
* Run test using orchestrator. ** Only compatible with AndroidJUnitRunner
* version 1.1 or higher! ** Recommended.
*/
public const ORCHESTRATOR_OPTION_USE_ORCHESTRATOR = 'USE_ORCHESTRATOR';
/**
* Run test without using orchestrator.
*/
public const ORCHESTRATOR_OPTION_DO_NOT_USE_ORCHESTRATOR = 'DO_NOT_USE_ORCHESTRATOR';
protected $collection_key = 'testTargets';
protected $appApkType = FileReference::class;
protected $appApkDataType = '';
protected $appBundleType = AppBundle::class;
protected $appBundleDataType = '';
/**
* The java package for the application under test. The default value is
* determined by examining the application's manifest.
*
* @var string
*/
public $appPackageId;
/**
* The option of whether running each test within its own invocation of
* instrumentation with Android Test Orchestrator or not. ** Orchestrator is
* only compatible with AndroidJUnitRunner version 1.1 or higher! **
* Orchestrator offers the following benefits: - No shared state - Crashes are
* isolated - Logs are scoped per test See for more information about Android
* Test Orchestrator. If not set, the test will be run without the
* orchestrator.
*
* @var string
*/
public $orchestratorOption;
protected $shardingOptionType = ShardingOption::class;
protected $shardingOptionDataType = '';
protected $testApkType = FileReference::class;
protected $testApkDataType = '';
/**
* The java package for the test to be executed. The default value is
* determined by examining the application's manifest.
*
* @var string
*/
public $testPackageId;
/**
* The InstrumentationTestRunner class. The default value is determined by
* examining the application's manifest.
*
* @var string
*/
public $testRunnerClass;
/**
* Each target must be fully qualified with the package name or class name, in
* one of these formats: - "package package_name" - "class
* package_name.class_name" - "class package_name.class_name#method_name" If
* empty, all targets in the module will be run.
*
* @var string[]
*/
public $testTargets;
/**
* The APK for the application under test.
*
* @param FileReference $appApk
*/
public function setAppApk(FileReference $appApk)
{
$this->appApk = $appApk;
}
/**
* @return FileReference
*/
public function getAppApk()
{
return $this->appApk;
}
/**
* A multi-apk app bundle for the application under test.
*
* @param AppBundle $appBundle
*/
public function setAppBundle(AppBundle $appBundle)
{
$this->appBundle = $appBundle;
}
/**
* @return AppBundle
*/
public function getAppBundle()
{
return $this->appBundle;
}
/**
* The java package for the application under test. The default value is
* determined by examining the application's manifest.
*
* @param string $appPackageId
*/
public function setAppPackageId($appPackageId)
{
$this->appPackageId = $appPackageId;
}
/**
* @return string
*/
public function getAppPackageId()
{
return $this->appPackageId;
}
/**
* The option of whether running each test within its own invocation of
* instrumentation with Android Test Orchestrator or not. ** Orchestrator is
* only compatible with AndroidJUnitRunner version 1.1 or higher! **
* Orchestrator offers the following benefits: - No shared state - Crashes are
* isolated - Logs are scoped per test See for more information about Android
* Test Orchestrator. If not set, the test will be run without the
* orchestrator.
*
* Accepted values: ORCHESTRATOR_OPTION_UNSPECIFIED, USE_ORCHESTRATOR,
* DO_NOT_USE_ORCHESTRATOR
*
* @param self::ORCHESTRATOR_OPTION_* $orchestratorOption
*/
public function setOrchestratorOption($orchestratorOption)
{
$this->orchestratorOption = $orchestratorOption;
}
/**
* @return self::ORCHESTRATOR_OPTION_*
*/
public function getOrchestratorOption()
{
return $this->orchestratorOption;
}
/**
* The option to run tests in multiple shards in parallel.
*
* @param ShardingOption $shardingOption
*/
public function setShardingOption(ShardingOption $shardingOption)
{
$this->shardingOption = $shardingOption;
}
/**
* @return ShardingOption
*/
public function getShardingOption()
{
return $this->shardingOption;
}
/**
* Required. The APK containing the test code to be executed.
*
* @param FileReference $testApk
*/
public function setTestApk(FileReference $testApk)
{
$this->testApk = $testApk;
}
/**
* @return FileReference
*/
public function getTestApk()
{
return $this->testApk;
}
/**
* The java package for the test to be executed. The default value is
* determined by examining the application's manifest.
*
* @param string $testPackageId
*/
public function setTestPackageId($testPackageId)
{
$this->testPackageId = $testPackageId;
}
/**
* @return string
*/
public function getTestPackageId()
{
return $this->testPackageId;
}
/**
* The InstrumentationTestRunner class. The default value is determined by
* examining the application's manifest.
*
* @param string $testRunnerClass
*/
public function setTestRunnerClass($testRunnerClass)
{
$this->testRunnerClass = $testRunnerClass;
}
/**
* @return string
*/
public function getTestRunnerClass()
{
return $this->testRunnerClass;
}
/**
* Each target must be fully qualified with the package name or class name, in
* one of these formats: - "package package_name" - "class
* package_name.class_name" - "class package_name.class_name#method_name" If
* empty, all targets in the module will be run.
*
* @param string[] $testTargets
*/
public function setTestTargets($testTargets)
{
$this->testTargets = $testTargets;
}
/**
* @return string[]
*/
public function getTestTargets()
{
return $this->testTargets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidInstrumentationTest::class, 'Google_Service_Testing_AndroidInstrumentationTest');
@@ -0,0 +1,123 @@
<?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\Testing;
class AndroidMatrix extends \Google\Collection
{
protected $collection_key = 'orientations';
/**
* Required. The ids of the set of Android device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string[]
*/
public $androidModelIds;
/**
* Required. The ids of the set of Android OS version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string[]
*/
public $androidVersionIds;
/**
* Required. The set of locales the test device will enable for testing. Use
* the TestEnvironmentDiscoveryService to get supported options.
*
* @var string[]
*/
public $locales;
/**
* Required. The set of orientations to test with. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string[]
*/
public $orientations;
/**
* Required. The ids of the set of Android device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string[] $androidModelIds
*/
public function setAndroidModelIds($androidModelIds)
{
$this->androidModelIds = $androidModelIds;
}
/**
* @return string[]
*/
public function getAndroidModelIds()
{
return $this->androidModelIds;
}
/**
* Required. The ids of the set of Android OS version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string[] $androidVersionIds
*/
public function setAndroidVersionIds($androidVersionIds)
{
$this->androidVersionIds = $androidVersionIds;
}
/**
* @return string[]
*/
public function getAndroidVersionIds()
{
return $this->androidVersionIds;
}
/**
* Required. The set of locales the test device will enable for testing. Use
* the TestEnvironmentDiscoveryService to get supported options.
*
* @param string[] $locales
*/
public function setLocales($locales)
{
$this->locales = $locales;
}
/**
* @return string[]
*/
public function getLocales()
{
return $this->locales;
}
/**
* Required. The set of orientations to test with. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string[] $orientations
*/
public function setOrientations($orientations)
{
$this->orientations = $orientations;
}
/**
* @return string[]
*/
public function getOrientations()
{
return $this->orientations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidMatrix::class, 'Google_Service_Testing_AndroidMatrix');
@@ -0,0 +1,490 @@
<?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\Testing;
class AndroidModel extends \Google\Collection
{
/**
* Do not use. For proto versioning only.
*/
public const FORM_DEVICE_FORM_UNSPECIFIED = 'DEVICE_FORM_UNSPECIFIED';
/**
* Android virtual device using Compute Engine native virtualization. Firebase
* Test Lab only.
*/
public const FORM_VIRTUAL = 'VIRTUAL';
/**
* Actual hardware.
*/
public const FORM_PHYSICAL = 'PHYSICAL';
/**
* Android virtual device using emulator in nested virtualization. Equivalent
* to Android Studio.
*/
public const FORM_EMULATOR = 'EMULATOR';
/**
* Do not use. For proto versioning only.
*/
public const FORM_FACTOR_DEVICE_FORM_FACTOR_UNSPECIFIED = 'DEVICE_FORM_FACTOR_UNSPECIFIED';
/**
* This device has the shape of a phone.
*/
public const FORM_FACTOR_PHONE = 'PHONE';
/**
* This device has the shape of a tablet.
*/
public const FORM_FACTOR_TABLET = 'TABLET';
/**
* This device has the shape of a watch or other wearable.
*/
public const FORM_FACTOR_WEARABLE = 'WEARABLE';
/**
* This device has a television form factor.
*/
public const FORM_FACTOR_TV = 'TV';
/**
* This device has an automotive form factor.
*/
public const FORM_FACTOR_AUTOMOTIVE = 'AUTOMOTIVE';
/**
* This device has a desktop form factor.
*/
public const FORM_FACTOR_DESKTOP = 'DESKTOP';
/**
* This device has an Extended Reality form factor.
*/
public const FORM_FACTOR_XR = 'XR';
protected $collection_key = 'tags';
/**
* Reasons for access denial. This model is accessible if this list is empty,
* otherwise the model is viewable only.
*
* @var string[]
*/
public $accessDeniedReasons;
/**
* The company that this device is branded with. Example: "Google", "Samsung".
*
* @var string
*/
public $brand;
/**
* The name of the industrial design. This corresponds to
* android.os.Build.DEVICE.
*
* @var string
*/
public $codename;
/**
* Whether this device is virtual or physical.
*
* @var string
*/
public $form;
/**
* Whether this device is a phone, tablet, wearable, etc.
*
* @var string
*/
public $formFactor;
/**
* The unique opaque id for this model. Use this for invoking the
* TestExecutionService.
*
* @var string
*/
public $id;
protected $labInfoType = LabInfo::class;
protected $labInfoDataType = '';
/**
* True if and only if tests with this model are recorded by stitching
* together screenshots. See use_low_spec_video_recording in device config.
*
* @var bool
*/
public $lowFpsVideoRecording;
/**
* The manufacturer of this device.
*
* @var string
*/
public $manufacturer;
/**
* The human-readable marketing name for this device model. Examples: "Nexus
* 5", "Galaxy S5".
*
* @var string
*/
public $name;
protected $perVersionInfoType = PerAndroidVersionInfo::class;
protected $perVersionInfoDataType = 'array';
/**
* Screen density in DPI. This corresponds to ro.sf.lcd_density
*
* @var int
*/
public $screenDensity;
/**
* Screen size in the horizontal (X) dimension measured in pixels.
*
* @var int
*/
public $screenX;
/**
* Screen size in the vertical (Y) dimension measured in pixels.
*
* @var int
*/
public $screenY;
/**
* The list of supported ABIs for this device. This corresponds to either
* android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or
* android.os.Build.CPU_ABI/CPU_ABI2. The most preferred ABI is the first
* element in the list. Elements are optionally prefixed by "version_id:"
* (where version_id is the id of an AndroidVersion), denoting an ABI that is
* supported only on a particular version.
*
* @var string[]
*/
public $supportedAbis;
/**
* The set of Android versions this device supports.
*
* @var string[]
*/
public $supportedVersionIds;
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @var string[]
*/
public $tags;
/**
* URL of a thumbnail image (photo) of the device.
*
* @var string
*/
public $thumbnailUrl;
/**
* Reasons for access denial. This model is accessible if this list is empty,
* otherwise the model is viewable only.
*
* @param string[] $accessDeniedReasons
*/
public function setAccessDeniedReasons($accessDeniedReasons)
{
$this->accessDeniedReasons = $accessDeniedReasons;
}
/**
* @return string[]
*/
public function getAccessDeniedReasons()
{
return $this->accessDeniedReasons;
}
/**
* The company that this device is branded with. Example: "Google", "Samsung".
*
* @param string $brand
*/
public function setBrand($brand)
{
$this->brand = $brand;
}
/**
* @return string
*/
public function getBrand()
{
return $this->brand;
}
/**
* The name of the industrial design. This corresponds to
* android.os.Build.DEVICE.
*
* @param string $codename
*/
public function setCodename($codename)
{
$this->codename = $codename;
}
/**
* @return string
*/
public function getCodename()
{
return $this->codename;
}
/**
* Whether this device is virtual or physical.
*
* Accepted values: DEVICE_FORM_UNSPECIFIED, VIRTUAL, PHYSICAL, EMULATOR
*
* @param self::FORM_* $form
*/
public function setForm($form)
{
$this->form = $form;
}
/**
* @return self::FORM_*
*/
public function getForm()
{
return $this->form;
}
/**
* Whether this device is a phone, tablet, wearable, etc.
*
* Accepted values: DEVICE_FORM_FACTOR_UNSPECIFIED, PHONE, TABLET, WEARABLE,
* TV, AUTOMOTIVE, DESKTOP, XR
*
* @param self::FORM_FACTOR_* $formFactor
*/
public function setFormFactor($formFactor)
{
$this->formFactor = $formFactor;
}
/**
* @return self::FORM_FACTOR_*
*/
public function getFormFactor()
{
return $this->formFactor;
}
/**
* The unique opaque id for this model. Use this for invoking the
* TestExecutionService.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Lab info of this device.
*
* @param LabInfo $labInfo
*/
public function setLabInfo(LabInfo $labInfo)
{
$this->labInfo = $labInfo;
}
/**
* @return LabInfo
*/
public function getLabInfo()
{
return $this->labInfo;
}
/**
* True if and only if tests with this model are recorded by stitching
* together screenshots. See use_low_spec_video_recording in device config.
*
* @param bool $lowFpsVideoRecording
*/
public function setLowFpsVideoRecording($lowFpsVideoRecording)
{
$this->lowFpsVideoRecording = $lowFpsVideoRecording;
}
/**
* @return bool
*/
public function getLowFpsVideoRecording()
{
return $this->lowFpsVideoRecording;
}
/**
* The manufacturer of this device.
*
* @param string $manufacturer
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* The human-readable marketing name for this device model. Examples: "Nexus
* 5", "Galaxy S5".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Version-specific information of an Android model.
*
* @param PerAndroidVersionInfo[] $perVersionInfo
*/
public function setPerVersionInfo($perVersionInfo)
{
$this->perVersionInfo = $perVersionInfo;
}
/**
* @return PerAndroidVersionInfo[]
*/
public function getPerVersionInfo()
{
return $this->perVersionInfo;
}
/**
* Screen density in DPI. This corresponds to ro.sf.lcd_density
*
* @param int $screenDensity
*/
public function setScreenDensity($screenDensity)
{
$this->screenDensity = $screenDensity;
}
/**
* @return int
*/
public function getScreenDensity()
{
return $this->screenDensity;
}
/**
* Screen size in the horizontal (X) dimension measured in pixels.
*
* @param int $screenX
*/
public function setScreenX($screenX)
{
$this->screenX = $screenX;
}
/**
* @return int
*/
public function getScreenX()
{
return $this->screenX;
}
/**
* Screen size in the vertical (Y) dimension measured in pixels.
*
* @param int $screenY
*/
public function setScreenY($screenY)
{
$this->screenY = $screenY;
}
/**
* @return int
*/
public function getScreenY()
{
return $this->screenY;
}
/**
* The list of supported ABIs for this device. This corresponds to either
* android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or
* android.os.Build.CPU_ABI/CPU_ABI2. The most preferred ABI is the first
* element in the list. Elements are optionally prefixed by "version_id:"
* (where version_id is the id of an AndroidVersion), denoting an ABI that is
* supported only on a particular version.
*
* @param string[] $supportedAbis
*/
public function setSupportedAbis($supportedAbis)
{
$this->supportedAbis = $supportedAbis;
}
/**
* @return string[]
*/
public function getSupportedAbis()
{
return $this->supportedAbis;
}
/**
* The set of Android versions this device supports.
*
* @param string[] $supportedVersionIds
*/
public function setSupportedVersionIds($supportedVersionIds)
{
$this->supportedVersionIds = $supportedVersionIds;
}
/**
* @return string[]
*/
public function getSupportedVersionIds()
{
return $this->supportedVersionIds;
}
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* URL of a thumbnail image (photo) of the device.
*
* @param string $thumbnailUrl
*/
public function setThumbnailUrl($thumbnailUrl)
{
$this->thumbnailUrl = $thumbnailUrl;
}
/**
* @return string
*/
public function getThumbnailUrl()
{
return $this->thumbnailUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidModel::class, 'Google_Service_Testing_AndroidModel');
@@ -0,0 +1,262 @@
<?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\Testing;
class AndroidRoboTest extends \Google\Collection
{
/**
* This means that the server should choose the mode. Recommended.
*/
public const ROBO_MODE_ROBO_MODE_UNSPECIFIED = 'ROBO_MODE_UNSPECIFIED';
/**
* Runs Robo in UIAutomator-only mode without app resigning
*/
public const ROBO_MODE_ROBO_VERSION_1 = 'ROBO_VERSION_1';
/**
* Deprecated: Use ROBO_VERSION_1 instead for all use cases. Runs Robo in
* standard Espresso with UIAutomator fallback
*
* @deprecated
*/
public const ROBO_MODE_ROBO_VERSION_2 = 'ROBO_VERSION_2';
protected $collection_key = 'startingIntents';
protected $appApkType = FileReference::class;
protected $appApkDataType = '';
protected $appBundleType = AppBundle::class;
protected $appBundleDataType = '';
/**
* The initial activity that should be used to start the app.
*
* @var string
*/
public $appInitialActivity;
/**
* The java package for the application under test. The default value is
* determined by examining the application's manifest.
*
* @var string
*/
public $appPackageId;
/**
* The max depth of the traversal stack Robo can explore. Needs to be at least
* 2 to make Robo explore the app beyond the first activity. Default is 50.
*
* @deprecated
* @var int
*/
public $maxDepth;
/**
* The max number of steps Robo can execute. Default is no limit.
*
* @deprecated
* @var int
*/
public $maxSteps;
protected $roboDirectivesType = RoboDirective::class;
protected $roboDirectivesDataType = 'array';
/**
* The mode in which Robo should run. Most clients should allow the server to
* populate this field automatically.
*
* @var string
*/
public $roboMode;
protected $roboScriptType = FileReference::class;
protected $roboScriptDataType = '';
protected $startingIntentsType = RoboStartingIntent::class;
protected $startingIntentsDataType = 'array';
/**
* The APK for the application under test.
*
* @param FileReference $appApk
*/
public function setAppApk(FileReference $appApk)
{
$this->appApk = $appApk;
}
/**
* @return FileReference
*/
public function getAppApk()
{
return $this->appApk;
}
/**
* A multi-apk app bundle for the application under test.
*
* @param AppBundle $appBundle
*/
public function setAppBundle(AppBundle $appBundle)
{
$this->appBundle = $appBundle;
}
/**
* @return AppBundle
*/
public function getAppBundle()
{
return $this->appBundle;
}
/**
* The initial activity that should be used to start the app.
*
* @param string $appInitialActivity
*/
public function setAppInitialActivity($appInitialActivity)
{
$this->appInitialActivity = $appInitialActivity;
}
/**
* @return string
*/
public function getAppInitialActivity()
{
return $this->appInitialActivity;
}
/**
* The java package for the application under test. The default value is
* determined by examining the application's manifest.
*
* @param string $appPackageId
*/
public function setAppPackageId($appPackageId)
{
$this->appPackageId = $appPackageId;
}
/**
* @return string
*/
public function getAppPackageId()
{
return $this->appPackageId;
}
/**
* The max depth of the traversal stack Robo can explore. Needs to be at least
* 2 to make Robo explore the app beyond the first activity. Default is 50.
*
* @deprecated
* @param int $maxDepth
*/
public function setMaxDepth($maxDepth)
{
$this->maxDepth = $maxDepth;
}
/**
* @deprecated
* @return int
*/
public function getMaxDepth()
{
return $this->maxDepth;
}
/**
* The max number of steps Robo can execute. Default is no limit.
*
* @deprecated
* @param int $maxSteps
*/
public function setMaxSteps($maxSteps)
{
$this->maxSteps = $maxSteps;
}
/**
* @deprecated
* @return int
*/
public function getMaxSteps()
{
return $this->maxSteps;
}
/**
* A set of directives Robo should apply during the crawl. This allows users
* to customize the crawl. For example, the username and password for a test
* account can be provided.
*
* @param RoboDirective[] $roboDirectives
*/
public function setRoboDirectives($roboDirectives)
{
$this->roboDirectives = $roboDirectives;
}
/**
* @return RoboDirective[]
*/
public function getRoboDirectives()
{
return $this->roboDirectives;
}
/**
* The mode in which Robo should run. Most clients should allow the server to
* populate this field automatically.
*
* Accepted values: ROBO_MODE_UNSPECIFIED, ROBO_VERSION_1, ROBO_VERSION_2
*
* @param self::ROBO_MODE_* $roboMode
*/
public function setRoboMode($roboMode)
{
$this->roboMode = $roboMode;
}
/**
* @return self::ROBO_MODE_*
*/
public function getRoboMode()
{
return $this->roboMode;
}
/**
* A JSON file with a sequence of actions Robo should perform as a prologue
* for the crawl.
*
* @param FileReference $roboScript
*/
public function setRoboScript(FileReference $roboScript)
{
$this->roboScript = $roboScript;
}
/**
* @return FileReference
*/
public function getRoboScript()
{
return $this->roboScript;
}
/**
* The intents used to launch the app for the crawl. If none are provided,
* then the main launcher activity is launched. If some are provided, then
* only those provided are launched (the main launcher activity must be
* provided explicitly).
*
* @param RoboStartingIntent[] $startingIntents
*/
public function setStartingIntents($startingIntents)
{
$this->startingIntents = $startingIntents;
}
/**
* @return RoboStartingIntent[]
*/
public function getStartingIntents()
{
return $this->startingIntents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidRoboTest::class, 'Google_Service_Testing_AndroidRoboTest');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class AndroidRuntimeConfiguration extends \Google\Collection
{
protected $collection_key = 'orientations';
protected $localesType = Locale::class;
protected $localesDataType = 'array';
protected $orientationsType = Orientation::class;
protected $orientationsDataType = 'array';
/**
* The set of available locales.
*
* @param Locale[] $locales
*/
public function setLocales($locales)
{
$this->locales = $locales;
}
/**
* @return Locale[]
*/
public function getLocales()
{
return $this->locales;
}
/**
* The set of available orientations.
*
* @param Orientation[] $orientations
*/
public function setOrientations($orientations)
{
$this->orientations = $orientations;
}
/**
* @return Orientation[]
*/
public function getOrientations()
{
return $this->orientations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidRuntimeConfiguration::class, 'Google_Service_Testing_AndroidRuntimeConfiguration');
@@ -0,0 +1,143 @@
<?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\Testing;
class AndroidTestLoop extends \Google\Collection
{
protected $collection_key = 'scenarios';
protected $appApkType = FileReference::class;
protected $appApkDataType = '';
protected $appBundleType = AppBundle::class;
protected $appBundleDataType = '';
/**
* The java package for the application under test. The default is determined
* by examining the application's manifest.
*
* @var string
*/
public $appPackageId;
/**
* The list of scenario labels that should be run during the test. The
* scenario labels should map to labels defined in the application's manifest.
* For example, player_experience and com.google.test.loops.player_experience
* add all of the loops labeled in the manifest with the
* com.google.test.loops.player_experience name to the execution. Scenarios
* can also be specified in the scenarios field.
*
* @var string[]
*/
public $scenarioLabels;
/**
* The list of scenarios that should be run during the test. The default is
* all test loops, derived from the application's manifest.
*
* @var int[]
*/
public $scenarios;
/**
* The APK for the application under test.
*
* @param FileReference $appApk
*/
public function setAppApk(FileReference $appApk)
{
$this->appApk = $appApk;
}
/**
* @return FileReference
*/
public function getAppApk()
{
return $this->appApk;
}
/**
* A multi-apk app bundle for the application under test.
*
* @param AppBundle $appBundle
*/
public function setAppBundle(AppBundle $appBundle)
{
$this->appBundle = $appBundle;
}
/**
* @return AppBundle
*/
public function getAppBundle()
{
return $this->appBundle;
}
/**
* The java package for the application under test. The default is determined
* by examining the application's manifest.
*
* @param string $appPackageId
*/
public function setAppPackageId($appPackageId)
{
$this->appPackageId = $appPackageId;
}
/**
* @return string
*/
public function getAppPackageId()
{
return $this->appPackageId;
}
/**
* The list of scenario labels that should be run during the test. The
* scenario labels should map to labels defined in the application's manifest.
* For example, player_experience and com.google.test.loops.player_experience
* add all of the loops labeled in the manifest with the
* com.google.test.loops.player_experience name to the execution. Scenarios
* can also be specified in the scenarios field.
*
* @param string[] $scenarioLabels
*/
public function setScenarioLabels($scenarioLabels)
{
$this->scenarioLabels = $scenarioLabels;
}
/**
* @return string[]
*/
public function getScenarioLabels()
{
return $this->scenarioLabels;
}
/**
* The list of scenarios that should be run during the test. The default is
* all test loops, derived from the application's manifest.
*
* @param int[] $scenarios
*/
public function setScenarios($scenarios)
{
$this->scenarios = $scenarios;
}
/**
* @return int[]
*/
public function getScenarios()
{
return $this->scenarios;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidTestLoop::class, 'Google_Service_Testing_AndroidTestLoop');
@@ -0,0 +1,177 @@
<?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\Testing;
class AndroidVersion extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* The API level for this Android version. Examples: 18, 19.
*
* @var int
*/
public $apiLevel;
/**
* The code name for this Android version. Examples: "JellyBean", "KitKat".
*
* @var string
*/
public $codeName;
protected $distributionType = Distribution::class;
protected $distributionDataType = '';
/**
* An opaque id for this Android version. Use this id to invoke the
* TestExecutionService.
*
* @var string
*/
public $id;
protected $releaseDateType = Date::class;
protected $releaseDateDataType = '';
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @var string[]
*/
public $tags;
/**
* A string representing this version of the Android OS. Examples: "4.3",
* "4.4".
*
* @var string
*/
public $versionString;
/**
* The API level for this Android version. Examples: 18, 19.
*
* @param int $apiLevel
*/
public function setApiLevel($apiLevel)
{
$this->apiLevel = $apiLevel;
}
/**
* @return int
*/
public function getApiLevel()
{
return $this->apiLevel;
}
/**
* The code name for this Android version. Examples: "JellyBean", "KitKat".
*
* @param string $codeName
*/
public function setCodeName($codeName)
{
$this->codeName = $codeName;
}
/**
* @return string
*/
public function getCodeName()
{
return $this->codeName;
}
/**
* Market share for this version.
*
* @param Distribution $distribution
*/
public function setDistribution(Distribution $distribution)
{
$this->distribution = $distribution;
}
/**
* @return Distribution
*/
public function getDistribution()
{
return $this->distribution;
}
/**
* An opaque id for this Android version. Use this id to invoke the
* TestExecutionService.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The date this Android version became available in the market.
*
* @param Date $releaseDate
*/
public function setReleaseDate(Date $releaseDate)
{
$this->releaseDate = $releaseDate;
}
/**
* @return Date
*/
public function getReleaseDate()
{
return $this->releaseDate;
}
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* A string representing this version of the Android OS. Examples: "4.3",
* "4.4".
*
* @param string $versionString
*/
public function setVersionString($versionString)
{
$this->versionString = $versionString;
}
/**
* @return string
*/
public function getVersionString()
{
return $this->versionString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AndroidVersion::class, 'Google_Service_Testing_AndroidVersion');
+68
View File
@@ -0,0 +1,68 @@
<?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\Testing;
class Apk extends \Google\Model
{
protected $locationType = FileReference::class;
protected $locationDataType = '';
/**
* The java package for the APK to be installed. Value is determined by
* examining the application's manifest.
*
* @var string
*/
public $packageName;
/**
* The path to an APK to be installed on the device before the test begins.
*
* @param FileReference $location
*/
public function setLocation(FileReference $location)
{
$this->location = $location;
}
/**
* @return FileReference
*/
public function getLocation()
{
return $this->location;
}
/**
* The java package for the APK to be installed. Value is determined by
* examining the application's manifest.
*
* @param string $packageName
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Apk::class, 'Google_Service_Testing_Apk');
@@ -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\Testing;
class ApkDetail extends \Google\Model
{
protected $apkManifestType = ApkManifest::class;
protected $apkManifestDataType = '';
/**
* @param ApkManifest $apkManifest
*/
public function setApkManifest(ApkManifest $apkManifest)
{
$this->apkManifest = $apkManifest;
}
/**
* @return ApkManifest
*/
public function getApkManifest()
{
return $this->apkManifest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApkDetail::class, 'Google_Service_Testing_ApkDetail');
@@ -0,0 +1,287 @@
<?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\Testing;
class ApkManifest extends \Google\Collection
{
protected $collection_key = 'usesPermissionTags';
/**
* User-readable name for the application.
*
* @var string
*/
public $applicationLabel;
protected $intentFiltersType = IntentFilter::class;
protected $intentFiltersDataType = 'array';
/**
* Maximum API level on which the application is designed to run.
*
* @var int
*/
public $maxSdkVersion;
protected $metadataType = Metadata::class;
protected $metadataDataType = 'array';
/**
* Minimum API level required for the application to run.
*
* @var int
*/
public $minSdkVersion;
/**
* Full Java-style package name for this application, e.g. "com.example.foo".
*
* @var string
*/
public $packageName;
protected $servicesType = Service::class;
protected $servicesDataType = 'array';
/**
* Specifies the API Level on which the application is designed to run.
*
* @var int
*/
public $targetSdkVersion;
protected $usesFeatureType = UsesFeature::class;
protected $usesFeatureDataType = 'array';
/**
* @var string[]
*/
public $usesPermission;
protected $usesPermissionTagsType = UsesPermissionTag::class;
protected $usesPermissionTagsDataType = 'array';
/**
* Version number used internally by the app.
*
* @var string
*/
public $versionCode;
/**
* Version number shown to users.
*
* @var string
*/
public $versionName;
/**
* User-readable name for the application.
*
* @param string $applicationLabel
*/
public function setApplicationLabel($applicationLabel)
{
$this->applicationLabel = $applicationLabel;
}
/**
* @return string
*/
public function getApplicationLabel()
{
return $this->applicationLabel;
}
/**
* @param IntentFilter[] $intentFilters
*/
public function setIntentFilters($intentFilters)
{
$this->intentFilters = $intentFilters;
}
/**
* @return IntentFilter[]
*/
public function getIntentFilters()
{
return $this->intentFilters;
}
/**
* Maximum API level on which the application is designed to run.
*
* @param int $maxSdkVersion
*/
public function setMaxSdkVersion($maxSdkVersion)
{
$this->maxSdkVersion = $maxSdkVersion;
}
/**
* @return int
*/
public function getMaxSdkVersion()
{
return $this->maxSdkVersion;
}
/**
* Meta-data tags defined in the manifest.
*
* @param Metadata[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Minimum API level required for the application to run.
*
* @param int $minSdkVersion
*/
public function setMinSdkVersion($minSdkVersion)
{
$this->minSdkVersion = $minSdkVersion;
}
/**
* @return int
*/
public function getMinSdkVersion()
{
return $this->minSdkVersion;
}
/**
* Full Java-style package name for this application, e.g. "com.example.foo".
*
* @param string $packageName
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* Services contained in the tag.
*
* @param Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return Service[]
*/
public function getServices()
{
return $this->services;
}
/**
* Specifies the API Level on which the application is designed to run.
*
* @param int $targetSdkVersion
*/
public function setTargetSdkVersion($targetSdkVersion)
{
$this->targetSdkVersion = $targetSdkVersion;
}
/**
* @return int
*/
public function getTargetSdkVersion()
{
return $this->targetSdkVersion;
}
/**
* Feature usage tags defined in the manifest.
*
* @param UsesFeature[] $usesFeature
*/
public function setUsesFeature($usesFeature)
{
$this->usesFeature = $usesFeature;
}
/**
* @return UsesFeature[]
*/
public function getUsesFeature()
{
return $this->usesFeature;
}
/**
* @param string[] $usesPermission
*/
public function setUsesPermission($usesPermission)
{
$this->usesPermission = $usesPermission;
}
/**
* @return string[]
*/
public function getUsesPermission()
{
return $this->usesPermission;
}
/**
* Permissions declared to be used by the application
*
* @param UsesPermissionTag[] $usesPermissionTags
*/
public function setUsesPermissionTags($usesPermissionTags)
{
$this->usesPermissionTags = $usesPermissionTags;
}
/**
* @return UsesPermissionTag[]
*/
public function getUsesPermissionTags()
{
return $this->usesPermissionTags;
}
/**
* Version number used internally by the app.
*
* @param string $versionCode
*/
public function setVersionCode($versionCode)
{
$this->versionCode = $versionCode;
}
/**
* @return string
*/
public function getVersionCode()
{
return $this->versionCode;
}
/**
* Version number shown to users.
*
* @param string $versionName
*/
public function setVersionName($versionName)
{
$this->versionName = $versionName;
}
/**
* @return string
*/
public function getVersionName()
{
return $this->versionName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApkManifest::class, 'Google_Service_Testing_ApkManifest');
@@ -0,0 +1,48 @@
<?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\Testing;
class ApkSplits extends \Google\Collection
{
protected $collection_key = 'bundleSplits';
protected $bundleSplitsType = FileReference::class;
protected $bundleSplitsDataType = 'array';
/**
* A list of .apk files generated by bundletool to install to the device under
* test as a single android app with adb install-multiple. If specified,
* requires one or more bundle_splits. The first split specified represents
* the base APK, while subsequent splits represent feature apks.
*
* @param FileReference[] $bundleSplits
*/
public function setBundleSplits($bundleSplits)
{
$this->bundleSplits = $bundleSplits;
}
/**
* @return FileReference[]
*/
public function getBundleSplits()
{
return $this->bundleSplits;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApkSplits::class, 'Google_Service_Testing_ApkSplits');
@@ -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\Testing;
class AppBundle extends \Google\Model
{
protected $apksType = ApkSplits::class;
protected $apksDataType = '';
protected $bundleLocationType = FileReference::class;
protected $bundleLocationDataType = '';
/**
* .apk files generated by bundletool to install as a single android app.
*
* @param ApkSplits $apks
*/
public function setApks(ApkSplits $apks)
{
$this->apks = $apks;
}
/**
* @return ApkSplits
*/
public function getApks()
{
return $this->apks;
}
/**
* .aab file representing the app bundle under test.
*
* @param FileReference $bundleLocation
*/
public function setBundleLocation(FileReference $bundleLocation)
{
$this->bundleLocation = $bundleLocation;
}
/**
* @return FileReference
*/
public function getBundleLocation()
{
return $this->bundleLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppBundle::class, 'Google_Service_Testing_AppBundle');
@@ -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\Testing;
class CancelDeviceSessionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelDeviceSessionRequest::class, 'Google_Service_Testing_CancelDeviceSessionRequest');
@@ -0,0 +1,110 @@
<?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\Testing;
class CancelTestMatrixResponse extends \Google\Model
{
/**
* Do not use. For proto versioning only.
*/
public const TEST_STATE_TEST_STATE_UNSPECIFIED = 'TEST_STATE_UNSPECIFIED';
/**
* The execution or matrix is being validated.
*/
public const TEST_STATE_VALIDATING = 'VALIDATING';
/**
* The execution or matrix is waiting for resources to become available.
*/
public const TEST_STATE_PENDING = 'PENDING';
/**
* The execution is currently being processed. Can only be set on an
* execution.
*/
public const TEST_STATE_RUNNING = 'RUNNING';
/**
* The execution or matrix has terminated normally. On a matrix this means
* that the matrix level processing completed normally, but individual
* executions may be in an ERROR state.
*/
public const TEST_STATE_FINISHED = 'FINISHED';
/**
* The execution or matrix has stopped because it encountered an
* infrastructure failure.
*/
public const TEST_STATE_ERROR = 'ERROR';
/**
* The execution was not run because it corresponds to a unsupported
* environment. Can only be set on an execution.
*/
public const TEST_STATE_UNSUPPORTED_ENVIRONMENT = 'UNSUPPORTED_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested environment. Example: requested AndroidVersion is lower than
* APK's minSdkVersion Can only be set on an execution.
*/
public const TEST_STATE_INCOMPATIBLE_ENVIRONMENT = 'INCOMPATIBLE_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested architecture. Example: requested device does not support
* running the native code in the supplied APK Can only be set on an
* execution.
*/
public const TEST_STATE_INCOMPATIBLE_ARCHITECTURE = 'INCOMPATIBLE_ARCHITECTURE';
/**
* The user cancelled the execution. Can only be set on an execution.
*/
public const TEST_STATE_CANCELLED = 'CANCELLED';
/**
* The execution or matrix was not run because the provided inputs are not
* valid. Examples: input file is not of the expected type, is
* malformed/corrupt, or was flagged as malware
*/
public const TEST_STATE_INVALID = 'INVALID';
/**
* The current rolled-up state of the test matrix. If this state is already
* final, then the cancelation request will have no effect.
*
* @var string
*/
public $testState;
/**
* The current rolled-up state of the test matrix. If this state is already
* final, then the cancelation request will have no effect.
*
* Accepted values: TEST_STATE_UNSPECIFIED, VALIDATING, PENDING, RUNNING,
* FINISHED, ERROR, UNSUPPORTED_ENVIRONMENT, INCOMPATIBLE_ENVIRONMENT,
* INCOMPATIBLE_ARCHITECTURE, CANCELLED, INVALID
*
* @param self::TEST_STATE_* $testState
*/
public function setTestState($testState)
{
$this->testState = $testState;
}
/**
* @return self::TEST_STATE_*
*/
public function getTestState()
{
return $this->testState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelTestMatrixResponse::class, 'Google_Service_Testing_CancelTestMatrixResponse');
@@ -0,0 +1,67 @@
<?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\Testing;
class ClientInfo extends \Google\Collection
{
protected $collection_key = 'clientInfoDetails';
protected $clientInfoDetailsType = ClientInfoDetail::class;
protected $clientInfoDetailsDataType = 'array';
/**
* Required. Client name, such as gcloud.
*
* @var string
*/
public $name;
/**
* The list of detailed information about client.
*
* @param ClientInfoDetail[] $clientInfoDetails
*/
public function setClientInfoDetails($clientInfoDetails)
{
$this->clientInfoDetails = $clientInfoDetails;
}
/**
* @return ClientInfoDetail[]
*/
public function getClientInfoDetails()
{
return $this->clientInfoDetails;
}
/**
* Required. Client name, such as gcloud.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientInfo::class, 'Google_Service_Testing_ClientInfo');
@@ -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\Testing;
class ClientInfoDetail extends \Google\Model
{
/**
* Required. The key of detailed client information.
*
* @var string
*/
public $key;
/**
* Required. The value of detailed client information.
*
* @var string
*/
public $value;
/**
* Required. The key of detailed client information.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Required. The value of detailed client information.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientInfoDetail::class, 'Google_Service_Testing_ClientInfoDetail');
+100
View File
@@ -0,0 +1,100 @@
<?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\Testing;
class Date extends \Google\Model
{
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @var int
*/
public $day;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @var int
*/
public $month;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @var int
*/
public $year;
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
* to specify a year by itself or a year and month where the day isn't
* significant.
*
* @param int $day
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a
* month and day.
*
* @param int $month
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
* year.
*
* @param int $year
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Testing_Date');
@@ -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\Testing;
class DeviceFile extends \Google\Model
{
protected $obbFileType = ObbFile::class;
protected $obbFileDataType = '';
protected $regularFileType = RegularFile::class;
protected $regularFileDataType = '';
/**
* A reference to an opaque binary blob file.
*
* @param ObbFile $obbFile
*/
public function setObbFile(ObbFile $obbFile)
{
$this->obbFile = $obbFile;
}
/**
* @return ObbFile
*/
public function getObbFile()
{
return $this->obbFile;
}
/**
* A reference to a regular file.
*
* @param RegularFile $regularFile
*/
public function setRegularFile(RegularFile $regularFile)
{
$this->regularFile = $regularFile;
}
/**
* @return RegularFile
*/
public function getRegularFile()
{
return $this->regularFile;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceFile::class, 'Google_Service_Testing_DeviceFile');
@@ -0,0 +1,108 @@
<?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\Testing;
class DeviceIpBlock extends \Google\Model
{
/**
* Do not use. For proto versioning only.
*/
public const FORM_DEVICE_FORM_UNSPECIFIED = 'DEVICE_FORM_UNSPECIFIED';
/**
* Android virtual device using Compute Engine native virtualization. Firebase
* Test Lab only.
*/
public const FORM_VIRTUAL = 'VIRTUAL';
/**
* Actual hardware.
*/
public const FORM_PHYSICAL = 'PHYSICAL';
/**
* Android virtual device using emulator in nested virtualization. Equivalent
* to Android Studio.
*/
public const FORM_EMULATOR = 'EMULATOR';
protected $addedDateType = Date::class;
protected $addedDateDataType = '';
/**
* An IP address block in CIDR notation eg: 34.68.194.64/29
*
* @var string
*/
public $block;
/**
* Whether this block is used by physical or virtual devices
*
* @var string
*/
public $form;
/**
* The date this block was added to Firebase Test Lab
*
* @param Date $addedDate
*/
public function setAddedDate(Date $addedDate)
{
$this->addedDate = $addedDate;
}
/**
* @return Date
*/
public function getAddedDate()
{
return $this->addedDate;
}
/**
* An IP address block in CIDR notation eg: 34.68.194.64/29
*
* @param string $block
*/
public function setBlock($block)
{
$this->block = $block;
}
/**
* @return string
*/
public function getBlock()
{
return $this->block;
}
/**
* Whether this block is used by physical or virtual devices
*
* Accepted values: DEVICE_FORM_UNSPECIFIED, VIRTUAL, PHYSICAL, EMULATOR
*
* @param self::FORM_* $form
*/
public function setForm($form)
{
$this->form = $form;
}
/**
* @return self::FORM_*
*/
public function getForm()
{
return $this->form;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceIpBlock::class, 'Google_Service_Testing_DeviceIpBlock');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class DeviceIpBlockCatalog extends \Google\Collection
{
protected $collection_key = 'ipBlocks';
protected $ipBlocksType = DeviceIpBlock::class;
protected $ipBlocksDataType = 'array';
/**
* The device IP blocks used by Firebase Test Lab
*
* @param DeviceIpBlock[] $ipBlocks
*/
public function setIpBlocks($ipBlocks)
{
$this->ipBlocks = $ipBlocks;
}
/**
* @return DeviceIpBlock[]
*/
public function getIpBlocks()
{
return $this->ipBlocks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceIpBlockCatalog::class, 'Google_Service_Testing_DeviceIpBlockCatalog');
@@ -0,0 +1,292 @@
<?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\Testing;
class DeviceSession extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const STATE_SESSION_STATE_UNSPECIFIED = 'SESSION_STATE_UNSPECIFIED';
/**
* Initial state of a session request. The session is being validated for
* correctness and a device is not yet requested.
*/
public const STATE_REQUESTED = 'REQUESTED';
/**
* The session has been validated and is in the queue for a device.
*/
public const STATE_PENDING = 'PENDING';
/**
* The session has been granted and the device is accepting connections.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The session duration exceeded the devices reservation time period and
* timed out automatically.
*/
public const STATE_EXPIRED = 'EXPIRED';
/**
* The user is finished with the session and it was canceled by the user while
* the request was still getting allocated or after allocation and during
* device usage period.
*/
public const STATE_FINISHED = 'FINISHED';
/**
* Unable to complete the session because the device was unavailable and it
* failed to allocate through the scheduler. For example, a device not in the
* catalog was requested or the request expired in the allocation queue.
*/
public const STATE_UNAVAILABLE = 'UNAVAILABLE';
/**
* Unable to complete the session for an internal reason, such as an
* infrastructure failure.
*/
public const STATE_ERROR = 'ERROR';
protected $collection_key = 'stateHistories';
/**
* Output only. The timestamp that the session first became ACTIVE.
*
* @var string
*/
public $activeStartTime;
protected $androidDeviceType = AndroidDevice::class;
protected $androidDeviceDataType = '';
/**
* Output only. The time that the Session was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The title of the DeviceSession to be presented in the UI.
*
* @var string
*/
public $displayName;
/**
* Optional. If the device is still in use at this time, any connections will
* be ended and the SessionState will transition from ACTIVE to FINISHED.
*
* @var string
*/
public $expireTime;
/**
* Output only. The interval of time that this device must be interacted with
* before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
*
* @var string
*/
public $inactivityTimeout;
/**
* Optional. Name of the DeviceSession, e.g.
* "projects/{project_id}/deviceSessions/{session_id}"
*
* @var string
*/
public $name;
/**
* Output only. Current state of the DeviceSession.
*
* @var string
*/
public $state;
protected $stateHistoriesType = SessionStateEvent::class;
protected $stateHistoriesDataType = 'array';
/**
* Optional. The amount of time that a device will be initially allocated for.
* This can eventually be extended with the UpdateDeviceSession RPC. Default:
* 15 minutes.
*
* @var string
*/
public $ttl;
/**
* Output only. The timestamp that the session first became ACTIVE.
*
* @param string $activeStartTime
*/
public function setActiveStartTime($activeStartTime)
{
$this->activeStartTime = $activeStartTime;
}
/**
* @return string
*/
public function getActiveStartTime()
{
return $this->activeStartTime;
}
/**
* Required. The requested device
*
* @param AndroidDevice $androidDevice
*/
public function setAndroidDevice(AndroidDevice $androidDevice)
{
$this->androidDevice = $androidDevice;
}
/**
* @return AndroidDevice
*/
public function getAndroidDevice()
{
return $this->androidDevice;
}
/**
* Output only. The time that the Session was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The title of the DeviceSession to be presented in the UI.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Optional. If the device is still in use at this time, any connections will
* be ended and the SessionState will transition from ACTIVE to FINISHED.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Output only. The interval of time that this device must be interacted with
* before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
*
* @param string $inactivityTimeout
*/
public function setInactivityTimeout($inactivityTimeout)
{
$this->inactivityTimeout = $inactivityTimeout;
}
/**
* @return string
*/
public function getInactivityTimeout()
{
return $this->inactivityTimeout;
}
/**
* Optional. Name of the DeviceSession, e.g.
* "projects/{project_id}/deviceSessions/{session_id}"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Current state of the DeviceSession.
*
* Accepted values: SESSION_STATE_UNSPECIFIED, REQUESTED, PENDING, ACTIVE,
* EXPIRED, FINISHED, UNAVAILABLE, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The historical state transitions of the session_state message
* including the current session state.
*
* @param SessionStateEvent[] $stateHistories
*/
public function setStateHistories($stateHistories)
{
$this->stateHistories = $stateHistories;
}
/**
* @return SessionStateEvent[]
*/
public function getStateHistories()
{
return $this->stateHistories;
}
/**
* Optional. The amount of time that a device will be initially allocated for.
* This can eventually be extended with the UpdateDeviceSession RPC. Default:
* 15 minutes.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceSession::class, 'Google_Service_Testing_DeviceSession');
@@ -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\Testing;
class DirectAccessVersionInfo extends \Google\Model
{
/**
* Whether direct access is supported at all. Clients are expected to filter
* down the device list to only android models and versions which support
* Direct Access when that is the user intent.
*
* @var bool
*/
public $directAccessSupported;
/**
* Output only. Indicates client-device compatibility, where a device is known
* to work only with certain workarounds implemented in the Android Studio
* client. Expected format "major.minor.micro.patch", e.g.
* "5921.22.2211.8881706".
*
* @var string
*/
public $minimumAndroidStudioVersion;
/**
* Whether direct access is supported at all. Clients are expected to filter
* down the device list to only android models and versions which support
* Direct Access when that is the user intent.
*
* @param bool $directAccessSupported
*/
public function setDirectAccessSupported($directAccessSupported)
{
$this->directAccessSupported = $directAccessSupported;
}
/**
* @return bool
*/
public function getDirectAccessSupported()
{
return $this->directAccessSupported;
}
/**
* Output only. Indicates client-device compatibility, where a device is known
* to work only with certain workarounds implemented in the Android Studio
* client. Expected format "major.minor.micro.patch", e.g.
* "5921.22.2211.8881706".
*
* @param string $minimumAndroidStudioVersion
*/
public function setMinimumAndroidStudioVersion($minimumAndroidStudioVersion)
{
$this->minimumAndroidStudioVersion = $minimumAndroidStudioVersion;
}
/**
* @return string
*/
public function getMinimumAndroidStudioVersion()
{
return $this->minimumAndroidStudioVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectAccessVersionInfo::class, 'Google_Service_Testing_DirectAccessVersionInfo');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class Distribution extends \Google\Model
{
/**
* Output only. The estimated fraction (0-1) of the total market with this
* configuration.
*
* @var
*/
public $marketShare;
/**
* Output only. The time this distribution was measured.
*
* @var string
*/
public $measurementTime;
public function setMarketShare($marketShare)
{
$this->marketShare = $marketShare;
}
public function getMarketShare()
{
return $this->marketShare;
}
/**
* Output only. The time this distribution was measured.
*
* @param string $measurementTime
*/
public function setMeasurementTime($measurementTime)
{
$this->measurementTime = $measurementTime;
}
/**
* @return string
*/
public function getMeasurementTime()
{
return $this->measurementTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Distribution::class, 'Google_Service_Testing_Distribution');
@@ -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\Testing;
class Environment extends \Google\Model
{
protected $androidDeviceType = AndroidDevice::class;
protected $androidDeviceDataType = '';
protected $iosDeviceType = IosDevice::class;
protected $iosDeviceDataType = '';
/**
* An Android device which must be used with an Android test.
*
* @param AndroidDevice $androidDevice
*/
public function setAndroidDevice(AndroidDevice $androidDevice)
{
$this->androidDevice = $androidDevice;
}
/**
* @return AndroidDevice
*/
public function getAndroidDevice()
{
return $this->androidDevice;
}
/**
* An iOS device which must be used with an iOS test.
*
* @param IosDevice $iosDevice
*/
public function setIosDevice(IosDevice $iosDevice)
{
$this->iosDevice = $iosDevice;
}
/**
* @return IosDevice
*/
public function getIosDevice()
{
return $this->iosDevice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Environment::class, 'Google_Service_Testing_Environment');
@@ -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\Testing;
class EnvironmentMatrix extends \Google\Model
{
protected $androidDeviceListType = AndroidDeviceList::class;
protected $androidDeviceListDataType = '';
protected $androidMatrixType = AndroidMatrix::class;
protected $androidMatrixDataType = '';
protected $iosDeviceListType = IosDeviceList::class;
protected $iosDeviceListDataType = '';
/**
* A list of Android devices; the test will be run only on the specified
* devices.
*
* @param AndroidDeviceList $androidDeviceList
*/
public function setAndroidDeviceList(AndroidDeviceList $androidDeviceList)
{
$this->androidDeviceList = $androidDeviceList;
}
/**
* @return AndroidDeviceList
*/
public function getAndroidDeviceList()
{
return $this->androidDeviceList;
}
/**
* A matrix of Android devices.
*
* @param AndroidMatrix $androidMatrix
*/
public function setAndroidMatrix(AndroidMatrix $androidMatrix)
{
$this->androidMatrix = $androidMatrix;
}
/**
* @return AndroidMatrix
*/
public function getAndroidMatrix()
{
return $this->androidMatrix;
}
/**
* A list of iOS devices.
*
* @param IosDeviceList $iosDeviceList
*/
public function setIosDeviceList(IosDeviceList $iosDeviceList)
{
$this->iosDeviceList = $iosDeviceList;
}
/**
* @return IosDeviceList
*/
public function getIosDeviceList()
{
return $this->iosDeviceList;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentMatrix::class, 'Google_Service_Testing_EnvironmentMatrix');
@@ -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\Testing;
class EnvironmentVariable extends \Google\Model
{
/**
* Key for the environment variable.
*
* @var string
*/
public $key;
/**
* Value for the environment variable.
*
* @var string
*/
public $value;
/**
* Key for the environment variable.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Value for the environment variable.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvironmentVariable::class, 'Google_Service_Testing_EnvironmentVariable');
@@ -0,0 +1,52 @@
<?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\Testing;
class FileReference extends \Google\Model
{
/**
* A path to a file in Google Cloud Storage. Example: gs://build-
* app-1414623860166/app%40debug-unaligned.apk These paths are expected to be
* url encoded (percent encoding)
*
* @var string
*/
public $gcsPath;
/**
* A path to a file in Google Cloud Storage. Example: gs://build-
* app-1414623860166/app%40debug-unaligned.apk These paths are expected to be
* url encoded (percent encoding)
*
* @param string $gcsPath
*/
public function setGcsPath($gcsPath)
{
$this->gcsPath = $gcsPath;
}
/**
* @return string
*/
public function getGcsPath()
{
return $this->gcsPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileReference::class, 'Google_Service_Testing_FileReference');
@@ -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\Testing;
class GetApkDetailsResponse extends \Google\Model
{
protected $apkDetailType = ApkDetail::class;
protected $apkDetailDataType = '';
/**
* Details of the Android App.
*
* @param ApkDetail $apkDetail
*/
public function setApkDetail(ApkDetail $apkDetail)
{
$this->apkDetail = $apkDetail;
}
/**
* @return ApkDetail
*/
public function getApkDetail()
{
return $this->apkDetail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetApkDetailsResponse::class, 'Google_Service_Testing_GetApkDetailsResponse');
@@ -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\Testing;
class GoogleAuto extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAuto::class, 'Google_Service_Testing_GoogleAuto');
@@ -0,0 +1,52 @@
<?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\Testing;
class GoogleCloudStorage extends \Google\Model
{
/**
* Required. The path to a directory in GCS that will eventually contain the
* results for this test. The requesting user must have write access on the
* bucket in the supplied path.
*
* @var string
*/
public $gcsPath;
/**
* Required. The path to a directory in GCS that will eventually contain the
* results for this test. The requesting user must have write access on the
* bucket in the supplied path.
*
* @param string $gcsPath
*/
public function setGcsPath($gcsPath)
{
$this->gcsPath = $gcsPath;
}
/**
* @return string
*/
public function getGcsPath()
{
return $this->gcsPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudStorage::class, 'Google_Service_Testing_GoogleCloudStorage');
@@ -0,0 +1,93 @@
<?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\Testing;
class IntentFilter extends \Google\Collection
{
protected $collection_key = 'categoryNames';
/**
* The android:name value of the tag.
*
* @var string[]
*/
public $actionNames;
/**
* The android:name value of the tag.
*
* @var string[]
*/
public $categoryNames;
/**
* The android:mimeType value of the tag.
*
* @var string
*/
public $mimeType;
/**
* The android:name value of the tag.
*
* @param string[] $actionNames
*/
public function setActionNames($actionNames)
{
$this->actionNames = $actionNames;
}
/**
* @return string[]
*/
public function getActionNames()
{
return $this->actionNames;
}
/**
* The android:name value of the tag.
*
* @param string[] $categoryNames
*/
public function setCategoryNames($categoryNames)
{
$this->categoryNames = $categoryNames;
}
/**
* @return string[]
*/
public function getCategoryNames()
{
return $this->categoryNames;
}
/**
* The android:mimeType value of the tag.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntentFilter::class, 'Google_Service_Testing_IntentFilter');
@@ -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\Testing;
class IosDevice extends \Google\Model
{
/**
* Required. The id of the iOS device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $iosModelId;
/**
* Required. The id of the iOS major software version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $iosVersionId;
/**
* Required. The locale the test device used for testing. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $locale;
/**
* Required. How the device is oriented during the test. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @var string
*/
public $orientation;
/**
* Required. The id of the iOS device to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $iosModelId
*/
public function setIosModelId($iosModelId)
{
$this->iosModelId = $iosModelId;
}
/**
* @return string
*/
public function getIosModelId()
{
return $this->iosModelId;
}
/**
* Required. The id of the iOS major software version to be used. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $iosVersionId
*/
public function setIosVersionId($iosVersionId)
{
$this->iosVersionId = $iosVersionId;
}
/**
* @return string
*/
public function getIosVersionId()
{
return $this->iosVersionId;
}
/**
* Required. The locale the test device used for testing. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Required. How the device is oriented during the test. Use the
* TestEnvironmentDiscoveryService to get supported options.
*
* @param string $orientation
*/
public function setOrientation($orientation)
{
$this->orientation = $orientation;
}
/**
* @return string
*/
public function getOrientation()
{
return $this->orientation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosDevice::class, 'Google_Service_Testing_IosDevice');
@@ -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\Testing;
class IosDeviceCatalog extends \Google\Collection
{
protected $collection_key = 'xcodeVersions';
protected $modelsType = IosModel::class;
protected $modelsDataType = 'array';
protected $runtimeConfigurationType = IosRuntimeConfiguration::class;
protected $runtimeConfigurationDataType = '';
protected $versionsType = IosVersion::class;
protected $versionsDataType = 'array';
protected $xcodeVersionsType = XcodeVersion::class;
protected $xcodeVersionsDataType = 'array';
/**
* The set of supported iOS device models.
*
* @param IosModel[] $models
*/
public function setModels($models)
{
$this->models = $models;
}
/**
* @return IosModel[]
*/
public function getModels()
{
return $this->models;
}
/**
* The set of supported runtime configurations.
*
* @param IosRuntimeConfiguration $runtimeConfiguration
*/
public function setRuntimeConfiguration(IosRuntimeConfiguration $runtimeConfiguration)
{
$this->runtimeConfiguration = $runtimeConfiguration;
}
/**
* @return IosRuntimeConfiguration
*/
public function getRuntimeConfiguration()
{
return $this->runtimeConfiguration;
}
/**
* The set of supported iOS software versions.
*
* @param IosVersion[] $versions
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return IosVersion[]
*/
public function getVersions()
{
return $this->versions;
}
/**
* The set of supported Xcode versions.
*
* @param XcodeVersion[] $xcodeVersions
*/
public function setXcodeVersions($xcodeVersions)
{
$this->xcodeVersions = $xcodeVersions;
}
/**
* @return XcodeVersion[]
*/
public function getXcodeVersions()
{
return $this->xcodeVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosDeviceCatalog::class, 'Google_Service_Testing_IosDeviceCatalog');
@@ -0,0 +1,90 @@
<?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\Testing;
class IosDeviceFile extends \Google\Model
{
/**
* The bundle id of the app where this file lives. iOS apps sandbox their own
* filesystem, so app files must specify which app installed on the device.
*
* @var string
*/
public $bundleId;
protected $contentType = FileReference::class;
protected $contentDataType = '';
/**
* Location of the file on the device, inside the app's sandboxed filesystem
*
* @var string
*/
public $devicePath;
/**
* The bundle id of the app where this file lives. iOS apps sandbox their own
* filesystem, so app files must specify which app installed on the device.
*
* @param string $bundleId
*/
public function setBundleId($bundleId)
{
$this->bundleId = $bundleId;
}
/**
* @return string
*/
public function getBundleId()
{
return $this->bundleId;
}
/**
* The source file
*
* @param FileReference $content
*/
public function setContent(FileReference $content)
{
$this->content = $content;
}
/**
* @return FileReference
*/
public function getContent()
{
return $this->content;
}
/**
* Location of the file on the device, inside the app's sandboxed filesystem
*
* @param string $devicePath
*/
public function setDevicePath($devicePath)
{
$this->devicePath = $devicePath;
}
/**
* @return string
*/
public function getDevicePath()
{
return $this->devicePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosDeviceFile::class, 'Google_Service_Testing_IosDeviceFile');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class IosDeviceList extends \Google\Collection
{
protected $collection_key = 'iosDevices';
protected $iosDevicesType = IosDevice::class;
protected $iosDevicesDataType = 'array';
/**
* Required. A list of iOS devices.
*
* @param IosDevice[] $iosDevices
*/
public function setIosDevices($iosDevices)
{
$this->iosDevices = $iosDevices;
}
/**
* @return IosDevice[]
*/
public function getIosDevices()
{
return $this->iosDevices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosDeviceList::class, 'Google_Service_Testing_IosDeviceList');
@@ -0,0 +1,286 @@
<?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\Testing;
class IosModel extends \Google\Collection
{
/**
* Do not use. For proto versioning only.
*/
public const FORM_FACTOR_DEVICE_FORM_FACTOR_UNSPECIFIED = 'DEVICE_FORM_FACTOR_UNSPECIFIED';
/**
* This device has the shape of a phone.
*/
public const FORM_FACTOR_PHONE = 'PHONE';
/**
* This device has the shape of a tablet.
*/
public const FORM_FACTOR_TABLET = 'TABLET';
/**
* This device has the shape of a watch or other wearable.
*/
public const FORM_FACTOR_WEARABLE = 'WEARABLE';
/**
* This device has a television form factor.
*/
public const FORM_FACTOR_TV = 'TV';
/**
* This device has an automotive form factor.
*/
public const FORM_FACTOR_AUTOMOTIVE = 'AUTOMOTIVE';
/**
* This device has a desktop form factor.
*/
public const FORM_FACTOR_DESKTOP = 'DESKTOP';
/**
* This device has an Extended Reality form factor.
*/
public const FORM_FACTOR_XR = 'XR';
protected $collection_key = 'tags';
/**
* Device capabilities. Copied from https://developer.apple.com/library/archiv
* e/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCo
* mpatibilityMatrix/DeviceCompatibilityMatrix.html
*
* @var string[]
*/
public $deviceCapabilities;
/**
* Whether this device is a phone, tablet, wearable, etc.
*
* @var string
*/
public $formFactor;
/**
* The unique opaque id for this model. Use this for invoking the
* TestExecutionService.
*
* @var string
*/
public $id;
/**
* The human-readable name for this device model. Examples: "iPhone 4s", "iPad
* Mini 2".
*
* @var string
*/
public $name;
protected $perVersionInfoType = PerIosVersionInfo::class;
protected $perVersionInfoDataType = 'array';
/**
* Screen density in DPI.
*
* @var int
*/
public $screenDensity;
/**
* Screen size in the horizontal (X) dimension measured in pixels.
*
* @var int
*/
public $screenX;
/**
* Screen size in the vertical (Y) dimension measured in pixels.
*
* @var int
*/
public $screenY;
/**
* The set of iOS major software versions this device supports.
*
* @var string[]
*/
public $supportedVersionIds;
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @var string[]
*/
public $tags;
/**
* Device capabilities. Copied from https://developer.apple.com/library/archiv
* e/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCo
* mpatibilityMatrix/DeviceCompatibilityMatrix.html
*
* @param string[] $deviceCapabilities
*/
public function setDeviceCapabilities($deviceCapabilities)
{
$this->deviceCapabilities = $deviceCapabilities;
}
/**
* @return string[]
*/
public function getDeviceCapabilities()
{
return $this->deviceCapabilities;
}
/**
* Whether this device is a phone, tablet, wearable, etc.
*
* Accepted values: DEVICE_FORM_FACTOR_UNSPECIFIED, PHONE, TABLET, WEARABLE,
* TV, AUTOMOTIVE, DESKTOP, XR
*
* @param self::FORM_FACTOR_* $formFactor
*/
public function setFormFactor($formFactor)
{
$this->formFactor = $formFactor;
}
/**
* @return self::FORM_FACTOR_*
*/
public function getFormFactor()
{
return $this->formFactor;
}
/**
* The unique opaque id for this model. Use this for invoking the
* TestExecutionService.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The human-readable name for this device model. Examples: "iPhone 4s", "iPad
* Mini 2".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Version-specific information of an iOS model.
*
* @param PerIosVersionInfo[] $perVersionInfo
*/
public function setPerVersionInfo($perVersionInfo)
{
$this->perVersionInfo = $perVersionInfo;
}
/**
* @return PerIosVersionInfo[]
*/
public function getPerVersionInfo()
{
return $this->perVersionInfo;
}
/**
* Screen density in DPI.
*
* @param int $screenDensity
*/
public function setScreenDensity($screenDensity)
{
$this->screenDensity = $screenDensity;
}
/**
* @return int
*/
public function getScreenDensity()
{
return $this->screenDensity;
}
/**
* Screen size in the horizontal (X) dimension measured in pixels.
*
* @param int $screenX
*/
public function setScreenX($screenX)
{
$this->screenX = $screenX;
}
/**
* @return int
*/
public function getScreenX()
{
return $this->screenX;
}
/**
* Screen size in the vertical (Y) dimension measured in pixels.
*
* @param int $screenY
*/
public function setScreenY($screenY)
{
$this->screenY = $screenY;
}
/**
* @return int
*/
public function getScreenY()
{
return $this->screenY;
}
/**
* The set of iOS major software versions this device supports.
*
* @param string[] $supportedVersionIds
*/
public function setSupportedVersionIds($supportedVersionIds)
{
$this->supportedVersionIds = $supportedVersionIds;
}
/**
* @return string[]
*/
public function getSupportedVersionIds()
{
return $this->supportedVersionIds;
}
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosModel::class, 'Google_Service_Testing_IosModel');
@@ -0,0 +1,89 @@
<?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\Testing;
class IosRoboTest extends \Google\Model
{
/**
* The bundle ID for the app-under-test. This is determined by examining the
* application's "Info.plist" file.
*
* @var string
*/
public $appBundleId;
protected $appIpaType = FileReference::class;
protected $appIpaDataType = '';
protected $roboScriptType = FileReference::class;
protected $roboScriptDataType = '';
/**
* The bundle ID for the app-under-test. This is determined by examining the
* application's "Info.plist" file.
*
* @param string $appBundleId
*/
public function setAppBundleId($appBundleId)
{
$this->appBundleId = $appBundleId;
}
/**
* @return string
*/
public function getAppBundleId()
{
return $this->appBundleId;
}
/**
* Required. The ipa stored at this file should be used to run the test.
*
* @param FileReference $appIpa
*/
public function setAppIpa(FileReference $appIpa)
{
$this->appIpa = $appIpa;
}
/**
* @return FileReference
*/
public function getAppIpa()
{
return $this->appIpa;
}
/**
* An optional Roboscript to customize the crawl. See
* https://firebase.google.com/docs/test-lab/android/robo-scripts-reference
* for more information about Roboscripts. The maximum allowed file size of
* the roboscript is 10MiB.
*
* @param FileReference $roboScript
*/
public function setRoboScript(FileReference $roboScript)
{
$this->roboScript = $roboScript;
}
/**
* @return FileReference
*/
public function getRoboScript()
{
return $this->roboScript;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosRoboTest::class, 'Google_Service_Testing_IosRoboTest');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class IosRuntimeConfiguration extends \Google\Collection
{
protected $collection_key = 'orientations';
protected $localesType = Locale::class;
protected $localesDataType = 'array';
protected $orientationsType = Orientation::class;
protected $orientationsDataType = 'array';
/**
* The set of available locales.
*
* @param Locale[] $locales
*/
public function setLocales($locales)
{
$this->locales = $locales;
}
/**
* @return Locale[]
*/
public function getLocales()
{
return $this->locales;
}
/**
* The set of available orientations.
*
* @param Orientation[] $orientations
*/
public function setOrientations($orientations)
{
$this->orientations = $orientations;
}
/**
* @return Orientation[]
*/
public function getOrientations()
{
return $this->orientations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosRuntimeConfiguration::class, 'Google_Service_Testing_IosRuntimeConfiguration');
@@ -0,0 +1,91 @@
<?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\Testing;
class IosTestLoop extends \Google\Collection
{
protected $collection_key = 'scenarios';
/**
* Output only. The bundle id for the application under test.
*
* @var string
*/
public $appBundleId;
protected $appIpaType = FileReference::class;
protected $appIpaDataType = '';
/**
* The list of scenarios that should be run during the test. Defaults to the
* single scenario 0 if unspecified.
*
* @var int[]
*/
public $scenarios;
/**
* Output only. The bundle id for the application under test.
*
* @param string $appBundleId
*/
public function setAppBundleId($appBundleId)
{
$this->appBundleId = $appBundleId;
}
/**
* @return string
*/
public function getAppBundleId()
{
return $this->appBundleId;
}
/**
* Required. The .ipa of the application to test.
*
* @param FileReference $appIpa
*/
public function setAppIpa(FileReference $appIpa)
{
$this->appIpa = $appIpa;
}
/**
* @return FileReference
*/
public function getAppIpa()
{
return $this->appIpa;
}
/**
* The list of scenarios that should be run during the test. Defaults to the
* single scenario 0 if unspecified.
*
* @param int[] $scenarios
*/
public function setScenarios($scenarios)
{
$this->scenarios = $scenarios;
}
/**
* @return int[]
*/
public function getScenarios()
{
return $this->scenarios;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosTestLoop::class, 'Google_Service_Testing_IosTestLoop');
@@ -0,0 +1,110 @@
<?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\Testing;
class IosTestSetup extends \Google\Collection
{
protected $collection_key = 'pushFiles';
protected $additionalIpasType = FileReference::class;
protected $additionalIpasDataType = 'array';
/**
* The network traffic profile used for running the test. Available network
* profiles can be queried by using the NETWORK_CONFIGURATION environment type
* when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
*
* @var string
*/
public $networkProfile;
protected $pullDirectoriesType = IosDeviceFile::class;
protected $pullDirectoriesDataType = 'array';
protected $pushFilesType = IosDeviceFile::class;
protected $pushFilesDataType = 'array';
/**
* iOS apps to install in addition to those being directly tested.
*
* @param FileReference[] $additionalIpas
*/
public function setAdditionalIpas($additionalIpas)
{
$this->additionalIpas = $additionalIpas;
}
/**
* @return FileReference[]
*/
public function getAdditionalIpas()
{
return $this->additionalIpas;
}
/**
* The network traffic profile used for running the test. Available network
* profiles can be queried by using the NETWORK_CONFIGURATION environment type
* when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
*
* @param string $networkProfile
*/
public function setNetworkProfile($networkProfile)
{
$this->networkProfile = $networkProfile;
}
/**
* @return string
*/
public function getNetworkProfile()
{
return $this->networkProfile;
}
/**
* List of directories on the device to upload to Cloud Storage at the end of
* the test. Directories should either be in a shared directory (such as
* /private/var/mobile/Media) or within an accessible directory inside the
* app's filesystem (such as /Documents) by specifying the bundle ID.
*
* @param IosDeviceFile[] $pullDirectories
*/
public function setPullDirectories($pullDirectories)
{
$this->pullDirectories = $pullDirectories;
}
/**
* @return IosDeviceFile[]
*/
public function getPullDirectories()
{
return $this->pullDirectories;
}
/**
* List of files to push to the device before starting the test.
*
* @param IosDeviceFile[] $pushFiles
*/
public function setPushFiles($pushFiles)
{
$this->pushFiles = $pushFiles;
}
/**
* @return IosDeviceFile[]
*/
public function getPushFiles()
{
return $this->pushFiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosTestSetup::class, 'Google_Service_Testing_IosTestSetup');
@@ -0,0 +1,139 @@
<?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\Testing;
class IosVersion extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* An opaque id for this iOS version. Use this id to invoke the
* TestExecutionService.
*
* @var string
*/
public $id;
/**
* An integer representing the major iOS version. Examples: "8", "9".
*
* @var int
*/
public $majorVersion;
/**
* An integer representing the minor iOS version. Examples: "1", "2".
*
* @var int
*/
public $minorVersion;
/**
* The available Xcode versions for this version.
*
* @var string[]
*/
public $supportedXcodeVersionIds;
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @var string[]
*/
public $tags;
/**
* An opaque id for this iOS version. Use this id to invoke the
* TestExecutionService.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* An integer representing the major iOS version. Examples: "8", "9".
*
* @param int $majorVersion
*/
public function setMajorVersion($majorVersion)
{
$this->majorVersion = $majorVersion;
}
/**
* @return int
*/
public function getMajorVersion()
{
return $this->majorVersion;
}
/**
* An integer representing the minor iOS version. Examples: "1", "2".
*
* @param int $minorVersion
*/
public function setMinorVersion($minorVersion)
{
$this->minorVersion = $minorVersion;
}
/**
* @return int
*/
public function getMinorVersion()
{
return $this->minorVersion;
}
/**
* The available Xcode versions for this version.
*
* @param string[] $supportedXcodeVersionIds
*/
public function setSupportedXcodeVersionIds($supportedXcodeVersionIds)
{
$this->supportedXcodeVersionIds = $supportedXcodeVersionIds;
}
/**
* @return string[]
*/
public function getSupportedXcodeVersionIds()
{
return $this->supportedXcodeVersionIds;
}
/**
* Tags for this dimension. Examples: "default", "preview", "deprecated".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosVersion::class, 'Google_Service_Testing_IosVersion');
@@ -0,0 +1,141 @@
<?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\Testing;
class IosXcTest extends \Google\Model
{
/**
* Output only. The bundle id for the application under test.
*
* @var string
*/
public $appBundleId;
/**
* The option to test special app entitlements. Setting this would re-sign the
* app having special entitlements with an explicit application-identifier.
* Currently supports testing aps-environment entitlement.
*
* @var bool
*/
public $testSpecialEntitlements;
protected $testsZipType = FileReference::class;
protected $testsZipDataType = '';
/**
* The Xcode version that should be used for the test. Use the
* TestEnvironmentDiscoveryService to get supported options. Defaults to the
* latest Xcode version Firebase Test Lab supports.
*
* @var string
*/
public $xcodeVersion;
protected $xctestrunType = FileReference::class;
protected $xctestrunDataType = '';
/**
* Output only. The bundle id for the application under test.
*
* @param string $appBundleId
*/
public function setAppBundleId($appBundleId)
{
$this->appBundleId = $appBundleId;
}
/**
* @return string
*/
public function getAppBundleId()
{
return $this->appBundleId;
}
/**
* The option to test special app entitlements. Setting this would re-sign the
* app having special entitlements with an explicit application-identifier.
* Currently supports testing aps-environment entitlement.
*
* @param bool $testSpecialEntitlements
*/
public function setTestSpecialEntitlements($testSpecialEntitlements)
{
$this->testSpecialEntitlements = $testSpecialEntitlements;
}
/**
* @return bool
*/
public function getTestSpecialEntitlements()
{
return $this->testSpecialEntitlements;
}
/**
* Required. The .zip containing the .xctestrun file and the contents of the
* DerivedData/Build/Products directory. The .xctestrun file in this zip is
* ignored if the xctestrun field is specified.
*
* @param FileReference $testsZip
*/
public function setTestsZip(FileReference $testsZip)
{
$this->testsZip = $testsZip;
}
/**
* @return FileReference
*/
public function getTestsZip()
{
return $this->testsZip;
}
/**
* The Xcode version that should be used for the test. Use the
* TestEnvironmentDiscoveryService to get supported options. Defaults to the
* latest Xcode version Firebase Test Lab supports.
*
* @param string $xcodeVersion
*/
public function setXcodeVersion($xcodeVersion)
{
$this->xcodeVersion = $xcodeVersion;
}
/**
* @return string
*/
public function getXcodeVersion()
{
return $this->xcodeVersion;
}
/**
* An .xctestrun file that will override the .xctestrun file in the tests zip.
* Because the .xctestrun file contains environment variables along with test
* methods to run and/or ignore, this can be useful for sharding tests.
* Default is taken from the tests zip.
*
* @param FileReference $xctestrun
*/
public function setXctestrun(FileReference $xctestrun)
{
$this->xctestrun = $xctestrun;
}
/**
* @return FileReference
*/
public function getXctestrun()
{
return $this->xctestrun;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IosXcTest::class, 'Google_Service_Testing_IosXcTest');
@@ -0,0 +1,74 @@
<?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\Testing;
class LabInfo extends \Google\Model
{
/**
* Lab name where the device is hosted. If empty, the device is hosted in a
* Google owned lab.
*
* @var string
*/
public $name;
/**
* The Unicode country/region code (CLDR) of the lab where the device is
* hosted. E.g. "US" for United States, "CH" for Switzerland.
*
* @var string
*/
public $regionCode;
/**
* Lab name where the device is hosted. If empty, the device is hosted in a
* Google owned lab.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The Unicode country/region code (CLDR) of the lab where the device is
* hosted. E.g. "US" for United States, "CH" for Switzerland.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabInfo::class, 'Google_Service_Testing_LabInfo');
@@ -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\Testing;
class LauncherActivityIntent extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LauncherActivityIntent::class, 'Google_Service_Testing_LauncherActivityIntent');
@@ -0,0 +1,69 @@
<?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\Testing;
class ListDeviceSessionsResponse extends \Google\Collection
{
protected $collection_key = 'deviceSessions';
protected $deviceSessionsType = DeviceSession::class;
protected $deviceSessionsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The sessions matching the specified filter in the given cloud project.
*
* @param DeviceSession[] $deviceSessions
*/
public function setDeviceSessions($deviceSessions)
{
$this->deviceSessions = $deviceSessions;
}
/**
* @return DeviceSession[]
*/
public function getDeviceSessions()
{
return $this->deviceSessions;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDeviceSessionsResponse::class, 'Google_Service_Testing_ListDeviceSessionsResponse');
+117
View File
@@ -0,0 +1,117 @@
<?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\Testing;
class Locale extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* The id for this locale. Example: "en_US".
*
* @var string
*/
public $id;
/**
* A human-friendly name for this language/locale. Example: "English".
*
* @var string
*/
public $name;
/**
* A human-friendly string representing the region for this locale. Example:
* "United States". Not present for every locale.
*
* @var string
*/
public $region;
/**
* Tags for this dimension. Example: "default".
*
* @var string[]
*/
public $tags;
/**
* The id for this locale. Example: "en_US".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A human-friendly name for this language/locale. Example: "English".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A human-friendly string representing the region for this locale. Example:
* "United States". Not present for every locale.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Tags for this dimension. Example: "default".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locale::class, 'Google_Service_Testing_Locale');
@@ -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\Testing;
class ManualSharding extends \Google\Collection
{
protected $collection_key = 'testTargetsForShard';
protected $testTargetsForShardType = TestTargetsForShard::class;
protected $testTargetsForShardDataType = 'array';
/**
* Required. Group of packages, classes, and/or test methods to be run for
* each manually-created shard. You must specify at least one shard if this
* field is present. When you select one or more physical devices, the number
* of repeated test_targets_for_shard must be <= 50. When you select one or
* more ARM virtual devices, it must be <= 200. When you select only x86
* virtual devices, it must be <= 500.
*
* @param TestTargetsForShard[] $testTargetsForShard
*/
public function setTestTargetsForShard($testTargetsForShard)
{
$this->testTargetsForShard = $testTargetsForShard;
}
/**
* @return TestTargetsForShard[]
*/
public function getTestTargetsForShard()
{
return $this->testTargetsForShard;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManualSharding::class, 'Google_Service_Testing_ManualSharding');
@@ -0,0 +1,76 @@
<?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\Testing;
class MatrixErrorDetail extends \Google\Model
{
/**
* Output only. A human-readable message about how the error in the
* TestMatrix. Expands on the `reason` field with additional details and
* possible options to fix the issue.
*
* @var string
*/
public $message;
/**
* Output only. The reason for the error. This is a constant value in
* UPPER_SNAKE_CASE that identifies the cause of the error.
*
* @var string
*/
public $reason;
/**
* Output only. A human-readable message about how the error in the
* TestMatrix. Expands on the `reason` field with additional details and
* possible options to fix the issue.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Output only. The reason for the error. This is a constant value in
* UPPER_SNAKE_CASE that identifies the cause of the error.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MatrixErrorDetail::class, 'Google_Service_Testing_MatrixErrorDetail');
@@ -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\Testing;
class Metadata extends \Google\Model
{
/**
* The android:name value
*
* @var string
*/
public $name;
/**
* The android:value value
*
* @var string
*/
public $value;
/**
* The android:name value
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The android:value value
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_Testing_Metadata');
@@ -0,0 +1,84 @@
<?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\Testing;
class NetworkConfiguration extends \Google\Model
{
protected $downRuleType = TrafficRule::class;
protected $downRuleDataType = '';
/**
* The unique opaque id for this network traffic configuration.
*
* @var string
*/
public $id;
protected $upRuleType = TrafficRule::class;
protected $upRuleDataType = '';
/**
* The emulation rule applying to the download traffic.
*
* @param TrafficRule $downRule
*/
public function setDownRule(TrafficRule $downRule)
{
$this->downRule = $downRule;
}
/**
* @return TrafficRule
*/
public function getDownRule()
{
return $this->downRule;
}
/**
* The unique opaque id for this network traffic configuration.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The emulation rule applying to the upload traffic.
*
* @param TrafficRule $upRule
*/
public function setUpRule(TrafficRule $upRule)
{
$this->upRule = $upRule;
}
/**
* @return TrafficRule
*/
public function getUpRule()
{
return $this->upRule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfiguration::class, 'Google_Service_Testing_NetworkConfiguration');
@@ -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\Testing;
class NetworkConfigurationCatalog extends \Google\Collection
{
protected $collection_key = 'configurations';
protected $configurationsType = NetworkConfiguration::class;
protected $configurationsDataType = 'array';
/**
* @param NetworkConfiguration[] $configurations
*/
public function setConfigurations($configurations)
{
$this->configurations = $configurations;
}
/**
* @return NetworkConfiguration[]
*/
public function getConfigurations()
{
return $this->configurations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfigurationCatalog::class, 'Google_Service_Testing_NetworkConfigurationCatalog');
@@ -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\Testing;
class NoActivityIntent extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NoActivityIntent::class, 'Google_Service_Testing_NoActivityIntent');
@@ -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\Testing;
class ObbFile extends \Google\Model
{
protected $obbType = FileReference::class;
protected $obbDataType = '';
/**
* Required. OBB file name which must conform to the format as specified by
* Android e.g. [main|patch].0300110.com.example.android.obb which will be
* installed into \/Android/obb/\/ on the device.
*
* @var string
*/
public $obbFileName;
/**
* Required. Opaque Binary Blob (OBB) file(s) to install on the device.
*
* @param FileReference $obb
*/
public function setObb(FileReference $obb)
{
$this->obb = $obb;
}
/**
* @return FileReference
*/
public function getObb()
{
return $this->obb;
}
/**
* Required. OBB file name which must conform to the format as specified by
* Android e.g. [main|patch].0300110.com.example.android.obb which will be
* installed into \/Android/obb/\/ on the device.
*
* @param string $obbFileName
*/
public function setObbFileName($obbFileName)
{
$this->obbFileName = $obbFileName;
}
/**
* @return string
*/
public function getObbFileName()
{
return $this->obbFileName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObbFile::class, 'Google_Service_Testing_ObbFile');
@@ -0,0 +1,93 @@
<?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\Testing;
class Orientation extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* The id for this orientation. Example: "portrait".
*
* @var string
*/
public $id;
/**
* A human-friendly name for this orientation. Example: "portrait".
*
* @var string
*/
public $name;
/**
* Tags for this dimension. Example: "default".
*
* @var string[]
*/
public $tags;
/**
* The id for this orientation. Example: "portrait".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A human-friendly name for this orientation. Example: "portrait".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Tags for this dimension. Example: "default".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Orientation::class, 'Google_Service_Testing_Orientation');
@@ -0,0 +1,152 @@
<?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\Testing;
class PerAndroidVersionInfo extends \Google\Model
{
/**
* The value of device capacity is unknown or unset.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_UNSPECIFIED = 'DEVICE_CAPACITY_UNSPECIFIED';
/**
* Devices that are high in capacity (The lab has a large number of these
* devices). These devices are generally suggested for running a large number
* of simultaneous tests (e.g. more than 100 tests). Please note that high
* capacity devices do not guarantee short wait times due to several factors:
* 1. Traffic (how heavily they are used at any given moment) 2. High capacity
* devices are prioritized for certain usages, which may cause user tests to
* be slower than selecting other similar device types.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_HIGH = 'DEVICE_CAPACITY_HIGH';
/**
* Devices that are medium in capacity (The lab has a decent number of these
* devices, though not as many as high capacity devices). These devices are
* suitable for fewer test runs (e.g. fewer than 100 tests) and only for low
* shard counts (e.g. less than 10 shards).
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_MEDIUM = 'DEVICE_CAPACITY_MEDIUM';
/**
* Devices that are low in capacity (The lab has a small number of these
* devices). These devices may be used if users need to test on this specific
* device model and version. Please note that due to low capacity, the tests
* may take much longer to finish, especially if a large number of tests are
* invoked at once. These devices are not suitable for test sharding.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_LOW = 'DEVICE_CAPACITY_LOW';
/**
* Devices that are completely missing from the lab. These devices are
* unavailable either temporarily or permanently and should not be requested.
* If the device is also marked as deprecated, this state is very likely
* permanent.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_NONE = 'DEVICE_CAPACITY_NONE';
/**
* The number of online devices for an Android version.
*
* @var string
*/
public $deviceCapacity;
protected $directAccessVersionInfoType = DirectAccessVersionInfo::class;
protected $directAccessVersionInfoDataType = '';
/**
* Output only. The estimated wait time for a single interactive device
* session using Direct Access.
*
* @var string
*/
public $interactiveDeviceAvailabilityEstimate;
/**
* An Android version.
*
* @var string
*/
public $versionId;
/**
* The number of online devices for an Android version.
*
* Accepted values: DEVICE_CAPACITY_UNSPECIFIED, DEVICE_CAPACITY_HIGH,
* DEVICE_CAPACITY_MEDIUM, DEVICE_CAPACITY_LOW, DEVICE_CAPACITY_NONE
*
* @param self::DEVICE_CAPACITY_* $deviceCapacity
*/
public function setDeviceCapacity($deviceCapacity)
{
$this->deviceCapacity = $deviceCapacity;
}
/**
* @return self::DEVICE_CAPACITY_*
*/
public function getDeviceCapacity()
{
return $this->deviceCapacity;
}
/**
* Output only. Identifies supported clients for DirectAccess for this Android
* version.
*
* @param DirectAccessVersionInfo $directAccessVersionInfo
*/
public function setDirectAccessVersionInfo(DirectAccessVersionInfo $directAccessVersionInfo)
{
$this->directAccessVersionInfo = $directAccessVersionInfo;
}
/**
* @return DirectAccessVersionInfo
*/
public function getDirectAccessVersionInfo()
{
return $this->directAccessVersionInfo;
}
/**
* Output only. The estimated wait time for a single interactive device
* session using Direct Access.
*
* @param string $interactiveDeviceAvailabilityEstimate
*/
public function setInteractiveDeviceAvailabilityEstimate($interactiveDeviceAvailabilityEstimate)
{
$this->interactiveDeviceAvailabilityEstimate = $interactiveDeviceAvailabilityEstimate;
}
/**
* @return string
*/
public function getInteractiveDeviceAvailabilityEstimate()
{
return $this->interactiveDeviceAvailabilityEstimate;
}
/**
* An Android version.
*
* @param string $versionId
*/
public function setVersionId($versionId)
{
$this->versionId = $versionId;
}
/**
* @return string
*/
public function getVersionId()
{
return $this->versionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerAndroidVersionInfo::class, 'Google_Service_Testing_PerAndroidVersionInfo');
@@ -0,0 +1,109 @@
<?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\Testing;
class PerIosVersionInfo extends \Google\Model
{
/**
* The value of device capacity is unknown or unset.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_UNSPECIFIED = 'DEVICE_CAPACITY_UNSPECIFIED';
/**
* Devices that are high in capacity (The lab has a large number of these
* devices). These devices are generally suggested for running a large number
* of simultaneous tests (e.g. more than 100 tests). Please note that high
* capacity devices do not guarantee short wait times due to several factors:
* 1. Traffic (how heavily they are used at any given moment) 2. High capacity
* devices are prioritized for certain usages, which may cause user tests to
* be slower than selecting other similar device types.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_HIGH = 'DEVICE_CAPACITY_HIGH';
/**
* Devices that are medium in capacity (The lab has a decent number of these
* devices, though not as many as high capacity devices). These devices are
* suitable for fewer test runs (e.g. fewer than 100 tests) and only for low
* shard counts (e.g. less than 10 shards).
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_MEDIUM = 'DEVICE_CAPACITY_MEDIUM';
/**
* Devices that are low in capacity (The lab has a small number of these
* devices). These devices may be used if users need to test on this specific
* device model and version. Please note that due to low capacity, the tests
* may take much longer to finish, especially if a large number of tests are
* invoked at once. These devices are not suitable for test sharding.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_LOW = 'DEVICE_CAPACITY_LOW';
/**
* Devices that are completely missing from the lab. These devices are
* unavailable either temporarily or permanently and should not be requested.
* If the device is also marked as deprecated, this state is very likely
* permanent.
*/
public const DEVICE_CAPACITY_DEVICE_CAPACITY_NONE = 'DEVICE_CAPACITY_NONE';
/**
* The number of online devices for an iOS version.
*
* @var string
*/
public $deviceCapacity;
/**
* An iOS version.
*
* @var string
*/
public $versionId;
/**
* The number of online devices for an iOS version.
*
* Accepted values: DEVICE_CAPACITY_UNSPECIFIED, DEVICE_CAPACITY_HIGH,
* DEVICE_CAPACITY_MEDIUM, DEVICE_CAPACITY_LOW, DEVICE_CAPACITY_NONE
*
* @param self::DEVICE_CAPACITY_* $deviceCapacity
*/
public function setDeviceCapacity($deviceCapacity)
{
$this->deviceCapacity = $deviceCapacity;
}
/**
* @return self::DEVICE_CAPACITY_*
*/
public function getDeviceCapacity()
{
return $this->deviceCapacity;
}
/**
* An iOS version.
*
* @param string $versionId
*/
public function setVersionId($versionId)
{
$this->versionId = $versionId;
}
/**
* @return string
*/
public function getVersionId()
{
return $this->versionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerIosVersionInfo::class, 'Google_Service_Testing_PerIosVersionInfo');
@@ -0,0 +1,83 @@
<?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\Testing;
class ProvidedSoftwareCatalog extends \Google\Model
{
/**
* A string representing the current version of AndroidX Test Orchestrator
* that is used in the environment. The package is available at
* https://maven.google.com/web/index.html#androidx.test:orchestrator.
*
* @var string
*/
public $androidxOrchestratorVersion;
/**
* Deprecated: Use AndroidX Test Orchestrator going forward. A string
* representing the current version of Android Test Orchestrator that is used
* in the environment. The package is available at https://maven.google.com/we
* b/index.html#com.android.support.test:orchestrator.
*
* @deprecated
* @var string
*/
public $orchestratorVersion;
/**
* A string representing the current version of AndroidX Test Orchestrator
* that is used in the environment. The package is available at
* https://maven.google.com/web/index.html#androidx.test:orchestrator.
*
* @param string $androidxOrchestratorVersion
*/
public function setAndroidxOrchestratorVersion($androidxOrchestratorVersion)
{
$this->androidxOrchestratorVersion = $androidxOrchestratorVersion;
}
/**
* @return string
*/
public function getAndroidxOrchestratorVersion()
{
return $this->androidxOrchestratorVersion;
}
/**
* Deprecated: Use AndroidX Test Orchestrator going forward. A string
* representing the current version of Android Test Orchestrator that is used
* in the environment. The package is available at https://maven.google.com/we
* b/index.html#com.android.support.test:orchestrator.
*
* @deprecated
* @param string $orchestratorVersion
*/
public function setOrchestratorVersion($orchestratorVersion)
{
$this->orchestratorVersion = $orchestratorVersion;
}
/**
* @deprecated
* @return string
*/
public function getOrchestratorVersion()
{
return $this->orchestratorVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvidedSoftwareCatalog::class, 'Google_Service_Testing_ProvidedSoftwareCatalog');
@@ -0,0 +1,86 @@
<?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\Testing;
class RegularFile extends \Google\Model
{
protected $contentType = FileReference::class;
protected $contentDataType = '';
/**
* Required. Where to put the content on the device. Must be an absolute,
* allowlisted path. If the file exists, it will be replaced. The following
* device-side directories and any of their subdirectories are allowlisted:
* ${EXTERNAL_STORAGE}, /sdcard ${ANDROID_DATA}/local/tmp, or /data/local/tmp
* Specifying a path outside of these directory trees is invalid. The paths
* /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to
* external storage, the system will replace it with the external storage path
* prefix for that device and copy the file there. It is strongly advised to
* use the Environment API in app and test code to access files on the device
* in a portable way.
*
* @var string
*/
public $devicePath;
/**
* Required. The source file.
*
* @param FileReference $content
*/
public function setContent(FileReference $content)
{
$this->content = $content;
}
/**
* @return FileReference
*/
public function getContent()
{
return $this->content;
}
/**
* Required. Where to put the content on the device. Must be an absolute,
* allowlisted path. If the file exists, it will be replaced. The following
* device-side directories and any of their subdirectories are allowlisted:
* ${EXTERNAL_STORAGE}, /sdcard ${ANDROID_DATA}/local/tmp, or /data/local/tmp
* Specifying a path outside of these directory trees is invalid. The paths
* /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to
* external storage, the system will replace it with the external storage path
* prefix for that device and copy the file there. It is strongly advised to
* use the Environment API in app and test code to access files on the device
* in a portable way.
*
* @param string $devicePath
*/
public function setDevicePath($devicePath)
{
$this->devicePath = $devicePath;
}
/**
* @return string
*/
public function getDevicePath()
{
return $this->devicePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegularFile::class, 'Google_Service_Testing_RegularFile');
@@ -0,0 +1,55 @@
<?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\Testing\Resource;
use Google\Service\Testing\FileReference;
use Google\Service\Testing\GetApkDetailsResponse;
/**
* The "applicationDetailService" collection of methods.
* Typical usage is:
* <code>
* $testingService = new Google\Service\Testing(...);
* $applicationDetailService = $testingService->applicationDetailService;
* </code>
*/
class ApplicationDetailService extends \Google\Service\Resource
{
/**
* Gets the details of an Android application APK.
* (applicationDetailService.getApkDetails)
*
* @param FileReference $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bundleLocation.gcsPath A path to a file in Google Cloud
* Storage. Example: gs://build-app-1414623860166/app%40debug-unaligned.apk
* These paths are expected to be url encoded (percent encoding)
* @return GetApkDetailsResponse
* @throws \Google\Service\Exception
*/
public function getApkDetails(FileReference $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getApkDetails', [$params], GetApkDetailsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationDetailService::class, 'Google_Service_Testing_Resource_ApplicationDetailService');
@@ -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\Testing\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $testingService = new Google\Service\Testing(...);
* $projects = $testingService->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_Testing_Resource_Projects');
@@ -0,0 +1,135 @@
<?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\Testing\Resource;
use Google\Service\Testing\CancelDeviceSessionRequest;
use Google\Service\Testing\DeviceSession;
use Google\Service\Testing\ListDeviceSessionsResponse;
use Google\Service\Testing\TestingEmpty;
/**
* The "deviceSessions" collection of methods.
* Typical usage is:
* <code>
* $testingService = new Google\Service\Testing(...);
* $deviceSessions = $testingService->projects_deviceSessions;
* </code>
*/
class ProjectsDeviceSessions extends \Google\Service\Resource
{
/**
* POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel
* Changes the DeviceSession to state FINISHED and terminates all connections.
* Canceled sessions are not deleted and can be retrieved or listed by the user
* until they expire based on the 28 day deletion policy.
* (deviceSessions.cancel)
*
* @param string $name Required. Name of the DeviceSession, e.g.
* "projects/{project_id}/deviceSessions/{session_id}"
* @param CancelDeviceSessionRequest $postBody
* @param array $optParams Optional parameters.
* @return TestingEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelDeviceSessionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], TestingEmpty::class);
}
/**
* POST /v1/projects/{project_id}/deviceSessions (deviceSessions.create)
*
* @param string $parent Required. The Compute Engine project under which this
* device will be allocated. "projects/{project_id}"
* @param DeviceSession $postBody
* @param array $optParams Optional parameters.
* @return DeviceSession
* @throws \Google\Service\Exception
*/
public function create($parent, DeviceSession $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], DeviceSession::class);
}
/**
* GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a
* DeviceSession, which documents the allocation status and whether the device
* is allocated. Clients making requests from this API must poll
* GetDeviceSession. (deviceSessions.get)
*
* @param string $name Required. Name of the DeviceSession, e.g.
* "projects/{project_id}/deviceSessions/{session_id}"
* @param array $optParams Optional parameters.
* @return DeviceSession
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DeviceSession::class);
}
/**
* GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by
* the project user. (deviceSessions.listProjectsDeviceSessions)
*
* @param string $parent Required. The name of the parent to request, e.g.
* "projects/{project_id}"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. If specified, responses will be filtered
* by the given filter. Allowed fields are: session_state.
* @opt_param int pageSize Optional. The maximum number of DeviceSessions to
* return.
* @opt_param string pageToken Optional. A continuation token for paging.
* @return ListDeviceSessionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsDeviceSessions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDeviceSessionsResponse::class);
}
/**
* PATCH
* /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession
* Updates the current device session to the fields described by the
* update_mask. (deviceSessions.patch)
*
* @param string $name Optional. Name of the DeviceSession, e.g.
* "projects/{project_id}/deviceSessions/{session_id}"
* @param DeviceSession $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to update.
* @return DeviceSession
* @throws \Google\Service\Exception
*/
public function patch($name, DeviceSession $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], DeviceSession::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsDeviceSessions::class, 'Google_Service_Testing_Resource_ProjectsDeviceSessions');
@@ -0,0 +1,106 @@
<?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\Testing\Resource;
use Google\Service\Testing\CancelTestMatrixResponse;
use Google\Service\Testing\TestMatrix;
/**
* The "testMatrices" collection of methods.
* Typical usage is:
* <code>
* $testingService = new Google\Service\Testing(...);
* $testMatrices = $testingService->projects_testMatrices;
* </code>
*/
class ProjectsTestMatrices extends \Google\Service\Resource
{
/**
* Cancels unfinished test executions in a test matrix. This call returns
* immediately and cancellation proceeds asynchronously. If the matrix is
* already final, this operation will have no effect. May return any of the
* following canonical error codes: - PERMISSION_DENIED - if the user is not
* authorized to read project - INVALID_ARGUMENT - if the request is malformed -
* NOT_FOUND - if the Test Matrix does not exist (testMatrices.cancel)
*
* @param string $projectId Cloud project that owns the test.
* @param string $testMatrixId Test matrix that will be canceled.
* @param array $optParams Optional parameters.
* @return CancelTestMatrixResponse
* @throws \Google\Service\Exception
*/
public function cancel($projectId, $testMatrixId, $optParams = [])
{
$params = ['projectId' => $projectId, 'testMatrixId' => $testMatrixId];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CancelTestMatrixResponse::class);
}
/**
* Creates and runs a matrix of tests according to the given specifications.
* Unsupported environments will be returned in the state UNSUPPORTED. A test
* matrix is limited to use at most 2000 devices in parallel. The returned
* matrix will not yet contain the executions that will be created for this
* matrix. Execution creation happens later on and will require a call to
* GetTestMatrix. May return any of the following canonical error codes: -
* PERMISSION_DENIED - if the user is not authorized to write to project -
* INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use
* too many simultaneous devices. (testMatrices.create)
*
* @param string $projectId The GCE project under which this job will run.
* @param TestMatrix $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A string id used to detect duplicated requests.
* Ids are automatically scoped to a project, so users should ensure the ID is
* unique per-project. A UUID is recommended. Optional, but strongly
* recommended.
* @return TestMatrix
* @throws \Google\Service\Exception
*/
public function create($projectId, TestMatrix $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TestMatrix::class);
}
/**
* Checks the status of a test matrix and the executions once they are created.
* The test matrix will contain the list of test executions to run if and only
* if the resultStorage.toolResultsExecution fields have been populated. Note:
* Flaky test executions may be added to the matrix at a later stage. May return
* any of the following canonical error codes: - PERMISSION_DENIED - if the user
* is not authorized to read project - INVALID_ARGUMENT - if the request is
* malformed - NOT_FOUND - if the Test Matrix does not exist (testMatrices.get)
*
* @param string $projectId Cloud project that owns the test matrix.
* @param string $testMatrixId Unique test matrix id which was assigned by the
* service.
* @param array $optParams Optional parameters.
* @return TestMatrix
* @throws \Google\Service\Exception
*/
public function get($projectId, $testMatrixId, $optParams = [])
{
$params = ['projectId' => $projectId, 'testMatrixId' => $testMatrixId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TestMatrix::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTestMatrices::class, 'Google_Service_Testing_Resource_ProjectsTestMatrices');
@@ -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\Testing\Resource;
use Google\Service\Testing\TestEnvironmentCatalog as TestEnvironmentCatalogModel;
/**
* The "testEnvironmentCatalog" collection of methods.
* Typical usage is:
* <code>
* $testingService = new Google\Service\Testing(...);
* $testEnvironmentCatalog = $testingService->testEnvironmentCatalog;
* </code>
*/
class TestEnvironmentCatalog extends \Google\Service\Resource
{
/**
* Gets the catalog of supported test environments. May return any of the
* following canonical error codes: - INVALID_ARGUMENT - if the request is
* malformed - NOT_FOUND - if the environment type does not exist - INTERNAL -
* if an internal error occurred (testEnvironmentCatalog.get)
*
* @param string $environmentType Required. The type of environment that should
* be listed.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeViewableModels Optional. Whether to include viewable
* only models in the response. This is only applicable for Android models.
* @opt_param string projectId For authorization, the cloud project requesting
* the TestEnvironmentCatalog.
* @return TestEnvironmentCatalogModel
* @throws \Google\Service\Exception
*/
public function get($environmentType, $optParams = [])
{
$params = ['environmentType' => $environmentType];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TestEnvironmentCatalogModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestEnvironmentCatalog::class, 'Google_Service_Testing_Resource_TestEnvironmentCatalog');
@@ -0,0 +1,104 @@
<?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\Testing;
class ResultStorage extends \Google\Model
{
protected $googleCloudStorageType = GoogleCloudStorage::class;
protected $googleCloudStorageDataType = '';
/**
* Output only. URL to the results in the Firebase Web Console.
*
* @var string
*/
public $resultsUrl;
protected $toolResultsExecutionType = ToolResultsExecution::class;
protected $toolResultsExecutionDataType = '';
protected $toolResultsHistoryType = ToolResultsHistory::class;
protected $toolResultsHistoryDataType = '';
/**
* Required.
*
* @param GoogleCloudStorage $googleCloudStorage
*/
public function setGoogleCloudStorage(GoogleCloudStorage $googleCloudStorage)
{
$this->googleCloudStorage = $googleCloudStorage;
}
/**
* @return GoogleCloudStorage
*/
public function getGoogleCloudStorage()
{
return $this->googleCloudStorage;
}
/**
* Output only. URL to the results in the Firebase Web Console.
*
* @param string $resultsUrl
*/
public function setResultsUrl($resultsUrl)
{
$this->resultsUrl = $resultsUrl;
}
/**
* @return string
*/
public function getResultsUrl()
{
return $this->resultsUrl;
}
/**
* Output only. The tool results execution that results are written to.
*
* @param ToolResultsExecution $toolResultsExecution
*/
public function setToolResultsExecution(ToolResultsExecution $toolResultsExecution)
{
$this->toolResultsExecution = $toolResultsExecution;
}
/**
* @return ToolResultsExecution
*/
public function getToolResultsExecution()
{
return $this->toolResultsExecution;
}
/**
* The tool results history that contains the tool results execution that
* results are written to. If not provided, the service will choose an
* appropriate value.
*
* @param ToolResultsHistory $toolResultsHistory
*/
public function setToolResultsHistory(ToolResultsHistory $toolResultsHistory)
{
$this->toolResultsHistory = $toolResultsHistory;
}
/**
* @return ToolResultsHistory
*/
public function getToolResultsHistory()
{
return $this->toolResultsHistory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResultStorage::class, 'Google_Service_Testing_ResultStorage');
@@ -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\Testing;
class RoboDirective extends \Google\Model
{
/**
* DO NOT USE. For proto versioning only.
*/
public const ACTION_TYPE_ACTION_TYPE_UNSPECIFIED = 'ACTION_TYPE_UNSPECIFIED';
/**
* Direct Robo to click on the specified element. No-op if specified element
* is not clickable.
*/
public const ACTION_TYPE_SINGLE_CLICK = 'SINGLE_CLICK';
/**
* Direct Robo to enter text on the specified element. No-op if specified
* element is not enabled or does not allow text entry.
*/
public const ACTION_TYPE_ENTER_TEXT = 'ENTER_TEXT';
/**
* Direct Robo to ignore interactions with a specific element.
*/
public const ACTION_TYPE_IGNORE = 'IGNORE';
/**
* Required. The type of action that Robo should perform on the specified
* element.
*
* @var string
*/
public $actionType;
/**
* The text that Robo is directed to set. If left empty, the directive will be
* treated as a CLICK on the element matching the resource_name.
*
* @var string
*/
public $inputText;
/**
* Required. The android resource name of the target UI element. For example,
* in Java: R.string.foo in xml: @string/foo Only the "foo" part is needed.
* Reference doc:
* https://developer.android.com/guide/topics/resources/accessing-
* resources.html
*
* @var string
*/
public $resourceName;
/**
* Required. The type of action that Robo should perform on the specified
* element.
*
* Accepted values: ACTION_TYPE_UNSPECIFIED, SINGLE_CLICK, ENTER_TEXT, IGNORE
*
* @param self::ACTION_TYPE_* $actionType
*/
public function setActionType($actionType)
{
$this->actionType = $actionType;
}
/**
* @return self::ACTION_TYPE_*
*/
public function getActionType()
{
return $this->actionType;
}
/**
* The text that Robo is directed to set. If left empty, the directive will be
* treated as a CLICK on the element matching the resource_name.
*
* @param string $inputText
*/
public function setInputText($inputText)
{
$this->inputText = $inputText;
}
/**
* @return string
*/
public function getInputText()
{
return $this->inputText;
}
/**
* Required. The android resource name of the target UI element. For example,
* in Java: R.string.foo in xml: @string/foo Only the "foo" part is needed.
* Reference doc:
* https://developer.android.com/guide/topics/resources/accessing-
* resources.html
*
* @param string $resourceName
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RoboDirective::class, 'Google_Service_Testing_RoboDirective');
@@ -0,0 +1,102 @@
<?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\Testing;
class RoboStartingIntent extends \Google\Model
{
protected $launcherActivityType = LauncherActivityIntent::class;
protected $launcherActivityDataType = '';
protected $noActivityType = NoActivityIntent::class;
protected $noActivityDataType = '';
protected $startActivityType = StartActivityIntent::class;
protected $startActivityDataType = '';
/**
* Timeout in seconds for each intent.
*
* @var string
*/
public $timeout;
/**
* An intent that starts the main launcher activity.
*
* @param LauncherActivityIntent $launcherActivity
*/
public function setLauncherActivity(LauncherActivityIntent $launcherActivity)
{
$this->launcherActivity = $launcherActivity;
}
/**
* @return LauncherActivityIntent
*/
public function getLauncherActivity()
{
return $this->launcherActivity;
}
/**
* Skips the starting activity
*
* @param NoActivityIntent $noActivity
*/
public function setNoActivity(NoActivityIntent $noActivity)
{
$this->noActivity = $noActivity;
}
/**
* @return NoActivityIntent
*/
public function getNoActivity()
{
return $this->noActivity;
}
/**
* An intent that starts an activity with specific details.
*
* @param StartActivityIntent $startActivity
*/
public function setStartActivity(StartActivityIntent $startActivity)
{
$this->startActivity = $startActivity;
}
/**
* @return StartActivityIntent
*/
public function getStartActivity()
{
return $this->startActivity;
}
/**
* Timeout in seconds for each intent.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RoboStartingIntent::class, 'Google_Service_Testing_RoboStartingIntent');
@@ -0,0 +1,67 @@
<?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\Testing;
class Service extends \Google\Collection
{
protected $collection_key = 'intentFilter';
protected $intentFilterType = IntentFilter::class;
protected $intentFilterDataType = 'array';
/**
* The android:name value
*
* @var string
*/
public $name;
/**
* Intent filters in the service
*
* @param IntentFilter[] $intentFilter
*/
public function setIntentFilter($intentFilter)
{
$this->intentFilter = $intentFilter;
}
/**
* @return IntentFilter[]
*/
public function getIntentFilter()
{
return $this->intentFilter;
}
/**
* The android:name value
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Service::class, 'Google_Service_Testing_Service');
@@ -0,0 +1,134 @@
<?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\Testing;
class SessionStateEvent extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const SESSION_STATE_SESSION_STATE_UNSPECIFIED = 'SESSION_STATE_UNSPECIFIED';
/**
* Initial state of a session request. The session is being validated for
* correctness and a device is not yet requested.
*/
public const SESSION_STATE_REQUESTED = 'REQUESTED';
/**
* The session has been validated and is in the queue for a device.
*/
public const SESSION_STATE_PENDING = 'PENDING';
/**
* The session has been granted and the device is accepting connections.
*/
public const SESSION_STATE_ACTIVE = 'ACTIVE';
/**
* The session duration exceeded the devices reservation time period and
* timed out automatically.
*/
public const SESSION_STATE_EXPIRED = 'EXPIRED';
/**
* The user is finished with the session and it was canceled by the user while
* the request was still getting allocated or after allocation and during
* device usage period.
*/
public const SESSION_STATE_FINISHED = 'FINISHED';
/**
* Unable to complete the session because the device was unavailable and it
* failed to allocate through the scheduler. For example, a device not in the
* catalog was requested or the request expired in the allocation queue.
*/
public const SESSION_STATE_UNAVAILABLE = 'UNAVAILABLE';
/**
* Unable to complete the session for an internal reason, such as an
* infrastructure failure.
*/
public const SESSION_STATE_ERROR = 'ERROR';
/**
* Output only. The time that the session_state first encountered that state.
*
* @var string
*/
public $eventTime;
/**
* Output only. The session_state tracked by this event
*
* @var string
*/
public $sessionState;
/**
* Output only. A human-readable message to explain the state.
*
* @var string
*/
public $stateMessage;
/**
* Output only. The time that the session_state first encountered that state.
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* Output only. The session_state tracked by this event
*
* Accepted values: SESSION_STATE_UNSPECIFIED, REQUESTED, PENDING, ACTIVE,
* EXPIRED, FINISHED, UNAVAILABLE, ERROR
*
* @param self::SESSION_STATE_* $sessionState
*/
public function setSessionState($sessionState)
{
$this->sessionState = $sessionState;
}
/**
* @return self::SESSION_STATE_*
*/
public function getSessionState()
{
return $this->sessionState;
}
/**
* Output only. A human-readable message to explain the state.
*
* @param string $stateMessage
*/
public function setStateMessage($stateMessage)
{
$this->stateMessage = $stateMessage;
}
/**
* @return string
*/
public function getStateMessage()
{
return $this->stateMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SessionStateEvent::class, 'Google_Service_Testing_SessionStateEvent');
+112
View File
@@ -0,0 +1,112 @@
<?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\Testing;
class Shard extends \Google\Model
{
/**
* Output only. The estimated shard duration based on previous test case
* timing records, if available.
*
* @var string
*/
public $estimatedShardDuration;
/**
* Output only. The total number of shards.
*
* @var int
*/
public $numShards;
/**
* Output only. The index of the shard among all the shards.
*
* @var int
*/
public $shardIndex;
protected $testTargetsForShardType = TestTargetsForShard::class;
protected $testTargetsForShardDataType = '';
/**
* Output only. The estimated shard duration based on previous test case
* timing records, if available.
*
* @param string $estimatedShardDuration
*/
public function setEstimatedShardDuration($estimatedShardDuration)
{
$this->estimatedShardDuration = $estimatedShardDuration;
}
/**
* @return string
*/
public function getEstimatedShardDuration()
{
return $this->estimatedShardDuration;
}
/**
* Output only. The total number of shards.
*
* @param int $numShards
*/
public function setNumShards($numShards)
{
$this->numShards = $numShards;
}
/**
* @return int
*/
public function getNumShards()
{
return $this->numShards;
}
/**
* Output only. The index of the shard among all the shards.
*
* @param int $shardIndex
*/
public function setShardIndex($shardIndex)
{
$this->shardIndex = $shardIndex;
}
/**
* @return int
*/
public function getShardIndex()
{
return $this->shardIndex;
}
/**
* Output only. Test targets for each shard. Only set for manual sharding.
*
* @param TestTargetsForShard $testTargetsForShard
*/
public function setTestTargetsForShard(TestTargetsForShard $testTargetsForShard)
{
$this->testTargetsForShard = $testTargetsForShard;
}
/**
* @return TestTargetsForShard
*/
public function getTestTargetsForShard()
{
return $this->testTargetsForShard;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Shard::class, 'Google_Service_Testing_Shard');
@@ -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\Testing;
class ShardingOption extends \Google\Model
{
protected $manualShardingType = ManualSharding::class;
protected $manualShardingDataType = '';
protected $smartShardingType = SmartSharding::class;
protected $smartShardingDataType = '';
protected $uniformShardingType = UniformSharding::class;
protected $uniformShardingDataType = '';
/**
* Shards test cases into the specified groups of packages, classes, and/or
* methods.
*
* @param ManualSharding $manualSharding
*/
public function setManualSharding(ManualSharding $manualSharding)
{
$this->manualSharding = $manualSharding;
}
/**
* @return ManualSharding
*/
public function getManualSharding()
{
return $this->manualSharding;
}
/**
* Shards test based on previous test case timing records.
*
* @param SmartSharding $smartSharding
*/
public function setSmartSharding(SmartSharding $smartSharding)
{
$this->smartSharding = $smartSharding;
}
/**
* @return SmartSharding
*/
public function getSmartSharding()
{
return $this->smartSharding;
}
/**
* Uniformly shards test cases given a total number of shards.
*
* @param UniformSharding $uniformSharding
*/
public function setUniformSharding(UniformSharding $uniformSharding)
{
$this->uniformSharding = $uniformSharding;
}
/**
* @return UniformSharding
*/
public function getUniformSharding()
{
return $this->uniformSharding;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ShardingOption::class, 'Google_Service_Testing_ShardingOption');
@@ -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\Testing;
class SmartSharding extends \Google\Model
{
/**
* The amount of time tests within a shard should take. Default: 300 seconds
* (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count
* is dynamically set based on time, up to the maximum shard limit (described
* below). To guarantee at least one test case for each shard, the number of
* shards will not exceed the number of test cases. Shard duration will be
* exceeded if: - The maximum shard limit is reached and there is more
* calculated test time remaining to allocate into shards. - Any individual
* test is estimated to be longer than the targeted shard duration. Shard
* duration is not guaranteed because smart sharding uses test case history
* and default durations which may not be accurate. The rules for finding the
* test case timing records are: - If the service has processed a test case in
* the last 30 days, the record of the latest successful test case will be
* used. - For new test cases, the average duration of other known test cases
* will be used. - If there are no previous test case timing records
* available, the default test case duration is 15 seconds. Because the actual
* shard duration can exceed the targeted shard duration, we recommend that
* you set the targeted value at least 5 minutes less than the maximum allowed
* test timeout (45 minutes for physical devices and 60 minutes for virtual),
* or that you use the custom test timeout value that you set. This approach
* avoids cancelling the shard before all tests can finish. Note that there is
* a limit for maximum number of shards. When you select one or more physical
* devices, the number of shards must be <= 50. When you select one or more
* ARM virtual devices, it must be <= 200. When you select only x86 virtual
* devices, it must be <= 500. To guarantee at least one test case for per
* shard, the number of shards will not exceed the number of test cases. Each
* shard created counts toward daily test quota.
*
* @var string
*/
public $targetedShardDuration;
/**
* The amount of time tests within a shard should take. Default: 300 seconds
* (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count
* is dynamically set based on time, up to the maximum shard limit (described
* below). To guarantee at least one test case for each shard, the number of
* shards will not exceed the number of test cases. Shard duration will be
* exceeded if: - The maximum shard limit is reached and there is more
* calculated test time remaining to allocate into shards. - Any individual
* test is estimated to be longer than the targeted shard duration. Shard
* duration is not guaranteed because smart sharding uses test case history
* and default durations which may not be accurate. The rules for finding the
* test case timing records are: - If the service has processed a test case in
* the last 30 days, the record of the latest successful test case will be
* used. - For new test cases, the average duration of other known test cases
* will be used. - If there are no previous test case timing records
* available, the default test case duration is 15 seconds. Because the actual
* shard duration can exceed the targeted shard duration, we recommend that
* you set the targeted value at least 5 minutes less than the maximum allowed
* test timeout (45 minutes for physical devices and 60 minutes for virtual),
* or that you use the custom test timeout value that you set. This approach
* avoids cancelling the shard before all tests can finish. Note that there is
* a limit for maximum number of shards. When you select one or more physical
* devices, the number of shards must be <= 50. When you select one or more
* ARM virtual devices, it must be <= 200. When you select only x86 virtual
* devices, it must be <= 500. To guarantee at least one test case for per
* shard, the number of shards will not exceed the number of test cases. Each
* shard created counts toward daily test quota.
*
* @param string $targetedShardDuration
*/
public function setTargetedShardDuration($targetedShardDuration)
{
$this->targetedShardDuration = $targetedShardDuration;
}
/**
* @return string
*/
public function getTargetedShardDuration()
{
return $this->targetedShardDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SmartSharding::class, 'Google_Service_Testing_SmartSharding');
@@ -0,0 +1,93 @@
<?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\Testing;
class StartActivityIntent extends \Google\Collection
{
protected $collection_key = 'categories';
/**
* Action name. Required for START_ACTIVITY.
*
* @var string
*/
public $action;
/**
* Intent categories to set on the intent.
*
* @var string[]
*/
public $categories;
/**
* URI for the action.
*
* @var string
*/
public $uri;
/**
* Action name. Required for START_ACTIVITY.
*
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Intent categories to set on the intent.
*
* @param string[] $categories
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return string[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* URI for the action.
*
* @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(StartActivityIntent::class, 'Google_Service_Testing_StartActivityIntent');
@@ -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\Testing;
class SystraceSetup extends \Google\Model
{
/**
* Systrace duration in seconds. Should be between 1 and 30 seconds. 0
* disables systrace.
*
* @deprecated
* @var int
*/
public $durationSeconds;
/**
* Systrace duration in seconds. Should be between 1 and 30 seconds. 0
* disables systrace.
*
* @deprecated
* @param int $durationSeconds
*/
public function setDurationSeconds($durationSeconds)
{
$this->durationSeconds = $durationSeconds;
}
/**
* @deprecated
* @return int
*/
public function getDurationSeconds()
{
return $this->durationSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SystraceSetup::class, 'Google_Service_Testing_SystraceSetup');
@@ -0,0 +1,77 @@
<?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\Testing;
class TestDetails extends \Google\Collection
{
protected $collection_key = 'progressMessages';
/**
* Output only. If the TestState is ERROR, then this string will contain
* human-readable details about the error.
*
* @var string
*/
public $errorMessage;
/**
* Output only. Human-readable, detailed descriptions of the test's progress.
* For example: "Provisioning a device", "Starting Test". During the course of
* execution new data may be appended to the end of progress_messages.
*
* @var string[]
*/
public $progressMessages;
/**
* Output only. If the TestState is ERROR, then this string will contain
* human-readable details about the error.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* Output only. Human-readable, detailed descriptions of the test's progress.
* For example: "Provisioning a device", "Starting Test". During the course of
* execution new data may be appended to the end of progress_messages.
*
* @param string[] $progressMessages
*/
public function setProgressMessages($progressMessages)
{
$this->progressMessages = $progressMessages;
}
/**
* @return string[]
*/
public function getProgressMessages()
{
return $this->progressMessages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestDetails::class, 'Google_Service_Testing_TestDetails');
@@ -0,0 +1,116 @@
<?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\Testing;
class TestEnvironmentCatalog extends \Google\Model
{
protected $androidDeviceCatalogType = AndroidDeviceCatalog::class;
protected $androidDeviceCatalogDataType = '';
protected $deviceIpBlockCatalogType = DeviceIpBlockCatalog::class;
protected $deviceIpBlockCatalogDataType = '';
protected $iosDeviceCatalogType = IosDeviceCatalog::class;
protected $iosDeviceCatalogDataType = '';
protected $networkConfigurationCatalogType = NetworkConfigurationCatalog::class;
protected $networkConfigurationCatalogDataType = '';
protected $softwareCatalogType = ProvidedSoftwareCatalog::class;
protected $softwareCatalogDataType = '';
/**
* Supported Android devices.
*
* @param AndroidDeviceCatalog $androidDeviceCatalog
*/
public function setAndroidDeviceCatalog(AndroidDeviceCatalog $androidDeviceCatalog)
{
$this->androidDeviceCatalog = $androidDeviceCatalog;
}
/**
* @return AndroidDeviceCatalog
*/
public function getAndroidDeviceCatalog()
{
return $this->androidDeviceCatalog;
}
/**
* The IP blocks used by devices in the test environment.
*
* @param DeviceIpBlockCatalog $deviceIpBlockCatalog
*/
public function setDeviceIpBlockCatalog(DeviceIpBlockCatalog $deviceIpBlockCatalog)
{
$this->deviceIpBlockCatalog = $deviceIpBlockCatalog;
}
/**
* @return DeviceIpBlockCatalog
*/
public function getDeviceIpBlockCatalog()
{
return $this->deviceIpBlockCatalog;
}
/**
* Supported iOS devices.
*
* @param IosDeviceCatalog $iosDeviceCatalog
*/
public function setIosDeviceCatalog(IosDeviceCatalog $iosDeviceCatalog)
{
$this->iosDeviceCatalog = $iosDeviceCatalog;
}
/**
* @return IosDeviceCatalog
*/
public function getIosDeviceCatalog()
{
return $this->iosDeviceCatalog;
}
/**
* Supported network configurations.
*
* @param NetworkConfigurationCatalog $networkConfigurationCatalog
*/
public function setNetworkConfigurationCatalog(NetworkConfigurationCatalog $networkConfigurationCatalog)
{
$this->networkConfigurationCatalog = $networkConfigurationCatalog;
}
/**
* @return NetworkConfigurationCatalog
*/
public function getNetworkConfigurationCatalog()
{
return $this->networkConfigurationCatalog;
}
/**
* The software test environment provided by TestExecutionService.
*
* @param ProvidedSoftwareCatalog $softwareCatalog
*/
public function setSoftwareCatalog(ProvidedSoftwareCatalog $softwareCatalog)
{
$this->softwareCatalog = $softwareCatalog;
}
/**
* @return ProvidedSoftwareCatalog
*/
public function getSoftwareCatalog()
{
return $this->softwareCatalog;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestEnvironmentCatalog::class, 'Google_Service_Testing_TestEnvironmentCatalog');
@@ -0,0 +1,288 @@
<?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\Testing;
class TestExecution extends \Google\Model
{
/**
* Do not use. For proto versioning only.
*/
public const STATE_TEST_STATE_UNSPECIFIED = 'TEST_STATE_UNSPECIFIED';
/**
* The execution or matrix is being validated.
*/
public const STATE_VALIDATING = 'VALIDATING';
/**
* The execution or matrix is waiting for resources to become available.
*/
public const STATE_PENDING = 'PENDING';
/**
* The execution is currently being processed. Can only be set on an
* execution.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The execution or matrix has terminated normally. On a matrix this means
* that the matrix level processing completed normally, but individual
* executions may be in an ERROR state.
*/
public const STATE_FINISHED = 'FINISHED';
/**
* The execution or matrix has stopped because it encountered an
* infrastructure failure.
*/
public const STATE_ERROR = 'ERROR';
/**
* The execution was not run because it corresponds to a unsupported
* environment. Can only be set on an execution.
*/
public const STATE_UNSUPPORTED_ENVIRONMENT = 'UNSUPPORTED_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested environment. Example: requested AndroidVersion is lower than
* APK's minSdkVersion Can only be set on an execution.
*/
public const STATE_INCOMPATIBLE_ENVIRONMENT = 'INCOMPATIBLE_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested architecture. Example: requested device does not support
* running the native code in the supplied APK Can only be set on an
* execution.
*/
public const STATE_INCOMPATIBLE_ARCHITECTURE = 'INCOMPATIBLE_ARCHITECTURE';
/**
* The user cancelled the execution. Can only be set on an execution.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The execution or matrix was not run because the provided inputs are not
* valid. Examples: input file is not of the expected type, is
* malformed/corrupt, or was flagged as malware
*/
public const STATE_INVALID = 'INVALID';
protected $environmentType = Environment::class;
protected $environmentDataType = '';
/**
* Output only. Unique id set by the service.
*
* @var string
*/
public $id;
/**
* Output only. Id of the containing TestMatrix.
*
* @var string
*/
public $matrixId;
/**
* Output only. The cloud project that owns the test execution.
*
* @var string
*/
public $projectId;
protected $shardType = Shard::class;
protected $shardDataType = '';
/**
* Output only. Indicates the current progress of the test execution (e.g.,
* FINISHED).
*
* @var string
*/
public $state;
protected $testDetailsType = TestDetails::class;
protected $testDetailsDataType = '';
protected $testSpecificationType = TestSpecification::class;
protected $testSpecificationDataType = '';
/**
* Output only. The time this test execution was initially created.
*
* @var string
*/
public $timestamp;
protected $toolResultsStepType = ToolResultsStep::class;
protected $toolResultsStepDataType = '';
/**
* Output only. How the host machine(s) are configured.
*
* @param Environment $environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Output only. Unique id set by the service.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Id of the containing TestMatrix.
*
* @param string $matrixId
*/
public function setMatrixId($matrixId)
{
$this->matrixId = $matrixId;
}
/**
* @return string
*/
public function getMatrixId()
{
return $this->matrixId;
}
/**
* Output only. The cloud project that owns the test execution.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Output only. Details about the shard.
*
* @param Shard $shard
*/
public function setShard(Shard $shard)
{
$this->shard = $shard;
}
/**
* @return Shard
*/
public function getShard()
{
return $this->shard;
}
/**
* Output only. Indicates the current progress of the test execution (e.g.,
* FINISHED).
*
* Accepted values: TEST_STATE_UNSPECIFIED, VALIDATING, PENDING, RUNNING,
* FINISHED, ERROR, UNSUPPORTED_ENVIRONMENT, INCOMPATIBLE_ENVIRONMENT,
* INCOMPATIBLE_ARCHITECTURE, CANCELLED, INVALID
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Additional details about the running test.
*
* @param TestDetails $testDetails
*/
public function setTestDetails(TestDetails $testDetails)
{
$this->testDetails = $testDetails;
}
/**
* @return TestDetails
*/
public function getTestDetails()
{
return $this->testDetails;
}
/**
* Output only. How to run the test.
*
* @param TestSpecification $testSpecification
*/
public function setTestSpecification(TestSpecification $testSpecification)
{
$this->testSpecification = $testSpecification;
}
/**
* @return TestSpecification
*/
public function getTestSpecification()
{
return $this->testSpecification;
}
/**
* Output only. The time this test execution was initially created.
*
* @param string $timestamp
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* Output only. Where the results for this execution are written.
*
* @param ToolResultsStep $toolResultsStep
*/
public function setToolResultsStep(ToolResultsStep $toolResultsStep)
{
$this->toolResultsStep = $toolResultsStep;
}
/**
* @return ToolResultsStep
*/
public function getToolResultsStep()
{
return $this->toolResultsStep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestExecution::class, 'Google_Service_Testing_TestExecution');
@@ -0,0 +1,613 @@
<?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\Testing;
class TestMatrix extends \Google\Collection
{
/**
* Do not use. For proto versioning only.
*/
public const INVALID_MATRIX_DETAILS_INVALID_MATRIX_DETAILS_UNSPECIFIED = 'INVALID_MATRIX_DETAILS_UNSPECIFIED';
/**
* The matrix is INVALID, but there are no further details available.
*/
public const INVALID_MATRIX_DETAILS_DETAILS_UNAVAILABLE = 'DETAILS_UNAVAILABLE';
/**
* The input app APK could not be parsed.
*/
public const INVALID_MATRIX_DETAILS_MALFORMED_APK = 'MALFORMED_APK';
/**
* The input test APK could not be parsed.
*/
public const INVALID_MATRIX_DETAILS_MALFORMED_TEST_APK = 'MALFORMED_TEST_APK';
/**
* The AndroidManifest.xml could not be found.
*/
public const INVALID_MATRIX_DETAILS_NO_MANIFEST = 'NO_MANIFEST';
/**
* The APK manifest does not declare a package name.
*/
public const INVALID_MATRIX_DETAILS_NO_PACKAGE_NAME = 'NO_PACKAGE_NAME';
/**
* The APK application ID (aka package name) is invalid. See also
* https://developer.android.com/studio/build/application-id
*/
public const INVALID_MATRIX_DETAILS_INVALID_PACKAGE_NAME = 'INVALID_PACKAGE_NAME';
/**
* The test package and app package are the same.
*/
public const INVALID_MATRIX_DETAILS_TEST_SAME_AS_APP = 'TEST_SAME_AS_APP';
/**
* The test apk does not declare an instrumentation.
*/
public const INVALID_MATRIX_DETAILS_NO_INSTRUMENTATION = 'NO_INSTRUMENTATION';
/**
* The input app apk does not have a signature.
*/
public const INVALID_MATRIX_DETAILS_NO_SIGNATURE = 'NO_SIGNATURE';
/**
* The test runner class specified by user or in the test APK's manifest file
* is not compatible with Android Test Orchestrator. Orchestrator is only
* compatible with AndroidJUnitRunner version 1.1 or higher. Orchestrator can
* be disabled by using DO_NOT_USE_ORCHESTRATOR OrchestratorOption.
*/
public const INVALID_MATRIX_DETAILS_INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE = 'INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE';
/**
* The test APK does not contain the test runner class specified by the user
* or in the manifest file. This can be caused by one of the following
* reasons: - the user provided a runner class name that's incorrect, or - the
* test runner isn't built into the test APK (might be in the app APK
* instead).
*/
public const INVALID_MATRIX_DETAILS_NO_TEST_RUNNER_CLASS = 'NO_TEST_RUNNER_CLASS';
/**
* A main launcher activity could not be found.
*/
public const INVALID_MATRIX_DETAILS_NO_LAUNCHER_ACTIVITY = 'NO_LAUNCHER_ACTIVITY';
/**
* The app declares one or more permissions that are not allowed.
*/
public const INVALID_MATRIX_DETAILS_FORBIDDEN_PERMISSIONS = 'FORBIDDEN_PERMISSIONS';
/**
* There is a conflict in the provided robo_directives.
*/
public const INVALID_MATRIX_DETAILS_INVALID_ROBO_DIRECTIVES = 'INVALID_ROBO_DIRECTIVES';
/**
* There is at least one invalid resource name in the provided robo directives
*/
public const INVALID_MATRIX_DETAILS_INVALID_RESOURCE_NAME = 'INVALID_RESOURCE_NAME';
/**
* Invalid definition of action in the robo directives (e.g. a click or ignore
* action includes an input text field)
*/
public const INVALID_MATRIX_DETAILS_INVALID_DIRECTIVE_ACTION = 'INVALID_DIRECTIVE_ACTION';
/**
* There is no test loop intent filter, or the one that is given is not
* formatted correctly.
*/
public const INVALID_MATRIX_DETAILS_TEST_LOOP_INTENT_FILTER_NOT_FOUND = 'TEST_LOOP_INTENT_FILTER_NOT_FOUND';
/**
* The request contains a scenario label that was not declared in the
* manifest.
*/
public const INVALID_MATRIX_DETAILS_SCENARIO_LABEL_NOT_DECLARED = 'SCENARIO_LABEL_NOT_DECLARED';
/**
* There was an error when parsing a label's value.
*/
public const INVALID_MATRIX_DETAILS_SCENARIO_LABEL_MALFORMED = 'SCENARIO_LABEL_MALFORMED';
/**
* The request contains a scenario number that was not declared in the
* manifest.
*/
public const INVALID_MATRIX_DETAILS_SCENARIO_NOT_DECLARED = 'SCENARIO_NOT_DECLARED';
/**
* Device administrator applications are not allowed.
*/
public const INVALID_MATRIX_DETAILS_DEVICE_ADMIN_RECEIVER = 'DEVICE_ADMIN_RECEIVER';
/**
* The zipped XCTest was malformed. The zip did not contain a single
* .xctestrun file and the contents of the DerivedData/Build/Products
* directory.
*/
public const INVALID_MATRIX_DETAILS_MALFORMED_XC_TEST_ZIP = 'MALFORMED_XC_TEST_ZIP';
/**
* The zipped XCTest was built for the iOS simulator rather than for a
* physical device.
*/
public const INVALID_MATRIX_DETAILS_BUILT_FOR_IOS_SIMULATOR = 'BUILT_FOR_IOS_SIMULATOR';
/**
* The .xctestrun file did not specify any test targets.
*/
public const INVALID_MATRIX_DETAILS_NO_TESTS_IN_XC_TEST_ZIP = 'NO_TESTS_IN_XC_TEST_ZIP';
/**
* One or more of the test targets defined in the .xctestrun file specifies
* "UseDestinationArtifacts", which is disallowed.
*/
public const INVALID_MATRIX_DETAILS_USE_DESTINATION_ARTIFACTS = 'USE_DESTINATION_ARTIFACTS';
/**
* XC tests which run on physical devices must have "IsAppHostedTestBundle" ==
* "true" in the xctestrun file.
*/
public const INVALID_MATRIX_DETAILS_TEST_NOT_APP_HOSTED = 'TEST_NOT_APP_HOSTED';
/**
* An Info.plist file in the XCTest zip could not be parsed.
*/
public const INVALID_MATRIX_DETAILS_PLIST_CANNOT_BE_PARSED = 'PLIST_CANNOT_BE_PARSED';
/**
* The APK is marked as "testOnly". Deprecated and not currently used.
*
* @deprecated
*/
public const INVALID_MATRIX_DETAILS_TEST_ONLY_APK = 'TEST_ONLY_APK';
/**
* The input IPA could not be parsed.
*/
public const INVALID_MATRIX_DETAILS_MALFORMED_IPA = 'MALFORMED_IPA';
/**
* The application doesn't register the game loop URL scheme.
*/
public const INVALID_MATRIX_DETAILS_MISSING_URL_SCHEME = 'MISSING_URL_SCHEME';
/**
* The iOS application bundle (.app) couldn't be processed.
*/
public const INVALID_MATRIX_DETAILS_MALFORMED_APP_BUNDLE = 'MALFORMED_APP_BUNDLE';
/**
* APK contains no code. See also
* https://developer.android.com/guide/topics/manifest/application-
* element.html#code
*/
public const INVALID_MATRIX_DETAILS_NO_CODE_APK = 'NO_CODE_APK';
/**
* Either the provided input APK path was malformed, the APK file does not
* exist, or the user does not have permission to access the APK file.
*/
public const INVALID_MATRIX_DETAILS_INVALID_INPUT_APK = 'INVALID_INPUT_APK';
/**
* APK is built for a preview SDK which is unsupported
*/
public const INVALID_MATRIX_DETAILS_INVALID_APK_PREVIEW_SDK = 'INVALID_APK_PREVIEW_SDK';
/**
* The matrix expanded to contain too many executions.
*/
public const INVALID_MATRIX_DETAILS_MATRIX_TOO_LARGE = 'MATRIX_TOO_LARGE';
/**
* Not enough test quota to run the executions in this matrix.
*/
public const INVALID_MATRIX_DETAILS_TEST_QUOTA_EXCEEDED = 'TEST_QUOTA_EXCEEDED';
/**
* A required cloud service api is not activated. See:
* https://firebase.google.com/docs/test-lab/android/continuous#requirements
*/
public const INVALID_MATRIX_DETAILS_SERVICE_NOT_ACTIVATED = 'SERVICE_NOT_ACTIVATED';
/**
* There was an unknown permission issue running this test.
*/
public const INVALID_MATRIX_DETAILS_UNKNOWN_PERMISSION_ERROR = 'UNKNOWN_PERMISSION_ERROR';
/**
* Do not use. For proto versioning only.
*/
public const OUTCOME_SUMMARY_OUTCOME_SUMMARY_UNSPECIFIED = 'OUTCOME_SUMMARY_UNSPECIFIED';
/**
* The test matrix run was successful, for instance: - All the test cases
* passed. - Robo did not detect a crash of the application under test.
*/
public const OUTCOME_SUMMARY_SUCCESS = 'SUCCESS';
/**
* A run failed, for instance: - One or more test cases failed. - A test timed
* out. - The application under test crashed.
*/
public const OUTCOME_SUMMARY_FAILURE = 'FAILURE';
/**
* Something unexpected happened. The run should still be considered
* unsuccessful but this is likely a transient problem and re-running the test
* might be successful.
*/
public const OUTCOME_SUMMARY_INCONCLUSIVE = 'INCONCLUSIVE';
/**
* All tests were skipped, for instance: - All device configurations were
* incompatible.
*/
public const OUTCOME_SUMMARY_SKIPPED = 'SKIPPED';
/**
* Do not use. For proto versioning only.
*/
public const STATE_TEST_STATE_UNSPECIFIED = 'TEST_STATE_UNSPECIFIED';
/**
* The execution or matrix is being validated.
*/
public const STATE_VALIDATING = 'VALIDATING';
/**
* The execution or matrix is waiting for resources to become available.
*/
public const STATE_PENDING = 'PENDING';
/**
* The execution is currently being processed. Can only be set on an
* execution.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The execution or matrix has terminated normally. On a matrix this means
* that the matrix level processing completed normally, but individual
* executions may be in an ERROR state.
*/
public const STATE_FINISHED = 'FINISHED';
/**
* The execution or matrix has stopped because it encountered an
* infrastructure failure.
*/
public const STATE_ERROR = 'ERROR';
/**
* The execution was not run because it corresponds to a unsupported
* environment. Can only be set on an execution.
*/
public const STATE_UNSUPPORTED_ENVIRONMENT = 'UNSUPPORTED_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested environment. Example: requested AndroidVersion is lower than
* APK's minSdkVersion Can only be set on an execution.
*/
public const STATE_INCOMPATIBLE_ENVIRONMENT = 'INCOMPATIBLE_ENVIRONMENT';
/**
* The execution was not run because the provided inputs are incompatible with
* the requested architecture. Example: requested device does not support
* running the native code in the supplied APK Can only be set on an
* execution.
*/
public const STATE_INCOMPATIBLE_ARCHITECTURE = 'INCOMPATIBLE_ARCHITECTURE';
/**
* The user cancelled the execution. Can only be set on an execution.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The execution or matrix was not run because the provided inputs are not
* valid. Examples: input file is not of the expected type, is
* malformed/corrupt, or was flagged as malware
*/
public const STATE_INVALID = 'INVALID';
protected $collection_key = 'testExecutions';
protected $clientInfoType = ClientInfo::class;
protected $clientInfoDataType = '';
protected $environmentMatrixType = EnvironmentMatrix::class;
protected $environmentMatrixDataType = '';
protected $extendedInvalidMatrixDetailsType = MatrixErrorDetail::class;
protected $extendedInvalidMatrixDetailsDataType = 'array';
/**
* If true, only a single attempt at most will be made to run each
* execution/shard in the matrix. Flaky test attempts are not affected.
* Normally, 2 or more attempts are made if a potential infrastructure issue
* is detected. This feature is for latency sensitive workloads. The incidence
* of execution failures may be significantly greater for fail-fast matrices
* and support is more limited because of that expectation.
*
* @var bool
*/
public $failFast;
/**
* The number of times a TestExecution should be re-attempted if one or more
* of its test cases fail for any reason. The maximum number of reruns allowed
* is 10. Default is 0, which implies no reruns.
*
* @var int
*/
public $flakyTestAttempts;
/**
* Output only. Describes why the matrix is considered invalid. Only useful
* for matrices in the INVALID state.
*
* @var string
*/
public $invalidMatrixDetails;
/**
* Output Only. The overall outcome of the test. Only set when the test matrix
* state is FINISHED.
*
* @var string
*/
public $outcomeSummary;
/**
* The cloud project that owns the test matrix.
*
* @var string
*/
public $projectId;
protected $resultStorageType = ResultStorage::class;
protected $resultStorageDataType = '';
/**
* Output only. Indicates the current progress of the test matrix.
*
* @var string
*/
public $state;
protected $testExecutionsType = TestExecution::class;
protected $testExecutionsDataType = 'array';
/**
* Output only. Unique id set by the service.
*
* @var string
*/
public $testMatrixId;
protected $testSpecificationType = TestSpecification::class;
protected $testSpecificationDataType = '';
/**
* Output only. The time this test matrix was initially created.
*
* @var string
*/
public $timestamp;
/**
* Information about the client which invoked the test.
*
* @param ClientInfo $clientInfo
*/
public function setClientInfo(ClientInfo $clientInfo)
{
$this->clientInfo = $clientInfo;
}
/**
* @return ClientInfo
*/
public function getClientInfo()
{
return $this->clientInfo;
}
/**
* Required. The devices the tests are being executed on.
*
* @param EnvironmentMatrix $environmentMatrix
*/
public function setEnvironmentMatrix(EnvironmentMatrix $environmentMatrix)
{
$this->environmentMatrix = $environmentMatrix;
}
/**
* @return EnvironmentMatrix
*/
public function getEnvironmentMatrix()
{
return $this->environmentMatrix;
}
/**
* Output only. Details about why a matrix was deemed invalid. If multiple
* checks can be safely performed, they will be reported but no assumptions
* should be made about the length of this list.
*
* @param MatrixErrorDetail[] $extendedInvalidMatrixDetails
*/
public function setExtendedInvalidMatrixDetails($extendedInvalidMatrixDetails)
{
$this->extendedInvalidMatrixDetails = $extendedInvalidMatrixDetails;
}
/**
* @return MatrixErrorDetail[]
*/
public function getExtendedInvalidMatrixDetails()
{
return $this->extendedInvalidMatrixDetails;
}
/**
* If true, only a single attempt at most will be made to run each
* execution/shard in the matrix. Flaky test attempts are not affected.
* Normally, 2 or more attempts are made if a potential infrastructure issue
* is detected. This feature is for latency sensitive workloads. The incidence
* of execution failures may be significantly greater for fail-fast matrices
* and support is more limited because of that expectation.
*
* @param bool $failFast
*/
public function setFailFast($failFast)
{
$this->failFast = $failFast;
}
/**
* @return bool
*/
public function getFailFast()
{
return $this->failFast;
}
/**
* The number of times a TestExecution should be re-attempted if one or more
* of its test cases fail for any reason. The maximum number of reruns allowed
* is 10. Default is 0, which implies no reruns.
*
* @param int $flakyTestAttempts
*/
public function setFlakyTestAttempts($flakyTestAttempts)
{
$this->flakyTestAttempts = $flakyTestAttempts;
}
/**
* @return int
*/
public function getFlakyTestAttempts()
{
return $this->flakyTestAttempts;
}
/**
* Output only. Describes why the matrix is considered invalid. Only useful
* for matrices in the INVALID state.
*
* Accepted values: INVALID_MATRIX_DETAILS_UNSPECIFIED, DETAILS_UNAVAILABLE,
* MALFORMED_APK, MALFORMED_TEST_APK, NO_MANIFEST, NO_PACKAGE_NAME,
* INVALID_PACKAGE_NAME, TEST_SAME_AS_APP, NO_INSTRUMENTATION, NO_SIGNATURE,
* INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE, NO_TEST_RUNNER_CLASS,
* NO_LAUNCHER_ACTIVITY, FORBIDDEN_PERMISSIONS, INVALID_ROBO_DIRECTIVES,
* INVALID_RESOURCE_NAME, INVALID_DIRECTIVE_ACTION,
* TEST_LOOP_INTENT_FILTER_NOT_FOUND, SCENARIO_LABEL_NOT_DECLARED,
* SCENARIO_LABEL_MALFORMED, SCENARIO_NOT_DECLARED, DEVICE_ADMIN_RECEIVER,
* MALFORMED_XC_TEST_ZIP, BUILT_FOR_IOS_SIMULATOR, NO_TESTS_IN_XC_TEST_ZIP,
* USE_DESTINATION_ARTIFACTS, TEST_NOT_APP_HOSTED, PLIST_CANNOT_BE_PARSED,
* TEST_ONLY_APK, MALFORMED_IPA, MISSING_URL_SCHEME, MALFORMED_APP_BUNDLE,
* NO_CODE_APK, INVALID_INPUT_APK, INVALID_APK_PREVIEW_SDK, MATRIX_TOO_LARGE,
* TEST_QUOTA_EXCEEDED, SERVICE_NOT_ACTIVATED, UNKNOWN_PERMISSION_ERROR
*
* @param self::INVALID_MATRIX_DETAILS_* $invalidMatrixDetails
*/
public function setInvalidMatrixDetails($invalidMatrixDetails)
{
$this->invalidMatrixDetails = $invalidMatrixDetails;
}
/**
* @return self::INVALID_MATRIX_DETAILS_*
*/
public function getInvalidMatrixDetails()
{
return $this->invalidMatrixDetails;
}
/**
* Output Only. The overall outcome of the test. Only set when the test matrix
* state is FINISHED.
*
* Accepted values: OUTCOME_SUMMARY_UNSPECIFIED, SUCCESS, FAILURE,
* INCONCLUSIVE, SKIPPED
*
* @param self::OUTCOME_SUMMARY_* $outcomeSummary
*/
public function setOutcomeSummary($outcomeSummary)
{
$this->outcomeSummary = $outcomeSummary;
}
/**
* @return self::OUTCOME_SUMMARY_*
*/
public function getOutcomeSummary()
{
return $this->outcomeSummary;
}
/**
* The cloud project that owns the test matrix.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Required. Where the results for the matrix are written.
*
* @param ResultStorage $resultStorage
*/
public function setResultStorage(ResultStorage $resultStorage)
{
$this->resultStorage = $resultStorage;
}
/**
* @return ResultStorage
*/
public function getResultStorage()
{
return $this->resultStorage;
}
/**
* Output only. Indicates the current progress of the test matrix.
*
* Accepted values: TEST_STATE_UNSPECIFIED, VALIDATING, PENDING, RUNNING,
* FINISHED, ERROR, UNSUPPORTED_ENVIRONMENT, INCOMPATIBLE_ENVIRONMENT,
* INCOMPATIBLE_ARCHITECTURE, CANCELLED, INVALID
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The list of test executions that the service creates for this
* matrix.
*
* @param TestExecution[] $testExecutions
*/
public function setTestExecutions($testExecutions)
{
$this->testExecutions = $testExecutions;
}
/**
* @return TestExecution[]
*/
public function getTestExecutions()
{
return $this->testExecutions;
}
/**
* Output only. Unique id set by the service.
*
* @param string $testMatrixId
*/
public function setTestMatrixId($testMatrixId)
{
$this->testMatrixId = $testMatrixId;
}
/**
* @return string
*/
public function getTestMatrixId()
{
return $this->testMatrixId;
}
/**
* Required. How to run the test.
*
* @param TestSpecification $testSpecification
*/
public function setTestSpecification(TestSpecification $testSpecification)
{
$this->testSpecification = $testSpecification;
}
/**
* @return TestSpecification
*/
public function getTestSpecification()
{
return $this->testSpecification;
}
/**
* Output only. The time this test matrix was initially created.
*
* @param string $timestamp
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestMatrix::class, 'Google_Service_Testing_TestMatrix');
@@ -0,0 +1,226 @@
<?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\Testing;
class TestSetup extends \Google\Collection
{
protected $collection_key = 'initialSetupApks';
protected $accountType = Account::class;
protected $accountDataType = '';
protected $additionalApksType = Apk::class;
protected $additionalApksDataType = 'array';
/**
* List of directories on the device to upload to GCS at the end of the test;
* they must be absolute paths under /sdcard, /storage or /data/local/tmp.
* Path names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The
* paths /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to
* external storage, the system will replace it with the external storage path
* prefix for that device.
*
* @var string[]
*/
public $directoriesToPull;
/**
* Whether to prevent all runtime permissions to be granted at app install
*
* @var bool
*/
public $dontAutograntPermissions;
protected $environmentVariablesType = EnvironmentVariable::class;
protected $environmentVariablesDataType = 'array';
protected $filesToPushType = DeviceFile::class;
protected $filesToPushDataType = 'array';
protected $initialSetupApksType = Apk::class;
protected $initialSetupApksDataType = 'array';
/**
* The network traffic profile used for running the test. Available network
* profiles can be queried by using the NETWORK_CONFIGURATION environment type
* when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
*
* @var string
*/
public $networkProfile;
protected $systraceType = SystraceSetup::class;
protected $systraceDataType = '';
/**
* The device will be logged in on this account for the duration of the test.
*
* @param Account $account
*/
public function setAccount(Account $account)
{
$this->account = $account;
}
/**
* @return Account
*/
public function getAccount()
{
return $this->account;
}
/**
* APKs to install in addition to those being directly tested. These will be
* installed after the app under test. Limited to a combined total of 100
* initial setup and additional files.
*
* @param Apk[] $additionalApks
*/
public function setAdditionalApks($additionalApks)
{
$this->additionalApks = $additionalApks;
}
/**
* @return Apk[]
*/
public function getAdditionalApks()
{
return $this->additionalApks;
}
/**
* List of directories on the device to upload to GCS at the end of the test;
* they must be absolute paths under /sdcard, /storage or /data/local/tmp.
* Path names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The
* paths /sdcard and /data will be made available and treated as implicit path
* substitutions. E.g. if /sdcard on a particular device does not map to
* external storage, the system will replace it with the external storage path
* prefix for that device.
*
* @param string[] $directoriesToPull
*/
public function setDirectoriesToPull($directoriesToPull)
{
$this->directoriesToPull = $directoriesToPull;
}
/**
* @return string[]
*/
public function getDirectoriesToPull()
{
return $this->directoriesToPull;
}
/**
* Whether to prevent all runtime permissions to be granted at app install
*
* @param bool $dontAutograntPermissions
*/
public function setDontAutograntPermissions($dontAutograntPermissions)
{
$this->dontAutograntPermissions = $dontAutograntPermissions;
}
/**
* @return bool
*/
public function getDontAutograntPermissions()
{
return $this->dontAutograntPermissions;
}
/**
* Environment variables to set for the test (only applicable for
* instrumentation tests).
*
* @param EnvironmentVariable[] $environmentVariables
*/
public function setEnvironmentVariables($environmentVariables)
{
$this->environmentVariables = $environmentVariables;
}
/**
* @return EnvironmentVariable[]
*/
public function getEnvironmentVariables()
{
return $this->environmentVariables;
}
/**
* List of files to push to the device before starting the test.
*
* @param DeviceFile[] $filesToPush
*/
public function setFilesToPush($filesToPush)
{
$this->filesToPush = $filesToPush;
}
/**
* @return DeviceFile[]
*/
public function getFilesToPush()
{
return $this->filesToPush;
}
/**
* Optional. Initial setup APKs to install before the app under test is
* installed. Limited to a combined total of 100 initial setup and additional
* files.
*
* @param Apk[] $initialSetupApks
*/
public function setInitialSetupApks($initialSetupApks)
{
$this->initialSetupApks = $initialSetupApks;
}
/**
* @return Apk[]
*/
public function getInitialSetupApks()
{
return $this->initialSetupApks;
}
/**
* The network traffic profile used for running the test. Available network
* profiles can be queried by using the NETWORK_CONFIGURATION environment type
* when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
*
* @param string $networkProfile
*/
public function setNetworkProfile($networkProfile)
{
$this->networkProfile = $networkProfile;
}
/**
* @return string
*/
public function getNetworkProfile()
{
return $this->networkProfile;
}
/**
* Systrace configuration for the run. Deprecated: Systrace used Python 2
* which was sunsetted on 2020-01-01. Systrace is no longer supported in the
* Cloud Testing API, and no Systrace file will be provided in the results.
*
* @deprecated
* @param SystraceSetup $systrace
*/
public function setSystrace(SystraceSetup $systrace)
{
$this->systrace = $systrace;
}
/**
* @deprecated
* @return SystraceSetup
*/
public function getSystrace()
{
return $this->systrace;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestSetup::class, 'Google_Service_Testing_TestSetup');
@@ -0,0 +1,239 @@
<?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\Testing;
class TestSpecification extends \Google\Model
{
protected $androidInstrumentationTestType = AndroidInstrumentationTest::class;
protected $androidInstrumentationTestDataType = '';
protected $androidRoboTestType = AndroidRoboTest::class;
protected $androidRoboTestDataType = '';
protected $androidTestLoopType = AndroidTestLoop::class;
protected $androidTestLoopDataType = '';
/**
* Disables performance metrics recording. May reduce test latency.
*
* @var bool
*/
public $disablePerformanceMetrics;
/**
* Disables video recording. May reduce test latency.
*
* @var bool
*/
public $disableVideoRecording;
protected $iosRoboTestType = IosRoboTest::class;
protected $iosRoboTestDataType = '';
protected $iosTestLoopType = IosTestLoop::class;
protected $iosTestLoopDataType = '';
protected $iosTestSetupType = IosTestSetup::class;
protected $iosTestSetupDataType = '';
protected $iosXcTestType = IosXcTest::class;
protected $iosXcTestDataType = '';
protected $testSetupType = TestSetup::class;
protected $testSetupDataType = '';
/**
* Max time a test execution is allowed to run before it is automatically
* cancelled. The default value is 5 min.
*
* @var string
*/
public $testTimeout;
/**
* An Android instrumentation test.
*
* @param AndroidInstrumentationTest $androidInstrumentationTest
*/
public function setAndroidInstrumentationTest(AndroidInstrumentationTest $androidInstrumentationTest)
{
$this->androidInstrumentationTest = $androidInstrumentationTest;
}
/**
* @return AndroidInstrumentationTest
*/
public function getAndroidInstrumentationTest()
{
return $this->androidInstrumentationTest;
}
/**
* An Android robo test.
*
* @param AndroidRoboTest $androidRoboTest
*/
public function setAndroidRoboTest(AndroidRoboTest $androidRoboTest)
{
$this->androidRoboTest = $androidRoboTest;
}
/**
* @return AndroidRoboTest
*/
public function getAndroidRoboTest()
{
return $this->androidRoboTest;
}
/**
* An Android Application with a Test Loop.
*
* @param AndroidTestLoop $androidTestLoop
*/
public function setAndroidTestLoop(AndroidTestLoop $androidTestLoop)
{
$this->androidTestLoop = $androidTestLoop;
}
/**
* @return AndroidTestLoop
*/
public function getAndroidTestLoop()
{
return $this->androidTestLoop;
}
/**
* Disables performance metrics recording. May reduce test latency.
*
* @param bool $disablePerformanceMetrics
*/
public function setDisablePerformanceMetrics($disablePerformanceMetrics)
{
$this->disablePerformanceMetrics = $disablePerformanceMetrics;
}
/**
* @return bool
*/
public function getDisablePerformanceMetrics()
{
return $this->disablePerformanceMetrics;
}
/**
* Disables video recording. May reduce test latency.
*
* @param bool $disableVideoRecording
*/
public function setDisableVideoRecording($disableVideoRecording)
{
$this->disableVideoRecording = $disableVideoRecording;
}
/**
* @return bool
*/
public function getDisableVideoRecording()
{
return $this->disableVideoRecording;
}
/**
* An iOS Robo test.
*
* @param IosRoboTest $iosRoboTest
*/
public function setIosRoboTest(IosRoboTest $iosRoboTest)
{
$this->iosRoboTest = $iosRoboTest;
}
/**
* @return IosRoboTest
*/
public function getIosRoboTest()
{
return $this->iosRoboTest;
}
/**
* An iOS application with a test loop.
*
* @param IosTestLoop $iosTestLoop
*/
public function setIosTestLoop(IosTestLoop $iosTestLoop)
{
$this->iosTestLoop = $iosTestLoop;
}
/**
* @return IosTestLoop
*/
public function getIosTestLoop()
{
return $this->iosTestLoop;
}
/**
* Test setup requirements for iOS.
*
* @param IosTestSetup $iosTestSetup
*/
public function setIosTestSetup(IosTestSetup $iosTestSetup)
{
$this->iosTestSetup = $iosTestSetup;
}
/**
* @return IosTestSetup
*/
public function getIosTestSetup()
{
return $this->iosTestSetup;
}
/**
* An iOS XCTest, via an .xctestrun file.
*
* @param IosXcTest $iosXcTest
*/
public function setIosXcTest(IosXcTest $iosXcTest)
{
$this->iosXcTest = $iosXcTest;
}
/**
* @return IosXcTest
*/
public function getIosXcTest()
{
return $this->iosXcTest;
}
/**
* Test setup requirements for Android e.g. files to install, bootstrap
* scripts.
*
* @param TestSetup $testSetup
*/
public function setTestSetup(TestSetup $testSetup)
{
$this->testSetup = $testSetup;
}
/**
* @return TestSetup
*/
public function getTestSetup()
{
return $this->testSetup;
}
/**
* Max time a test execution is allowed to run before it is automatically
* cancelled. The default value is 5 min.
*
* @param string $testTimeout
*/
public function setTestTimeout($testTimeout)
{
$this->testTimeout = $testTimeout;
}
/**
* @return string
*/
public function getTestTimeout()
{
return $this->testTimeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestSpecification::class, 'Google_Service_Testing_TestSpecification');
@@ -0,0 +1,55 @@
<?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\Testing;
class TestTargetsForShard extends \Google\Collection
{
protected $collection_key = 'testTargets';
/**
* Group of packages, classes, and/or test methods to be run for each shard.
* The targets need to be specified in AndroidJUnitRunner argument format. For
* example, "package com.my.packages" "class com.my.package.MyClass". The
* number of test_targets must be greater than 0.
*
* @var string[]
*/
public $testTargets;
/**
* Group of packages, classes, and/or test methods to be run for each shard.
* The targets need to be specified in AndroidJUnitRunner argument format. For
* example, "package com.my.packages" "class com.my.package.MyClass". The
* number of test_targets must be greater than 0.
*
* @param string[] $testTargets
*/
public function setTestTargets($testTargets)
{
$this->testTargets = $testTargets;
}
/**
* @return string[]
*/
public function getTestTargets()
{
return $this->testTargets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestTargetsForShard::class, 'Google_Service_Testing_TestTargetsForShard');
@@ -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\Testing;
class TestingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestingEmpty::class, 'Google_Service_Testing_TestingEmpty');
@@ -0,0 +1,92 @@
<?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\Testing;
class ToolResultsExecution extends \Google\Model
{
/**
* Output only. A tool results execution ID.
*
* @var string
*/
public $executionId;
/**
* Output only. A tool results history ID.
*
* @var string
*/
public $historyId;
/**
* Output only. The cloud project that owns the tool results execution.
*
* @var string
*/
public $projectId;
/**
* Output only. A tool results execution ID.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* Output only. A tool results history ID.
*
* @param string $historyId
*/
public function setHistoryId($historyId)
{
$this->historyId = $historyId;
}
/**
* @return string
*/
public function getHistoryId()
{
return $this->historyId;
}
/**
* Output only. The cloud project that owns the tool results execution.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToolResultsExecution::class, 'Google_Service_Testing_ToolResultsExecution');
@@ -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\Testing;
class ToolResultsHistory extends \Google\Model
{
/**
* Required. A tool results history ID.
*
* @var string
*/
public $historyId;
/**
* Required. The cloud project that owns the tool results history.
*
* @var string
*/
public $projectId;
/**
* Required. A tool results history ID.
*
* @param string $historyId
*/
public function setHistoryId($historyId)
{
$this->historyId = $historyId;
}
/**
* @return string
*/
public function getHistoryId()
{
return $this->historyId;
}
/**
* Required. The cloud project that owns the tool results history.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToolResultsHistory::class, 'Google_Service_Testing_ToolResultsHistory');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Testing;
class ToolResultsStep extends \Google\Model
{
/**
* Output only. A tool results execution ID.
*
* @var string
*/
public $executionId;
/**
* Output only. A tool results history ID.
*
* @var string
*/
public $historyId;
/**
* Output only. The cloud project that owns the tool results step.
*
* @var string
*/
public $projectId;
/**
* Output only. A tool results step ID.
*
* @var string
*/
public $stepId;
/**
* Output only. A tool results execution ID.
*
* @param string $executionId
*/
public function setExecutionId($executionId)
{
$this->executionId = $executionId;
}
/**
* @return string
*/
public function getExecutionId()
{
return $this->executionId;
}
/**
* Output only. A tool results history ID.
*
* @param string $historyId
*/
public function setHistoryId($historyId)
{
$this->historyId = $historyId;
}
/**
* @return string
*/
public function getHistoryId()
{
return $this->historyId;
}
/**
* Output only. The cloud project that owns the tool results step.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Output only. A tool results step ID.
*
* @param string $stepId
*/
public function setStepId($stepId)
{
$this->stepId = $stepId;
}
/**
* @return string
*/
public function getStepId()
{
return $this->stepId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ToolResultsStep::class, 'Google_Service_Testing_ToolResultsStep');
@@ -0,0 +1,136 @@
<?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\Testing;
class TrafficRule extends \Google\Model
{
/**
* Bandwidth in kbits/second.
*
* @var float
*/
public $bandwidth;
/**
* Burst size in kbits.
*
* @var float
*/
public $burst;
/**
* Packet delay, must be >= 0.
*
* @var string
*/
public $delay;
/**
* Packet duplication ratio (0.0 - 1.0).
*
* @var float
*/
public $packetDuplicationRatio;
/**
* Packet loss ratio (0.0 - 1.0).
*
* @var float
*/
public $packetLossRatio;
/**
* Bandwidth in kbits/second.
*
* @param float $bandwidth
*/
public function setBandwidth($bandwidth)
{
$this->bandwidth = $bandwidth;
}
/**
* @return float
*/
public function getBandwidth()
{
return $this->bandwidth;
}
/**
* Burst size in kbits.
*
* @param float $burst
*/
public function setBurst($burst)
{
$this->burst = $burst;
}
/**
* @return float
*/
public function getBurst()
{
return $this->burst;
}
/**
* Packet delay, must be >= 0.
*
* @param string $delay
*/
public function setDelay($delay)
{
$this->delay = $delay;
}
/**
* @return string
*/
public function getDelay()
{
return $this->delay;
}
/**
* Packet duplication ratio (0.0 - 1.0).
*
* @param float $packetDuplicationRatio
*/
public function setPacketDuplicationRatio($packetDuplicationRatio)
{
$this->packetDuplicationRatio = $packetDuplicationRatio;
}
/**
* @return float
*/
public function getPacketDuplicationRatio()
{
return $this->packetDuplicationRatio;
}
/**
* Packet loss ratio (0.0 - 1.0).
*
* @param float $packetLossRatio
*/
public function setPacketLossRatio($packetLossRatio)
{
$this->packetLossRatio = $packetLossRatio;
}
/**
* @return float
*/
public function getPacketLossRatio()
{
return $this->packetLossRatio;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TrafficRule::class, 'Google_Service_Testing_TrafficRule');
@@ -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\Testing;
class UniformSharding extends \Google\Model
{
/**
* Required. The total number of shards to create. This must always be a
* positive number that is no greater than the total number of test cases.
* When you select one or more physical devices, the number of shards must be
* <= 50. When you select one or more ARM virtual devices, it must be <= 200.
* When you select only x86 virtual devices, it must be <= 500.
*
* @var int
*/
public $numShards;
/**
* Required. The total number of shards to create. This must always be a
* positive number that is no greater than the total number of test cases.
* When you select one or more physical devices, the number of shards must be
* <= 50. When you select one or more ARM virtual devices, it must be <= 200.
* When you select only x86 virtual devices, it must be <= 500.
*
* @param int $numShards
*/
public function setNumShards($numShards)
{
$this->numShards = $numShards;
}
/**
* @return int
*/
public function getNumShards()
{
return $this->numShards;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UniformSharding::class, 'Google_Service_Testing_UniformSharding');
@@ -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\Testing;
class UsesFeature extends \Google\Model
{
/**
* The android:required value
*
* @var bool
*/
public $isRequired;
/**
* The android:name value
*
* @var string
*/
public $name;
/**
* The android:required value
*
* @param bool $isRequired
*/
public function setIsRequired($isRequired)
{
$this->isRequired = $isRequired;
}
/**
* @return bool
*/
public function getIsRequired()
{
return $this->isRequired;
}
/**
* The android:name value
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsesFeature::class, 'Google_Service_Testing_UsesFeature');
@@ -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\Testing;
class UsesPermissionTag extends \Google\Model
{
/**
* The android:name value
*
* @var int
*/
public $maxSdkVersion;
/**
* The android:name value
*
* @var string
*/
public $name;
/**
* The android:name value
*
* @param int $maxSdkVersion
*/
public function setMaxSdkVersion($maxSdkVersion)
{
$this->maxSdkVersion = $maxSdkVersion;
}
/**
* @return int
*/
public function getMaxSdkVersion()
{
return $this->maxSdkVersion;
}
/**
* The android:name value
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsesPermissionTag::class, 'Google_Service_Testing_UsesPermissionTag');
@@ -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\Testing;
class XcodeVersion extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* Tags for this Xcode version. Example: "default".
*
* @var string[]
*/
public $tags;
/**
* The id for this version. Example: "9.2".
*
* @var string
*/
public $version;
/**
* Tags for this Xcode version. Example: "default".
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
/**
* The id for this version. Example: "9.2".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XcodeVersion::class, 'Google_Service_Testing_XcodeVersion');