Skip to content

Commit

Permalink
feat(networkmanagement): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent 8f45268 commit 58e9f8f
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
69 changes: 68 additions & 1 deletion discovery/networkmanagement-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
}
}
},
"revision": "20200820",
"revision": "20200917",
"rootUrl": "https://networkmanagement.googleapis.com/",
"schemas": {
"AbortInfo": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down
40 changes: 40 additions & 0 deletions src/apis/networkmanagement/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -1409,6 +1446,7 @@ export namespace networkmanagement_v1beta1 {
* // "displayName": "my_displayName",
* // "labels": {},
* // "name": "my_name",
* // "probingDetails": {},
* // "protocol": "my_protocol",
* // "reachabilityDetails": {},
* // "relatedProjects": [],
Expand Down Expand Up @@ -1705,6 +1743,7 @@ export namespace networkmanagement_v1beta1 {
* // "displayName": "my_displayName",
* // "labels": {},
* // "name": "my_name",
* // "probingDetails": {},
* // "protocol": "my_protocol",
* // "reachabilityDetails": {},
* // "relatedProjects": [],
Expand Down Expand Up @@ -2146,6 +2185,7 @@ export namespace networkmanagement_v1beta1 {
* // "displayName": "my_displayName",
* // "labels": {},
* // "name": "my_name",
* // "probingDetails": {},
* // "protocol": "my_protocol",
* // "reachabilityDetails": {},
* // "relatedProjects": [],
Expand Down

0 comments on commit 58e9f8f

Please sign in to comment.