Skip to content

Commit

Permalink
Update clients to latest version (#1735)
Browse files Browse the repository at this point in the history
The Grafana Cloud and SLO clients are now generated the same way, so that path changed a bit
  • Loading branch information
julienduchesne authored Jul 31, 2024
1 parent 26b4ddb commit 50f6aa7
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 27 deletions.
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ require (
github.com/go-openapi/runtime v0.28.0
github.com/go-openapi/strfmt v0.23.0
github.com/grafana/amixr-api-go-client v0.0.12 // main branch
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240729133745-7aca6e469e1f
github.com/grafana/grafana-com-public-clients/go v0.0.0-20240731155007-d5af528b15e9
github.com/grafana/grafana-openapi-client-go v0.0.0-20240723170622-ae2c94b7c9a3
github.com/grafana/machine-learning-go-client v0.8.0
github.com/grafana/slo-openapi-client/go v0.0.0-20240717162314-26344962b4c5
github.com/grafana/slo-openapi-client/go v0.0.0-20240731123249-1327bbecc168
github.com/grafana/synthetic-monitoring-agent v0.25.0
github.com/grafana/synthetic-monitoring-api-go-client v0.8.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Expand Down Expand Up @@ -173,6 +173,7 @@ require (
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 // indirect
gopkg.in/validator.v2 v2.0.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

Expand Down
10 changes: 6 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
github.com/grafana/amixr-api-go-client v0.0.12 h1:oEHZTBhxoZ35EsfeccZBJGPKhZUVOmdSir3WWnSJMLc=
github.com/grafana/amixr-api-go-client v0.0.12/go.mod h1:N6x26XUrM5zGtK5zL5vNJnAn2JFMxLFPPLTw/6pDkFE=
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240729133745-7aca6e469e1f h1:tB7ToZJeuS+IuGfoI5uPE1DA2yGyn7epGmTn9/tbd7g=
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240729133745-7aca6e469e1f/go.mod h1:6sYY1qgwYfSDNQhKQA0tar8Oc38cIGfyqwejhxoOsPs=
github.com/grafana/grafana-com-public-clients/go v0.0.0-20240731155007-d5af528b15e9 h1:0TeqFmeGW3bJ91tCNeZlF8MWRPEDUW7VuJDv9tsZJpI=
github.com/grafana/grafana-com-public-clients/go v0.0.0-20240731155007-d5af528b15e9/go.mod h1:wsjR7jy6h2Did3itoHqolcbfKgSBT1Pb/6WqhCTAD8Y=
github.com/grafana/grafana-openapi-client-go v0.0.0-20240723170622-ae2c94b7c9a3 h1:W35ScJIkeyLuDlOo3F+u1JSRRvmoIYYf/ghA/17Y18Q=
github.com/grafana/grafana-openapi-client-go v0.0.0-20240723170622-ae2c94b7c9a3/go.mod h1:hiZnMmXc9KXNUlvkV2BKFsiWuIFF/fF4wGgYWEjBitI=
github.com/grafana/grafana-plugin-sdk-go v0.235.0 h1:UnZ/iBDvCkfDgwR94opi8trAWJXv4V8Qr1ocJKRRmqA=
Expand All @@ -148,8 +148,8 @@ github.com/grafana/otel-profiling-go v0.5.1 h1:stVPKAFZSa7eGiqbYuG25VcqYksR6iWvF
github.com/grafana/otel-profiling-go v0.5.1/go.mod h1:ftN/t5A/4gQI19/8MoWurBEtC6gFw8Dns1sJZ9W4Tls=
github.com/grafana/pyroscope-go/godeltaprof v0.1.7 h1:C11j63y7gymiW8VugJ9ZW0pWfxTZugdSJyC48olk5KY=
github.com/grafana/pyroscope-go/godeltaprof v0.1.7/go.mod h1:Tk376Nbldo4Cha9RgiU7ik8WKFkNpfds98aUzS8omLE=
github.com/grafana/slo-openapi-client/go v0.0.0-20240717162314-26344962b4c5 h1:qUb8ZPVC/QQDh8uCH9ZObZnsdT9S7iX3qe3q73XLj/o=
github.com/grafana/slo-openapi-client/go v0.0.0-20240717162314-26344962b4c5/go.mod h1:HgbbeH2gFfCk2XZCrCly39DB13WkwWyQ+Ww+HTxePCs=
github.com/grafana/slo-openapi-client/go v0.0.0-20240731123249-1327bbecc168 h1:CK6VujoxBd4f2Fj04RveRDkGGt5nERYgrAJEaUnhol0=
github.com/grafana/slo-openapi-client/go v0.0.0-20240731123249-1327bbecc168/go.mod h1:HgbbeH2gFfCk2XZCrCly39DB13WkwWyQ+Ww+HTxePCs=
github.com/grafana/synthetic-monitoring-agent v0.25.0 h1:krGprYHKs6Yc6ObGzt2b8u9wAKBGJs+MKys/pulpk1I=
github.com/grafana/synthetic-monitoring-agent v0.25.0/go.mod h1:jqe7JItP1mNo1n/O3ufbmdRpk4T8nj8d/aH+T8ywUzc=
github.com/grafana/synthetic-monitoring-api-go-client v0.8.0 h1:Tm4MtwwYmPNInGfnj66l6j6KOshMkNV4emIVKJdlXMg=
Expand Down Expand Up @@ -525,6 +525,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/fsnotify/fsnotify.v1 v1.4.7 h1:XNNYLJHt73EyYiCZi6+xjupS9CpvmiDgjPTAjrBlQbo=
gopkg.in/fsnotify/fsnotify.v1 v1.4.7/go.mod h1:Fyux9zXlo4rWoMSIzpn9fDAYjalPqJ/K1qJ27s+7ltE=
gopkg.in/validator.v2 v2.0.1 h1:xF0KWyGWXm/LM2G1TrEjqOu4pa6coO9AlWSf3msVfDY=
gopkg.in/validator.v2 v2.0.1/go.mod h1:lIUZBlB3Im4s/eYp39Ry/wkR02yOPhZ9IwIRBjuPuG8=
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
Expand Down
2 changes: 1 addition & 1 deletion internal/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"

onCallAPI "github.com/grafana/amixr-api-go-client"
"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
goapi "github.com/grafana/grafana-openapi-client-go/client"
"github.com/grafana/machine-learning-go-client/mlapi"
slo "github.com/grafana/slo-openapi-client/go"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/go-uuid"
"github.com/hashicorp/terraform-plugin-framework/resource"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/common_lister.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/data_source_cloud_organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strconv"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/data_source_cloud_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloud
import (
"context"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/data_source_cloud_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/testutils"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_access_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/go-cty/cty"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/grafana/terraform-provider-grafana/v3/internal/resources/cloud"
"github.com/grafana/terraform-provider-grafana/v3/internal/testutils"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_org_member.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloud
import (
"context"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/grafana/terraform-provider-grafana/v3/internal/testutils"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
goapi "github.com/grafana/grafana-openapi-client-go/client"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/grafana-openapi-client-go/client/service_accounts"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/grafana/terraform-provider-grafana/v3/internal/resources/cloud"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/cloud/resource_cloud_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/grafana/terraform-provider-grafana/v3/internal/resources/cloud"
"github.com/grafana/terraform-provider-grafana/v3/internal/testutils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
SMAPI "github.com/grafana/synthetic-monitoring-api-go-client"
"github.com/grafana/terraform-provider-grafana/v3/internal/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloud_test
import (
"testing"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/terraform-provider-grafana/v3/internal/testutils"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
Expand Down
2 changes: 1 addition & 1 deletion pkg/generate/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"time"

"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
"github.com/grafana/grafana-openapi-client-go/client/service_accounts"
"github.com/grafana/terraform-provider-grafana/v3/internal/resources/cloud"
"github.com/grafana/terraform-provider-grafana/v3/pkg/generate/postprocessing"
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/configure_clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

onCallAPI "github.com/grafana/amixr-api-go-client"
"github.com/grafana/grafana-com-public-clients/go/gcom"
gcom "github.com/grafana/grafana-com-public-clients/go"
goapi "github.com/grafana/grafana-openapi-client-go/client"
"github.com/grafana/machine-learning-go-client/mlapi"
slo "github.com/grafana/slo-openapi-client/go"
Expand Down

0 comments on commit 50f6aa7

Please sign in to comment.