Skip to content

Commit

Permalink
Migrating IoTHub and IoTCentral Kermit endpoint (hashicorp#28010)
Browse files Browse the repository at this point in the history
* migrating IoTCentral

* migrating IoTHub

* fixing vendor dependencies
  • Loading branch information
Chambras authored Nov 14, 2024
1 parent 4d6b6a6 commit e4ea02c
Show file tree
Hide file tree
Showing 50 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion internal/services/iotcentral/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
authWrapper "github.com/hashicorp/go-azure-sdk/sdk/auth/autorest"
"github.com/hashicorp/go-azure-sdk/sdk/environments"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
dataplane "github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral"
dataplane "github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral"
)

type Client struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/parse"
"github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/validate"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
dataplane "github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral"
dataplane "github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral"
)

type IotCentralOrganizationResource struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource"
"github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_certificate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubCertificate() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_consumer_group_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubConsumerGroup() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func dataSourceIotHub() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_dps_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubDPS() *pluginsdk.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

type IotHubEndpointCosmosDBAccountResource struct{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubEndpointEventHub() *pluginsdk.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubEndpointServiceBusQueue() *pluginsdk.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubEndpointServiceBusTopic() *pluginsdk.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubEndpointStorageContainer() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_enrichment_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubEnrichment() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_fallback_route_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubFallbackRoute() *pluginsdk.Resource {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_file_upload_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

type IotHubFileUploadResource struct{}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

// TODO: outside of this pr make this private
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iothub/iothub_route_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubRoute() *pluginsdk.Resource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/timeouts"
"github.com/hashicorp/terraform-provider-azurerm/utils"
devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub"
devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub"
)

func resourceIotHubSharedAccessPolicy() *pluginsdk.Resource {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,8 @@ github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation
github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch
github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice
github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory
github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral
github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub
github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault
github.com/jackofallops/kermit/sdk/web/2022-09-01/web
github.com/jackofallops/kermit/version
Expand Down Expand Up @@ -1436,8 +1438,6 @@ github.com/tombuildsstuff/giovanni/storage/internal/metadata
# github.com/tombuildsstuff/kermit v0.20240122.1123108
## explicit; go 1.18
github.com/tombuildsstuff/kermit/sdk/appplatform/2023-05-01-preview/appplatform
github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral
github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub
github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights
github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse
github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse
Expand Down

0 comments on commit e4ea02c

Please sign in to comment.