From 58e9f8f7c79f6526f9f0129c7ced05ace737cee0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 5 Oct 2020 13:15:07 -0700 Subject: [PATCH] feat(networkmanagement): update the API #### networkmanagement:v1beta1 The following keys were added: - schemas.ConnectivityTest.properties.probingDetails.$ref - schemas.ConnectivityTest.properties.probingDetails.description - schemas.ConnectivityTest.properties.probingDetails.readOnly - schemas.ProbingDetails.description - schemas.ProbingDetails.id - schemas.ProbingDetails.properties.abortCause.description - schemas.ProbingDetails.properties.abortCause.enum - schemas.ProbingDetails.properties.abortCause.enumDescriptions - schemas.ProbingDetails.properties.abortCause.type - schemas.ProbingDetails.properties.endpointInfo.$ref - schemas.ProbingDetails.properties.endpointInfo.description - schemas.ProbingDetails.properties.error.$ref - schemas.ProbingDetails.properties.error.description - schemas.ProbingDetails.properties.result.description - schemas.ProbingDetails.properties.result.enum - schemas.ProbingDetails.properties.result.enumDescriptions - schemas.ProbingDetails.properties.result.type - schemas.ProbingDetails.properties.sentProbeCount.description - schemas.ProbingDetails.properties.sentProbeCount.format - schemas.ProbingDetails.properties.sentProbeCount.type - schemas.ProbingDetails.properties.successfulProbeCount.description - schemas.ProbingDetails.properties.successfulProbeCount.format - schemas.ProbingDetails.properties.successfulProbeCount.type - schemas.ProbingDetails.properties.verifyTime.description - schemas.ProbingDetails.properties.verifyTime.format - schemas.ProbingDetails.properties.verifyTime.type - schemas.ProbingDetails.type --- discovery/networkmanagement-v1beta1.json | 69 +++++++++++++++++++++++- src/apis/networkmanagement/v1beta1.ts | 40 ++++++++++++++ 2 files changed, 108 insertions(+), 1 deletion(-) diff --git a/discovery/networkmanagement-v1beta1.json b/discovery/networkmanagement-v1beta1.json index 9d94fba283..59ce7b8c5b 100644 --- a/discovery/networkmanagement-v1beta1.json +++ b/discovery/networkmanagement-v1beta1.json @@ -591,7 +591,7 @@ } } }, - "revision": "20200820", + "revision": "20200917", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -776,6 +776,11 @@ "description": "Required. Unique name of the resource using the form: `projects/{project_id}/locations/global/connectivityTests/{test}`", "type": "string" }, + "probingDetails": { + "$ref": "ProbingDetails", + "description": "Output only. The probing details of this test from the latest run, present for applicable tests only. The details are updated when creating a new test, updating an existing test, or triggering a one-time rerun of an existing test.", + "readOnly": true + }, "protocol": { "description": "IP Protocol of the test. When not provided, \"TCP\" is assumed.", "type": "string" @@ -1506,6 +1511,68 @@ }, "type": "object" }, + "ProbingDetails": { + "description": "The details of probing from the latest run.", + "id": "ProbingDetails", + "properties": { + "abortCause": { + "description": "Causes that the probing was aborted.", + "enum": [ + "PROBING_ABORT_CAUSE_UNSPECIFIED", + "PERMISSION_DENIED", + "NO_SOURCE_LOCATION" + ], + "enumDescriptions": [ + "Abort reason unspecified.", + "Aborted because the user lacks the permission to access all or part of the network configurations required to run the test.", + "Aborted because no valid source endpoint is derived from the input test request." + ], + "type": "string" + }, + "endpointInfo": { + "$ref": "EndpointInfo", + "description": "Derived from the test input. The actual source and destination endpoint where the probing was run." + }, + "error": { + "$ref": "Status", + "description": "The details of an internal failure or a cancellation of reachability analysis." + }, + "result": { + "description": "The overall reachability result of the test.", + "enum": [ + "PROBING_RESULT_UNSPECIFIED", + "REACHABLE", + "UNREACHABLE", + "REACHABILITY_INCONSISTENT", + "UNDETERMINED" + ], + "enumDescriptions": [ + "Result is not specified.", + "95% or more packets originating from source reached destination.", + "No packet originating from source reached destination.", + "Less than 95% packets originating from source reached destination.", + "The reachability could not be determined. Possible reasons are: * Analysis is aborted due to permission error. User does not have read permission to the projects listed in the test. * Analysis is aborted due to internal errors." + ], + "type": "string" + }, + "sentProbeCount": { + "description": "Number of probes sent.", + "format": "int32", + "type": "integer" + }, + "successfulProbeCount": { + "description": "Number of probes that reached destination.", + "format": "int32", + "type": "integer" + }, + "verifyTime": { + "description": "The time the reachability state was verified.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ReachabilityDetails": { "description": "The details of reachability state from the latest run.", "id": "ReachabilityDetails", diff --git a/src/apis/networkmanagement/v1beta1.ts b/src/apis/networkmanagement/v1beta1.ts index dc5beeaa69..a264a9b2d9 100644 --- a/src/apis/networkmanagement/v1beta1.ts +++ b/src/apis/networkmanagement/v1beta1.ts @@ -244,6 +244,10 @@ export namespace networkmanagement_v1beta1 { * Required. Unique name of the resource using the form: `projects/{project_id}/locations/global/connectivityTests/{test}` */ name?: string | null; + /** + * Output only. The probing details of this test from the latest run, present for applicable tests only. The details are updated when creating a new test, updating an existing test, or triggering a one-time rerun of an existing test. + */ + probingDetails?: Schema$ProbingDetails; /** * IP Protocol of the test. When not provided, "TCP" is assumed. */ @@ -741,6 +745,39 @@ export namespace networkmanagement_v1beta1 { */ version?: number | null; } + /** + * The details of probing from the latest run. + */ + export interface Schema$ProbingDetails { + /** + * Causes that the probing was aborted. + */ + abortCause?: string | null; + /** + * Derived from the test input. The actual source and destination endpoint where the probing was run. + */ + endpointInfo?: Schema$EndpointInfo; + /** + * The details of an internal failure or a cancellation of reachability analysis. + */ + error?: Schema$Status; + /** + * The overall reachability result of the test. + */ + result?: string | null; + /** + * Number of probes sent. + */ + sentProbeCount?: number | null; + /** + * Number of probes that reached destination. + */ + successfulProbeCount?: number | null; + /** + * The time the reachability state was verified. + */ + verifyTime?: string | null; + } /** * The details of reachability state from the latest run. */ @@ -1409,6 +1446,7 @@ export namespace networkmanagement_v1beta1 { * // "displayName": "my_displayName", * // "labels": {}, * // "name": "my_name", + * // "probingDetails": {}, * // "protocol": "my_protocol", * // "reachabilityDetails": {}, * // "relatedProjects": [], @@ -1705,6 +1743,7 @@ export namespace networkmanagement_v1beta1 { * // "displayName": "my_displayName", * // "labels": {}, * // "name": "my_name", + * // "probingDetails": {}, * // "protocol": "my_protocol", * // "reachabilityDetails": {}, * // "relatedProjects": [], @@ -2146,6 +2185,7 @@ export namespace networkmanagement_v1beta1 { * // "displayName": "my_displayName", * // "labels": {}, * // "name": "my_name", + * // "probingDetails": {}, * // "protocol": "my_protocol", * // "reachabilityDetails": {}, * // "relatedProjects": [],