Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cloud iot service #15739

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .changelog/8868.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```release-note:deprecation
cloudiot: deprecated resource `google_cloudiot_registry`
```
```release-note:deprecation
cloudiot: deprecated resource `google_cloudiot_device`
```
```release-note:deprecation
cloudiot: deprecated resource `google_cloudiot_registry_iam_*`
```
```release-note:deprecation
cloudiot: deprecated datasource `google_cloudiot_registry_iam_policy`
```
5 changes: 0 additions & 5 deletions .teamcity/components/generated/services.kt
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ var services = mapOf(
"displayName" to "Cloudids",
"path" to "./google/services/cloudids"
),
"cloudiot" to mapOf(
"name" to "cloudiot",
"displayName" to "Cloudiot",
"path" to "./google/services/cloudiot"
),
"cloudrun" to mapOf(
"name" to "cloudrun",
"displayName" to "Cloudrun",
Expand Down
1 change: 0 additions & 1 deletion google/fwmodels/provider_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type ProviderModel struct {
Cloudfunctions2CustomEndpoint types.String `tfsdk:"cloudfunctions2_custom_endpoint"`
CloudIdentityCustomEndpoint types.String `tfsdk:"cloud_identity_custom_endpoint"`
CloudIdsCustomEndpoint types.String `tfsdk:"cloud_ids_custom_endpoint"`
CloudIotCustomEndpoint types.String `tfsdk:"cloud_iot_custom_endpoint"`
CloudRunCustomEndpoint types.String `tfsdk:"cloud_run_custom_endpoint"`
CloudRunV2CustomEndpoint types.String `tfsdk:"cloud_run_v2_custom_endpoint"`
CloudSchedulerCustomEndpoint types.String `tfsdk:"cloud_scheduler_custom_endpoint"`
Expand Down
6 changes: 0 additions & 6 deletions google/fwprovider/framework_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,6 @@ func (p *FrameworkProvider) Schema(_ context.Context, _ provider.SchemaRequest,
transport_tpg.CustomEndpointValidator(),
},
},
"cloud_iot_custom_endpoint": &schema.StringAttribute{
Optional: true,
Validators: []validator.String{
transport_tpg.CustomEndpointValidator(),
},
},
"cloud_run_custom_endpoint": &schema.StringAttribute{
Optional: true,
Validators: []validator.String{
Expand Down
10 changes: 0 additions & 10 deletions google/fwtransport/framework_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ type FrameworkProviderConfig struct {
Cloudfunctions2BasePath string
CloudIdentityBasePath string
CloudIdsBasePath string
CloudIotBasePath string
CloudRunBasePath string
CloudRunV2BasePath string
CloudSchedulerBasePath string
Expand Down Expand Up @@ -212,7 +211,6 @@ func (p *FrameworkProviderConfig) LoadAndValidateFramework(ctx context.Context,
p.Cloudfunctions2BasePath = data.Cloudfunctions2CustomEndpoint.ValueString()
p.CloudIdentityBasePath = data.CloudIdentityCustomEndpoint.ValueString()
p.CloudIdsBasePath = data.CloudIdsCustomEndpoint.ValueString()
p.CloudIotBasePath = data.CloudIotCustomEndpoint.ValueString()
p.CloudRunBasePath = data.CloudRunCustomEndpoint.ValueString()
p.CloudRunV2BasePath = data.CloudRunV2CustomEndpoint.ValueString()
p.CloudSchedulerBasePath = data.CloudSchedulerCustomEndpoint.ValueString()
Expand Down Expand Up @@ -611,14 +609,6 @@ func (p *FrameworkProviderConfig) HandleDefaults(ctx context.Context, data *fwmo
data.CloudIdsCustomEndpoint = types.StringValue(customEndpoint.(string))
}
}
if data.CloudIotCustomEndpoint.IsNull() {
customEndpoint := transport_tpg.MultiEnvDefault([]string{
"GOOGLE_CLOUD_IOT_CUSTOM_ENDPOINT",
}, transport_tpg.DefaultBasePaths[transport_tpg.CloudIotBasePathKey])
if customEndpoint != nil {
data.CloudIotCustomEndpoint = types.StringValue(customEndpoint.(string))
}
}
if data.CloudRunCustomEndpoint.IsNull() {
customEndpoint := transport_tpg.MultiEnvDefault([]string{
"GOOGLE_CLOUD_RUN_CUSTOM_ENDPOINT",
Expand Down
19 changes: 3 additions & 16 deletions google/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"github.com/hashicorp/terraform-provider-google/google/services/cloudfunctions2"
"github.com/hashicorp/terraform-provider-google/google/services/cloudidentity"
"github.com/hashicorp/terraform-provider-google/google/services/cloudids"
"github.com/hashicorp/terraform-provider-google/google/services/cloudiot"
"github.com/hashicorp/terraform-provider-google/google/services/cloudrun"
"github.com/hashicorp/terraform-provider-google/google/services/cloudrunv2"
"github.com/hashicorp/terraform-provider-google/google/services/cloudscheduler"
Expand Down Expand Up @@ -351,11 +350,6 @@ func Provider() *schema.Provider {
Optional: true,
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
},
"cloud_iot_custom_endpoint": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: transport_tpg.ValidateCustomEndpoint,
},
"cloud_run_custom_endpoint": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -887,7 +881,6 @@ func DatasourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_cloudbuildv2_connection_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudbuildv2.Cloudbuildv2ConnectionIamSchema, cloudbuildv2.Cloudbuildv2ConnectionIamUpdaterProducer),
"google_cloudfunctions_function_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudfunctions.CloudFunctionsCloudFunctionIamSchema, cloudfunctions.CloudFunctionsCloudFunctionIamUpdaterProducer),
"google_cloudfunctions2_function_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudfunctions2.Cloudfunctions2functionIamSchema, cloudfunctions2.Cloudfunctions2functionIamUpdaterProducer),
"google_cloudiot_registry_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudiot.CloudIotDeviceRegistryIamSchema, cloudiot.CloudIotDeviceRegistryIamUpdaterProducer),
"google_cloud_run_service_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudrun.CloudRunServiceIamSchema, cloudrun.CloudRunServiceIamUpdaterProducer),
"google_cloud_run_v2_job_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudrunv2.CloudRunV2JobIamSchema, cloudrunv2.CloudRunV2JobIamUpdaterProducer),
"google_cloud_run_v2_service_iam_policy": tpgiamresource.DataSourceIamPolicy(cloudrunv2.CloudRunV2ServiceIamSchema, cloudrunv2.CloudRunV2ServiceIamUpdaterProducer),
Expand Down Expand Up @@ -965,9 +958,9 @@ func DatasourceMapWithErrors() (map[string]*schema.Resource, error) {
})
}

// Generated resources: 306
// Generated IAM resources: 204
// Total generated resources: 510
// Generated resources: 304
// Generated IAM resources: 201
// Total generated resources: 505
func ResourceMap() map[string]*schema.Resource {
resourceMap, _ := ResourceMapWithErrors()
return resourceMap
Expand Down Expand Up @@ -1089,11 +1082,6 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_cloud_identity_group": cloudidentity.ResourceCloudIdentityGroup(),
"google_cloud_identity_group_membership": cloudidentity.ResourceCloudIdentityGroupMembership(),
"google_cloud_ids_endpoint": cloudids.ResourceCloudIdsEndpoint(),
"google_cloudiot_device": cloudiot.ResourceCloudIotDevice(),
"google_cloudiot_registry": cloudiot.ResourceCloudIotDeviceRegistry(),
"google_cloudiot_registry_iam_binding": tpgiamresource.ResourceIamBinding(cloudiot.CloudIotDeviceRegistryIamSchema, cloudiot.CloudIotDeviceRegistryIamUpdaterProducer, cloudiot.CloudIotDeviceRegistryIdParseFunc),
"google_cloudiot_registry_iam_member": tpgiamresource.ResourceIamMember(cloudiot.CloudIotDeviceRegistryIamSchema, cloudiot.CloudIotDeviceRegistryIamUpdaterProducer, cloudiot.CloudIotDeviceRegistryIdParseFunc),
"google_cloudiot_registry_iam_policy": tpgiamresource.ResourceIamPolicy(cloudiot.CloudIotDeviceRegistryIamSchema, cloudiot.CloudIotDeviceRegistryIamUpdaterProducer, cloudiot.CloudIotDeviceRegistryIdParseFunc),
"google_cloud_run_domain_mapping": cloudrun.ResourceCloudRunDomainMapping(),
"google_cloud_run_service": cloudrun.ResourceCloudRunService(),
"google_cloud_run_service_iam_binding": tpgiamresource.ResourceIamBinding(cloudrun.CloudRunServiceIamSchema, cloudrun.CloudRunServiceIamUpdaterProducer, cloudrun.CloudRunServiceIdParseFunc),
Expand Down Expand Up @@ -1736,7 +1724,6 @@ func ProviderConfigure(ctx context.Context, d *schema.ResourceData, p *schema.Pr
config.Cloudfunctions2BasePath = d.Get("cloudfunctions2_custom_endpoint").(string)
config.CloudIdentityBasePath = d.Get("cloud_identity_custom_endpoint").(string)
config.CloudIdsBasePath = d.Get("cloud_ids_custom_endpoint").(string)
config.CloudIotBasePath = d.Get("cloud_iot_custom_endpoint").(string)
config.CloudRunBasePath = d.Get("cloud_run_custom_endpoint").(string)
config.CloudRunV2BasePath = d.Get("cloud_run_v2_custom_endpoint").(string)
config.CloudSchedulerBasePath = d.Get("cloud_scheduler_custom_endpoint").(string)
Expand Down
245 changes: 0 additions & 245 deletions google/services/cloudiot/iam_cloudiot_registry.go

This file was deleted.

Loading