Skip to content

Commit 99b5af7

Browse files
yoshi-automationsofisl
authored andcommitted
feat(networkconnectivity): update the API
#### networkconnectivity:v1 The following keys were added: - schemas.ConsumerPscConfig.properties.consumerInstanceProject.description - schemas.ConsumerPscConfig.properties.consumerInstanceProject.type - schemas.LinkedInterconnectAttachments.properties.includeImportRanges.description - schemas.LinkedInterconnectAttachments.properties.includeImportRanges.items.type - schemas.LinkedInterconnectAttachments.properties.includeImportRanges.type - schemas.LinkedRouterApplianceInstances.properties.includeImportRanges.description - schemas.LinkedRouterApplianceInstances.properties.includeImportRanges.items.type - schemas.LinkedRouterApplianceInstances.properties.includeImportRanges.type - schemas.LinkedVpcNetwork.properties.includeExportRanges.description - schemas.LinkedVpcNetwork.properties.includeExportRanges.items.type - schemas.LinkedVpcNetwork.properties.includeExportRanges.type - schemas.LinkedVpnTunnels.properties.includeImportRanges.description - schemas.LinkedVpnTunnels.properties.includeImportRanges.items.type - schemas.LinkedVpnTunnels.properties.includeImportRanges.type - schemas.PscConfig.properties.allowedGoogleProducersResourceHierarchyLevel.description - schemas.PscConfig.properties.allowedGoogleProducersResourceHierarchyLevel.items.type - schemas.PscConfig.properties.allowedGoogleProducersResourceHierarchyLevel.type - schemas.PscConfig.properties.producerInstanceLocation.description - schemas.PscConfig.properties.producerInstanceLocation.enum - schemas.PscConfig.properties.producerInstanceLocation.enumDescriptions - schemas.PscConfig.properties.producerInstanceLocation.type
1 parent 801c824 commit 99b5af7

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

