Skip to content

Commit

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

The following keys were added:
- schemas.Gateway.properties.routingMode.description
- schemas.Gateway.properties.routingMode.enum
- schemas.Gateway.properties.routingMode.enumDescriptions
- schemas.Gateway.properties.routingMode.type

The following keys were changed:
- schemas.GrpcRouteRetryPolicy.description

#### networkservices:v1

The following keys were added:
- schemas.Gateway.properties.routingMode.description
- schemas.Gateway.properties.routingMode.enum
- schemas.Gateway.properties.routingMode.enumDescriptions
- schemas.Gateway.properties.routingMode.type

The following keys were changed:
- schemas.GrpcRouteRetryPolicy.description
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 27, 2024
1 parent 3c4d5be commit 08c6b8f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
16 changes: 14 additions & 2 deletions discovery/networkservices-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2408,7 +2408,7 @@
}
}
},
"revision": "20240721",
"revision": "20240818",
"rootUrl": "https://networkservices.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -2814,6 +2814,18 @@
},
"type": "array"
},
"routingMode": {
"description": "Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.",
"enum": [
"EXPLICIT_ROUTING_MODE",
"NEXT_HOP_ROUTING_MODE"
],
"enumDescriptions": [
"The routing mode is explicit; clients are configured to send traffic through the gateway. This is the default routing mode.",
"The routing mode is next-hop. Clients are unaware of the gateway, and a route (advanced route or other route type) can be configured to direct traffic from client to gateway. The gateway then acts as a next-hop to the destination."
],
"type": "string"
},
"scope": {
"description": "Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.",
"type": "string"
Expand Down Expand Up @@ -3049,7 +3061,7 @@
"type": "object"
},
"GrpcRouteRetryPolicy": {
"description": "The specifications for retries.",
"description": "The specifications for retries. Specifies one or more conditions for which this retry rule applies. Valid values are:",
"id": "GrpcRouteRetryPolicy",
"properties": {
"numRetries": {
Expand Down
16 changes: 14 additions & 2 deletions discovery/networkservices-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@
}
}
},
"revision": "20240721",
"revision": "20240818",
"rootUrl": "https://networkservices.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -2772,6 +2772,18 @@
},
"type": "array"
},
"routingMode": {
"description": "Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.",
"enum": [
"EXPLICIT_ROUTING_MODE",
"NEXT_HOP_ROUTING_MODE"
],
"enumDescriptions": [
"The routing mode is explicit; clients are configured to send traffic through the gateway. This is the default routing mode.",
"The routing mode is next-hop. Clients are unaware of the gateway, and a route (advanced route or other route type) can be configured to direct traffic from client to gateway. The gateway then acts as a next-hop to the destination."
],
"type": "string"
},
"scope": {
"description": "Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.",
"type": "string"
Expand Down Expand Up @@ -3007,7 +3019,7 @@
"type": "object"
},
"GrpcRouteRetryPolicy": {
"description": "The specifications for retries.",
"description": "The specifications for retries. Specifies one or more conditions for which this retry rule applies. Valid values are:",
"id": "GrpcRouteRetryPolicy",
"properties": {
"numRetries": {
Expand Down
6 changes: 5 additions & 1 deletion src/apis/networkservices/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ export namespace networkservices_v1 {
* Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
*/
ports?: number[] | null;
/**
* Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.
*/
routingMode?: string | null;
/**
* Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
*/
Expand Down Expand Up @@ -548,7 +552,7 @@ export namespace networkservices_v1 {
type?: string | null;
}
/**
* The specifications for retries.
* The specifications for retries. Specifies one or more conditions for which this retry rule applies. Valid values are:
*/
export interface Schema$GrpcRouteRetryPolicy {
/**
Expand Down
6 changes: 5 additions & 1 deletion src/apis/networkservices/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ export namespace networkservices_v1beta1 {
* Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
*/
ports?: number[] | null;
/**
* Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.
*/
routingMode?: string | null;
/**
* Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
*/
Expand Down Expand Up @@ -579,7 +583,7 @@ export namespace networkservices_v1beta1 {
type?: string | null;
}
/**
* The specifications for retries.
* The specifications for retries. Specifies one or more conditions for which this retry rule applies. Valid values are:
*/
export interface Schema$GrpcRouteRetryPolicy {
/**
Expand Down

0 comments on commit 08c6b8f

Please sign in to comment.