Skip to content

Commit

Permalink
feat(testing): update the API
Browse files Browse the repository at this point in the history
#### testing:v1

The following keys were added:
- resources.applicationDetailService.methods.getApkDetails.parameters.bundleLocation.gcsPath.description
- resources.applicationDetailService.methods.getApkDetails.parameters.bundleLocation.gcsPath.location
- resources.applicationDetailService.methods.getApkDetails.parameters.bundleLocation.gcsPath.type
- schemas.MatrixErrorDetail.description
- schemas.MatrixErrorDetail.id
- schemas.MatrixErrorDetail.properties.message.description
- schemas.MatrixErrorDetail.properties.message.readOnly
- schemas.MatrixErrorDetail.properties.message.type
- schemas.MatrixErrorDetail.properties.reason.description
- schemas.MatrixErrorDetail.properties.reason.readOnly
- schemas.MatrixErrorDetail.properties.reason.type
- schemas.MatrixErrorDetail.type
- schemas.TestMatrix.properties.extendedInvalidMatrixDetails.description
- schemas.TestMatrix.properties.extendedInvalidMatrixDetails.items.$ref
- schemas.TestMatrix.properties.extendedInvalidMatrixDetails.readOnly
- schemas.TestMatrix.properties.extendedInvalidMatrixDetails.type

The following keys were changed:
- schemas.ApkDetail.description
- schemas.GetApkDetailsResponse.description
- schemas.GetApkDetailsResponse.properties.apkDetail.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 8, 2024
1 parent c0cafa8 commit a188b41
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 8 deletions.
41 changes: 36 additions & 5 deletions discovery/testing-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@
"httpMethod": "POST",
"id": "testing.applicationDetailService.getApkDetails",
"parameterOrder": [],
"parameters": {},
"parameters": {
"bundleLocation.gcsPath": {
"description": "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)",
"location": "query",
"type": "string"
}
},
"path": "v1/applicationDetailService/getApkDetails",
"request": {
"$ref": "FileReference"
Expand Down Expand Up @@ -442,7 +448,7 @@
}
}
},
"revision": "20231113",
"revision": "20240206",
"rootUrl": "https://testing.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -896,7 +902,7 @@
"type": "object"
},
"ApkDetail": {
"description": "Android application details based on application manifest and apk archive contents.",
"description": "Android application details based on application manifest and archive contents.",
"id": "ApkDetail",
"properties": {
"apkManifest": {
Expand Down Expand Up @@ -1327,12 +1333,12 @@
"type": "object"
},
"GetApkDetailsResponse": {
"description": "Response containing the details of the specified Android application APK.",
"description": "Response containing the details of the specified Android application.",
"id": "GetApkDetailsResponse",
"properties": {
"apkDetail": {
"$ref": "ApkDetail",
"description": "Details of the Android APK."
"description": "Details of the Android App."
}
},
"type": "object"
Expand Down Expand Up @@ -1762,6 +1768,23 @@
},
"type": "object"
},
"MatrixErrorDetail": {
"description": "Describes a single error or issue with a matrix.",
"id": "MatrixErrorDetail",
"properties": {
"message": {
"description": "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.",
"readOnly": true,
"type": "string"
},
"reason": {
"description": "Output only. The reason for the error. This is a constant value in UPPER_SNAKE_CASE that identifies the cause of the error.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Metadata": {
"description": "A tag within a manifest. https://developer.android.com/guide/topics/manifest/meta-data-element.html",
"id": "Metadata",
Expand Down Expand Up @@ -2309,6 +2332,14 @@
"$ref": "EnvironmentMatrix",
"description": "Required. The devices the tests are being executed on."
},
"extendedInvalidMatrixDetails": {
"description": "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.",
"items": {
"$ref": "MatrixErrorDetail"
},
"readOnly": true,
"type": "array"
},
"failFast": {
"description": "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.",
"type": "boolean"
Expand Down
28 changes: 25 additions & 3 deletions src/apis/testing/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export namespace testing_v1 {
packageName?: string | null;
}
/**
* Android application details based on application manifest and apk archive contents.
* Android application details based on application manifest and archive contents.
*/
export interface Schema$ApkDetail {
apkManifest?: Schema$ApkManifest;
Expand Down Expand Up @@ -736,11 +736,11 @@ export namespace testing_v1 {
gcsPath?: string | null;
}
/**
* Response containing the details of the specified Android application APK.
* Response containing the details of the specified Android application.
*/
export interface Schema$GetApkDetailsResponse {
/**
* Details of the Android APK.
* Details of the Android App.
*/
apkDetail?: Schema$ApkDetail;
}
Expand Down Expand Up @@ -1052,6 +1052,19 @@ export namespace testing_v1 {
*/
testTargetsForShard?: Schema$TestTargetsForShard[];
}
/**
* Describes a single error or issue with a matrix.
*/
export interface Schema$MatrixErrorDetail {
/**
* 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.
*/
message?: string | null;
/**
* Output only. The reason for the error. This is a constant value in UPPER_SNAKE_CASE that identifies the cause of the error.
*/
reason?: string | null;
}
/**
* A tag within a manifest. https://developer.android.com/guide/topics/manifest/meta-data-element.html
*/
Expand Down Expand Up @@ -1426,6 +1439,10 @@ export namespace testing_v1 {
* Required. The devices the tests are being executed on.
*/
environmentMatrix?: Schema$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.
*/
extendedInvalidMatrixDetails?: Schema$MatrixErrorDetail[];
/**
* 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.
*/
Expand Down Expand Up @@ -1784,6 +1801,11 @@ export namespace testing_v1 {

export interface Params$Resource$Applicationdetailservice$Getapkdetails
extends StandardParameters {
/**
* 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)
*/
'bundleLocation.gcsPath'?: string;

/**
* Request body metadata
*/
Expand Down

0 comments on commit a188b41

Please sign in to comment.