Skip to content

Commit 20f4952

Browse files
modular-magicianScottSuarez
authored andcommitted
Revert "Discovery Engine Data Store" (#9839) (#6873)
[upstream:ebc991bb98c1a5fae88d695b3be64de3efc26cd4] Signed-off-by: Modular Magician <[email protected]>
1 parent aad702c commit 20f4952

15 files changed

+5
-1092
lines changed

.changelog/9839.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-resource
2+
google_discovery_engine_data_store (revert)
3+
```

.teamcity/components/generated/services.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,6 @@ var services = mapOf(
301301
"displayName" to "Dialogflowcx",
302302
"path" to "./google-beta/services/dialogflowcx"
303303
),
304-
"discoveryengine" to mapOf(
305-
"name" to "discoveryengine",
306-
"displayName" to "Discoveryengine",
307-
"path" to "./google-beta/services/discoveryengine"
308-
),
309304
"dns" to mapOf(
310305
"name" to "dns",
311306
"displayName" to "Dns",

google-beta/fwmodels/provider_model.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ type ProviderModel struct {
7878
DeploymentManagerCustomEndpoint types.String `tfsdk:"deployment_manager_custom_endpoint"`
7979
DialogflowCustomEndpoint types.String `tfsdk:"dialogflow_custom_endpoint"`
8080
DialogflowCXCustomEndpoint types.String `tfsdk:"dialogflow_cx_custom_endpoint"`
81-
DiscoveryEngineCustomEndpoint types.String `tfsdk:"discovery_engine_custom_endpoint"`
8281
DNSCustomEndpoint types.String `tfsdk:"dns_custom_endpoint"`
8382
DocumentAICustomEndpoint types.String `tfsdk:"document_ai_custom_endpoint"`
8483
DocumentAIWarehouseCustomEndpoint types.String `tfsdk:"document_ai_warehouse_custom_endpoint"`

google-beta/fwprovider/framework_provider.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,6 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
449449
transport_tpg.CustomEndpointValidator(),
450450
},
451451
},
452-
"discovery_engine_custom_endpoint": &schema.StringAttribute{
453-
Optional: true,
454-
Validators: []validator.String{
455-
transport_tpg.CustomEndpointValidator(),
456-
},
457-
},
458452
"dns_custom_endpoint": &schema.StringAttribute{
459453
Optional: true,
460454
Validators: []validator.String{

google-beta/fwtransport/framework_config.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ type FrameworkProviderConfig struct {
103103
DeploymentManagerBasePath string
104104
DialogflowBasePath string
105105
DialogflowCXBasePath string
106-
DiscoveryEngineBasePath string
107106
DNSBasePath string
108107
DocumentAIBasePath string
109108
DocumentAIWarehouseBasePath string
@@ -264,7 +263,6 @@ func (p *FrameworkProviderConfig) LoadAndValidateFramework(ctx context.Context,
264263
p.DeploymentManagerBasePath = data.DeploymentManagerCustomEndpoint.ValueString()
265264
p.DialogflowBasePath = data.DialogflowCustomEndpoint.ValueString()
266265
p.DialogflowCXBasePath = data.DialogflowCXCustomEndpoint.ValueString()
267-
p.DiscoveryEngineBasePath = data.DiscoveryEngineCustomEndpoint.ValueString()
268266
p.DNSBasePath = data.DNSCustomEndpoint.ValueString()
269267
p.DocumentAIBasePath = data.DocumentAICustomEndpoint.ValueString()
270268
p.DocumentAIWarehouseBasePath = data.DocumentAIWarehouseCustomEndpoint.ValueString()
@@ -877,14 +875,6 @@ func (p *FrameworkProviderConfig) HandleDefaults(ctx context.Context, data *fwmo
877875
data.DialogflowCXCustomEndpoint = types.StringValue(customEndpoint.(string))
878876
}
879877
}
880-
if data.DiscoveryEngineCustomEndpoint.IsNull() {
881-
customEndpoint := transport_tpg.MultiEnvDefault([]string{
882-
"GOOGLE_DISCOVERY_ENGINE_CUSTOM_ENDPOINT",
883-
}, transport_tpg.DefaultBasePaths[transport_tpg.DiscoveryEngineBasePathKey])
884-
if customEndpoint != nil {
885-
data.DiscoveryEngineCustomEndpoint = types.StringValue(customEndpoint.(string))
886-
}
887-
}
888878
if data.DNSCustomEndpoint.IsNull() {
889879
customEndpoint := transport_tpg.MultiEnvDefault([]string{
890880
"GOOGLE_DNS_CUSTOM_ENDPOINT",

google-beta/provider/provider.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,6 @@ func Provider() *schema.Provider {
395395
Optional: true,
396396
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
397397
},
398-
"discovery_engine_custom_endpoint": {
399-
Type: schema.TypeString,
400-
Optional: true,
401-
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
402-
},
403398
"dns_custom_endpoint": {
404399
Type: schema.TypeString,
405400
Optional: true,
@@ -998,7 +993,6 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
998993
config.DeploymentManagerBasePath = d.Get("deployment_manager_custom_endpoint").(string)
999994
config.DialogflowBasePath = d.Get("dialogflow_custom_endpoint").(string)
1000995
config.DialogflowCXBasePath = d.Get("dialogflow_cx_custom_endpoint").(string)
1001-
config.DiscoveryEngineBasePath = d.Get("discovery_engine_custom_endpoint").(string)
1002996
config.DNSBasePath = d.Get("dns_custom_endpoint").(string)
1003997
config.DocumentAIBasePath = d.Get("document_ai_custom_endpoint").(string)
1004998
config.DocumentAIWarehouseBasePath = d.Get("document_ai_warehouse_custom_endpoint").(string)

google-beta/provider/provider_mmv1_resources.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import (
5757
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/deploymentmanager"
5858
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/dialogflow"
5959
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/dialogflowcx"
60-
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/discoveryengine"
6160
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/dns"
6261
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/documentai"
6362
"github.com/hashicorp/terraform-provider-google-beta/google-beta/services/documentaiwarehouse"
@@ -424,9 +423,9 @@ var handwrittenIAMDatasources = map[string]*schema.Resource{
424423
}
425424

426425
// Resources
427-
// Generated resources: 424
426+
// Generated resources: 423
428427
// Generated IAM resources: 255
429-
// Total generated resources: 679
428+
// Total generated resources: 678
430429
var generatedResources = map[string]*schema.Resource{
431430
"google_folder_access_approval_settings": accessapproval.ResourceAccessApprovalFolderSettings(),
432431
"google_organization_access_approval_settings": accessapproval.ResourceAccessApprovalOrganizationSettings(),
@@ -779,7 +778,6 @@ var generatedResources = map[string]*schema.Resource{
779778
"google_dialogflow_cx_test_case": dialogflowcx.ResourceDialogflowCXTestCase(),
780779
"google_dialogflow_cx_version": dialogflowcx.ResourceDialogflowCXVersion(),
781780
"google_dialogflow_cx_webhook": dialogflowcx.ResourceDialogflowCXWebhook(),
782-
"google_discovery_engine_data_store": discoveryengine.ResourceDiscoveryEngineDataStore(),
783781
"google_dns_managed_zone": dns.ResourceDNSManagedZone(),
784782
"google_dns_managed_zone_iam_binding": tpgiamresource.ResourceIamBinding(dns.DNSManagedZoneIamSchema, dns.DNSManagedZoneIamUpdaterProducer, dns.DNSManagedZoneIdParseFunc),
785783
"google_dns_managed_zone_iam_member": tpgiamresource.ResourceIamMember(dns.DNSManagedZoneIamSchema, dns.DNSManagedZoneIamUpdaterProducer, dns.DNSManagedZoneIdParseFunc),

google-beta/services/discoveryengine/discovery_engine_operation.go

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)