@@ -168,7 +168,7 @@ func (s *Store) DataLakeDeletePrivateEndpoint(projectID, endpointID string) erro
168
168
// CreateInterfaceEndpoint encapsulates the logic to manage different cloud providers.
169
169
func (s * Store ) CreateInterfaceEndpoint (projectID , provider , endpointServiceID string , createRequest * atlasv2.CreateEndpointRequest ) (* atlasv2.PrivateLinkEndpoint , error ) {
170
170
switch s .service {
171
- case config .CloudService :
171
+ case config .CloudService , config . CloudGovService :
172
172
result , _ , err := s .clientv2 .PrivateEndpointServicesApi .CreatePrivateEndpoint (s .ctx , projectID , provider ,
173
173
endpointServiceID , createRequest ).Execute ()
174
174
return result , err
@@ -180,7 +180,7 @@ func (s *Store) CreateInterfaceEndpoint(projectID, provider, endpointServiceID s
180
180
// InterfaceEndpoint encapsulates the logic to manage different cloud providers.
181
181
func (s * Store ) InterfaceEndpoint (projectID , cloudProvider , endpointServiceID , privateEndpointID string ) (* atlasv2.PrivateLinkEndpoint , error ) {
182
182
switch s .service {
183
- case config .CloudService :
183
+ case config .CloudService , config . CloudGovService :
184
184
result , _ , err := s .clientv2 .PrivateEndpointServicesApi .GetPrivateEndpoint (s .ctx , projectID , cloudProvider , endpointServiceID , privateEndpointID ).Execute ()
185
185
return result , err
186
186
default :
@@ -191,7 +191,7 @@ func (s *Store) InterfaceEndpoint(projectID, cloudProvider, endpointServiceID, p
191
191
// DeleteInterfaceEndpoint encapsulates the logic to manage different cloud providers.
192
192
func (s * Store ) DeleteInterfaceEndpoint (projectID , provider , endpointServiceID , privateEndpointID string ) error {
193
193
switch s .service {
194
- case config .CloudService :
194
+ case config .CloudService , config . CloudGovService :
195
195
_ , _ , err := s .clientv2 .PrivateEndpointServicesApi .DeletePrivateEndpoint (s .ctx , projectID , provider , privateEndpointID , endpointServiceID ).Execute ()
196
196
return err
197
197
default :
@@ -202,7 +202,7 @@ func (s *Store) DeleteInterfaceEndpoint(projectID, provider, endpointServiceID,
202
202
// UpdateRegionalizedPrivateEndpointSetting encapsulates the logic to manage different cloud providers.
203
203
func (s * Store ) UpdateRegionalizedPrivateEndpointSetting (projectID string , enabled bool ) (* atlasv2.ProjectSettingItem , error ) {
204
204
switch s .service {
205
- case config .CloudService :
205
+ case config .CloudService , config . CloudGovService :
206
206
setting := atlasv2.ProjectSettingItem {
207
207
Enabled : enabled ,
208
208
}
@@ -217,7 +217,7 @@ func (s *Store) UpdateRegionalizedPrivateEndpointSetting(projectID string, enabl
217
217
// RegionalizedPrivateEndpointSetting encapsulates the logic to manage different cloud providers.
218
218
func (s * Store ) RegionalizedPrivateEndpointSetting (projectID string ) (* atlasv2.ProjectSettingItem , error ) {
219
219
switch s .service {
220
- case config .CloudService :
220
+ case config .CloudService , config . CloudGovService :
221
221
result , _ , err := s .clientv2 .PrivateEndpointServicesApi .GetRegionalizedPrivateEndpointSetting (s .ctx , projectID ).Execute ()
222
222
return result , err
223
223
default :
0 commit comments