discovery/networkconnectivity-v1.json

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@
28122812
}
28132813
}
28142814
},
2815-
"revision": "20240523",
2815+
"revision": "20240618",
28162816
"rootUrl": "https://networkconnectivity.googleapis.com/",
28172817
"schemas": {
28182818
"AcceptHubSpokeRequest": {
@@ -2929,6 +2929,10 @@
29292929
"description": "Allow the producer to specify which consumers can connect to it.",
29302930
"id": "ConsumerPscConfig",
29312931
"properties": {
2932+
"consumerInstanceProject": {
2933+
"description": "Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/' Eg. 'projects/consumer-project' or 'projects/1234'",
2934+
"type": "string"
2935+
},
29322936
"disableGlobalAccess": {
29332937
"description": "This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.",
29342938
"type": "boolean"
@@ -3542,6 +3546,13 @@
35423546
"description": "A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes.",
35433547
"id": "LinkedInterconnectAttachments",
35443548
"properties": {
3549+
"includeImportRanges": {
3550+
"description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".",
3551+
"items": {
3552+
"type": "string"
3553+
},
3554+
"type": "array"
3555+
},
35453556
"siteToSiteDataTransfer": {
35463557
"description": "A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).",
35473558
"type": "boolean"
@@ -3565,6 +3576,13 @@
35653576
"description": "A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke.",
35663577
"id": "LinkedRouterApplianceInstances",
35673578
"properties": {
3579+
"includeImportRanges": {
3580+
"description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".",
3581+
"items": {
3582+
"type": "string"
3583+
},
3584+
"type": "array"
3585+
},
35683586
"instances": {
35693587
"description": "The list of router appliance instances.",
35703588
"items": {
@@ -3595,6 +3613,13 @@
35953613
},
35963614
"type": "array"
35973615
},
3616+
"includeExportRanges": {
3617+
"description": "Optional. IP ranges allowed to be included from peering.",
3618+
"items": {
3619+
"type": "string"
3620+
},
3621+
"type": "array"
3622+
},
35983623
"uri": {
35993624
"description": "Required. The URI of the VPC network resource.",
36003625
"type": "string"
@@ -3606,6 +3631,13 @@
36063631
"description": "A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes.",
36073632
"id": "LinkedVpnTunnels",
36083633
"properties": {
3634+
"includeImportRanges": {
3635+
"description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".",
3636+
"items": {
3637+
"type": "string"
3638+
},
3639+
"type": "array"
3640+
},
36093641
"siteToSiteDataTransfer": {
36103642
"description": "A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).",
36113643
"type": "boolean"
@@ -4272,11 +4304,30 @@
42724304
"description": "Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.",
42734305
"id": "PscConfig",
42744306
"properties": {
4307+
"allowedGoogleProducersResourceHierarchyLevel": {
4308+
"description": "Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both 'organizations/foo' and 'projects/bar' as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the 'foo' organization or the 'bar' project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of 'projects', 'folders', or 'organizations' and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: 'projects/' or 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]",
4309+
"items": {
4310+
"type": "string"
4311+
},
4312+
"type": "array"
4313+
},
42754314
"limit": {
42764315
"description": "Optional. Max number of PSC connections for this policy.",
42774316
"format": "int64",
42784317
"type": "string"
42794318
},
4319+
"producerInstanceLocation": {
4320+
"description": "Required. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.",
4321+
"enum": [
4322+
"PRODUCER_INSTANCE_LOCATION_UNSPECIFIED",
4323+
"CUSTOM_RESOURCE_HIERARCHY_LEVELS"
4324+
],
4325+
"enumDescriptions": [
4326+
"Producer instance location is not specified. When this option is chosen, then the PSC connections created by this ServiceConnectionPolicy must be within the same project as the Producer instance. This is the default ProducerInstanceLocation value. To allow for PSC connections from this network to other networks, use the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.",
4327+
"Producer instance must be within one of the values provided in allowed_google_producers_resource_hierarchy_level."
4328+
],
4329+
"type": "string"
4330+
},
42804331
"subnetworks": {
42814332
"description": "The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.",
42824333
"items": {

src/apis/networkconnectivity/v1.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ export namespace networkconnectivity_v1 {
202202
* Allow the producer to specify which consumers can connect to it.
203203
*/
204204
export interface Schema$ConsumerPscConfig {
205+
/**
206+
* Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who's created a producer instance, this is the project of the producer instance. Format: 'projects/' Eg. 'projects/consumer-project' or 'projects/1234'
207+
*/
208+
consumerInstanceProject?: string | null;
205209
/**
206210
* This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
207211
*/
@@ -574,6 +578,10 @@ export namespace networkconnectivity_v1 {
574578
* A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes.
575579
*/
576580
export interface Schema$LinkedInterconnectAttachments {
581+
/**
582+
* Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is "ALL_IPV4_RANGES".
583+
*/
584+
includeImportRanges?: string[] | null;
577585
/**
578586
* A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
579587
*/
@@ -591,6 +599,10 @@ export namespace networkconnectivity_v1 {
591599
* A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke.
592600
*/
593601
export interface Schema$LinkedRouterApplianceInstances {
602+
/**
603+
* Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is "ALL_IPV4_RANGES".
604+
*/
605+
includeImportRanges?: string[] | null;
594606
/**
595607
* The list of router appliance instances.
596608
*/
@@ -612,6 +624,10 @@ export namespace networkconnectivity_v1 {
612624
* Optional. IP ranges encompassing the subnets to be excluded from peering.
613625
*/
614626
excludeExportRanges?: string[] | null;
627+
/**
628+
* Optional. IP ranges allowed to be included from peering.
629+
*/
630+
includeExportRanges?: string[] | null;
615631
/**
616632
* Required. The URI of the VPC network resource.
617633
*/
@@ -621,6 +637,10 @@ export namespace networkconnectivity_v1 {
621637
* A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes.
622638
*/
623639
export interface Schema$LinkedVpnTunnels {
640+
/**
641+
* Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is "ALL_IPV4_RANGES".
642+
*/
643+
includeImportRanges?: string[] | null;
624644
/**
625645
* A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
626646
*/
@@ -1091,10 +1111,18 @@ export namespace networkconnectivity_v1 {
10911111
* Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
10921112
*/
10931113
export interface Schema$PscConfig {
1114+
/**
1115+
* Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both 'organizations/foo' and 'projects/bar' as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the 'foo' organization or the 'bar' project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of 'projects', 'folders', or 'organizations' and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: 'projects/' or 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]
1116+
*/
1117+
allowedGoogleProducersResourceHierarchyLevel?: string[] | null;
10941118
/**
10951119
* Optional. Max number of PSC connections for this policy.
10961120
*/
10971121
limit?: string | null;
1122+
/**
1123+
* Required. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.
1124+
*/
1125+
producerInstanceLocation?: string | null;
10981126
/**
10991127
* The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId\}/regions/{region\}/subnetworks/{resourceId\}.
11001128
*/

0 commit comments

Comments
 (0)