From fdebf1000f557870e63f6597b1b180a3c37b7738 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 23 Jul 2020 12:59:30 -0700 Subject: [PATCH] feat(testing): update the API #### testing:v1 The following keys were added: - schemas.DeviceIpBlock.description - schemas.DeviceIpBlock.id - schemas.DeviceIpBlock.properties.addedDate.$ref - schemas.DeviceIpBlock.properties.addedDate.description - schemas.DeviceIpBlock.properties.block.description - schemas.DeviceIpBlock.properties.block.type - schemas.DeviceIpBlock.properties.form.description - schemas.DeviceIpBlock.properties.form.enum - schemas.DeviceIpBlock.properties.form.enumDescriptions - schemas.DeviceIpBlock.properties.form.type - schemas.DeviceIpBlock.type - schemas.DeviceIpBlockCatalog.description - schemas.DeviceIpBlockCatalog.id - schemas.DeviceIpBlockCatalog.properties.ipBlocks.description - schemas.DeviceIpBlockCatalog.properties.ipBlocks.items.$ref - schemas.DeviceIpBlockCatalog.properties.ipBlocks.type - schemas.DeviceIpBlockCatalog.type - schemas.TestEnvironmentCatalog.properties.deviceIpBlockCatalog.$ref - schemas.TestEnvironmentCatalog.properties.deviceIpBlockCatalog.description The following keys were changed: - resources.testEnvironmentCatalog.methods.get.parameters.environmentType.enum --- discovery/testing-v1.json | 54 +++++++++++++++++++++++++++++++++++++-- src/apis/testing/v1.ts | 31 ++++++++++++++++++++++ 2 files changed, 83 insertions(+), 2 deletions(-) diff --git a/discovery/testing-v1.json b/discovery/testing-v1.json index 3a2f6fb459..7670d5250b 100644 --- a/discovery/testing-v1.json +++ b/discovery/testing-v1.json @@ -249,7 +249,8 @@ "ANDROID", "IOS", "NETWORK_CONFIGURATION", - "PROVIDED_SOFTWARE" + "PROVIDED_SOFTWARE", + "DEVICE_IP_BLOCKS" ], "location": "path", "required": true, @@ -273,7 +274,7 @@ } } }, - "revision": "20200708", + "revision": "20200722", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -867,6 +868,51 @@ }, "type": "object" }, + "DeviceIpBlock": { + "description": "A single device IP block", + "id": "DeviceIpBlock", + "properties": { + "addedDate": { + "$ref": "Date", + "description": "The date this block was added to Firebase Test Lab" + }, + "block": { + "description": "An IP address block in CIDR notation eg: 34.68.194.64/29", + "type": "string" + }, + "form": { + "description": "Whether this block is used by physical or virtual devices", + "enum": [ + "DEVICE_FORM_UNSPECIFIED", + "VIRTUAL", + "PHYSICAL", + "EMULATOR" + ], + "enumDescriptions": [ + "Do not use. For proto versioning only.", + "Android virtual device using Compute Engine native virtualization. Firebase\nTest Lab only.", + "Actual hardware.", + "Android virtual device using emulator in nested virtualization. Equivalent\nto Android Studio." + ], + "type": "string" + } + }, + "type": "object" + }, + "DeviceIpBlockCatalog": { + "description": "List of IP blocks used by the Firebase Test Lab", + "id": "DeviceIpBlockCatalog", + "properties": { + "ipBlocks": { + "description": "The device IP blocks used by Firebase Test Lab", + "items": { + "$ref": "DeviceIpBlock" + }, + "type": "array" + } + }, + "type": "object" + }, "Distribution": { "description": "Data about the relative number of devices running a\ngiven configuration of the Android platform.", "id": "Distribution", @@ -1558,6 +1604,10 @@ "$ref": "AndroidDeviceCatalog", "description": "Supported Android devices." }, + "deviceIpBlockCatalog": { + "$ref": "DeviceIpBlockCatalog", + "description": "The IP blocks used by devices in the test environment." + }, "iosDeviceCatalog": { "$ref": "IosDeviceCatalog", "description": "Supported iOS devices." diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index fdec707dab..d14f325de0 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -549,6 +549,32 @@ export namespace testing_v1 { */ regularFile?: Schema$RegularFile; } + /** + * A single device IP block + */ + export interface Schema$DeviceIpBlock { + /** + * The date this block was added to Firebase Test Lab + */ + addedDate?: Schema$Date; + /** + * An IP address block in CIDR notation eg: 34.68.194.64/29 + */ + block?: string | null; + /** + * Whether this block is used by physical or virtual devices + */ + form?: string | null; + } + /** + * List of IP blocks used by the Firebase Test Lab + */ + export interface Schema$DeviceIpBlockCatalog { + /** + * The device IP blocks used by Firebase Test Lab + */ + ipBlocks?: Schema$DeviceIpBlock[]; + } /** * Data about the relative number of devices running a given configuration of the Android platform. */ @@ -1066,6 +1092,10 @@ export namespace testing_v1 { * Supported Android devices. */ androidDeviceCatalog?: Schema$AndroidDeviceCatalog; + /** + * The IP blocks used by devices in the test environment. + */ + deviceIpBlockCatalog?: Schema$DeviceIpBlockCatalog; /** * Supported iOS devices. */ @@ -2083,6 +2113,7 @@ export namespace testing_v1 { * // Example response * // { * // "androidDeviceCatalog": {}, + * // "deviceIpBlockCatalog": {}, * // "iosDeviceCatalog": {}, * // "networkConfigurationCatalog": {}, * // "softwareCatalog": {}