Skip to content

Commit

Permalink
chore(all): Replace Importers for their context variants
Browse files Browse the repository at this point in the history
  • Loading branch information
tete17 committed Apr 24, 2024
1 parent 33c9b09 commit c374288
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cloudamqp/data_source_cloudamqp_alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func dataSourceAlarm() *schema.Resource {
return &schema.Resource{
Read: dataSourceAlarmRead,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/data_source_cloudamqp_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func dataSourceInstance() *schema.Resource {
return &schema.Resource{
Read: dataSourceInstanceRead,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/data_source_cloudamqp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func dataSourceNotification() *schema.Resource {
return &schema.Resource{
Read: dataSourceNotificationRead,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func resourceAlarm() *schema.Resource {
Update: resourceAlarmUpdate,
Delete: resourceAlarmDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_aws_eventbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func resourceAwsEventBridge() *schema.Resource {
Read: resourceAwsEventBridgeRead,
Delete: resourceAwsEventBridgeDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_custom_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func resourceCustomDomain() *schema.Resource {
Update: resourceCustomDomainUpdate,
Delete: resourceCustomDomainDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func resourceInstance() *schema.Resource {
Update: resourceUpdate,
Delete: resourceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"name": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_integration_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceIntegrationLog() *schema.Resource {
Update: resourceIntegrationLogUpdate,
Delete: resourceIntegrationLogDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_integration_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func resourceIntegrationMetric() *schema.Resource {
Update: resourceIntegrationMetricUpdate,
Delete: resourceIntegrationMetricDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourceNotification() *schema.Resource {
Update: resourceNotificationUpdate,
Delete: resourceNotificationDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourcePlugin() *schema.Resource {
Update: resourcePluginUpdate,
Delete: resourcePluginDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_plugin_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourcePluginCommunity() *schema.Resource {
Update: resourcePluginCommunityUpdate,
Delete: resourcePluginCommunityDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_privatelink_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourcePrivateLinkAws() *schema.Resource {
Update: resourcePrivateLinkAwsUpdate,
Delete: resourcePrivateLinkAwsDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_privatelink_azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourcePrivateLinkAzure() *schema.Resource {
Update: resourcePrivateLinkAzureUpdate,
Delete: resourcePrivateLinkAzureDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_rabbitmq_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func resourceRabbitMqConfiguration() *schema.Resource {
Update: resourceRabbitMqConfigurationUpdate,
Delete: resourceRabbitMqConfigurationDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_security_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func resourceSecurityFirewall() *schema.Resource {
Update: resourceSecurityFirewallUpdate,
Delete: resourceSecurityFirewallDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func resourceVpc() *schema.Resource {
Update: resourceVpcUpdate,
Delete: resourceVpcDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"name": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_vpc_connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func resourceVpcConnect() *schema.Resource {
Update: resourceVpcConnectUpdate,
Delete: resourceVpcConnectDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down
2 changes: 1 addition & 1 deletion cloudamqp/resource_cloudamqp_webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func resourceWebhook() *schema.Resource {
Read: resourceWebhookRead,
Delete: resourceWebhookDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
StateContext: schema.ImportStatePassthroughContext,
},
Schema: map[string]*schema.Schema{
"instance_id": {
Expand Down

0 comments on commit c374288

Please sign in to comment.