Skip to content

Commit

Permalink
Remove odata package in favour of github.com/hashicorp/go-azure-sdk/s…
Browse files Browse the repository at this point in the history
…dk/odata
  • Loading branch information
manicminer committed Feb 23, 2023
1 parent 39e882c commit 134f21a
Show file tree
Hide file tree
Showing 89 changed files with 83 additions and 973 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/odata-tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (

"github.com/hashicorp/go-azure-sdk/sdk/auth"
"github.com/hashicorp/go-azure-sdk/sdk/environments"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions aadgraph/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/hashicorp/go-azure-sdk/sdk/auth"
"github.com/hashicorp/go-azure-sdk/sdk/environments"
"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type ApiVersion string
Expand Down Expand Up @@ -309,7 +309,7 @@ func (c Client) Get(ctx context.Context, input GetHttpRequestInput) (*http.Respo

// Get the next page, recursively
nextInput := input
nextInput.rawUri = *firstOdata.NextLink
nextInput.rawUri = string(*firstOdata.NextLink)
nextResp, status, o, err := c.Get(ctx, nextInput)
if err != nil {
return resp, status, o, err
Expand Down
2 changes: 1 addition & 1 deletion example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/hashicorp/go-azure-sdk/sdk/auth"
"github.com/hashicorp/go-azure-sdk/sdk/environments"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/administrativeunits.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupAdministrativeUnits() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupApplications() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/conditionalaccesspolicies.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupConditionalAccessPolicies() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupGroups() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/namedlocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupNamedLocations() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/schemaextensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupSchemaExtensions() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/serviceprincipals.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupServicePrincipals() {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/test-cleanup/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"log"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func cleanupUsers() {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageassignmentpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageAssignmentPolicyClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageassignmentpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageAssignmentPolicyClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageassignmentrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageAssignmentRequestClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageassignmentrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageAssignmentRequestClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackagecatalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageCatalogClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackagecatalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageCatalogClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageResourceClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageresourcerequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/manicminer/hamilton/internal/utils"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type AccessPackageResourceRequestClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageresourcerequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageResourceRequestClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageresourcerolescope.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/http"
"strings"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/odata"
)

type AccessPackageResourceRoleScopeClient struct {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/accesspackageresourcerolescope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAccessPackageResourceRoleScopeClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/administrative_units.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

// AdministrativeUnitsClient performs operations on Administrative Units
Expand Down
2 changes: 1 addition & 1 deletion msgraph/administrative_units_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAdministrativeUnitsClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/app_role_assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

type appRoleAssignmentsResourceType string
Expand Down
3 changes: 1 addition & 2 deletions msgraph/app_role_assignments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/hashicorp/go-uuid"

"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAppRoleAssignedToClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/application_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

// ApplicationTemplatesClient performs operations on ApplicationTemplates.
Expand Down
2 changes: 1 addition & 1 deletion msgraph/application_templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

const testApplicationTemplateId = "4601ed45-8ff3-4599-8377-b6649007e876" // Marketo
Expand Down
2 changes: 1 addition & 1 deletion msgraph/applications.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

// ApplicationsClient performs operations on Applications.
Expand Down
2 changes: 1 addition & 1 deletion msgraph/applications_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"testing"
"time"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestApplicationsClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/authentication_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

// AuthenticationMethodsClient performs operations on the Authentications methods endpoint under Identity and Sign-in
Expand Down
2 changes: 1 addition & 1 deletion msgraph/authentication_methods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/hashicorp/go-azure-sdk/sdk/odata"
"github.com/manicminer/hamilton/internal/test"
"github.com/manicminer/hamilton/internal/utils"
"github.com/manicminer/hamilton/msgraph"
"github.com/manicminer/hamilton/odata"
)

func TestAuthenticationMethodsClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph/b2c_userflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"github.com/manicminer/hamilton/odata"
"github.com/hashicorp/go-azure-sdk/sdk/odata"
)

// B2CUserFlowClient performs operations on B2CUserFlow.
Expand Down
Loading

0 comments on commit 134f21a

Please sign in to comment.