Skip to content

Commit

Permalink
Use REST API v6
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeCarrier committed Jul 14, 2023
1 parent b8c314d commit a6042ce
Show file tree
Hide file tree
Showing 87 changed files with 11,706 additions and 1,429 deletions.
8 changes: 4 additions & 4 deletions .vscode/terraform.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
" \"github.com/hashicorp/terraform-plugin-sdk/helper/schema\"",
" \"github.com/hashicorp/terraform-plugin-sdk/helper/validation\"",
"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/core\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/v6/core\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/client\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/utils/converter\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/utils/validate\"",
Expand Down Expand Up @@ -80,7 +80,7 @@
" \"github.com/hashicorp/terraform-plugin-sdk/helper/schema\"",
" \"github.com/hashicorp/terraform-plugin-sdk/helper/validation\"",
"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/core\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/v6/core\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/azuredevops/internal/client\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/azuredevops/internal/utils/converter\"",
" \"github.com/babylonhealth/terraform-provider-bblnazuredevops/azuredevops/internal/utils/validate\"",
Expand Down Expand Up @@ -142,8 +142,8 @@
" \"github.com/hashicorp/terraform-plugin-sdk/helper/resource\"",
" \"github.com/hashicorp/terraform-plugin-sdk/helper/schema\"",
" \"github.com/hashicorp/terraform-plugin-sdk/terraform\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/core\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/operations\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/v6/core\"",
" \"github.com/microsoft/azure-devops-go-api/azuredevops/v6/operations\"",
" \"github.com/stretchr/testify/require\"",
")",
"",
Expand Down
4 changes: 2 additions & 2 deletions azdosdkmocks/accounts_sdk_mock.go

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

6 changes: 3 additions & 3 deletions azdosdkmocks/build_sdk_mock.go

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

8 changes: 4 additions & 4 deletions azdosdkmocks/core_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/featuremanagement_sdk_mock.go

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

8 changes: 4 additions & 4 deletions azdosdkmocks/git_sdk_mock.go

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

6 changes: 3 additions & 3 deletions azdosdkmocks/graph_sdk_mock.go

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

6 changes: 3 additions & 3 deletions azdosdkmocks/identity_sdk_mock.go

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

6 changes: 3 additions & 3 deletions azdosdkmocks/memberentitlementmanagement_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/operations_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/policy_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/profile_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/security_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/serviceendpoint_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/taskagent_sdk_mock.go

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

4 changes: 2 additions & 2 deletions azdosdkmocks/test_sdk_mock.go

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

6 changes: 3 additions & 3 deletions azdosdkmocks/workitemtracking_sdk_mock.go

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

30 changes: 15 additions & 15 deletions bblnazuredevops/internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ import (
"strings"

"github.com/babylonhealth/terraform-provider-bblnazuredevops/version"
"github.com/microsoft/azure-devops-go-api/azuredevops"
"github.com/microsoft/azure-devops-go-api/azuredevops/build"
"github.com/microsoft/azure-devops-go-api/azuredevops/core"
"github.com/microsoft/azure-devops-go-api/azuredevops/featuremanagement"
"github.com/microsoft/azure-devops-go-api/azuredevops/git"
"github.com/microsoft/azure-devops-go-api/azuredevops/graph"
"github.com/microsoft/azure-devops-go-api/azuredevops/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/memberentitlementmanagement"
"github.com/microsoft/azure-devops-go-api/azuredevops/operations"
"github.com/microsoft/azure-devops-go-api/azuredevops/policy"
"github.com/microsoft/azure-devops-go-api/azuredevops/release"
"github.com/microsoft/azure-devops-go-api/azuredevops/security"
"github.com/microsoft/azure-devops-go-api/azuredevops/serviceendpoint"
"github.com/microsoft/azure-devops-go-api/azuredevops/taskagent"
"github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/build"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/core"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/featuremanagement"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/git"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/graph"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/memberentitlementmanagement"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/operations"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/policy"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/release"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/security"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/serviceendpoint"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/taskagent"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/workitemtracking"
)

// AggregatedClient aggregates all of the underlying clients into a single data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ahmetb/go-linq"
"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/utils/converter"
"github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/workitemtracking"
)

const aclClassificationNodeTokenPrefix = "vstfs:///Classification/Node/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/utils/converter"
"github.com/golang/mock/gomock"
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops/workitemtracking"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/workitemtracking"
"github.com/stretchr/testify/assert"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/babylonhealth/terraform-provider-bblnazuredevops/bblnazuredevops/internal/utils/converter"
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/microsoft/azure-devops-go-api/azuredevops/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/security"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/security"
)

// ActionName type for an permission actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"github.com/golang/mock/gomock"
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/microsoft/azure-devops-go-api/azuredevops/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/security"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/identity"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/security"
"github.com/stretchr/testify/assert"
)

Expand Down
Loading

0 comments on commit a6042ce

Please sign in to comment.