From daf0cf7138f2ad694cf8097595d173f1b9ecbc83 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Thu, 30 May 2024 22:47:36 +0000 Subject: [PATCH] Add regional NEG to generated resource. --- pkg/cloud/meta/compute_services.go | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/pkg/cloud/meta/compute_services.go b/pkg/cloud/meta/compute_services.go index ba36fddf..31b2092c 100644 --- a/pkg/cloud/meta/compute_services.go +++ b/pkg/cloud/meta/compute_services.go @@ -648,6 +648,45 @@ var ComputeServices = []*ServiceInfo{ "ListNetworkEndpoints", }, }, + { + Object: "NetworkEndpointGroup", + Service: "RegionNetworkEndpointGroups", + Resource: "networkEndpointGroups", + version: VersionAlpha, + keyType: Regional, + serviceType: reflect.TypeOf(&alpha.RegionNetworkEndpointGroupsService{}), + additionalMethods: []string{ + "AttachNetworkEndpoints", + "DetachNetworkEndpoints", + "ListNetworkEndpoints", + }, + }, + { + Object: "NetworkEndpointGroup", + Service: "RegionNetworkEndpointGroups", + Resource: "networkEndpointGroups", + version: VersionBeta, + keyType: Regional, + serviceType: reflect.TypeOf(&beta.RegionNetworkEndpointGroupsService{}), + additionalMethods: []string{ + "AttachNetworkEndpoints", + "DetachNetworkEndpoints", + "ListNetworkEndpoints", + }, + }, + { + Object: "NetworkEndpointGroup", + Service: "RegionNetworkEndpointGroups", + Resource: "networkEndpointGroups", + version: VersionGA, + keyType: Regional, + serviceType: reflect.TypeOf(&ga.RegionNetworkEndpointGroupsService{}), + additionalMethods: []string{ + "AttachNetworkEndpoints", + "DetachNetworkEndpoints", + "ListNetworkEndpoints", + }, + }, { Object: "Project", Service: "Projects",