openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 49.9 kB
JSON
{"openapi":"3.0.0","info":{"contact":{"name":"Google","url":"https://google.com"},"description":"Allows developers to run automated tests for their mobile applications on Google infrastructure.","title":"Cloud Testing","version":"v1","x-apiClientRegistration":{"url":"https://console.developers.google.com"},"x-apisguru-categories":["developer_tools"],"x-logo":{"url":"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"},"x-origin":[{"converter":{"url":"https://github.com/lucybot/api-spec-converter","version":"2.7.18"},"format":"google","url":"https://testing.googleapis.com/$discovery/rest?version=v1","version":"v1"}],"x-preferred":true,"x-providerName":"googleapis.com","x-serviceName":"testing"},"externalDocs":{"url":"https://developers.google.com/cloud-test-lab/"},"tags":[{"name":"applicationDetailService"},{"name":"projects"},{"name":"testEnvironmentCatalog"}],"paths":{"/v1/applicationDetailService/getApkDetails":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/uploadType"},{"$ref":"#/components/parameters/upload_protocol"}],"post":{"description":"Gets the details of an Android application APK.","operationId":"testing.applicationDetailService.getApkDetails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileReference"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/GetApkDetailsResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["applicationDetailService"]}},"/v1/projects/{projectId}/testMatrices":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/uploadType"},{"$ref":"#/components/parameters/upload_protocol"}],"post":{"description":"Creates and runs a matrix of tests according to the given specifications.\nUnsupported environments will be returned in the state UNSUPPORTED.\nMatrices are limited to at most 200 supported executions.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to write to project\n- INVALID_ARGUMENT - if the request is malformed or if the matrix expands\n to more than 200 supported executions","operationId":"testing.projects.testMatrices.create","parameters":[{"description":"The GCE project under which this job will run.","in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"A string id used to detect duplicated requests.\nIds are automatically scoped to a project, so\nusers should ensure the ID is unique per-project.\nA UUID is recommended.\n\nOptional, but strongly recommended.","in":"query","name":"requestId","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestMatrix"}}}},"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TestMatrix"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/projects/{projectId}/testMatrices/{testMatrixId}":{"get":{"description":"Checks the status of a test matrix.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to read project\n- INVALID_ARGUMENT - if the request is malformed\n- NOT_FOUND - if the Test Matrix does not exist","operationId":"testing.projects.testMatrices.get","parameters":[{"description":"Cloud project that owns the test matrix.","in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Unique test matrix id which was assigned by the service.","in":"path","name":"testMatrixId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TestMatrix"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"]},{"Oauth2":["https://www.googleapis.com/auth/cloud-platform.read-only"]}],"tags":["projects"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/uploadType"},{"$ref":"#/components/parameters/upload_protocol"}]},"/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel":{"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/uploadType"},{"$ref":"#/components/parameters/upload_protocol"}],"post":{"description":"Cancels unfinished test executions in a test matrix.\nThis call returns immediately and cancellation proceeds asychronously.\nIf the matrix is already final, this operation will have no effect.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to read project\n- INVALID_ARGUMENT - if the request is malformed\n- NOT_FOUND - if the Test Matrix does not exist","operationId":"testing.projects.testMatrices.cancel","parameters":[{"description":"Cloud project that owns the test.","in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Test matrix that will be canceled.","in":"path","name":"testMatrixId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CancelTestMatrixResponse"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"]}],"tags":["projects"]}},"/v1/testEnvironmentCatalog/{environmentType}":{"get":{"description":"Gets the catalog of supported test environments.\n\nMay return any of the following canonical error codes:\n\n- INVALID_ARGUMENT - if the request is malformed\n- NOT_FOUND - if the environment type does not exist\n- INTERNAL - if an internal error occurred","operationId":"testing.testEnvironmentCatalog.get","parameters":[{"description":"Required. The type of environment that should be listed.","in":"path","name":"environmentType","required":true,"schema":{"type":"string","enum":["ENVIRONMENT_TYPE_UNSPECIFIED","ANDROID","IOS","NETWORK_CONFIGURATION","PROVIDED_SOFTWARE"]}},{"description":"For authorization, the cloud project requesting the TestEnvironmentCatalog.","in":"query","name":"projectId","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TestEnvironmentCatalog"}}}}},"security":[{"Oauth2":["https://www.googleapis.com/auth/cloud-platform"]},{"Oauth2":["https://www.googleapis.com/auth/cloud-platform.read-only"]}],"tags":["testEnvironmentCatalog"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/uploadType"},{"$ref":"#/components/parameters/upload_protocol"}]}},"servers":[{"url":"https://testing.googleapis.com/"}],"components":{"parameters":{"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"type":"string","enum":["json","media","proto"],"default":"json"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean","default":true}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}},"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"type":"string","enum":["1","2"]}}},"securitySchemes":{"Oauth2":{"description":"Oauth 2.0 authentication","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://accounts.google.com/o/oauth2/auth","scopes":{"https://www.googleapis.com/auth/cloud-platform":"View and manage your data across Google Cloud Platform services","https://www.googleapis.com/auth/cloud-platform.read-only":"View your data across Google Cloud Platform services"}}}}},"schemas":{"Account":{"description":"Identifies an account and how to log into it.","properties":{"googleAuto":{"$ref":"#/components/schemas/GoogleAuto"}},"type":"object"},"AndroidDevice":{"description":"A single Android device.","properties":{"androidModelId":{"description":"Required. The id of the Android device to be used.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"androidVersionId":{"description":"Required. The id of the Android OS version to be used.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"locale":{"description":"Required. The locale the test device used for testing.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"orientation":{"description":"Required. How the device is oriented during the test.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"}},"type":"object"},"AndroidDeviceCatalog":{"description":"The currently supported Android devices.","properties":{"models":{"description":"The set of supported Android device models.","items":{"$ref":"#/components/schemas/AndroidModel"},"type":"array"},"runtimeConfiguration":{"$ref":"#/components/schemas/AndroidRuntimeConfiguration"},"versions":{"description":"The set of supported Android OS versions.","items":{"$ref":"#/components/schemas/AndroidVersion"},"type":"array"}},"type":"object"},"AndroidDeviceList":{"description":"A list of Android device configurations in which the test is to be executed.","properties":{"androidDevices":{"description":"Required. A list of Android devices.","items":{"$ref":"#/components/schemas/AndroidDevice"},"type":"array"}},"type":"object"},"AndroidInstrumentationTest":{"description":"A test of an Android application that can control an Android component\nindependently of its normal lifecycle.\nAndroid instrumentation tests run an application APK and test APK inside the\nsame process on a virtual or physical AndroidDevice. They also specify\na test runner class, such as com.google.GoogleTestRunner, which can vary\non the specific instrumentation framework chosen.\n\nSee <http://developer.android.com/tools/testing/testing_android.html> for\nmore information on types of Android tests.","properties":{"appApk":{"$ref":"#/components/schemas/FileReference"},"appBundle":{"$ref":"#/components/schemas/AppBundle"},"appPackageId":{"description":"The java package for the application under test.\nThe default value is determined by examining the application's manifest.","type":"string"},"orchestratorOption":{"description":"The option of whether running each test within its own invocation of\ninstrumentation with Android Test Orchestrator or not.\n** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or\nhigher! **\nOrchestrator offers the following benefits:\n - No shared state\n - Crashes are isolated\n - Logs are scoped per test\n\nSee\n<https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator>\nfor more information about Android Test Orchestrator.\n\nIf not set, the test will be run without the orchestrator.","enum":["ORCHESTRATOR_OPTION_UNSPECIFIED","USE_ORCHESTRATOR","DO_NOT_USE_ORCHESTRATOR"],"type":"string"},"testApk":{"$ref":"#/components/schemas/FileReference"},"testPackageId":{"description":"The java package for the test to be executed.\nThe default value is determined by examining the application's manifest.","type":"string"},"testRunnerClass":{"description":"The InstrumentationTestRunner class.\nThe default value is determined by examining the application's manifest.","type":"string"},"testTargets":{"description":"Each target must be fully qualified with the package name or class name,\nin one of these formats:\n - \"package package_name\"\n - \"class package_name.class_name\"\n - \"class package_name.class_name#method_name\"\n\nIf empty, all targets in the module will be run.","items":{"type":"string"},"type":"array"}},"type":"object"},"AndroidMatrix":{"description":"A set of Android device configuration permutations is defined by the\nthe cross-product of the given axes. Internally, the given AndroidMatrix\nwill be expanded into a set of AndroidDevices.\n\nOnly supported permutations will be instantiated. Invalid permutations\n(e.g., incompatible models/versions) are ignored.","properties":{"androidModelIds":{"description":"Required. The ids of the set of Android device to be used.\nUse the EnvironmentDiscoveryService to get supported options.","items":{"type":"string"},"type":"array"},"androidVersionIds":{"description":"Required. The ids of the set of Android OS version to be used.\nUse the EnvironmentDiscoveryService to get supported options.","items":{"type":"string"},"type":"array"},"locales":{"description":"Required. The set of locales the test device will enable for testing.\nUse the EnvironmentDiscoveryService to get supported options.","items":{"type":"string"},"type":"array"},"orientations":{"description":"Required. The set of orientations to test with.\nUse the EnvironmentDiscoveryService to get supported options.","items":{"type":"string"},"type":"array"}},"type":"object"},"AndroidModel":{"description":"A description of an Android device tests may be run on.","properties":{"brand":{"description":"The company that this device is branded with.\nExample: \"Google\", \"Samsung\".","type":"string"},"codename":{"description":"The name of the industrial design.\nThis corresponds to android.os.Build.DEVICE.","type":"string"},"form":{"description":"Whether this device is virtual or physical.","enum":["DEVICE_FORM_UNSPECIFIED","VIRTUAL","PHYSICAL"],"type":"string"},"formFactor":{"description":"Whether this device is a phone, tablet, wearable, etc.","enum":["DEVICE_FORM_FACTOR_UNSPECIFIED","PHONE","TABLET","WEARABLE"],"type":"string"},"id":{"description":"The unique opaque id for this model.\nUse this for invoking the TestExecutionService.","type":"string"},"lowFpsVideoRecording":{"description":"True if and only if tests with this model are recorded by stitching\ntogether screenshots. See use_low_spec_video_recording in device config.","type":"boolean"},"manufacturer":{"description":"The manufacturer of this device.","type":"string"},"name":{"description":"The human-readable marketing name for this device model.\nExamples: \"Nexus 5\", \"Galaxy S5\".","type":"string"},"screenDensity":{"description":"Screen density in DPI.\nThis corresponds to ro.sf.lcd_density","format":"int32","type":"integer"},"screenX":{"description":"Screen size in the horizontal (X) dimension measured in pixels.","format":"int32","type":"integer"},"screenY":{"description":"Screen size in the vertical (Y) dimension measured in pixels.","format":"int32","type":"integer"},"supportedAbis":{"description":"The list of supported ABIs for this device.\nThis corresponds to either android.os.Build.SUPPORTED_ABIS (for API level\n21 and above) or android.os.Build.CPU_ABI/CPU_ABI2.\nThe most preferred ABI is the first element in the list.\n\nElements are optionally prefixed by \"version_id:\" (where version_id is\nthe id of an AndroidVersion), denoting an ABI that is supported only on\na particular version.","items":{"type":"string"},"type":"array"},"supportedVersionIds":{"description":"The set of Android versions this device supports.","items":{"type":"string"},"type":"array"},"tags":{"description":"Tags for this dimension.\nExamples: \"default\", \"preview\", \"deprecated\".","items":{"type":"string"},"type":"array"}},"type":"object"},"AndroidRoboTest":{"description":"A test of an android application that explores the application on a virtual\nor physical Android Device, finding culprits and crashes as it goes.","properties":{"appApk":{"$ref":"#/components/schemas/FileReference"},"appBundle":{"$ref":"#/components/schemas/AppBundle"},"appInitialActivity":{"description":"The initial activity that should be used to start the app.","type":"string"},"appPackageId":{"description":"The java package for the application under test.\nThe default value is determined by examining the application's manifest.","type":"string"},"maxDepth":{"description":"The max depth of the traversal stack Robo can explore. Needs to be at least\n2 to make Robo explore the app beyond the first activity.\nDefault is 50.","format":"int32","type":"integer"},"maxSteps":{"description":"The max number of steps Robo can execute.\nDefault is no limit.","format":"int32","type":"integer"},"roboDirectives":{"description":"A set of directives Robo should apply during the crawl.\nThis allows users to customize the crawl. For example, the username and\npassword for a test account can be provided.","items":{"$ref":"#/components/schemas/RoboDirective"},"type":"array"},"roboScript":{"$ref":"#/components/schemas/FileReference"},"startingIntents":{"description":"The intents used to launch the app for the crawl.\nIf none are provided, then the main launcher activity is launched.\nIf some are provided, then only those provided are launched (the main\nlauncher activity must be provided explicitly).","items":{"$ref":"#/components/schemas/RoboStartingIntent"},"type":"array"}},"type":"object"},"AndroidRuntimeConfiguration":{"description":"Android configuration that can be selected at the time a test is run.","properties":{"locales":{"description":"The set of available locales.","items":{"$ref":"#/components/schemas/Locale"},"type":"array"},"orientations":{"description":"The set of available orientations.","items":{"$ref":"#/components/schemas/Orientation"},"type":"array"}},"type":"object"},"AndroidTestLoop":{"description":"A test of an Android Application with a Test Loop.\nThe intent \\<intent-name\\> will be implicitly added, since Games is the only\nuser of this api, for the time being.","properties":{"appApk":{"$ref":"#/components/schemas/FileReference"},"appBundle":{"$ref":"#/components/schemas/AppBundle"},"appPackageId":{"description":"The java package for the application under test.\nThe default is determined by examining the application's manifest.","type":"string"},"scenarioLabels":{"description":"The list of scenario labels that should be run during the test.\nThe scenario labels should map to labels defined in the application's\nmanifest. For example, player_experience and\ncom.google.test.loops.player_experience add all of the loops labeled in the\nmanifest with the com.google.test.loops.player_experience name to the\nexecution.\nScenarios can also be specified in the scenarios field.","items":{"type":"string"},"type":"array"},"scenarios":{"description":"The list of scenarios that should be run during the test.\nThe default is all test loops, derived from the application's\nmanifest.","items":{"format":"int32","type":"integer"},"type":"array"}},"type":"object"},"AndroidVersion":{"description":"A version of the Android OS.","properties":{"apiLevel":{"description":"The API level for this Android version.\nExamples: 18, 19.","format":"int32","type":"integer"},"codeName":{"description":"The code name for this Android version.\nExamples: \"JellyBean\", \"KitKat\".","type":"string"},"distribution":{"$ref":"#/components/schemas/Distribution"},"id":{"description":"An opaque id for this Android version.\nUse this id to invoke the TestExecutionService.","type":"string"},"releaseDate":{"$ref":"#/components/schemas/Date"},"tags":{"description":"Tags for this dimension.\nExamples: \"default\", \"preview\", \"deprecated\".","items":{"type":"string"},"type":"array"},"versionString":{"description":"A string representing this version of the Android OS.\nExamples: \"4.3\", \"4.4\".","type":"string"}},"type":"object"},"Apk":{"description":"An Android package file to install.","properties":{"location":{"$ref":"#/components/schemas/FileReference"},"packageName":{"description":"The java package for the APK to be installed.\nValue is determined by examining the application's manifest.","type":"string"}},"type":"object"},"ApkDetail":{"description":"Android application details based on application manifest and apk archive\ncontents.","properties":{"apkManifest":{"$ref":"#/components/schemas/ApkManifest"}},"type":"object"},"ApkManifest":{"description":"An Android app manifest. See\nhttp://developer.android.com/guide/topics/manifest/manifest-intro.html","properties":{"applicationLabel":{"description":"User-readable name for the application.","type":"string"},"intentFilters":{"items":{"$ref":"#/components/schemas/IntentFilter"},"type":"array"},"maxSdkVersion":{"description":"Maximum API level on which the application is designed to run.","format":"int32","type":"integer"},"minSdkVersion":{"description":"Minimum API level required for the application to run.","format":"int32","type":"integer"},"packageName":{"description":"Full Java-style package name for this application, e.g.\n\"com.example.foo\".","type":"string"}},"type":"object"},"AppBundle":{"description":"An Android App Bundle file format, containing a BundleConfig.pb file,\na base module directory, zero or more dynamic feature module directories.\n<p>See https://developer.android.com/guide/app-bundle/build for guidance on\nbuilding App Bundles.","properties":{"bundleLocation":{"$ref":"#/components/schemas/FileReference"}},"type":"object"},"CancelTestMatrixResponse":{"description":"Response containing the current state of the specified test matrix.","properties":{"testState":{"description":"The current rolled-up state of the test matrix.\nIf this state is already final, then the cancelation request will\nhave no effect.","enum":["TEST_STATE_UNSPECIFIED","VALIDATING","PENDING","RUNNING","FINISHED","ERROR","UNSUPPORTED_ENVIRONMENT","INCOMPATIBLE_ENVIRONMENT","INCOMPATIBLE_ARCHITECTURE","CANCELLED","INVALID"],"type":"string"}},"type":"object"},"ClientInfo":{"description":"Information about the client which invoked the test.","properties":{"clientInfoDetails":{"description":"The list of detailed information about client.","items":{"$ref":"#/components/schemas/ClientInfoDetail"},"type":"array"},"name":{"description":"Required. Client name, such as gcloud.","type":"string"}},"type":"object"},"ClientInfoDetail":{"description":"Key-value pair of detailed information about the client which invoked the\ntest. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}.","properties":{"key":{"description":"Required. The key of detailed client information.","type":"string"},"value":{"description":"Required. The value of detailed client information.","type":"string"}},"type":"object"},"Date":{"description":"Represents a whole or partial calendar date, e.g. a birthday. The time of day\nand time zone are either specified elsewhere or are not significant. The date\nis relative to the Proleptic Gregorian Calendar. This can represent:\n\n* A full date, with non-zero year, month and day values\n* A month and day value, with a zero year, e.g. an anniversary\n* A year on its own, with zero month and day values\n* A year and month value, with a zero day, e.g. a credit card expiration date\n\nRelated types are google.type.TimeOfDay and `google.protobuf.Timestamp`.","properties":{"day":{"description":"Day of month. Must be from 1 to 31 and valid for the year and month, or 0\nif specifying a year by itself or a year and month where the day is not\nsignificant.","format":"int32","type":"integer"},"month":{"description":"Month of year. Must be from 1 to 12, or 0 if specifying a year without a\nmonth and day.","format":"int32","type":"integer"},"year":{"description":"Year of date. Must be from 1 to 9999, or 0 if specifying a date without\na year.","format":"int32","type":"integer"}},"type":"object"},"DeviceFile":{"description":"A single device file description.","properties":{"obbFile":{"$ref":"#/components/schemas/ObbFile"},"regularFile":{"$ref":"#/components/schemas/RegularFile"}},"type":"object"},"Distribution":{"description":"Data about the relative number of devices running a\ngiven configuration of the Android platform.","properties":{"marketShare":{"description":"Output only. The estimated fraction (0-1) of the total market with this\nconfiguration.","format":"double","type":"number"},"measurementTime":{"description":"Output only. The time this distribution was measured.","format":"google-datetime","type":"string"}},"type":"object"},"Environment":{"description":"The environment in which the test is run.","properties":{"androidDevice":{"$ref":"#/components/schemas/AndroidDevice"},"iosDevice":{"$ref":"#/components/schemas/IosDevice"}},"type":"object"},"EnvironmentMatrix":{"description":"The matrix of environments in which the test is to be executed.","properties":{"androidDeviceList":{"$ref":"#/components/schemas/AndroidDeviceList"},"androidMatrix":{"$ref":"#/components/schemas/AndroidMatrix"},"iosDeviceList":{"$ref":"#/components/schemas/IosDeviceList"}},"type":"object"},"EnvironmentVariable":{"description":"A key-value pair passed as an environment variable to the test.","properties":{"key":{"description":"Key for the environment variable.","type":"string"},"value":{"description":"Value for the environment variable.","type":"string"}},"type":"object"},"FileReference":{"description":"A reference to a file, used for user inputs.","properties":{"gcsPath":{"description":"A path to a file in Google Cloud Storage.\nExample: gs://build-app-1414623860166/app-debug-unaligned.apk","type":"string"}},"type":"object"},"GetApkDetailsResponse":{"description":"Response containing the details of the specified Android application APK.","properties":{"apkDetail":{"$ref":"#/components/schemas/ApkDetail"}},"type":"object"},"GoogleAuto":{"description":"Enables automatic Google account login.\nIf set, the service will automatically generate a Google test account and add\nit to the device, before executing the test. Note that test accounts might be\nreused.\nMany applications show their full set of functionalities when an account is\npresent on the device. Logging into the device with these generated accounts\nallows testing more functionalities.","properties":{},"type":"object"},"GoogleCloudStorage":{"description":"A storage location within Google cloud storage (GCS).","properties":{"gcsPath":{"description":"Required. The path to a directory in GCS that will\neventually contain the results for this test.\nThe requesting user must have write access on the bucket in the supplied\npath.","type":"string"}},"type":"object"},"IntentFilter":{"description":"The <intent-filter> section of an <activity> tag.\nhttps://developer.android.com/guide/topics/manifest/intent-filter-element.html","properties":{"actionNames":{"description":"The android:name value of the <action> tag.","items":{"type":"string"},"type":"array"},"categoryNames":{"description":"The android:name value of the <category> tag.","items":{"type":"string"},"type":"array"},"mimeType":{"description":"The android:mimeType value of the <data> tag.","type":"string"}},"type":"object"},"IosDevice":{"description":"A single iOS device.","properties":{"iosModelId":{"description":"Required. The id of the iOS device to be used.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"iosVersionId":{"description":"Required. The id of the iOS major software version to be used.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"locale":{"description":"Required. The locale the test device used for testing.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"},"orientation":{"description":"Required. How the device is oriented during the test.\nUse the EnvironmentDiscoveryService to get supported options.","type":"string"}},"type":"object"},"IosDeviceCatalog":{"description":"The currently supported iOS devices.","properties":{"models":{"description":"The set of supported iOS device models.","items":{"$ref":"#/components/schemas/IosModel"},"type":"array"},"runtimeConfiguration":{"$ref":"#/components/schemas/IosRuntimeConfiguration"},"versions":{"description":"The set of supported iOS software versions.","items":{"$ref":"#/components/schemas/IosVersion"},"type":"array"},"xcodeVersions":{"description":"The set of supported Xcode versions.","items":{"$ref":"#/components/schemas/XcodeVersion"},"type":"array"}},"type":"object"},"IosDeviceList":{"description":"A list of iOS device configurations in which the test is to be executed.","properties":{"iosDevices":{"description":"Required. A list of iOS devices.","items":{"$ref":"#/components/schemas/IosDevice"},"type":"array"}},"type":"object"},"IosModel":{"description":"A description of an iOS device tests may be run on.","properties":{"deviceCapabilities":{"description":"Device capabilities.\nCopied from\nhttps://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html","items":{"type":"string"},"type":"array"},"formFactor":{"description":"Whether this device is a phone, tablet, wearable, etc.","enum":["DEVICE_FORM_FACTOR_UNSPECIFIED","PHONE","TABLET","WEARABLE"],"type":"string"},"id":{"description":"The unique opaque id for this model.\nUse this for invoking the TestExecutionService.","type":"string"},"name":{"description":"The human-readable name for this device model.\nExamples: \"iPhone 4s\", \"iPad Mini 2\".","type":"string"},"supportedVersionIds":{"description":"The set of iOS major software versions this device supports.","items":{"type":"string"},"type":"array"},"tags":{"description":"Tags for this dimension.\nExamples: \"default\", \"preview\", \"deprecated\".","items":{"type":"string"},"type":"array"}},"type":"object"},"IosRuntimeConfiguration":{"description":"iOS configuration that can be selected at the time a test is run.","properties":{"locales":{"description":"The set of available locales.","items":{"$ref":"#/components/schemas/Locale"},"type":"array"},"orientations":{"description":"The set of available orientations.","items":{"$ref":"#/components/schemas/Orientation"},"type":"array"}},"type":"object"},"IosTestSetup":{"description":"A description of how to set up an iOS device prior to a test.","properties":{"networkProfile":{"description":"The network traffic profile used for running the test.\nAvailable network profiles can be queried by using the\nNETWORK_CONFIGURATION environment type when calling\nTestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.","type":"string"}},"type":"object"},"IosVersion":{"description":"An iOS version.","properties":{"id":{"description":"An opaque id for this iOS version.\nUse this id to invoke the TestExecutionService.","type":"string"},"majorVersion":{"description":"An integer representing the major iOS version.\nExamples: \"8\", \"9\".","format":"int32","type":"integer"},"minorVersion":{"description":"An integer representing the minor iOS version.\nExamples: \"1\", \"2\".","format":"int32","type":"integer"},"supportedXcodeVersionIds":{"description":"The available Xcode versions for this version.","items":{"type":"string"},"type":"array"},"tags":{"description":"Tags for this dimension.\nExamples: \"default\", \"preview\", \"deprecated\".","items":{"type":"string"},"type":"array"}},"type":"object"},"IosXcTest":{"description":"A test of an iOS application that uses the XCTest framework.\nXcode supports the option to \"build for testing\", which generates an\n.xctestrun file that contains a test specification (arguments, test methods,\netc). This test type accepts a zip file containing the .xctestrun file and\nthe corresponding contents of the Build/Products directory that contains all\nthe binaries needed to run the tests.","properties":{"appBundleId":{"description":"Output only. The bundle id for the application under test.","type":"string"},"testsZip":{"$ref":"#/components/schemas/FileReference"},"xcodeVersion":{"description":"The Xcode version that should be used for the test.\nUse the EnvironmentDiscoveryService to get supported options.\nDefaults to the latest Xcode version Firebase Test Lab supports.","type":"string"},"xctestrun":{"$ref":"#/components/schemas/FileReference"}},"type":"object"},"LauncherActivityIntent":{"description":"Specifies an intent that starts the main launcher activity.","properties":{},"type":"object"},"Locale":{"description":"A location/region designation for language.","properties":{"id":{"description":"The id for this locale.\nExample: \"en_US\".","type":"string"},"name":{"description":"A human-friendly name for this language/locale.\nExample: \"English\".","type":"string"},"region":{"description":"A human-friendly string representing the region for this\nlocale. Example: \"United States\". Not present for every locale.","type":"string"},"tags":{"description":"Tags for this dimension.\nExample: \"default\".","items":{"type":"string"},"type":"array"}},"type":"object"},"NetworkConfiguration":{"properties":{"downRule":{"$ref":"#/components/schemas/TrafficRule"},"id":{"description":"The unique opaque id for this network traffic configuration.","type":"string"},"upRule":{"$ref":"#/components/schemas/TrafficRule"}},"type":"object"},"NetworkConfigurationCatalog":{"properties":{"configurations":{"items":{"$ref":"#/components/schemas/NetworkConfiguration"},"type":"array"}},"type":"object"},"ObbFile":{"description":"An opaque binary blob file to install on the device before the test starts.","properties":{"obb":{"$ref":"#/components/schemas/FileReference"},"obbFileName":{"description":"Required. OBB file name which must conform to the format as specified by\nAndroid\ne.g. [main|patch].0300110.com.example.android.obb\nwhich will be installed into\n \\<shared-storage\\>/Android/obb/\\<package-name\\>/\non the device.","type":"string"}},"type":"object"},"Orientation":{"description":"Screen orientation of the device.","properties":{"id":{"description":"The id for this orientation.\nExample: \"portrait\".","type":"string"},"name":{"description":"A human-friendly name for this orientation.\nExample: \"portrait\".","type":"string"},"tags":{"description":"Tags for this dimension.\nExample: \"default\".","items":{"type":"string"},"type":"array"}},"type":"object"},"ProvidedSoftwareCatalog":{"description":"The currently provided software environment on the devices under test.","properties":{"orchestratorVersion":{"description":"A string representing the current version of Android Test\nOrchestrator that is provided by TestExecutionService.\nExample: \"1.0.2 beta\".","type":"string"}},"type":"object"},"RegularFile":{"description":"A file or directory to install on the device before the test starts.","properties":{"content":{"$ref":"#/components/schemas/FileReference"},"devicePath":{"description":"Required. Where to put the content on the device. Must be an absolute,\nwhitelisted path. If the file exists, it will be replaced.\nThe following device-side directories and any of their subdirectories are\nwhitelisted:\n<p>${EXTERNAL_STORAGE}, or /sdcard</p>\n<p>${ANDROID_DATA}/local/tmp, or /data/local/tmp</p>\n<p>Specifying a path outside of these directory trees is invalid.\n\n<p> The paths /sdcard and /data will be made available and treated as\nimplicit path substitutions. E.g. if /sdcard on a particular device does\nnot map to external storage, the system will replace it with the external\nstorage path prefix for that device and copy the file there.\n\n<p> It is strongly advised to use the <a href=\n\"http://developer.android.com/reference/android/os/Environment.html\">\nEnvironment API</a> in app and test code to access files on the device in a\nportable way.","type":"string"}},"type":"object"},"ResultStorage":{"description":"Locations where the results of running the test are stored.","properties":{"googleCloudStorage":{"$ref":"#/components/schemas/GoogleCloudStorage"},"toolResultsExecution":{"$ref":"#/components/schemas/ToolResultsExecution"},"toolResultsHistory":{"$ref":"#/components/schemas/ToolResultsHistory"}},"type":"object"},"RoboDirective":{"description":"Directs Robo to interact with a specific UI element if it is encountered\nduring the crawl. Currently, Robo can perform text entry or element click.","properties":{"actionType":{"description":"Required. The type of action that Robo should perform on the specified\nelement.","enum":["ACTION_TYPE_UNSPECIFIED","SINGLE_CLICK","ENTER_TEXT"],"type":"string"},"inputText":{"description":"The text that Robo is directed to set. If left empty, the directive will be\ntreated as a CLICK on the element matching the resource_name.","type":"string"},"resourceName":{"description":"Required. The android resource name of the target UI element.\nFor example,\n in Java: R.string.foo\n in xml: @string/foo\nOnly the \"foo\" part is needed.\nReference doc:\nhttps://developer.android.com/guide/topics/resources/accessing-resources.html","type":"string"}},"type":"object"},"RoboStartingIntent":{"description":"Message for specifying the start activities to crawl.","properties":{"launcherActivity":{"$ref":"#/components/schemas/LauncherActivityIntent"},"startActivity":{"$ref":"#/components/schemas/StartActivityIntent"},"timeout":{"description":"Timeout in seconds for each intent.","format":"google-duration","type":"string"}},"type":"object"},"StartActivityIntent":{"description":"A starting intent specified by an action, uri, and categories.","properties":{"action":{"description":"Action name.\nRequired for START_ACTIVITY.","type":"string"},"categories":{"description":"Intent categories to set on the intent.","items":{"type":"string"},"type":"array"},"uri":{"description":"URI for the action.","type":"string"}},"type":"object"},"TestDetails":{"description":"Additional details about the progress of the running test.","properties":{"errorMessage":{"description":"Output only. If the TestState is ERROR, then this string will contain\nhuman-readable details about the error.","type":"string"},"progressMessages":{"description":"Output only. Human-readable, detailed descriptions of the test's progress.\nFor example: \"Provisioning a device\", \"Starting Test\".\n\nDuring the course of execution new data may be appended\nto the end of progress_messages.","items":{"type":"string"},"type":"array"}},"type":"object"},"TestEnvironmentCatalog":{"description":"A description of a test environment.","properties":{"androidDeviceCatalog":{"$ref":"#/components/schemas/AndroidDeviceCatalog"},"iosDeviceCatalog":{"$ref":"#/components/schemas/IosDeviceCatalog"},"networkConfigurationCatalog":{"$ref":"#/components/schemas/NetworkConfigurationCatalog"},"softwareCatalog":{"$ref":"#/components/schemas/ProvidedSoftwareCatalog"}},"type":"object"},"TestExecution":{"description":"Specifies a single test to be executed in a single environment.","properties":{"environment":{"$ref":"#/components/schemas/Environment"},"id":{"description":"Output only. Unique id set by the backend.","type":"string"},"matrixId":{"description":"Output only. Id of the containing TestMatrix.","type":"string"},"projectId":{"description":"Output only. The cloud project that owns the test execution.","type":"string"},"state":{"description":"Output only. Indicates the current progress of the test execution\n(e.g., FINISHED).","enum":["TEST_STATE_UNSPECIFIED","VALIDATING","PENDING","RUNNING","FINISHED","ERROR","UNSUPPORTED_ENVIRONMENT","INCOMPATIBLE_ENVIRONMENT","INCOMPATIBLE_ARCHITECTURE","CANCELLED","INVALID"],"type":"string"},"testDetails":{"$ref":"#/components/schemas/TestDetails"},"testSpecification":{"$ref":"#/components/schemas/TestSpecification"},"timestamp":{"description":"Output only. The time this test execution was initially created.","format":"google-datetime","type":"string"},"toolResultsStep":{"$ref":"#/components/schemas/ToolResultsStep"}},"type":"object"},"TestMatrix":{"description":"A group of one or more TestExecutions, built by taking a\nproduct of values over a pre-defined set of axes.","properties":{"clientInfo":{"$ref":"#/components/schemas/ClientInfo"},"environmentMatrix":{"$ref":"#/components/schemas/EnvironmentMatrix"},"flakyTestAttempts":{"description":"The number of times a TestExecution should be re-attempted if one or more\nof its test cases fail for any reason.\nThe maximum number of reruns allowed is 10.\n\nDefault is 0, which implies no reruns.","format":"int32","type":"integer"},"invalidMatrixDetails":{"description":"Output only. Describes why the matrix is considered invalid.\nOnly useful for matrices in the INVALID state.","enum":["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","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","NO_CODE_APK","INVALID_INPUT_APK","INVALID_APK_PREVIEW_SDK"],"type":"string"},"projectId":{"description":"The cloud project that owns the test matrix.","type":"string"},"resultStorage":{"$ref":"#/components/schemas/ResultStorage"},"state":{"description":"Output only. Indicates the current progress of the test matrix\n(e.g., FINISHED).","enum":["TEST_STATE_UNSPECIFIED","VALIDATING","PENDING","RUNNING","FINISHED","ERROR","UNSUPPORTED_ENVIRONMENT","INCOMPATIBLE_ENVIRONMENT","INCOMPATIBLE_ARCHITECTURE","CANCELLED","INVALID"],"type":"string"},"testExecutions":{"description":"Output only. The list of test executions that the service creates for\nthis matrix.","items":{"$ref":"#/components/schemas/TestExecution"},"type":"array"},"testMatrixId":{"description":"Output only. Unique id set by the service.","type":"string"},"testSpecification":{"$ref":"#/components/schemas/TestSpecification"},"timestamp":{"description":"Output only. The time this test matrix was initially created.","format":"google-datetime","type":"string"}},"type":"object"},"TestSetup":{"description":"A description of how to set up the Android device prior to running the test.","properties":{"account":{"$ref":"#/components/schemas/Account"},"additionalApks":{"description":"APKs to install in addition to those being directly tested.\nCurrently capped at 100.","items":{"$ref":"#/components/schemas/Apk"},"type":"array"},"directoriesToPull":{"description":"List of directories on the device to upload to GCS at the end of the test;\nthey must be absolute paths under /sdcard or /data/local/tmp.\nPath names are restricted to characters a-z A-Z 0-9 _ - . + and /\n\nNote: The paths /sdcard and /data will be made available and treated as\nimplicit path substitutions. E.g. if /sdcard on a particular device does\nnot map to external storage, the system will replace it with the external\nstorage path prefix for that device.","items":{"type":"string"},"type":"array"},"environmentVariables":{"description":"Environment variables to set for the test (only applicable for\ninstrumentation tests).","items":{"$ref":"#/components/schemas/EnvironmentVariable"},"type":"array"},"filesToPush":{"description":"List of files to push to the device before starting the test.","items":{"$ref":"#/components/schemas/DeviceFile"},"type":"array"},"networkProfile":{"description":"The network traffic profile used for running the test.\nAvailable network profiles can be queried by using the\nNETWORK_CONFIGURATION environment type when calling\nTestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.","type":"string"}},"type":"object"},"TestSpecification":{"description":"A description of how to run the test.","properties":{"androidInstrumentationTest":{"$ref":"#/components/schemas/AndroidInstrumentationTest"},"androidRoboTest":{"$ref":"#/components/schemas/AndroidRoboTest"},"androidTestLoop":{"$ref":"#/components/schemas/AndroidTestLoop"},"autoGoogleLogin":{"description":"Enables automatic Google account login.\nIf set, the service will automatically generate a Google test account and\nadd it to the device, before executing the test. Note that test accounts\nmight be reused.\nMany applications show their full set of functionalities when an account is\npresent on the device. Logging into the device with these generated\naccounts allows testing more functionalities.\nDefault is false.","type":"boolean"},"disablePerformanceMetrics":{"description":"Disables performance metrics recording; may reduce test latency.","type":"boolean"},"disableVideoRecording":{"description":"Disables video recording; may reduce test latency.","type":"boolean"},"iosTestSetup":{"$ref":"#/components/schemas/IosTestSetup"},"iosXcTest":{"$ref":"#/components/schemas/IosXcTest"},"testSetup":{"$ref":"#/components/schemas/TestSetup"},"testTimeout":{"description":"Max time a test execution is allowed to run before it is\nautomatically cancelled.\nThe default value is 5 min.","format":"google-duration","type":"string"}},"type":"object"},"ToolResultsExecution":{"description":"Represents a tool results execution resource.\n\nThis has the results of a TestMatrix.","properties":{"executionId":{"description":"Output only. A tool results execution ID.","type":"string"},"historyId":{"description":"Output only. A tool results history ID.","type":"string"},"projectId":{"description":"Output only. The cloud project that owns the tool results execution.","type":"string"}},"type":"object"},"ToolResultsHistory":{"description":"Represents a tool results history resource.","properties":{"historyId":{"description":"Required. A tool results history ID.","type":"string"},"projectId":{"description":"Required. The cloud project that owns the tool results history.","type":"string"}},"type":"object"},"ToolResultsStep":{"description":"Represents a tool results step resource.\n\nThis has the results of a TestExecution.","properties":{"executionId":{"description":"Output only. A tool results execution ID.","type":"string"},"historyId":{"description":"Output only. A tool results history ID.","type":"string"},"projectId":{"description":"Output only. The cloud project that owns the tool results step.","type":"string"},"stepId":{"description":"Output only. A tool results step ID.","type":"string"}},"type":"object"},"TrafficRule":{"description":"Network emulation parameters.","properties":{"bandwidth":{"description":"Bandwidth in kbits/second.","format":"float","type":"number"},"burst":{"description":"Burst size in kbits.","format":"float","type":"number"},"delay":{"description":"Packet delay, must be >= 0.","format":"google-duration","type":"string"},"packetDuplicationRatio":{"description":"Packet duplication ratio (0.0 - 1.0).","format":"float","type":"number"},"packetLossRatio":{"description":"Packet loss ratio (0.0 - 1.0).","format":"float","type":"number"}},"type":"object"},"XcodeVersion":{"description":"An Xcode version that an iOS version is compatible with.","properties":{"tags":{"description":"Tags for this Xcode version.\nExample: \"default\".","items":{"type":"string"},"type":"array"},"version":{"description":"The id for this version.\nExample: \"9.2\".","type":"string"}},"type":"object"}}}}