diff --git a/Makefile b/Makefile
index ec3c3926..10402535 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
-
-
default: build
+.PHONY: init-examples
init-examples:
@echo "==> Creating symlinks for example/ projects to terraform-provider-castai binary"; \
TF_PROVIDER_FILENAME=terraform-provider-castai; \
@@ -16,29 +15,35 @@ init-examples:
done \
done
+.PHONY: generate-sdk
generate-sdk:
@echo "==> Generating castai sdk client"
@API_TAGS=ExternalClusterAPI,PoliciesAPI,NodeConfigurationAPI,NodeTemplatesAPI,AuthTokenAPI,ScheduledRebalancingAPI,InventoryAPI,UsersAPI,OperationsAPI,EvictorAPI,SSOAPI go generate castai/sdk/generate.go
# The following command also rewrites existing documentation
+.PHONY: generate-docs
generate-docs:
go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@v0.14.1
tfplugindocs generate --rendered-provider-name "CAST AI" --ignore-deprecated
+.PHONY: build
build: init-examples
build: generate-sdk
build:
@echo "==> Building terraform-provider-castai"
go build
+.PHONY: test
test:
@echo "==> Running tests"
go test $$(go list ./... | grep -v vendor/ | grep -v e2e) -timeout=1m -parallel=4
+.PHONY: testacc
testacc:
@echo "==> Running acceptance tests"
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 10m
+.PHONY: validate-terraform-examples
validate-terraform-examples:
for examples in examples/eks examples/gke examples/aks ; do \
for tfproject in $$examples/* ; do \
diff --git a/castai/data_source_organization.go b/castai/data_source_organization.go
index cbdd33e9..85d1cc2f 100644
--- a/castai/data_source_organization.go
+++ b/castai/data_source_organization.go
@@ -32,7 +32,7 @@ func dataSourceOrganization() *schema.Resource {
func dataSourceOrganizationRead(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics {
client := meta.(*ProviderConfig).api
- resp, err := client.ListOrganizationsWithResponse(ctx)
+ resp, err := client.UsersAPIListOrganizationsWithResponse(ctx, &sdk.UsersAPIListOrganizationsParams{})
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving organizations: %w", err))
}
diff --git a/castai/data_source_organization_test.go b/castai/data_source_organization_test.go
index 2ec3805a..45ee3c6c 100644
--- a/castai/data_source_organization_test.go
+++ b/castai/data_source_organization_test.go
@@ -48,7 +48,7 @@ func TestOrganizationDataSourceRead(t *testing.T) {
}`)))
mockClient.EXPECT().
- ListOrganizations(gomock.Any()).
+ UsersAPIListOrganizations(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: 200, Body: body, Header: map[string][]string{"Content-Type": {"json"}}}, nil)
state := terraform.NewInstanceStateShimmedFromValue(cty.ObjectVal(map[string]cty.Value{}), 0)
@@ -97,7 +97,7 @@ func TestOrganizationDataSourceReadError(t *testing.T) {
}`)))
mockClient.EXPECT().
- ListOrganizations(gomock.Any()).
+ UsersAPIListOrganizations(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: 200, Body: body, Header: map[string][]string{"Content-Type": {"json"}}}, nil)
state := terraform.NewInstanceStateShimmedFromValue(cty.ObjectVal(map[string]cty.Value{}), 0)
diff --git a/castai/resource_organization_members.go b/castai/resource_organization_members.go
index 7957bbd7..d2bbdcfe 100644
--- a/castai/resource_organization_members.go
+++ b/castai/resource_organization_members.go
@@ -76,12 +76,12 @@ func resourceOrganizationMembers() *schema.Resource {
func resourceOrganizationMembersCreate(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics {
client := meta.(*ProviderConfig).api
- currentUserResp, err := client.CurrentUserProfileWithResponse(ctx)
+ currentUserResp, err := client.UsersAPICurrentUserProfileWithResponse(ctx)
if err := sdk.CheckOKResponse(currentUserResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving current user profile: %w", err))
}
- var newMemberships []sdk.NewMembershipByEmail
+ var newMemberships []sdk.CastaiUsersV1beta1NewMembershipByEmail
if owners, ok := data.GetOk(FieldOrganizationMembersOwners); ok {
emails := toStringList(owners.([]interface{}))
@@ -90,11 +90,11 @@ func resourceOrganizationMembersCreate(ctx context.Context, data *schema.Resourc
// Person that creates a new organization is automatically the owner
// of it. That's why when creating this resource we would like to skip
// re-creating that user because it would fail.
- if currentUserResp.JSON200.Email == email {
+ if *currentUserResp.JSON200.Email == email {
continue
}
- newMemberships = append(newMemberships, sdk.NewMembershipByEmail{
+ newMemberships = append(newMemberships, sdk.CastaiUsersV1beta1NewMembershipByEmail{
Role: ownerRole,
UserEmail: email,
})
@@ -105,7 +105,7 @@ func resourceOrganizationMembersCreate(ctx context.Context, data *schema.Resourc
emails := toStringList(viewers.([]interface{}))
for _, email := range emails {
- newMemberships = append(newMemberships, sdk.NewMembershipByEmail{
+ newMemberships = append(newMemberships, sdk.CastaiUsersV1beta1NewMembershipByEmail{
Role: viewerRole,
UserEmail: email,
})
@@ -116,7 +116,7 @@ func resourceOrganizationMembersCreate(ctx context.Context, data *schema.Resourc
emails := toStringList(members.([]interface{}))
for _, email := range emails {
- newMemberships = append(newMemberships, sdk.NewMembershipByEmail{
+ newMemberships = append(newMemberships, sdk.CastaiUsersV1beta1NewMembershipByEmail{
Role: memberRole,
UserEmail: email,
})
@@ -125,9 +125,8 @@ func resourceOrganizationMembersCreate(ctx context.Context, data *schema.Resourc
organizationID := data.Get(FieldOrganizationMembersOrganizationID).(string)
- resp, err := client.CreateInvitationWithResponse(ctx, sdk.CreateInvitationJSONRequestBody{
- OrganizationId: organizationID,
- Members: newMemberships,
+ resp, err := client.UsersAPICreateInvitationsWithResponse(ctx, sdk.UsersAPICreateInvitationsJSONRequestBody{
+ Members: &newMemberships,
})
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("creating invitations: %w", err))
@@ -142,7 +141,7 @@ func resourceOrganizationMembersRead(ctx context.Context, data *schema.ResourceD
client := meta.(*ProviderConfig).api
organizationID := data.Id()
- usersResp, err := client.GetOrganizationUsersWithResponse(ctx, organizationID)
+ usersResp, err := client.UsersAPIListOrganizationUsersWithResponse(ctx, organizationID)
if err := sdk.CheckOKResponse(usersResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving users: %w", err))
}
@@ -161,7 +160,7 @@ func resourceOrganizationMembersRead(ctx context.Context, data *schema.ResourceD
var nextCursor string
for {
- invitationsResp, err := client.ListInvitationsWithResponse(ctx, &sdk.ListInvitationsParams{
+ invitationsResp, err := client.UsersAPIListInvitationsWithResponse(ctx, &sdk.UsersAPIListInvitationsParams{
PageCursor: &nextCursor,
})
if err := sdk.CheckOKResponse(usersResp, err); err != nil {
@@ -208,21 +207,21 @@ func resourceOrganizationMembersUpdate(ctx context.Context, data *schema.Resourc
client := meta.(*ProviderConfig).api
organizationID := data.Id()
- usersResp, err := client.GetOrganizationUsersWithResponse(ctx, organizationID)
+ usersResp, err := client.UsersAPIListOrganizationUsersWithResponse(ctx, organizationID)
if err := sdk.CheckOKResponse(usersResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving users: %w", err))
}
userIDByEmail := make(map[string]string)
for _, user := range *usersResp.JSON200.Users {
- userIDByEmail[user.User.Email] = user.User.Id
+ userIDByEmail[user.User.Email] = *user.User.Id
}
invitationIDByEmail := make(map[string]string)
var nextCursor string
for {
- invitationsResp, err := client.ListInvitationsWithResponse(ctx, &sdk.ListInvitationsParams{
+ invitationsResp, err := client.UsersAPIListInvitationsWithResponse(ctx, &sdk.UsersAPIListInvitationsParams{
PageCursor: &nextCursor,
})
if err := sdk.CheckOKResponse(usersResp, err); err != nil {
@@ -230,7 +229,7 @@ func resourceOrganizationMembersUpdate(ctx context.Context, data *schema.Resourc
}
for _, invitation := range invitationsResp.JSON200.Invitations {
- invitationIDByEmail[invitation.InviteEmail] = invitation.Id
+ invitationIDByEmail[invitation.InviteEmail] = *invitation.Id
}
nextCursor = invitationsResp.JSON200.NextCursor
@@ -247,19 +246,20 @@ func resourceOrganizationMembersUpdate(ctx context.Context, data *schema.Resourc
manipulations := getPendingManipulations(diff, userIDByEmail, invitationIDByEmail)
- currentUserResp, err := client.CurrentUserProfileWithResponse(ctx)
+ currentUserResp, err := client.UsersAPICurrentUserProfileWithResponse(ctx)
if err := sdk.CheckOKResponse(currentUserResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving current user profile: %w", err))
}
if contains(manipulations.membersToDelete, *currentUserResp.JSON200.Id) {
return diag.FromErr(
- fmt.Errorf("can't delete user that is currently managing this organization: %s", currentUserResp.JSON200.Email),
+ fmt.Errorf("can't delete user that is currently managing this organization: %s", *currentUserResp.JSON200.Email),
)
}
for userID, role := range manipulations.membersToUpdate {
- resp, err := client.UpdateOrganizationUserWithResponse(ctx, organizationID, userID, sdk.UpdateOrganizationUser{
- Role: sdk.OrganizationRole(role),
+ role := role
+ resp, err := client.UsersAPIUpdateOrganizationUserWithResponse(ctx, organizationID, userID, sdk.UsersAPIUpdateOrganizationUserJSONRequestBody{
+ Role: &role,
})
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("updating user: %w", err))
@@ -267,30 +267,29 @@ func resourceOrganizationMembersUpdate(ctx context.Context, data *schema.Resourc
}
for _, userID := range manipulations.membersToDelete {
- resp, err := client.DeleteOrganizationUserWithResponse(ctx, organizationID, userID)
+ resp, err := client.UsersAPIRemoveUserFromOrganizationWithResponse(ctx, organizationID, userID)
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("deleting user: %w", err))
}
}
for _, invitationID := range manipulations.invitationsToDelete {
- resp, err := client.DeleteInvitationWithResponse(ctx, invitationID)
+ resp, err := client.UsersAPIDeleteInvitationWithResponse(ctx, invitationID)
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("deleting invitation: %w", err))
}
}
- newMemberships := make([]sdk.NewMembershipByEmail, 0, len(manipulations.membersToAdd))
+ newMemberships := make([]sdk.CastaiUsersV1beta1NewMembershipByEmail, 0, len(manipulations.membersToAdd))
for user, role := range manipulations.membersToAdd {
- newMemberships = append(newMemberships, sdk.NewMembershipByEmail{
+ newMemberships = append(newMemberships, sdk.CastaiUsersV1beta1NewMembershipByEmail{
Role: role,
UserEmail: user,
})
}
- resp, err := client.CreateInvitationWithResponse(ctx, sdk.CreateInvitationJSONBody{
- Members: newMemberships,
- OrganizationId: organizationID,
+ resp, err := client.UsersAPICreateInvitationsWithResponse(ctx, sdk.UsersAPICreateInvitationsJSONBody{
+ Members: &newMemberships,
})
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("creating invitations: %w", err))
@@ -303,12 +302,12 @@ func resourceOrganizationMembersDelete(ctx context.Context, data *schema.Resourc
client := meta.(*ProviderConfig).api
organizationID := data.Id()
- currentUserResp, err := client.CurrentUserProfileWithResponse(ctx)
+ currentUserResp, err := client.UsersAPICurrentUserProfileWithResponse(ctx)
if err := sdk.CheckOKResponse(currentUserResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving current user profile: %w", err))
}
- usersResp, err := client.GetOrganizationUsersWithResponse(ctx, organizationID)
+ usersResp, err := client.UsersAPIListOrganizationUsersWithResponse(ctx, organizationID)
if err := sdk.CheckOKResponse(usersResp, err); err != nil {
return diag.FromErr(fmt.Errorf("retrieving users: %w", err))
}
@@ -319,17 +318,17 @@ func resourceOrganizationMembersDelete(ctx context.Context, data *schema.Resourc
// user that is currently managing this organization.
// Otherwise, if we have deleted all the members, the organization would
// get deleted too.
- if user.User.Id == *currentUserResp.JSON200.Id {
+ if *user.User.Id == *currentUserResp.JSON200.Id {
continue
}
- usersIDsToDelete = append(usersIDsToDelete, user.User.Id)
+ usersIDsToDelete = append(usersIDsToDelete, *user.User.Id)
}
var invitationIDsToDelete []string
var nextCursor string
for {
- invitationsResp, err := client.ListInvitationsWithResponse(ctx, &sdk.ListInvitationsParams{
+ invitationsResp, err := client.UsersAPIListInvitationsWithResponse(ctx, &sdk.UsersAPIListInvitationsParams{
PageCursor: &nextCursor,
})
if err != nil {
@@ -337,7 +336,7 @@ func resourceOrganizationMembersDelete(ctx context.Context, data *schema.Resourc
}
for _, invitation := range invitationsResp.JSON200.Invitations {
- invitationIDsToDelete = append(invitationIDsToDelete, invitation.Id)
+ invitationIDsToDelete = append(invitationIDsToDelete, *invitation.Id)
}
nextCursor = invitationsResp.JSON200.NextCursor
@@ -347,14 +346,14 @@ func resourceOrganizationMembersDelete(ctx context.Context, data *schema.Resourc
}
for _, invitationID := range invitationIDsToDelete {
- resp, err := client.DeleteInvitationWithResponse(ctx, invitationID)
+ resp, err := client.UsersAPIDeleteInvitationWithResponse(ctx, invitationID)
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("deleting invitation: %w", err))
}
}
for _, userID := range usersIDsToDelete {
- resp, err := client.DeleteOrganizationUserWithResponse(ctx, organizationID, userID)
+ resp, err := client.UsersAPIRemoveUserFromOrganizationWithResponse(ctx, organizationID, userID)
if err := sdk.CheckOKResponse(resp, err); err != nil {
return diag.FromErr(fmt.Errorf("deleting user: %w", err))
}
diff --git a/castai/resource_organization_members_test.go b/castai/resource_organization_members_test.go
index 9f763906..1d259481 100644
--- a/castai/resource_organization_members_test.go
+++ b/castai/resource_organization_members_test.go
@@ -71,11 +71,11 @@ func TestOrganizationResourceReadContext(t *testing.T) {
"invitations": []
}`)))
mockClient.EXPECT().
- GetOrganizationUsers(gomock.Any(), organizationID).
+ UsersAPIListOrganizationUsers(gomock.Any(), organizationID).
Return(&http.Response{StatusCode: 200, Body: body, Header: map[string][]string{"Content-Type": {"json"}}}, nil)
mockClient.EXPECT().
- ListInvitations(gomock.Any(), gomock.Any()).Return(&http.Response{StatusCode: 200, Body: listInvitationsBody, Header: map[string][]string{"Content-Type": {"json"}}}, nil)
+ UsersAPIListInvitations(gomock.Any(), gomock.Any()).Return(&http.Response{StatusCode: 200, Body: listInvitationsBody, Header: map[string][]string{"Content-Type": {"json"}}}, nil)
state := terraform.NewInstanceStateShimmedFromValue(cty.ObjectVal(map[string]cty.Value{}), 0)
state.ID = organizationID
diff --git a/castai/resource_reservations.go b/castai/resource_reservations.go
index e5ac8b41..d47c8802 100644
--- a/castai/resource_reservations.go
+++ b/castai/resource_reservations.go
@@ -4,15 +4,16 @@ import (
"context"
"encoding/csv"
"fmt"
+ "log"
+ "strings"
+ "time"
+
"github.com/castai/terraform-provider-castai/castai/reservations"
"github.com/castai/terraform-provider-castai/castai/sdk"
"github.com/google/uuid"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/samber/lo"
- "log"
- "strings"
- "time"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
@@ -273,7 +274,7 @@ func getOrganizationId(ctx context.Context, d *schema.ResourceData, meta any) (s
return organizationId.String(), nil
}
- response, err := client.ListOrganizationsWithResponse(ctx)
+ response, err := client.UsersAPIListOrganizationsWithResponse(ctx, &sdk.UsersAPIListOrganizationsParams{})
if checkErr := sdk.CheckOKResponse(response, err); checkErr != nil {
return "", fmt.Errorf("fetching organizations: %w", checkErr)
}
diff --git a/castai/resource_reservations_test.go b/castai/resource_reservations_test.go
index 2c8c1ed1..d1f1143a 100644
--- a/castai/resource_reservations_test.go
+++ b/castai/resource_reservations_test.go
@@ -4,6 +4,10 @@ import (
"bytes"
"context"
"encoding/json"
+ "io"
+ "net/http"
+ "testing"
+
"github.com/castai/terraform-provider-castai/castai/reservations"
"github.com/castai/terraform-provider-castai/castai/sdk"
mock_sdk "github.com/castai/terraform-provider-castai/castai/sdk/mock"
@@ -12,9 +16,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/samber/lo"
"github.com/stretchr/testify/require"
- "io"
- "net/http"
- "testing"
)
func TestReservations_Azure_BasicReservationsCSV(t *testing.T) {
@@ -159,7 +160,7 @@ func Test_getOrganizationId(t *testing.T) {
type args struct {
organizationIdAttribute *string
- organizationsResponse *sdk.OrganizationsList
+ organizationsResponse *sdk.CastaiUsersV1beta1ListOrganizationsResponse
}
tests := map[string]struct {
args args
@@ -174,27 +175,16 @@ func Test_getOrganizationId(t *testing.T) {
},
"should use organization id from organizations list when organization is found": {
args: args{
- organizationsResponse: &sdk.OrganizationsList{
- Organizations: []sdk.Organization{
- {
- Id: lo.ToPtr(organizationId2),
- },
- },
+ organizationsResponse: &sdk.CastaiUsersV1beta1ListOrganizationsResponse{
+ Organizations: []sdk.CastaiUsersV1beta1UserOrganization{{Id: &organizationId2}},
},
},
want: lo.ToPtr(organizationId2),
},
"should return an error when organization id is not provided and more than one organization is found": {
args: args{
- organizationsResponse: &sdk.OrganizationsList{
- Organizations: []sdk.Organization{
- {
- Id: lo.ToPtr(organizationId1),
- },
- {
- Id: lo.ToPtr(organizationId2),
- },
- },
+ organizationsResponse: &sdk.CastaiUsersV1beta1ListOrganizationsResponse{
+ Organizations: []sdk.CastaiUsersV1beta1UserOrganization{{Id: &organizationId2}, {Id: &organizationId1}},
},
},
expectErrMessageContains: lo.ToPtr("found more than 1 organization, you can specify exact organization using 'organization_id' attribute"),
@@ -221,7 +211,7 @@ func Test_getOrganizationId(t *testing.T) {
r.NoError(err)
mockClient.EXPECT().
- ListOrganizations(gomock.Any()).
+ UsersAPIListOrganizations(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: 200, Body: io.NopCloser(bytes.NewBufferString(string(organizationsResponseBytes))), Header: map[string][]string{"Content-Type": {"json"}}}, nil)
}
diff --git a/castai/sdk/api.gen.go b/castai/sdk/api.gen.go
index f67c9075..f030367e 100644
--- a/castai/sdk/api.gen.go
+++ b/castai/sdk/api.gen.go
@@ -16,13 +16,6 @@ const (
BearerAuthScopes = "BearerAuth.Scopes"
)
-// Defines values for OrganizationRole.
-const (
- Member OrganizationRole = "member"
- Owner OrganizationRole = "owner"
- Viewer OrganizationRole = "viewer"
-)
-
// Defines values for CastaiEvictorV1LabelSelectorExpressionOperator.
const (
CastaiEvictorV1LabelSelectorExpressionOperatorDoesNotExist CastaiEvictorV1LabelSelectorExpressionOperator = "DoesNotExist"
@@ -99,6 +92,13 @@ const (
Unspecified NodeconfigV1ContainerRuntime = "unspecified"
)
+// Defines values for NodetemplatesV1AvailableInstanceTypeOs.
+const (
+ NodetemplatesV1AvailableInstanceTypeOsLinux NodetemplatesV1AvailableInstanceTypeOs = "linux"
+ NodetemplatesV1AvailableInstanceTypeOsUnknown NodetemplatesV1AvailableInstanceTypeOs = "unknown"
+ NodetemplatesV1AvailableInstanceTypeOsWindows NodetemplatesV1AvailableInstanceTypeOs = "windows"
+)
+
// Defines values for NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption.
const (
Always NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption = "Always"
@@ -114,10 +114,10 @@ const (
// Defines values for PoliciesV1EvictorStatus.
const (
- Compatible PoliciesV1EvictorStatus = "Compatible"
- Incompatible PoliciesV1EvictorStatus = "Incompatible"
- Missing PoliciesV1EvictorStatus = "Missing"
- Unknown PoliciesV1EvictorStatus = "Unknown"
+ PoliciesV1EvictorStatusCompatible PoliciesV1EvictorStatus = "Compatible"
+ PoliciesV1EvictorStatusIncompatible PoliciesV1EvictorStatus = "Incompatible"
+ PoliciesV1EvictorStatusMissing PoliciesV1EvictorStatus = "Missing"
+ PoliciesV1EvictorStatusUnknown PoliciesV1EvictorStatus = "Unknown"
)
// Defines values for PoliciesV1SpotInterruptionPredictionsType.
@@ -135,112 +135,6 @@ const (
JobStatusSkipped ScheduledrebalancingV1JobStatus = "JobStatusSkipped"
)
-// Invitation defines model for Invitation.
-type Invitation struct {
- Id string `json:"id"`
- InviteEmail string `json:"inviteEmail"`
- Role string `json:"role"`
- ValidUntil time.Time `json:"validUntil"`
-}
-
-// InvitationsList defines model for InvitationsList.
-type InvitationsList struct {
- Invitations []Invitation `json:"invitations"`
- NextCursor string `json:"nextCursor"`
-}
-
-// NewInvitations defines model for NewInvitations.
-type NewInvitations struct {
- Members []NewMembershipByEmail `json:"members"`
- OrganizationId string `json:"organizationId"`
-}
-
-// NewInvitationsResponse defines model for NewInvitationsResponse.
-type NewInvitationsResponse struct {
- InviteIds []string `json:"inviteIds"`
-}
-
-// NewMembershipByEmail defines model for NewMembershipByEmail.
-type NewMembershipByEmail struct {
- Role string `json:"role"`
- UserEmail string `json:"userEmail"`
-}
-
-// NewOrganizationUser defines model for NewOrganizationUser.
-type NewOrganizationUser struct {
- Role OrganizationRole `json:"role"`
-
- // User ID to add to organization
- UserId string `json:"userId"`
-}
-
-// Organization defines model for Organization.
-type Organization struct {
- // Organization ID
- Id *string `json:"id,omitempty"`
-
- // Organization name
- Name string `json:"name"`
-}
-
-// OrganizationRole defines model for OrganizationRole.
-type OrganizationRole string
-
-// OrganizationUser defines model for OrganizationUser.
-type OrganizationUser struct {
- // User role in organization
- Role string `json:"role"`
- User UserProfile `json:"user"`
-}
-
-// OrganizationUsersList defines model for OrganizationUsersList.
-type OrganizationUsersList struct {
- Users *[]OrganizationUser `json:"users,omitempty"`
-}
-
-// OrganizationsList defines model for OrganizationsList.
-type OrganizationsList struct {
- Organizations []Organization `json:"organizations"`
-}
-
-// UpdateOrganizationUser defines model for UpdateOrganizationUser.
-type UpdateOrganizationUser struct {
- Role OrganizationRole `json:"role"`
-}
-
-// UserProfile defines model for UserProfile.
-type UserProfile struct {
- // user email
- Email string `json:"email"`
-
- // User ID
- Id string `json:"id"`
-
- // full name of logged-in user, e.g. "John Doe".
- Name string `json:"name"`
-
- // Globally unique username (used internally).
- Username *string `json:"username,omitempty"`
-}
-
-// UserProfileResponse defines model for UserProfileResponse.
-type UserProfileResponse struct {
- // user email
- Email string `json:"email"`
-
- // Indicates user first login to the console.
- FirstLogin *bool `json:"firstLogin,omitempty"`
-
- // User ID
- Id *string `json:"id,omitempty"`
-
- // full name of logged-in user, e.g. "John Doe".
- Name string `json:"name"`
-
- // Globally unique username (used internally).
- Username *string `json:"username,omitempty"`
-}
-
// Auth token used to authenticate via api.
type CastaiAuthtokenV1beta1AuthToken struct {
// (read only) Indicates whether the token is active.
@@ -752,6 +646,210 @@ type CastaiSsoV1beta1UpdateSSOConnection struct {
Okta *CastaiSsoV1beta1Okta `json:"okta,omitempty"`
}
+// CastaiUsersV1beta1AWSMarketplaceUser defines model for castai.users.v1beta1.AWSMarketplaceUser.
+type CastaiUsersV1beta1AWSMarketplaceUser struct {
+ // CustomerAWSAccountId is Resolved using Registration token.
+ CustomerAwsAccountId *string `json:"customerAwsAccountId,omitempty"`
+
+ // CustomerIdentifier is Resolved using Registration token.
+ CustomerIdentifier *string `json:"customerIdentifier,omitempty"`
+
+ // ProductCode is Resolved using Registration token.
+ ProductCode *string `json:"productCode,omitempty"`
+
+ // When a buyer visits your website during the registration process, the buyer
+ // submits a registration token through the browser.
+ RegistrationToken *string `json:"registrationToken,omitempty"`
+}
+
+// Defines the response for adding a user to an organization.
+type CastaiUsersV1beta1AddUserToOrganizationResponse = map[string]interface{}
+
+// CastaiUsersV1beta1ClaimInvitationResponse defines model for castai.users.v1beta1.ClaimInvitationResponse.
+type CastaiUsersV1beta1ClaimInvitationResponse struct {
+ // Membership describes user-organization membership details.
+ Membership *CastaiUsersV1beta1Membership `json:"membership,omitempty"`
+
+ // Organization ID.
+ OrganizationId string `json:"organizationId"`
+}
+
+// CastaiUsersV1beta1CreateInvitationsRequest defines model for castai.users.v1beta1.CreateInvitationsRequest.
+type CastaiUsersV1beta1CreateInvitationsRequest struct {
+ // Memberships to create.
+ Members *[]CastaiUsersV1beta1NewMembershipByEmail `json:"members,omitempty"`
+}
+
+// CastaiUsersV1beta1CreateInvitationsResponse defines model for castai.users.v1beta1.CreateInvitationsResponse.
+type CastaiUsersV1beta1CreateInvitationsResponse struct {
+ // Invitation IDs.
+ InvitationIds *[]string `json:"invitationIds,omitempty"`
+}
+
+// CastaiUsersV1beta1CurrentUserProfileResponse defines model for castai.users.v1beta1.CurrentUserProfileResponse.
+type CastaiUsersV1beta1CurrentUserProfileResponse struct {
+ // User email.
+ Email *string `json:"email,omitempty"`
+
+ // User first login.
+ FirstLogin *bool `json:"firstLogin,omitempty"`
+
+ // User ID.
+ Id *string `json:"id,omitempty"`
+
+ // User name.
+ Name *string `json:"name,omitempty"`
+
+ // User username.
+ Username *string `json:"username,omitempty"`
+}
+
+// Defines the empty response to invitation deletion.
+type CastaiUsersV1beta1DeleteInvitationResponse = map[string]interface{}
+
+// Defines the empty response to organization deletion.
+type CastaiUsersV1beta1DeleteOrganizationResponse = map[string]interface{}
+
+// CastaiUsersV1beta1GCPMarketplaceUser defines model for castai.users.v1beta1.GCPMarketplaceUser.
+type CastaiUsersV1beta1GCPMarketplaceUser struct {
+ // Google procurement account ID.
+ AccountId *string `json:"accountId,omitempty"`
+
+ // Roles is an array of strings representing the user's roles.
+ // Right now, it can be either: account_admin, which indicates that the user is a Billing Account Administrator of the billing account that purchased the product,
+ // or ** project_editor, which indicates that the user is a Project Editor, but not a Billing Administrator, of the project under that billing account.
+ Roles *[]string `json:"roles,omitempty"`
+
+ // User identity is the user's obfuscated GAIA ID, which can be used to initiate Open ID Connect.
+ UserIdentity *string `json:"userIdentity,omitempty"`
+}
+
+// Defines container for the organization's pending invitations.
+type CastaiUsersV1beta1ListInvitationsResponse struct {
+ // Array of organization's pending invitations.
+ Invitations []CastaiUsersV1beta1PendingInvitation `json:"invitations"`
+ NextCursor string `json:"nextCursor"`
+}
+
+// Defines the container for organization users.
+type CastaiUsersV1beta1ListOrganizationUsersResponse struct {
+ // Array of organization users.
+ Users *[]CastaiUsersV1beta1Membership `json:"users,omitempty"`
+}
+
+// Defines container for the user's organizations.
+type CastaiUsersV1beta1ListOrganizationsResponse struct {
+ // Array of user's organizations.
+ Organizations []CastaiUsersV1beta1UserOrganization `json:"organizations"`
+}
+
+// Membership describes user-organization membership details.
+type CastaiUsersV1beta1Membership struct {
+ Role string `json:"role"`
+
+ // User represents a single system user.
+ User CastaiUsersV1beta1User `json:"user"`
+}
+
+// NewMembership contains data needed to create new membership in organization.
+type CastaiUsersV1beta1NewMembership struct {
+ // role of the new member.
+ Role string `json:"role"`
+
+ // id of the user.
+ UserId string `json:"userId"`
+}
+
+// CastaiUsersV1beta1NewMembershipByEmail defines model for castai.users.v1beta1.NewMembershipByEmail.
+type CastaiUsersV1beta1NewMembershipByEmail struct {
+ // role of the invited person.
+ Role string `json:"role"`
+
+ // email of the invited person.
+ UserEmail string `json:"userEmail"`
+}
+
+// Organization which is the top level tenant in our system.
+type CastaiUsersV1beta1Organization struct {
+ // billing type of the organization.
+ BillingType *string `json:"billingType,omitempty"`
+
+ // organization creation date.
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+
+ // id of the organization.
+ Id *string `json:"id,omitempty"`
+
+ // OrganizationMetadata describes organization metadata.
+ Metadata *CastaiUsersV1beta1OrganizationMetadata `json:"metadata,omitempty"`
+
+ // name of the organization.
+ Name string `json:"name"`
+}
+
+// OrganizationMetadata describes organization metadata.
+type CastaiUsersV1beta1OrganizationMetadata struct {
+ // parent organization id.
+ ParentOrganizationId *string `json:"parentOrganizationId"`
+
+ // partner tenant id on partner system.
+ PartnerTenantId *string `json:"partnerTenantId"`
+}
+
+// CastaiUsersV1beta1PendingInvitation defines model for castai.users.v1beta1.PendingInvitation.
+type CastaiUsersV1beta1PendingInvitation struct {
+ // id of the invitation.
+ Id *string `json:"id,omitempty"`
+
+ // email of the invited person.
+ InviteEmail string `json:"inviteEmail"`
+
+ // role of the invited person.
+ Role string `json:"role"`
+
+ // invitation expiration date.
+ ValidUntil *time.Time `json:"validUntil,omitempty"`
+}
+
+// Defines the response for removing a user from an organization.
+type CastaiUsersV1beta1RemoveUserFromOrganizationResponse = map[string]interface{}
+
+// CastaiUsersV1beta1Request defines model for castai.users.v1beta1.Request.
+type CastaiUsersV1beta1Request = map[string]interface{}
+
+// User represents a single system user.
+type CastaiUsersV1beta1User struct {
+ // (optional) whether SSO auth provider label was provided as a separate JWT claim; used when login handler calls users service.
+ AuthProvider *string `json:"authProvider"`
+ AwsMarketplaceUser *CastaiUsersV1beta1AWSMarketplaceUser `json:"awsMarketplaceUser,omitempty"`
+
+ // (required) user email.
+ Email string `json:"email"`
+ GcpMarketplaceUser *CastaiUsersV1beta1GCPMarketplaceUser `json:"gcpMarketplaceUser,omitempty"`
+
+ // id of the user.
+ Id *string `json:"id,omitempty"`
+
+ // (required) readable user name, e.g. "John Doe".
+ Name string `json:"name"`
+
+ // (required) username, corresponds to auth0 user id.
+ Username string `json:"username"`
+}
+
+// UserOrganization describes organization user belongs to.
+type CastaiUsersV1beta1UserOrganization struct {
+ // organization creation date.
+ CreatedAt *time.Time `json:"createdAt,omitempty"`
+
+ // id of the organization.
+ Id *string `json:"id,omitempty"`
+
+ // name of the organization.
+ Name string `json:"name"`
+ Role string `json:"role"`
+}
+
// Types of cloud service providers CAST AI supports.
//
// - invalid: Invalid.
@@ -1339,6 +1437,11 @@ type ExternalclusterV1Zone struct {
Name *string `json:"name,omitempty"`
}
+// InlineObject1 defines model for inline_object_1.
+type InlineObject1 struct {
+ Role *string `json:"role,omitempty"`
+}
+
// NodeconfigV1AKSConfig defines model for nodeconfig.v1.AKSConfig.
type NodeconfigV1AKSConfig struct {
// Maximum number of pods that can be run on a node, which affects how many IP addresses you will need for each node.
@@ -1598,6 +1701,7 @@ type NodetemplatesV1AvailableInstanceType struct {
IsComputeOptimized *bool `json:"isComputeOptimized,omitempty"`
Memory *string `json:"memory,omitempty"`
Name *string `json:"name,omitempty"`
+ Os *NodetemplatesV1AvailableInstanceTypeOs `json:"os,omitempty"`
StorageOptimizedOption *NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption `json:"storageOptimizedOption,omitempty"`
}
@@ -1608,6 +1712,9 @@ type NodetemplatesV1AvailableInstanceTypeGPUDevice struct {
Name *string `json:"name,omitempty"`
}
+// NodetemplatesV1AvailableInstanceTypeOs defines model for nodetemplates.v1.AvailableInstanceType.Os.
+type NodetemplatesV1AvailableInstanceTypeOs string
+
// NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption defines model for nodetemplates.v1.AvailableInstanceType.StorageOptimizedOption.
type NodetemplatesV1AvailableInstanceTypeStorageOptimizedOption string
@@ -2216,8 +2323,8 @@ type AuthTokenAPICreateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthToken
// AuthTokenAPIUpdateAuthTokenJSONBody defines parameters for AuthTokenAPIUpdateAuthToken.
type AuthTokenAPIUpdateAuthTokenJSONBody = CastaiAuthtokenV1beta1AuthTokenUpdate
-// ListInvitationsParams defines parameters for ListInvitations.
-type ListInvitationsParams struct {
+// UsersAPIListInvitationsParams defines parameters for UsersAPIListInvitations.
+type UsersAPIListInvitationsParams struct {
PageLimit *string `form:"page.limit,omitempty" json:"page.limit,omitempty"`
// Cursor that defines token indicating where to start the next page.
@@ -2225,11 +2332,11 @@ type ListInvitationsParams struct {
PageCursor *string `form:"page.cursor,omitempty" json:"page.cursor,omitempty"`
}
-// CreateInvitationJSONBody defines parameters for CreateInvitation.
-type CreateInvitationJSONBody = NewInvitations
+// UsersAPICreateInvitationsJSONBody defines parameters for UsersAPICreateInvitations.
+type UsersAPICreateInvitationsJSONBody = CastaiUsersV1beta1CreateInvitationsRequest
-// ClaimInvitationJSONBody defines parameters for ClaimInvitation.
-type ClaimInvitationJSONBody = map[string]interface{}
+// UsersAPIClaimInvitationJSONBody defines parameters for UsersAPIClaimInvitation.
+type UsersAPIClaimInvitationJSONBody = CastaiUsersV1beta1Request
// EvictorAPIUpsertAdvancedConfigJSONBody defines parameters for EvictorAPIUpsertAdvancedConfig.
type EvictorAPIUpsertAdvancedConfigJSONBody = CastaiEvictorV1AdvancedConfig
@@ -2321,20 +2428,23 @@ type ExternalClusterAPIDeleteNodeParams struct {
// ExternalClusterAPIDrainNodeJSONBody defines parameters for ExternalClusterAPIDrainNode.
type ExternalClusterAPIDrainNodeJSONBody = ExternalclusterV1DrainConfig
-// UpdateCurrentUserProfileJSONBody defines parameters for UpdateCurrentUserProfile.
-type UpdateCurrentUserProfileJSONBody = UserProfile
+// UsersAPIUpdateCurrentUserProfileJSONBody defines parameters for UsersAPIUpdateCurrentUserProfile.
+type UsersAPIUpdateCurrentUserProfileJSONBody = CastaiUsersV1beta1User
-// CreateOrganizationJSONBody defines parameters for CreateOrganization.
-type CreateOrganizationJSONBody = Organization
+// UsersAPIListOrganizationsParams defines parameters for UsersAPIListOrganizations.
+type UsersAPIListOrganizationsParams struct {
+ // Filter organizations by user id.
+ UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
-// UpdateOrganizationJSONBody defines parameters for UpdateOrganization.
-type UpdateOrganizationJSONBody = Organization
+ // Filter organizations by username.
+ Username *string `form:"username,omitempty" json:"username,omitempty"`
+}
-// CreateOrganizationUserJSONBody defines parameters for CreateOrganizationUser.
-type CreateOrganizationUserJSONBody = NewOrganizationUser
+// UsersAPICreateOrganizationJSONBody defines parameters for UsersAPICreateOrganization.
+type UsersAPICreateOrganizationJSONBody = CastaiUsersV1beta1Organization
-// UpdateOrganizationUserJSONBody defines parameters for UpdateOrganizationUser.
-type UpdateOrganizationUserJSONBody = UpdateOrganizationUser
+// UsersAPIEditOrganizationJSONBody defines parameters for UsersAPIEditOrganization.
+type UsersAPIEditOrganizationJSONBody = CastaiUsersV1beta1Organization
// InventoryAPIAddReservationJSONBody defines parameters for InventoryAPIAddReservation.
type InventoryAPIAddReservationJSONBody = CastaiInventoryV1beta1GenericReservation
@@ -2342,6 +2452,9 @@ type InventoryAPIAddReservationJSONBody = CastaiInventoryV1beta1GenericReservati
// InventoryAPIOverwriteReservationsJSONBody defines parameters for InventoryAPIOverwriteReservations.
type InventoryAPIOverwriteReservationsJSONBody = CastaiInventoryV1beta1GenericReservationsList
+// UsersAPIAddUserToOrganizationJSONBody defines parameters for UsersAPIAddUserToOrganization.
+type UsersAPIAddUserToOrganizationJSONBody = CastaiUsersV1beta1NewMembership
+
// ScheduledRebalancingAPICreateRebalancingScheduleJSONBody defines parameters for ScheduledRebalancingAPICreateRebalancingSchedule.
type ScheduledRebalancingAPICreateRebalancingScheduleJSONBody = ScheduledrebalancingV1RebalancingSchedule
@@ -2370,11 +2483,11 @@ type AuthTokenAPICreateAuthTokenJSONRequestBody = AuthTokenAPICreateAuthTokenJSO
// AuthTokenAPIUpdateAuthTokenJSONRequestBody defines body for AuthTokenAPIUpdateAuthToken for application/json ContentType.
type AuthTokenAPIUpdateAuthTokenJSONRequestBody = AuthTokenAPIUpdateAuthTokenJSONBody
-// CreateInvitationJSONRequestBody defines body for CreateInvitation for application/json ContentType.
-type CreateInvitationJSONRequestBody = CreateInvitationJSONBody
+// UsersAPICreateInvitationsJSONRequestBody defines body for UsersAPICreateInvitations for application/json ContentType.
+type UsersAPICreateInvitationsJSONRequestBody = UsersAPICreateInvitationsJSONBody
-// ClaimInvitationJSONRequestBody defines body for ClaimInvitation for application/json ContentType.
-type ClaimInvitationJSONRequestBody = ClaimInvitationJSONBody
+// UsersAPIClaimInvitationJSONRequestBody defines body for UsersAPIClaimInvitation for application/json ContentType.
+type UsersAPIClaimInvitationJSONRequestBody = UsersAPIClaimInvitationJSONBody
// EvictorAPIUpsertAdvancedConfigJSONRequestBody defines body for EvictorAPIUpsertAdvancedConfig for application/json ContentType.
type EvictorAPIUpsertAdvancedConfigJSONRequestBody = EvictorAPIUpsertAdvancedConfigJSONBody
@@ -2424,20 +2537,14 @@ type ExternalClusterAPIAddNodeJSONRequestBody = ExternalClusterAPIAddNodeJSONBod
// ExternalClusterAPIDrainNodeJSONRequestBody defines body for ExternalClusterAPIDrainNode for application/json ContentType.
type ExternalClusterAPIDrainNodeJSONRequestBody = ExternalClusterAPIDrainNodeJSONBody
-// UpdateCurrentUserProfileJSONRequestBody defines body for UpdateCurrentUserProfile for application/json ContentType.
-type UpdateCurrentUserProfileJSONRequestBody = UpdateCurrentUserProfileJSONBody
+// UsersAPIUpdateCurrentUserProfileJSONRequestBody defines body for UsersAPIUpdateCurrentUserProfile for application/json ContentType.
+type UsersAPIUpdateCurrentUserProfileJSONRequestBody = UsersAPIUpdateCurrentUserProfileJSONBody
-// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
-type CreateOrganizationJSONRequestBody = CreateOrganizationJSONBody
+// UsersAPICreateOrganizationJSONRequestBody defines body for UsersAPICreateOrganization for application/json ContentType.
+type UsersAPICreateOrganizationJSONRequestBody = UsersAPICreateOrganizationJSONBody
-// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.
-type UpdateOrganizationJSONRequestBody = UpdateOrganizationJSONBody
-
-// CreateOrganizationUserJSONRequestBody defines body for CreateOrganizationUser for application/json ContentType.
-type CreateOrganizationUserJSONRequestBody = CreateOrganizationUserJSONBody
-
-// UpdateOrganizationUserJSONRequestBody defines body for UpdateOrganizationUser for application/json ContentType.
-type UpdateOrganizationUserJSONRequestBody = UpdateOrganizationUserJSONBody
+// UsersAPIEditOrganizationJSONRequestBody defines body for UsersAPIEditOrganization for application/json ContentType.
+type UsersAPIEditOrganizationJSONRequestBody = UsersAPIEditOrganizationJSONBody
// InventoryAPIAddReservationJSONRequestBody defines body for InventoryAPIAddReservation for application/json ContentType.
type InventoryAPIAddReservationJSONRequestBody = InventoryAPIAddReservationJSONBody
@@ -2445,6 +2552,12 @@ type InventoryAPIAddReservationJSONRequestBody = InventoryAPIAddReservationJSONB
// InventoryAPIOverwriteReservationsJSONRequestBody defines body for InventoryAPIOverwriteReservations for application/json ContentType.
type InventoryAPIOverwriteReservationsJSONRequestBody = InventoryAPIOverwriteReservationsJSONBody
+// UsersAPIAddUserToOrganizationJSONRequestBody defines body for UsersAPIAddUserToOrganization for application/json ContentType.
+type UsersAPIAddUserToOrganizationJSONRequestBody = UsersAPIAddUserToOrganizationJSONBody
+
+// UsersAPIUpdateOrganizationUserJSONRequestBody defines body for UsersAPIUpdateOrganizationUser for application/json ContentType.
+type UsersAPIUpdateOrganizationUserJSONRequestBody = InlineObject1
+
// ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody defines body for ScheduledRebalancingAPICreateRebalancingSchedule for application/json ContentType.
type ScheduledRebalancingAPICreateRebalancingScheduleJSONRequestBody = ScheduledRebalancingAPICreateRebalancingScheduleJSONBody
diff --git a/castai/sdk/client.gen.go b/castai/sdk/client.gen.go
index d4c6a844..85a90ac5 100644
--- a/castai/sdk/client.gen.go
+++ b/castai/sdk/client.gen.go
@@ -109,21 +109,21 @@ type ClientInterface interface {
AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListInvitations request
- ListInvitations(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIListInvitations request
+ UsersAPIListInvitations(ctx context.Context, params *UsersAPIListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateInvitation request with any body
- CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPICreateInvitations request with any body
+ UsersAPICreateInvitationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- CreateInvitation(ctx context.Context, body CreateInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UsersAPICreateInvitations(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteInvitation request
- DeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIDeleteInvitation request
+ UsersAPIDeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ClaimInvitation request with any body
- ClaimInvitationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIClaimInvitation request with any body
+ UsersAPIClaimInvitationWithBody(ctx context.Context, invitationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- ClaimInvitation(ctx context.Context, id string, body ClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UsersAPIClaimInvitation(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EvictorAPIGetAdvancedConfig request
EvictorAPIGetAdvancedConfig(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -289,48 +289,32 @@ type ClientInterface interface {
// ExternalClusterAPICreateClusterToken request
ExternalClusterAPICreateClusterToken(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CurrentUserProfile request
- CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPICurrentUserProfile request
+ UsersAPICurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateCurrentUserProfile request with any body
- UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIUpdateCurrentUserProfile request with any body
+ UsersAPIUpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UsersAPIUpdateCurrentUserProfile(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // ListOrganizations request
- ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIListOrganizations request
+ UsersAPIListOrganizations(ctx context.Context, params *UsersAPIListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- // CreateOrganization request with any body
- CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPICreateOrganization request with any body
+ UsersAPICreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UsersAPICreateOrganization(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- // DeleteOrganization request
- DeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIDeleteOrganization request
+ UsersAPIDeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // GetOrganization request
- GetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIGetOrganization request
+ UsersAPIGetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- // UpdateOrganization request with any body
- UpdateOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIEditOrganization request with any body
+ UsersAPIEditOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
- UpdateOrganization(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // GetOrganizationUsers request
- GetOrganizationUsers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // CreateOrganizationUser request with any body
- CreateOrganizationUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- CreateOrganizationUser(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // DeleteOrganizationUser request
- DeleteOrganizationUser(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- // UpdateOrganizationUser request with any body
- UpdateOrganizationUserWithBody(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
-
- UpdateOrganizationUser(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+ UsersAPIEditOrganization(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InventoryAPISyncClusterResources request
InventoryAPISyncClusterResources(ctx context.Context, organizationId string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -357,6 +341,22 @@ type ClientInterface interface {
// InventoryAPIGetResourceUsage request
InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+ // UsersAPIListOrganizationUsers request
+ UsersAPIListOrganizationUsers(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UsersAPIAddUserToOrganization request with any body
+ UsersAPIAddUserToOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UsersAPIAddUserToOrganization(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UsersAPIRemoveUserFromOrganization request
+ UsersAPIRemoveUserFromOrganization(ctx context.Context, organizationId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ // UsersAPIUpdateOrganizationUser request with any body
+ UsersAPIUpdateOrganizationUserWithBody(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
+
+ UsersAPIUpdateOrganizationUser(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
+
// ScheduledRebalancingAPIListRebalancingSchedules request
ScheduledRebalancingAPIListRebalancingSchedules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
@@ -489,8 +489,8 @@ func (c *Client) AuthTokenAPIUpdateAuthToken(ctx context.Context, id string, bod
return c.Client.Do(req)
}
-func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListInvitationsRequest(c.Server, params)
+func (c *Client) UsersAPIListInvitations(ctx context.Context, params *UsersAPIListInvitationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIListInvitationsRequest(c.Server, params)
if err != nil {
return nil, err
}
@@ -501,8 +501,8 @@ func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsPar
return c.Client.Do(req)
}
-func (c *Client) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateInvitationRequestWithBody(c.Server, contentType, body)
+func (c *Client) UsersAPICreateInvitationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPICreateInvitationsRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
@@ -513,8 +513,8 @@ func (c *Client) CreateInvitationWithBody(ctx context.Context, contentType strin
return c.Client.Do(req)
}
-func (c *Client) CreateInvitation(ctx context.Context, body CreateInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateInvitationRequest(c.Server, body)
+func (c *Client) UsersAPICreateInvitations(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPICreateInvitationsRequest(c.Server, body)
if err != nil {
return nil, err
}
@@ -525,8 +525,8 @@ func (c *Client) CreateInvitation(ctx context.Context, body CreateInvitationJSON
return c.Client.Do(req)
}
-func (c *Client) DeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteInvitationRequest(c.Server, id)
+func (c *Client) UsersAPIDeleteInvitation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIDeleteInvitationRequest(c.Server, id)
if err != nil {
return nil, err
}
@@ -537,8 +537,8 @@ func (c *Client) DeleteInvitation(ctx context.Context, id string, reqEditors ...
return c.Client.Do(req)
}
-func (c *Client) ClaimInvitationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewClaimInvitationRequestWithBody(c.Server, id, contentType, body)
+func (c *Client) UsersAPIClaimInvitationWithBody(ctx context.Context, invitationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIClaimInvitationRequestWithBody(c.Server, invitationId, contentType, body)
if err != nil {
return nil, err
}
@@ -549,8 +549,8 @@ func (c *Client) ClaimInvitationWithBody(ctx context.Context, id string, content
return c.Client.Do(req)
}
-func (c *Client) ClaimInvitation(ctx context.Context, id string, body ClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewClaimInvitationRequest(c.Server, id, body)
+func (c *Client) UsersAPIClaimInvitation(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIClaimInvitationRequest(c.Server, invitationId, body)
if err != nil {
return nil, err
}
@@ -1281,8 +1281,8 @@ func (c *Client) ExternalClusterAPICreateClusterToken(ctx context.Context, clust
return c.Client.Do(req)
}
-func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCurrentUserProfileRequest(c.Server)
+func (c *Client) UsersAPICurrentUserProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPICurrentUserProfileRequest(c.Server)
if err != nil {
return nil, err
}
@@ -1293,8 +1293,8 @@ func (c *Client) CurrentUserProfile(ctx context.Context, reqEditors ...RequestEd
return c.Client.Do(req)
}
-func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateCurrentUserProfileRequestWithBody(c.Server, contentType, body)
+func (c *Client) UsersAPIUpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIUpdateCurrentUserProfileRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
@@ -1305,8 +1305,8 @@ func (c *Client) UpdateCurrentUserProfileWithBody(ctx context.Context, contentTy
return c.Client.Do(req)
}
-func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateCurrentUserProfileRequest(c.Server, body)
+func (c *Client) UsersAPIUpdateCurrentUserProfile(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIUpdateCurrentUserProfileRequest(c.Server, body)
if err != nil {
return nil, err
}
@@ -1317,8 +1317,8 @@ func (c *Client) UpdateCurrentUserProfile(ctx context.Context, body UpdateCurren
return c.Client.Do(req)
}
-func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewListOrganizationsRequest(c.Server)
+func (c *Client) UsersAPIListOrganizations(ctx context.Context, params *UsersAPIListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIListOrganizationsRequest(c.Server, params)
if err != nil {
return nil, err
}
@@ -1329,8 +1329,8 @@ func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEdi
return c.Client.Do(req)
}
-func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequestWithBody(c.Server, contentType, body)
+func (c *Client) UsersAPICreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPICreateOrganizationRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
@@ -1341,8 +1341,8 @@ func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType str
return c.Client.Do(req)
}
-func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationRequest(c.Server, body)
+func (c *Client) UsersAPICreateOrganization(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPICreateOrganizationRequest(c.Server, body)
if err != nil {
return nil, err
}
@@ -1353,8 +1353,8 @@ func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganization
return c.Client.Do(req)
}
-func (c *Client) DeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteOrganizationRequest(c.Server, id)
+func (c *Client) UsersAPIDeleteOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIDeleteOrganizationRequest(c.Server, id)
if err != nil {
return nil, err
}
@@ -1365,8 +1365,8 @@ func (c *Client) DeleteOrganization(ctx context.Context, id string, reqEditors .
return c.Client.Do(req)
}
-func (c *Client) GetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrganizationRequest(c.Server, id)
+func (c *Client) UsersAPIGetOrganization(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIGetOrganizationRequest(c.Server, id)
if err != nil {
return nil, err
}
@@ -1377,8 +1377,8 @@ func (c *Client) GetOrganization(ctx context.Context, id string, reqEditors ...R
return c.Client.Do(req)
}
-func (c *Client) UpdateOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateOrganizationRequestWithBody(c.Server, id, contentType, body)
+func (c *Client) UsersAPIEditOrganizationWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIEditOrganizationRequestWithBody(c.Server, id, contentType, body)
if err != nil {
return nil, err
}
@@ -1389,8 +1389,8 @@ func (c *Client) UpdateOrganizationWithBody(ctx context.Context, id string, cont
return c.Client.Do(req)
}
-func (c *Client) UpdateOrganization(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateOrganizationRequest(c.Server, id, body)
+func (c *Client) UsersAPIEditOrganization(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIEditOrganizationRequest(c.Server, id, body)
if err != nil {
return nil, err
}
@@ -1401,8 +1401,8 @@ func (c *Client) UpdateOrganization(ctx context.Context, id string, body UpdateO
return c.Client.Do(req)
}
-func (c *Client) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewGetOrganizationUsersRequest(c.Server, id)
+func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizationId string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPISyncClusterResourcesRequest(c.Server, organizationId, clusterId)
if err != nil {
return nil, err
}
@@ -1413,8 +1413,8 @@ func (c *Client) GetOrganizationUsers(ctx context.Context, id string, reqEditors
return c.Client.Do(req)
}
-func (c *Client) CreateOrganizationUserWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationUserRequestWithBody(c.Server, id, contentType, body)
+func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIGetReservationsRequest(c.Server, organizationId)
if err != nil {
return nil, err
}
@@ -1425,8 +1425,8 @@ func (c *Client) CreateOrganizationUserWithBody(ctx context.Context, id string,
return c.Client.Do(req)
}
-func (c *Client) CreateOrganizationUser(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewCreateOrganizationUserRequest(c.Server, id, body)
+func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIAddReservationRequestWithBody(c.Server, organizationId, contentType, body)
if err != nil {
return nil, err
}
@@ -1437,8 +1437,8 @@ func (c *Client) CreateOrganizationUser(ctx context.Context, id string, body Cre
return c.Client.Do(req)
}
-func (c *Client) DeleteOrganizationUser(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewDeleteOrganizationUserRequest(c.Server, id, userId)
+func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIAddReservationRequest(c.Server, organizationId, body)
if err != nil {
return nil, err
}
@@ -1449,8 +1449,8 @@ func (c *Client) DeleteOrganizationUser(ctx context.Context, id string, userId s
return c.Client.Do(req)
}
-func (c *Client) UpdateOrganizationUserWithBody(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateOrganizationUserRequestWithBody(c.Server, id, userId, contentType, body)
+func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIGetReservationsBalanceRequest(c.Server, organizationId)
if err != nil {
return nil, err
}
@@ -1461,8 +1461,8 @@ func (c *Client) UpdateOrganizationUserWithBody(ctx context.Context, id string,
return c.Client.Do(req)
}
-func (c *Client) UpdateOrganizationUser(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewUpdateOrganizationUserRequest(c.Server, id, userId, body)
+func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIOverwriteReservationsRequestWithBody(c.Server, organizationId, contentType, body)
if err != nil {
return nil, err
}
@@ -1473,8 +1473,8 @@ func (c *Client) UpdateOrganizationUser(ctx context.Context, id string, userId s
return c.Client.Do(req)
}
-func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizationId string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPISyncClusterResourcesRequest(c.Server, organizationId, clusterId)
+func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIOverwriteReservationsRequest(c.Server, organizationId, body)
if err != nil {
return nil, err
}
@@ -1485,8 +1485,8 @@ func (c *Client) InventoryAPISyncClusterResources(ctx context.Context, organizat
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIGetReservationsRequest(c.Server, organizationId)
+func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organizationId string, reservationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIDeleteReservationRequest(c.Server, organizationId, reservationId)
if err != nil {
return nil, err
}
@@ -1497,8 +1497,8 @@ func (c *Client) InventoryAPIGetReservations(ctx context.Context, organizationId
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIAddReservationRequestWithBody(c.Server, organizationId, contentType, body)
+func (c *Client) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewInventoryAPIGetResourceUsageRequest(c.Server, organizationId)
if err != nil {
return nil, err
}
@@ -1509,8 +1509,8 @@ func (c *Client) InventoryAPIAddReservationWithBody(ctx context.Context, organiz
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId string, body InventoryAPIAddReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIAddReservationRequest(c.Server, organizationId, body)
+func (c *Client) UsersAPIListOrganizationUsers(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIListOrganizationUsersRequest(c.Server, organizationId)
if err != nil {
return nil, err
}
@@ -1521,8 +1521,8 @@ func (c *Client) InventoryAPIAddReservation(ctx context.Context, organizationId
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIGetReservationsBalanceRequest(c.Server, organizationId)
+func (c *Client) UsersAPIAddUserToOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIAddUserToOrganizationRequestWithBody(c.Server, organizationId, contentType, body)
if err != nil {
return nil, err
}
@@ -1533,8 +1533,8 @@ func (c *Client) InventoryAPIGetReservationsBalance(ctx context.Context, organiz
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIOverwriteReservationsRequestWithBody(c.Server, organizationId, contentType, body)
+func (c *Client) UsersAPIAddUserToOrganization(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIAddUserToOrganizationRequest(c.Server, organizationId, body)
if err != nil {
return nil, err
}
@@ -1545,8 +1545,8 @@ func (c *Client) InventoryAPIOverwriteReservationsWithBody(ctx context.Context,
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIOverwriteReservationsRequest(c.Server, organizationId, body)
+func (c *Client) UsersAPIRemoveUserFromOrganization(ctx context.Context, organizationId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIRemoveUserFromOrganizationRequest(c.Server, organizationId, userId)
if err != nil {
return nil, err
}
@@ -1557,8 +1557,8 @@ func (c *Client) InventoryAPIOverwriteReservations(ctx context.Context, organiza
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organizationId string, reservationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIDeleteReservationRequest(c.Server, organizationId, reservationId)
+func (c *Client) UsersAPIUpdateOrganizationUserWithBody(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIUpdateOrganizationUserRequestWithBody(c.Server, organizationId, userId, contentType, body)
if err != nil {
return nil, err
}
@@ -1569,8 +1569,8 @@ func (c *Client) InventoryAPIDeleteReservation(ctx context.Context, organization
return c.Client.Do(req)
}
-func (c *Client) InventoryAPIGetResourceUsage(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
- req, err := NewInventoryAPIGetResourceUsageRequest(c.Server, organizationId)
+func (c *Client) UsersAPIUpdateOrganizationUser(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
+ req, err := NewUsersAPIUpdateOrganizationUserRequest(c.Server, organizationId, userId, body)
if err != nil {
return nil, err
}
@@ -1987,8 +1987,8 @@ func NewAuthTokenAPIUpdateAuthTokenRequestWithBody(server string, id string, con
return req, nil
}
-// NewListInvitationsRequest generates requests for ListInvitations
-func NewListInvitationsRequest(server string, params *ListInvitationsParams) (*http.Request, error) {
+// NewUsersAPIListInvitationsRequest generates requests for UsersAPIListInvitations
+func NewUsersAPIListInvitationsRequest(server string, params *UsersAPIListInvitationsParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -2050,19 +2050,19 @@ func NewListInvitationsRequest(server string, params *ListInvitationsParams) (*h
return req, nil
}
-// NewCreateInvitationRequest calls the generic CreateInvitation builder with application/json body
-func NewCreateInvitationRequest(server string, body CreateInvitationJSONRequestBody) (*http.Request, error) {
+// NewUsersAPICreateInvitationsRequest calls the generic UsersAPICreateInvitations builder with application/json body
+func NewUsersAPICreateInvitationsRequest(server string, body UsersAPICreateInvitationsJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewCreateInvitationRequestWithBody(server, "application/json", bodyReader)
+ return NewUsersAPICreateInvitationsRequestWithBody(server, "application/json", bodyReader)
}
-// NewCreateInvitationRequestWithBody generates requests for CreateInvitation with any type of body
-func NewCreateInvitationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPICreateInvitationsRequestWithBody generates requests for UsersAPICreateInvitations with any type of body
+func NewUsersAPICreateInvitationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -2090,8 +2090,8 @@ func NewCreateInvitationRequestWithBody(server string, contentType string, body
return req, nil
}
-// NewDeleteInvitationRequest generates requests for DeleteInvitation
-func NewDeleteInvitationRequest(server string, id string) (*http.Request, error) {
+// NewUsersAPIDeleteInvitationRequest generates requests for UsersAPIDeleteInvitation
+func NewUsersAPIDeleteInvitationRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -2124,24 +2124,24 @@ func NewDeleteInvitationRequest(server string, id string) (*http.Request, error)
return req, nil
}
-// NewClaimInvitationRequest calls the generic ClaimInvitation builder with application/json body
-func NewClaimInvitationRequest(server string, id string, body ClaimInvitationJSONRequestBody) (*http.Request, error) {
+// NewUsersAPIClaimInvitationRequest calls the generic UsersAPIClaimInvitation builder with application/json body
+func NewUsersAPIClaimInvitationRequest(server string, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewClaimInvitationRequestWithBody(server, id, "application/json", bodyReader)
+ return NewUsersAPIClaimInvitationRequestWithBody(server, invitationId, "application/json", bodyReader)
}
-// NewClaimInvitationRequestWithBody generates requests for ClaimInvitation with any type of body
-func NewClaimInvitationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPIClaimInvitationRequestWithBody generates requests for UsersAPIClaimInvitation with any type of body
+func NewUsersAPIClaimInvitationRequestWithBody(server string, invitationId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "invitationId", runtime.ParamLocationPath, invitationId)
if err != nil {
return nil, err
}
@@ -4109,8 +4109,8 @@ func NewExternalClusterAPICreateClusterTokenRequest(server string, clusterId str
return req, nil
}
-// NewCurrentUserProfileRequest generates requests for CurrentUserProfile
-func NewCurrentUserProfileRequest(server string) (*http.Request, error) {
+// NewUsersAPICurrentUserProfileRequest generates requests for UsersAPICurrentUserProfile
+func NewUsersAPICurrentUserProfileRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -4136,19 +4136,19 @@ func NewCurrentUserProfileRequest(server string) (*http.Request, error) {
return req, nil
}
-// NewUpdateCurrentUserProfileRequest calls the generic UpdateCurrentUserProfile builder with application/json body
-func NewUpdateCurrentUserProfileRequest(server string, body UpdateCurrentUserProfileJSONRequestBody) (*http.Request, error) {
+// NewUsersAPIUpdateCurrentUserProfileRequest calls the generic UsersAPIUpdateCurrentUserProfile builder with application/json body
+func NewUsersAPIUpdateCurrentUserProfileRequest(server string, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewUpdateCurrentUserProfileRequestWithBody(server, "application/json", bodyReader)
+ return NewUsersAPIUpdateCurrentUserProfileRequestWithBody(server, "application/json", bodyReader)
}
-// NewUpdateCurrentUserProfileRequestWithBody generates requests for UpdateCurrentUserProfile with any type of body
-func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPIUpdateCurrentUserProfileRequestWithBody generates requests for UsersAPIUpdateCurrentUserProfile with any type of body
+func NewUsersAPIUpdateCurrentUserProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -4176,8 +4176,8 @@ func NewUpdateCurrentUserProfileRequestWithBody(server string, contentType strin
return req, nil
}
-// NewListOrganizationsRequest generates requests for ListOrganizations
-func NewListOrganizationsRequest(server string) (*http.Request, error) {
+// NewUsersAPIListOrganizationsRequest generates requests for UsersAPIListOrganizations
+func NewUsersAPIListOrganizationsRequest(server string, params *UsersAPIListOrganizationsParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -4195,6 +4195,42 @@ func NewListOrganizationsRequest(server string) (*http.Request, error) {
return nil, err
}
+ queryValues := queryURL.Query()
+
+ if params.UserId != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
+ return nil, err
+ } else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+ return nil, err
+ } else {
+ for k, v := range parsed {
+ for _, v2 := range v {
+ queryValues.Add(k, v2)
+ }
+ }
+ }
+
+ }
+
+ if params.Username != nil {
+
+ if queryFrag, err := runtime.StyleParamWithLocation("form", true, "username", runtime.ParamLocationQuery, *params.Username); err != nil {
+ return nil, err
+ } else if parsed, err := url.ParseQuery(queryFrag); err != nil {
+ return nil, err
+ } else {
+ for k, v := range parsed {
+ for _, v2 := range v {
+ queryValues.Add(k, v2)
+ }
+ }
+ }
+
+ }
+
+ queryURL.RawQuery = queryValues.Encode()
+
req, err := http.NewRequest("GET", queryURL.String(), nil)
if err != nil {
return nil, err
@@ -4203,19 +4239,19 @@ func NewListOrganizationsRequest(server string) (*http.Request, error) {
return req, nil
}
-// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
-func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {
+// NewUsersAPICreateOrganizationRequest calls the generic UsersAPICreateOrganization builder with application/json body
+func NewUsersAPICreateOrganizationRequest(server string, body UsersAPICreateOrganizationJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)
+ return NewUsersAPICreateOrganizationRequestWithBody(server, "application/json", bodyReader)
}
-// NewCreateOrganizationRequestWithBody generates requests for CreateOrganization with any type of body
-func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPICreateOrganizationRequestWithBody generates requests for UsersAPICreateOrganization with any type of body
+func NewUsersAPICreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
@@ -4243,8 +4279,8 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bod
return req, nil
}
-// NewDeleteOrganizationRequest generates requests for DeleteOrganization
-func NewDeleteOrganizationRequest(server string, id string) (*http.Request, error) {
+// NewUsersAPIDeleteOrganizationRequest generates requests for UsersAPIDeleteOrganization
+func NewUsersAPIDeleteOrganizationRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4277,8 +4313,8 @@ func NewDeleteOrganizationRequest(server string, id string) (*http.Request, erro
return req, nil
}
-// NewGetOrganizationRequest generates requests for GetOrganization
-func NewGetOrganizationRequest(server string, id string) (*http.Request, error) {
+// NewUsersAPIGetOrganizationRequest generates requests for UsersAPIGetOrganization
+func NewUsersAPIGetOrganizationRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4311,19 +4347,19 @@ func NewGetOrganizationRequest(server string, id string) (*http.Request, error)
return req, nil
}
-// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body
-func NewUpdateOrganizationRequest(server string, id string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) {
+// NewUsersAPIEditOrganizationRequest calls the generic UsersAPIEditOrganization builder with application/json body
+func NewUsersAPIEditOrganizationRequest(server string, id string, body UsersAPIEditOrganizationJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewUpdateOrganizationRequestWithBody(server, id, "application/json", bodyReader)
+ return NewUsersAPIEditOrganizationRequestWithBody(server, id, "application/json", bodyReader)
}
-// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body
-func NewUpdateOrganizationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPIEditOrganizationRequestWithBody generates requests for UsersAPIEditOrganization with any type of body
+func NewUsersAPIEditOrganizationRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4358,13 +4394,20 @@ func NewUpdateOrganizationRequestWithBody(server string, id string, contentType
return req, nil
}
-// NewGetOrganizationUsersRequest generates requests for GetOrganizationUsers
-func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, error) {
+// NewInventoryAPISyncClusterResourcesRequest generates requests for InventoryAPISyncClusterResources
+func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId string, clusterId string) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
+ if err != nil {
+ return nil, err
+ }
+
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId)
if err != nil {
return nil, err
}
@@ -4374,7 +4417,7 @@ func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, er
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/clusters/%s/sync-resource-usage", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4384,7 +4427,7 @@ func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, er
return nil, err
}
- req, err := http.NewRequest("GET", queryURL.String(), nil)
+ req, err := http.NewRequest("POST", queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -4392,24 +4435,13 @@ func NewGetOrganizationUsersRequest(server string, id string) (*http.Request, er
return req, nil
}
-// NewCreateOrganizationUserRequest calls the generic CreateOrganizationUser builder with application/json body
-func NewCreateOrganizationUserRequest(server string, id string, body CreateOrganizationUserJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewCreateOrganizationUserRequestWithBody(server, id, "application/json", bodyReader)
-}
-
-// NewCreateOrganizationUserRequestWithBody generates requests for CreateOrganizationUser with any type of body
-func NewCreateOrganizationUserRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) {
+// NewInventoryAPIGetReservationsRequest generates requests for InventoryAPIGetReservations
+func NewInventoryAPIGetReservationsRequest(server string, organizationId string) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
if err != nil {
return nil, err
}
@@ -4419,7 +4451,7 @@ func NewCreateOrganizationUserRequestWithBody(server string, id string, contentT
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4429,30 +4461,32 @@ func NewCreateOrganizationUserRequestWithBody(server string, id string, contentT
return nil, err
}
- req, err := http.NewRequest("POST", queryURL.String(), body)
+ req, err := http.NewRequest("GET", queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewDeleteOrganizationUserRequest generates requests for DeleteOrganizationUser
-func NewDeleteOrganizationUserRequest(server string, id string, userId string) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
+// NewInventoryAPIAddReservationRequest calls the generic InventoryAPIAddReservation builder with application/json body
+func NewInventoryAPIAddReservationRequest(server string, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
+ bodyReader = bytes.NewReader(buf)
+ return NewInventoryAPIAddReservationRequestWithBody(server, organizationId, "application/json", bodyReader)
+}
- var pathParam1 string
+// NewInventoryAPIAddReservationRequestWithBody generates requests for InventoryAPIAddReservation with any type of body
+func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
if err != nil {
return nil, err
}
@@ -4462,7 +4496,7 @@ func NewDeleteOrganizationUserRequest(server string, id string, userId string) (
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4472,39 +4506,23 @@ func NewDeleteOrganizationUserRequest(server string, id string, userId string) (
return nil, err
}
- req, err := http.NewRequest("DELETE", queryURL.String(), nil)
+ req, err := http.NewRequest("POST", queryURL.String(), body)
if err != nil {
return nil, err
}
- return req, nil
-}
+ req.Header.Add("Content-Type", contentType)
-// NewUpdateOrganizationUserRequest calls the generic UpdateOrganizationUser builder with application/json body
-func NewUpdateOrganizationUserRequest(server string, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewUpdateOrganizationUserRequestWithBody(server, id, userId, "application/json", bodyReader)
+ return req, nil
}
-// NewUpdateOrganizationUserRequestWithBody generates requests for UpdateOrganizationUser with any type of body
-func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId string, contentType string, body io.Reader) (*http.Request, error) {
+// NewInventoryAPIGetReservationsBalanceRequest generates requests for InventoryAPIGetReservationsBalance
+func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId string) (*http.Request, error) {
var err error
var pathParam0 string
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
- if err != nil {
- return nil, err
- }
-
- var pathParam1 string
-
- pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
if err != nil {
return nil, err
}
@@ -4514,7 +4532,7 @@ func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId s
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/balance", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4524,30 +4542,32 @@ func NewUpdateOrganizationUserRequestWithBody(server string, id string, userId s
return nil, err
}
- req, err := http.NewRequest("PUT", queryURL.String(), body)
+ req, err := http.NewRequest("GET", queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewInventoryAPISyncClusterResourcesRequest generates requests for InventoryAPISyncClusterResources
-func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId string, clusterId string) (*http.Request, error) {
- var err error
-
- var pathParam0 string
-
- pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
+// NewInventoryAPIOverwriteReservationsRequest calls the generic InventoryAPIOverwriteReservations builder with application/json body
+func NewInventoryAPIOverwriteReservationsRequest(server string, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
+ bodyReader = bytes.NewReader(buf)
+ return NewInventoryAPIOverwriteReservationsRequestWithBody(server, organizationId, "application/json", bodyReader)
+}
- var pathParam1 string
+// NewInventoryAPIOverwriteReservationsRequestWithBody generates requests for InventoryAPIOverwriteReservations with any type of body
+func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
+ var err error
- pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clusterId", runtime.ParamLocationPath, clusterId)
+ var pathParam0 string
+
+ pathParam0, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
if err != nil {
return nil, err
}
@@ -4557,7 +4577,7 @@ func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId st
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/clusters/%s/sync-resource-usage", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/overwrite", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4567,16 +4587,18 @@ func NewInventoryAPISyncClusterResourcesRequest(server string, organizationId st
return nil, err
}
- req, err := http.NewRequest("POST", queryURL.String(), nil)
+ req, err := http.NewRequest("POST", queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
-// NewInventoryAPIGetReservationsRequest generates requests for InventoryAPIGetReservations
-func NewInventoryAPIGetReservationsRequest(server string, organizationId string) (*http.Request, error) {
+// NewInventoryAPIDeleteReservationRequest generates requests for InventoryAPIDeleteReservation
+func NewInventoryAPIDeleteReservationRequest(server string, organizationId string, reservationId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4586,12 +4608,19 @@ func NewInventoryAPIGetReservationsRequest(server string, organizationId string)
return nil, err
}
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reservationId", runtime.ParamLocationPath, reservationId)
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4601,7 +4630,7 @@ func NewInventoryAPIGetReservationsRequest(server string, organizationId string)
return nil, err
}
- req, err := http.NewRequest("GET", queryURL.String(), nil)
+ req, err := http.NewRequest("DELETE", queryURL.String(), nil)
if err != nil {
return nil, err
}
@@ -4609,19 +4638,8 @@ func NewInventoryAPIGetReservationsRequest(server string, organizationId string)
return req, nil
}
-// NewInventoryAPIAddReservationRequest calls the generic InventoryAPIAddReservation builder with application/json body
-func NewInventoryAPIAddReservationRequest(server string, organizationId string, body InventoryAPIAddReservationJSONRequestBody) (*http.Request, error) {
- var bodyReader io.Reader
- buf, err := json.Marshal(body)
- if err != nil {
- return nil, err
- }
- bodyReader = bytes.NewReader(buf)
- return NewInventoryAPIAddReservationRequestWithBody(server, organizationId, "application/json", bodyReader)
-}
-
-// NewInventoryAPIAddReservationRequestWithBody generates requests for InventoryAPIAddReservation with any type of body
-func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
+// NewInventoryAPIGetResourceUsageRequest generates requests for InventoryAPIGetResourceUsage
+func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4636,7 +4654,7 @@ func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/reservations", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/resource-usage", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4646,18 +4664,16 @@ func NewInventoryAPIAddReservationRequestWithBody(server string, organizationId
return nil, err
}
- req, err := http.NewRequest("POST", queryURL.String(), body)
+ req, err := http.NewRequest("GET", queryURL.String(), nil)
if err != nil {
return nil, err
}
- req.Header.Add("Content-Type", contentType)
-
return req, nil
}
-// NewInventoryAPIGetReservationsBalanceRequest generates requests for InventoryAPIGetReservationsBalance
-func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId string) (*http.Request, error) {
+// NewUsersAPIListOrganizationUsersRequest generates requests for UsersAPIListOrganizationUsers
+func NewUsersAPIListOrganizationUsersRequest(server string, organizationId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4672,7 +4688,7 @@ func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/balance", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4690,19 +4706,19 @@ func NewInventoryAPIGetReservationsBalanceRequest(server string, organizationId
return req, nil
}
-// NewInventoryAPIOverwriteReservationsRequest calls the generic InventoryAPIOverwriteReservations builder with application/json body
-func NewInventoryAPIOverwriteReservationsRequest(server string, organizationId string, body InventoryAPIOverwriteReservationsJSONRequestBody) (*http.Request, error) {
+// NewUsersAPIAddUserToOrganizationRequest calls the generic UsersAPIAddUserToOrganization builder with application/json body
+func NewUsersAPIAddUserToOrganizationRequest(server string, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
- return NewInventoryAPIOverwriteReservationsRequestWithBody(server, organizationId, "application/json", bodyReader)
+ return NewUsersAPIAddUserToOrganizationRequestWithBody(server, organizationId, "application/json", bodyReader)
}
-// NewInventoryAPIOverwriteReservationsRequestWithBody generates requests for InventoryAPIOverwriteReservations with any type of body
-func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
+// NewUsersAPIAddUserToOrganizationRequestWithBody generates requests for UsersAPIAddUserToOrganization with any type of body
+func NewUsersAPIAddUserToOrganizationRequestWithBody(server string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4717,7 +4733,7 @@ func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organiza
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/overwrite", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/users", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4737,8 +4753,8 @@ func NewInventoryAPIOverwriteReservationsRequestWithBody(server string, organiza
return req, nil
}
-// NewInventoryAPIDeleteReservationRequest generates requests for InventoryAPIDeleteReservation
-func NewInventoryAPIDeleteReservationRequest(server string, organizationId string, reservationId string) (*http.Request, error) {
+// NewUsersAPIRemoveUserFromOrganizationRequest generates requests for UsersAPIRemoveUserFromOrganization
+func NewUsersAPIRemoveUserFromOrganizationRequest(server string, organizationId string, userId string) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4750,7 +4766,7 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin
var pathParam1 string
- pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reservationId", runtime.ParamLocationPath, reservationId)
+ pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
if err != nil {
return nil, err
}
@@ -4760,7 +4776,7 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/reservations/%s", pathParam0, pathParam1)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4778,8 +4794,19 @@ func NewInventoryAPIDeleteReservationRequest(server string, organizationId strin
return req, nil
}
-// NewInventoryAPIGetResourceUsageRequest generates requests for InventoryAPIGetResourceUsage
-func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string) (*http.Request, error) {
+// NewUsersAPIUpdateOrganizationUserRequest calls the generic UsersAPIUpdateOrganizationUser builder with application/json body
+func NewUsersAPIUpdateOrganizationUserRequest(server string, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*http.Request, error) {
+ var bodyReader io.Reader
+ buf, err := json.Marshal(body)
+ if err != nil {
+ return nil, err
+ }
+ bodyReader = bytes.NewReader(buf)
+ return NewUsersAPIUpdateOrganizationUserRequestWithBody(server, organizationId, userId, "application/json", bodyReader)
+}
+
+// NewUsersAPIUpdateOrganizationUserRequestWithBody generates requests for UsersAPIUpdateOrganizationUser with any type of body
+func NewUsersAPIUpdateOrganizationUserRequestWithBody(server string, organizationId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
@@ -4789,12 +4816,19 @@ func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string
return nil, err
}
+ var pathParam1 string
+
+ pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
+ if err != nil {
+ return nil, err
+ }
+
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
- operationPath := fmt.Sprintf("/v1/organizations/%s/resource-usage", pathParam0)
+ operationPath := fmt.Sprintf("/v1/organizations/%s/users/%s", pathParam0, pathParam1)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
@@ -4804,11 +4838,13 @@ func NewInventoryAPIGetResourceUsageRequest(server string, organizationId string
return nil, err
}
- req, err := http.NewRequest("GET", queryURL.String(), nil)
+ req, err := http.NewRequest("PUT", queryURL.String(), body)
if err != nil {
return nil, err
}
+ req.Header.Add("Content-Type", contentType)
+
return req, nil
}
@@ -5366,21 +5402,21 @@ type ClientWithResponsesInterface interface {
AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*AuthTokenAPIUpdateAuthTokenResponse, error)
- // ListInvitations request
- ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error)
+ // UsersAPIListInvitations request
+ UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error)
- // CreateInvitation request with any body
- CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error)
+ // UsersAPICreateInvitations request with any body
+ UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error)
- CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error)
+ UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error)
- // DeleteInvitation request
- DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error)
+ // UsersAPIDeleteInvitation request
+ UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error)
- // ClaimInvitation request with any body
- ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error)
+ // UsersAPIClaimInvitation request with any body
+ UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error)
- ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error)
+ UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error)
// EvictorAPIGetAdvancedConfig request
EvictorAPIGetAdvancedConfigWithResponse(ctx context.Context, clusterId string) (*EvictorAPIGetAdvancedConfigResponse, error)
@@ -5546,48 +5582,32 @@ type ClientWithResponsesInterface interface {
// ExternalClusterAPICreateClusterToken request
ExternalClusterAPICreateClusterTokenWithResponse(ctx context.Context, clusterId string) (*ExternalClusterAPICreateClusterTokenResponse, error)
- // CurrentUserProfile request
- CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error)
-
- // UpdateCurrentUserProfile request with any body
- UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error)
-
- UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error)
-
- // ListOrganizations request
- ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error)
-
- // CreateOrganization request with any body
- CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error)
-
- CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error)
+ // UsersAPICurrentUserProfile request
+ UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error)
- // DeleteOrganization request
- DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error)
+ // UsersAPIUpdateCurrentUserProfile request with any body
+ UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error)
- // GetOrganization request
- GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error)
+ UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error)
- // UpdateOrganization request with any body
- UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error)
+ // UsersAPIListOrganizations request
+ UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error)
- UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error)
+ // UsersAPICreateOrganization request with any body
+ UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error)
- // GetOrganizationUsers request
- GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error)
+ UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error)
- // CreateOrganizationUser request with any body
- CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error)
+ // UsersAPIDeleteOrganization request
+ UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error)
- CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error)
+ // UsersAPIGetOrganization request
+ UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error)
- // DeleteOrganizationUser request
- DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error)
+ // UsersAPIEditOrganization request with any body
+ UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error)
- // UpdateOrganizationUser request with any body
- UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error)
-
- UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, error)
+ UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error)
// InventoryAPISyncClusterResources request
InventoryAPISyncClusterResourcesWithResponse(ctx context.Context, organizationId string, clusterId string) (*InventoryAPISyncClusterResourcesResponse, error)
@@ -5614,6 +5634,22 @@ type ClientWithResponsesInterface interface {
// InventoryAPIGetResourceUsage request
InventoryAPIGetResourceUsageWithResponse(ctx context.Context, organizationId string) (*InventoryAPIGetResourceUsageResponse, error)
+ // UsersAPIListOrganizationUsers request
+ UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error)
+
+ // UsersAPIAddUserToOrganization request with any body
+ UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error)
+
+ UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error)
+
+ // UsersAPIRemoveUserFromOrganization request
+ UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error)
+
+ // UsersAPIUpdateOrganizationUser request with any body
+ UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error)
+
+ UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error)
+
// ScheduledRebalancingAPIListRebalancingSchedules request
ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error)
@@ -5821,14 +5857,14 @@ func (r AuthTokenAPIUpdateAuthTokenResponse) GetBody() []byte {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type ListInvitationsResponse struct {
+type UsersAPIListInvitationsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *InvitationsList
+ JSON200 *CastaiUsersV1beta1ListInvitationsResponse
}
// Status returns HTTPResponse.Status
-func (r ListInvitationsResponse) Status() string {
+func (r UsersAPIListInvitationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5836,7 +5872,7 @@ func (r ListInvitationsResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListInvitationsResponse) StatusCode() int {
+func (r UsersAPIListInvitationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5845,20 +5881,20 @@ func (r ListInvitationsResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r ListInvitationsResponse) GetBody() []byte {
+func (r UsersAPIListInvitationsResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type CreateInvitationResponse struct {
+type UsersAPICreateInvitationsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *NewInvitationsResponse
+ JSON200 *CastaiUsersV1beta1CreateInvitationsResponse
}
// Status returns HTTPResponse.Status
-func (r CreateInvitationResponse) Status() string {
+func (r UsersAPICreateInvitationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5866,7 +5902,7 @@ func (r CreateInvitationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateInvitationResponse) StatusCode() int {
+func (r UsersAPICreateInvitationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5875,20 +5911,20 @@ func (r CreateInvitationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r CreateInvitationResponse) GetBody() []byte {
+func (r UsersAPICreateInvitationsResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type DeleteInvitationResponse struct {
+type UsersAPIDeleteInvitationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *map[string]interface{}
+ JSON200 *CastaiUsersV1beta1DeleteInvitationResponse
}
// Status returns HTTPResponse.Status
-func (r DeleteInvitationResponse) Status() string {
+func (r UsersAPIDeleteInvitationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5896,7 +5932,7 @@ func (r DeleteInvitationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteInvitationResponse) StatusCode() int {
+func (r UsersAPIDeleteInvitationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5905,20 +5941,20 @@ func (r DeleteInvitationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r DeleteInvitationResponse) GetBody() []byte {
+func (r UsersAPIDeleteInvitationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type ClaimInvitationResponse struct {
+type UsersAPIClaimInvitationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *map[string]interface{}
+ JSON200 *CastaiUsersV1beta1ClaimInvitationResponse
}
// Status returns HTTPResponse.Status
-func (r ClaimInvitationResponse) Status() string {
+func (r UsersAPIClaimInvitationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -5926,7 +5962,7 @@ func (r ClaimInvitationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ClaimInvitationResponse) StatusCode() int {
+func (r UsersAPIClaimInvitationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -5935,7 +5971,7 @@ func (r ClaimInvitationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r ClaimInvitationResponse) GetBody() []byte {
+func (r UsersAPIClaimInvitationResponse) GetBody() []byte {
return r.Body
}
@@ -7260,14 +7296,14 @@ func (r ExternalClusterAPICreateClusterTokenResponse) GetBody() []byte {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type CurrentUserProfileResponse struct {
+type UsersAPICurrentUserProfileResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *UserProfileResponse
+ JSON200 *CastaiUsersV1beta1CurrentUserProfileResponse
}
// Status returns HTTPResponse.Status
-func (r CurrentUserProfileResponse) Status() string {
+func (r UsersAPICurrentUserProfileResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7275,7 +7311,7 @@ func (r CurrentUserProfileResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CurrentUserProfileResponse) StatusCode() int {
+func (r UsersAPICurrentUserProfileResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7284,20 +7320,20 @@ func (r CurrentUserProfileResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r CurrentUserProfileResponse) GetBody() []byte {
+func (r UsersAPICurrentUserProfileResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type UpdateCurrentUserProfileResponse struct {
+type UsersAPIUpdateCurrentUserProfileResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *UserProfile
+ JSON200 *CastaiUsersV1beta1User
}
// Status returns HTTPResponse.Status
-func (r UpdateCurrentUserProfileResponse) Status() string {
+func (r UsersAPIUpdateCurrentUserProfileResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7305,7 +7341,7 @@ func (r UpdateCurrentUserProfileResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateCurrentUserProfileResponse) StatusCode() int {
+func (r UsersAPIUpdateCurrentUserProfileResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7314,20 +7350,20 @@ func (r UpdateCurrentUserProfileResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r UpdateCurrentUserProfileResponse) GetBody() []byte {
+func (r UsersAPIUpdateCurrentUserProfileResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type ListOrganizationsResponse struct {
+type UsersAPIListOrganizationsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *OrganizationsList
+ JSON200 *CastaiUsersV1beta1ListOrganizationsResponse
}
// Status returns HTTPResponse.Status
-func (r ListOrganizationsResponse) Status() string {
+func (r UsersAPIListOrganizationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7335,7 +7371,7 @@ func (r ListOrganizationsResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r ListOrganizationsResponse) StatusCode() int {
+func (r UsersAPIListOrganizationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7344,20 +7380,20 @@ func (r ListOrganizationsResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r ListOrganizationsResponse) GetBody() []byte {
+func (r UsersAPIListOrganizationsResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type CreateOrganizationResponse struct {
+type UsersAPICreateOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Organization
+ JSON200 *CastaiUsersV1beta1Organization
}
// Status returns HTTPResponse.Status
-func (r CreateOrganizationResponse) Status() string {
+func (r UsersAPICreateOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7365,7 +7401,7 @@ func (r CreateOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateOrganizationResponse) StatusCode() int {
+func (r UsersAPICreateOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7374,20 +7410,20 @@ func (r CreateOrganizationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r CreateOrganizationResponse) GetBody() []byte {
+func (r UsersAPICreateOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type DeleteOrganizationResponse struct {
+type UsersAPIDeleteOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Organization
+ JSON200 *CastaiUsersV1beta1DeleteOrganizationResponse
}
// Status returns HTTPResponse.Status
-func (r DeleteOrganizationResponse) Status() string {
+func (r UsersAPIDeleteOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7395,7 +7431,7 @@ func (r DeleteOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteOrganizationResponse) StatusCode() int {
+func (r UsersAPIDeleteOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7404,20 +7440,20 @@ func (r DeleteOrganizationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r DeleteOrganizationResponse) GetBody() []byte {
+func (r UsersAPIDeleteOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type GetOrganizationResponse struct {
+type UsersAPIGetOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Organization
+ JSON200 *CastaiUsersV1beta1Organization
}
// Status returns HTTPResponse.Status
-func (r GetOrganizationResponse) Status() string {
+func (r UsersAPIGetOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7425,7 +7461,7 @@ func (r GetOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrganizationResponse) StatusCode() int {
+func (r UsersAPIGetOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7434,20 +7470,20 @@ func (r GetOrganizationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r GetOrganizationResponse) GetBody() []byte {
+func (r UsersAPIGetOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type UpdateOrganizationResponse struct {
+type UsersAPIEditOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *Organization
+ JSON200 *CastaiUsersV1beta1Organization
}
// Status returns HTTPResponse.Status
-func (r UpdateOrganizationResponse) Status() string {
+func (r UsersAPIEditOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7455,7 +7491,7 @@ func (r UpdateOrganizationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateOrganizationResponse) StatusCode() int {
+func (r UsersAPIEditOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7464,20 +7500,20 @@ func (r UpdateOrganizationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r UpdateOrganizationResponse) GetBody() []byte {
+func (r UsersAPIEditOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type GetOrganizationUsersResponse struct {
+type InventoryAPISyncClusterResourcesResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *OrganizationUsersList
+ JSON200 *map[string]interface{}
}
// Status returns HTTPResponse.Status
-func (r GetOrganizationUsersResponse) Status() string {
+func (r InventoryAPISyncClusterResourcesResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7485,7 +7521,7 @@ func (r GetOrganizationUsersResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r GetOrganizationUsersResponse) StatusCode() int {
+func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7494,20 +7530,20 @@ func (r GetOrganizationUsersResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r GetOrganizationUsersResponse) GetBody() []byte {
+func (r InventoryAPISyncClusterResourcesResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type CreateOrganizationUserResponse struct {
+type InventoryAPIGetReservationsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *OrganizationUser
+ JSON200 *CastaiInventoryV1beta1GetReservationsResponse
}
// Status returns HTTPResponse.Status
-func (r CreateOrganizationUserResponse) Status() string {
+func (r InventoryAPIGetReservationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7515,7 +7551,7 @@ func (r CreateOrganizationUserResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r CreateOrganizationUserResponse) StatusCode() int {
+func (r InventoryAPIGetReservationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7524,20 +7560,20 @@ func (r CreateOrganizationUserResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r CreateOrganizationUserResponse) GetBody() []byte {
+func (r InventoryAPIGetReservationsResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type DeleteOrganizationUserResponse struct {
+type InventoryAPIAddReservationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *map[string]interface{}
+ JSON200 *CastaiInventoryV1beta1AddReservationResponse
}
// Status returns HTTPResponse.Status
-func (r DeleteOrganizationUserResponse) Status() string {
+func (r InventoryAPIAddReservationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7545,7 +7581,7 @@ func (r DeleteOrganizationUserResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r DeleteOrganizationUserResponse) StatusCode() int {
+func (r InventoryAPIAddReservationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7554,20 +7590,20 @@ func (r DeleteOrganizationUserResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r DeleteOrganizationUserResponse) GetBody() []byte {
+func (r InventoryAPIAddReservationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type UpdateOrganizationUserResponse struct {
+type InventoryAPIGetReservationsBalanceResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *OrganizationUser
+ JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse
}
// Status returns HTTPResponse.Status
-func (r UpdateOrganizationUserResponse) Status() string {
+func (r InventoryAPIGetReservationsBalanceResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7575,7 +7611,7 @@ func (r UpdateOrganizationUserResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r UpdateOrganizationUserResponse) StatusCode() int {
+func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7584,20 +7620,20 @@ func (r UpdateOrganizationUserResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r UpdateOrganizationUserResponse) GetBody() []byte {
+func (r InventoryAPIGetReservationsBalanceResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPISyncClusterResourcesResponse struct {
+type InventoryAPIOverwriteReservationsResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *map[string]interface{}
+ JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse
}
// Status returns HTTPResponse.Status
-func (r InventoryAPISyncClusterResourcesResponse) Status() string {
+func (r InventoryAPIOverwriteReservationsResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7605,7 +7641,7 @@ func (r InventoryAPISyncClusterResourcesResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int {
+func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7614,20 +7650,20 @@ func (r InventoryAPISyncClusterResourcesResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPISyncClusterResourcesResponse) GetBody() []byte {
+func (r InventoryAPIOverwriteReservationsResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIGetReservationsResponse struct {
+type InventoryAPIDeleteReservationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *CastaiInventoryV1beta1GetReservationsResponse
+ JSON200 *map[string]interface{}
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIGetReservationsResponse) Status() string {
+func (r InventoryAPIDeleteReservationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7635,7 +7671,7 @@ func (r InventoryAPIGetReservationsResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIGetReservationsResponse) StatusCode() int {
+func (r InventoryAPIDeleteReservationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7644,20 +7680,20 @@ func (r InventoryAPIGetReservationsResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIGetReservationsResponse) GetBody() []byte {
+func (r InventoryAPIDeleteReservationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIAddReservationResponse struct {
+type InventoryAPIGetResourceUsageResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *CastaiInventoryV1beta1AddReservationResponse
+ JSON200 *CastaiInventoryV1beta1GetResourceUsageResponse
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIAddReservationResponse) Status() string {
+func (r InventoryAPIGetResourceUsageResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7665,7 +7701,7 @@ func (r InventoryAPIAddReservationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIAddReservationResponse) StatusCode() int {
+func (r InventoryAPIGetResourceUsageResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7674,20 +7710,20 @@ func (r InventoryAPIAddReservationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIAddReservationResponse) GetBody() []byte {
+func (r InventoryAPIGetResourceUsageResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIGetReservationsBalanceResponse struct {
+type UsersAPIListOrganizationUsersResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *CastaiInventoryV1beta1GetReservationsBalanceResponse
+ JSON200 *CastaiUsersV1beta1ListOrganizationUsersResponse
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIGetReservationsBalanceResponse) Status() string {
+func (r UsersAPIListOrganizationUsersResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7695,7 +7731,7 @@ func (r InventoryAPIGetReservationsBalanceResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int {
+func (r UsersAPIListOrganizationUsersResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7704,20 +7740,20 @@ func (r InventoryAPIGetReservationsBalanceResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIGetReservationsBalanceResponse) GetBody() []byte {
+func (r UsersAPIListOrganizationUsersResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIOverwriteReservationsResponse struct {
+type UsersAPIAddUserToOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *CastaiInventoryV1beta1OverwriteReservationsResponse
+ JSON200 *CastaiUsersV1beta1AddUserToOrganizationResponse
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIOverwriteReservationsResponse) Status() string {
+func (r UsersAPIAddUserToOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7725,7 +7761,7 @@ func (r InventoryAPIOverwriteReservationsResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int {
+func (r UsersAPIAddUserToOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7734,20 +7770,20 @@ func (r InventoryAPIOverwriteReservationsResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIOverwriteReservationsResponse) GetBody() []byte {
+func (r UsersAPIAddUserToOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIDeleteReservationResponse struct {
+type UsersAPIRemoveUserFromOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *map[string]interface{}
+ JSON200 *CastaiUsersV1beta1RemoveUserFromOrganizationResponse
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIDeleteReservationResponse) Status() string {
+func (r UsersAPIRemoveUserFromOrganizationResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7755,7 +7791,7 @@ func (r InventoryAPIDeleteReservationResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIDeleteReservationResponse) StatusCode() int {
+func (r UsersAPIRemoveUserFromOrganizationResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7764,20 +7800,20 @@ func (r InventoryAPIDeleteReservationResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIDeleteReservationResponse) GetBody() []byte {
+func (r UsersAPIRemoveUserFromOrganizationResponse) GetBody() []byte {
return r.Body
}
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
-type InventoryAPIGetResourceUsageResponse struct {
+type UsersAPIUpdateOrganizationUserResponse struct {
Body []byte
HTTPResponse *http.Response
- JSON200 *CastaiInventoryV1beta1GetResourceUsageResponse
+ JSON200 *CastaiUsersV1beta1Membership
}
// Status returns HTTPResponse.Status
-func (r InventoryAPIGetResourceUsageResponse) Status() string {
+func (r UsersAPIUpdateOrganizationUserResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
@@ -7785,7 +7821,7 @@ func (r InventoryAPIGetResourceUsageResponse) Status() string {
}
// StatusCode returns HTTPResponse.StatusCode
-func (r InventoryAPIGetResourceUsageResponse) StatusCode() int {
+func (r UsersAPIUpdateOrganizationUserResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
@@ -7794,7 +7830,7 @@ func (r InventoryAPIGetResourceUsageResponse) StatusCode() int {
// TODO: to have common interface. https://github.com/deepmap/oapi-codegen/issues/240
// Body returns body of byte array
-func (r InventoryAPIGetResourceUsageResponse) GetBody() []byte {
+func (r UsersAPIUpdateOrganizationUserResponse) GetBody() []byte {
return r.Body
}
@@ -8249,56 +8285,56 @@ func (c *ClientWithResponses) AuthTokenAPIUpdateAuthTokenWithResponse(ctx contex
return ParseAuthTokenAPIUpdateAuthTokenResponse(rsp)
}
-// ListInvitationsWithResponse request returning *ListInvitationsResponse
-func (c *ClientWithResponses) ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams) (*ListInvitationsResponse, error) {
- rsp, err := c.ListInvitations(ctx, params)
+// UsersAPIListInvitationsWithResponse request returning *UsersAPIListInvitationsResponse
+func (c *ClientWithResponses) UsersAPIListInvitationsWithResponse(ctx context.Context, params *UsersAPIListInvitationsParams) (*UsersAPIListInvitationsResponse, error) {
+ rsp, err := c.UsersAPIListInvitations(ctx, params)
if err != nil {
return nil, err
}
- return ParseListInvitationsResponse(rsp)
+ return ParseUsersAPIListInvitationsResponse(rsp)
}
-// CreateInvitationWithBodyWithResponse request with arbitrary body returning *CreateInvitationResponse
-func (c *ClientWithResponses) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInvitationResponse, error) {
- rsp, err := c.CreateInvitationWithBody(ctx, contentType, body)
+// UsersAPICreateInvitationsWithBodyWithResponse request with arbitrary body returning *UsersAPICreateInvitationsResponse
+func (c *ClientWithResponses) UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateInvitationsResponse, error) {
+ rsp, err := c.UsersAPICreateInvitationsWithBody(ctx, contentType, body)
if err != nil {
return nil, err
}
- return ParseCreateInvitationResponse(rsp)
+ return ParseUsersAPICreateInvitationsResponse(rsp)
}
-func (c *ClientWithResponses) CreateInvitationWithResponse(ctx context.Context, body CreateInvitationJSONRequestBody) (*CreateInvitationResponse, error) {
- rsp, err := c.CreateInvitation(ctx, body)
+func (c *ClientWithResponses) UsersAPICreateInvitationsWithResponse(ctx context.Context, body UsersAPICreateInvitationsJSONRequestBody) (*UsersAPICreateInvitationsResponse, error) {
+ rsp, err := c.UsersAPICreateInvitations(ctx, body)
if err != nil {
return nil, err
}
- return ParseCreateInvitationResponse(rsp)
+ return ParseUsersAPICreateInvitationsResponse(rsp)
}
-// DeleteInvitationWithResponse request returning *DeleteInvitationResponse
-func (c *ClientWithResponses) DeleteInvitationWithResponse(ctx context.Context, id string) (*DeleteInvitationResponse, error) {
- rsp, err := c.DeleteInvitation(ctx, id)
+// UsersAPIDeleteInvitationWithResponse request returning *UsersAPIDeleteInvitationResponse
+func (c *ClientWithResponses) UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteInvitationResponse, error) {
+ rsp, err := c.UsersAPIDeleteInvitation(ctx, id)
if err != nil {
return nil, err
}
- return ParseDeleteInvitationResponse(rsp)
+ return ParseUsersAPIDeleteInvitationResponse(rsp)
}
-// ClaimInvitationWithBodyWithResponse request with arbitrary body returning *ClaimInvitationResponse
-func (c *ClientWithResponses) ClaimInvitationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*ClaimInvitationResponse, error) {
- rsp, err := c.ClaimInvitationWithBody(ctx, id, contentType, body)
+// UsersAPIClaimInvitationWithBodyWithResponse request with arbitrary body returning *UsersAPIClaimInvitationResponse
+func (c *ClientWithResponses) UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId string, contentType string, body io.Reader) (*UsersAPIClaimInvitationResponse, error) {
+ rsp, err := c.UsersAPIClaimInvitationWithBody(ctx, invitationId, contentType, body)
if err != nil {
return nil, err
}
- return ParseClaimInvitationResponse(rsp)
+ return ParseUsersAPIClaimInvitationResponse(rsp)
}
-func (c *ClientWithResponses) ClaimInvitationWithResponse(ctx context.Context, id string, body ClaimInvitationJSONRequestBody) (*ClaimInvitationResponse, error) {
- rsp, err := c.ClaimInvitation(ctx, id, body)
+func (c *ClientWithResponses) UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body UsersAPIClaimInvitationJSONRequestBody) (*UsersAPIClaimInvitationResponse, error) {
+ rsp, err := c.UsersAPIClaimInvitation(ctx, invitationId, body)
if err != nil {
return nil, err
}
- return ParseClaimInvitationResponse(rsp)
+ return ParseUsersAPIClaimInvitationResponse(rsp)
}
// EvictorAPIGetAdvancedConfigWithResponse request returning *EvictorAPIGetAdvancedConfigResponse
@@ -8825,143 +8861,91 @@ func (c *ClientWithResponses) ExternalClusterAPICreateClusterTokenWithResponse(c
return ParseExternalClusterAPICreateClusterTokenResponse(rsp)
}
-// CurrentUserProfileWithResponse request returning *CurrentUserProfileResponse
-func (c *ClientWithResponses) CurrentUserProfileWithResponse(ctx context.Context) (*CurrentUserProfileResponse, error) {
- rsp, err := c.CurrentUserProfile(ctx)
+// UsersAPICurrentUserProfileWithResponse request returning *UsersAPICurrentUserProfileResponse
+func (c *ClientWithResponses) UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*UsersAPICurrentUserProfileResponse, error) {
+ rsp, err := c.UsersAPICurrentUserProfile(ctx)
if err != nil {
return nil, err
}
- return ParseCurrentUserProfileResponse(rsp)
+ return ParseUsersAPICurrentUserProfileResponse(rsp)
}
-// UpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserProfileResponse
-func (c *ClientWithResponses) UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateCurrentUserProfileResponse, error) {
- rsp, err := c.UpdateCurrentUserProfileWithBody(ctx, contentType, body)
+// UsersAPIUpdateCurrentUserProfileWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateCurrentUserProfileResponse
+func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPIUpdateCurrentUserProfileResponse, error) {
+ rsp, err := c.UsersAPIUpdateCurrentUserProfileWithBody(ctx, contentType, body)
if err != nil {
return nil, err
}
- return ParseUpdateCurrentUserProfileResponse(rsp)
+ return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp)
}
-func (c *ClientWithResponses) UpdateCurrentUserProfileWithResponse(ctx context.Context, body UpdateCurrentUserProfileJSONRequestBody) (*UpdateCurrentUserProfileResponse, error) {
- rsp, err := c.UpdateCurrentUserProfile(ctx, body)
+func (c *ClientWithResponses) UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*UsersAPIUpdateCurrentUserProfileResponse, error) {
+ rsp, err := c.UsersAPIUpdateCurrentUserProfile(ctx, body)
if err != nil {
return nil, err
}
- return ParseUpdateCurrentUserProfileResponse(rsp)
+ return ParseUsersAPIUpdateCurrentUserProfileResponse(rsp)
}
-// ListOrganizationsWithResponse request returning *ListOrganizationsResponse
-func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context) (*ListOrganizationsResponse, error) {
- rsp, err := c.ListOrganizations(ctx)
+// UsersAPIListOrganizationsWithResponse request returning *UsersAPIListOrganizationsResponse
+func (c *ClientWithResponses) UsersAPIListOrganizationsWithResponse(ctx context.Context, params *UsersAPIListOrganizationsParams) (*UsersAPIListOrganizationsResponse, error) {
+ rsp, err := c.UsersAPIListOrganizations(ctx, params)
if err != nil {
return nil, err
}
- return ParseListOrganizationsResponse(rsp)
+ return ParseUsersAPIListOrganizationsResponse(rsp)
}
-// CreateOrganizationWithBodyWithResponse request with arbitrary body returning *CreateOrganizationResponse
-func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateOrganizationResponse, error) {
- rsp, err := c.CreateOrganizationWithBody(ctx, contentType, body)
+// UsersAPICreateOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPICreateOrganizationResponse
+func (c *ClientWithResponses) UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UsersAPICreateOrganizationResponse, error) {
+ rsp, err := c.UsersAPICreateOrganizationWithBody(ctx, contentType, body)
if err != nil {
return nil, err
}
- return ParseCreateOrganizationResponse(rsp)
+ return ParseUsersAPICreateOrganizationResponse(rsp)
}
-func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody) (*CreateOrganizationResponse, error) {
- rsp, err := c.CreateOrganization(ctx, body)
+func (c *ClientWithResponses) UsersAPICreateOrganizationWithResponse(ctx context.Context, body UsersAPICreateOrganizationJSONRequestBody) (*UsersAPICreateOrganizationResponse, error) {
+ rsp, err := c.UsersAPICreateOrganization(ctx, body)
if err != nil {
return nil, err
}
- return ParseCreateOrganizationResponse(rsp)
+ return ParseUsersAPICreateOrganizationResponse(rsp)
}
-// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse
-func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, id string) (*DeleteOrganizationResponse, error) {
- rsp, err := c.DeleteOrganization(ctx, id)
+// UsersAPIDeleteOrganizationWithResponse request returning *UsersAPIDeleteOrganizationResponse
+func (c *ClientWithResponses) UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIDeleteOrganizationResponse, error) {
+ rsp, err := c.UsersAPIDeleteOrganization(ctx, id)
if err != nil {
return nil, err
}
- return ParseDeleteOrganizationResponse(rsp)
+ return ParseUsersAPIDeleteOrganizationResponse(rsp)
}
-// GetOrganizationWithResponse request returning *GetOrganizationResponse
-func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, id string) (*GetOrganizationResponse, error) {
- rsp, err := c.GetOrganization(ctx, id)
+// UsersAPIGetOrganizationWithResponse request returning *UsersAPIGetOrganizationResponse
+func (c *ClientWithResponses) UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*UsersAPIGetOrganizationResponse, error) {
+ rsp, err := c.UsersAPIGetOrganization(ctx, id)
if err != nil {
return nil, err
}
- return ParseGetOrganizationResponse(rsp)
+ return ParseUsersAPIGetOrganizationResponse(rsp)
}
-// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse
-func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UpdateOrganizationResponse, error) {
- rsp, err := c.UpdateOrganizationWithBody(ctx, id, contentType, body)
+// UsersAPIEditOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIEditOrganizationResponse
+func (c *ClientWithResponses) UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*UsersAPIEditOrganizationResponse, error) {
+ rsp, err := c.UsersAPIEditOrganizationWithBody(ctx, id, contentType, body)
if err != nil {
return nil, err
}
- return ParseUpdateOrganizationResponse(rsp)
+ return ParseUsersAPIEditOrganizationResponse(rsp)
}
-func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, id string, body UpdateOrganizationJSONRequestBody) (*UpdateOrganizationResponse, error) {
- rsp, err := c.UpdateOrganization(ctx, id, body)
+func (c *ClientWithResponses) UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body UsersAPIEditOrganizationJSONRequestBody) (*UsersAPIEditOrganizationResponse, error) {
+ rsp, err := c.UsersAPIEditOrganization(ctx, id, body)
if err != nil {
return nil, err
}
- return ParseUpdateOrganizationResponse(rsp)
-}
-
-// GetOrganizationUsersWithResponse request returning *GetOrganizationUsersResponse
-func (c *ClientWithResponses) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*GetOrganizationUsersResponse, error) {
- rsp, err := c.GetOrganizationUsers(ctx, id)
- if err != nil {
- return nil, err
- }
- return ParseGetOrganizationUsersResponse(rsp)
-}
-
-// CreateOrganizationUserWithBodyWithResponse request with arbitrary body returning *CreateOrganizationUserResponse
-func (c *ClientWithResponses) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader) (*CreateOrganizationUserResponse, error) {
- rsp, err := c.CreateOrganizationUserWithBody(ctx, id, contentType, body)
- if err != nil {
- return nil, err
- }
- return ParseCreateOrganizationUserResponse(rsp)
-}
-
-func (c *ClientWithResponses) CreateOrganizationUserWithResponse(ctx context.Context, id string, body CreateOrganizationUserJSONRequestBody) (*CreateOrganizationUserResponse, error) {
- rsp, err := c.CreateOrganizationUser(ctx, id, body)
- if err != nil {
- return nil, err
- }
- return ParseCreateOrganizationUserResponse(rsp)
-}
-
-// DeleteOrganizationUserWithResponse request returning *DeleteOrganizationUserResponse
-func (c *ClientWithResponses) DeleteOrganizationUserWithResponse(ctx context.Context, id string, userId string) (*DeleteOrganizationUserResponse, error) {
- rsp, err := c.DeleteOrganizationUser(ctx, id, userId)
- if err != nil {
- return nil, err
- }
- return ParseDeleteOrganizationUserResponse(rsp)
-}
-
-// UpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationUserResponse
-func (c *ClientWithResponses) UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader) (*UpdateOrganizationUserResponse, error) {
- rsp, err := c.UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body)
- if err != nil {
- return nil, err
- }
- return ParseUpdateOrganizationUserResponse(rsp)
-}
-
-func (c *ClientWithResponses) UpdateOrganizationUserWithResponse(ctx context.Context, id string, userId string, body UpdateOrganizationUserJSONRequestBody) (*UpdateOrganizationUserResponse, error) {
- rsp, err := c.UpdateOrganizationUser(ctx, id, userId, body)
- if err != nil {
- return nil, err
- }
- return ParseUpdateOrganizationUserResponse(rsp)
+ return ParseUsersAPIEditOrganizationResponse(rsp)
}
// InventoryAPISyncClusterResourcesWithResponse request returning *InventoryAPISyncClusterResourcesResponse
@@ -9043,6 +9027,58 @@ func (c *ClientWithResponses) InventoryAPIGetResourceUsageWithResponse(ctx conte
return ParseInventoryAPIGetResourceUsageResponse(rsp)
}
+// UsersAPIListOrganizationUsersWithResponse request returning *UsersAPIListOrganizationUsersResponse
+func (c *ClientWithResponses) UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*UsersAPIListOrganizationUsersResponse, error) {
+ rsp, err := c.UsersAPIListOrganizationUsers(ctx, organizationId)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIListOrganizationUsersResponse(rsp)
+}
+
+// UsersAPIAddUserToOrganizationWithBodyWithResponse request with arbitrary body returning *UsersAPIAddUserToOrganizationResponse
+func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId string, contentType string, body io.Reader) (*UsersAPIAddUserToOrganizationResponse, error) {
+ rsp, err := c.UsersAPIAddUserToOrganizationWithBody(ctx, organizationId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIAddUserToOrganizationResponse(rsp)
+}
+
+func (c *ClientWithResponses) UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body UsersAPIAddUserToOrganizationJSONRequestBody) (*UsersAPIAddUserToOrganizationResponse, error) {
+ rsp, err := c.UsersAPIAddUserToOrganization(ctx, organizationId, body)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIAddUserToOrganizationResponse(rsp)
+}
+
+// UsersAPIRemoveUserFromOrganizationWithResponse request returning *UsersAPIRemoveUserFromOrganizationResponse
+func (c *ClientWithResponses) UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId string, userId string) (*UsersAPIRemoveUserFromOrganizationResponse, error) {
+ rsp, err := c.UsersAPIRemoveUserFromOrganization(ctx, organizationId, userId)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIRemoveUserFromOrganizationResponse(rsp)
+}
+
+// UsersAPIUpdateOrganizationUserWithBodyWithResponse request with arbitrary body returning *UsersAPIUpdateOrganizationUserResponse
+func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId string, userId string, contentType string, body io.Reader) (*UsersAPIUpdateOrganizationUserResponse, error) {
+ rsp, err := c.UsersAPIUpdateOrganizationUserWithBody(ctx, organizationId, userId, contentType, body)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIUpdateOrganizationUserResponse(rsp)
+}
+
+func (c *ClientWithResponses) UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId string, userId string, body UsersAPIUpdateOrganizationUserJSONRequestBody) (*UsersAPIUpdateOrganizationUserResponse, error) {
+ rsp, err := c.UsersAPIUpdateOrganizationUser(ctx, organizationId, userId, body)
+ if err != nil {
+ return nil, err
+ }
+ return ParseUsersAPIUpdateOrganizationUserResponse(rsp)
+}
+
// ScheduledRebalancingAPIListRebalancingSchedulesWithResponse request returning *ScheduledRebalancingAPIListRebalancingSchedulesResponse
func (c *ClientWithResponses) ScheduledRebalancingAPIListRebalancingSchedulesWithResponse(ctx context.Context) (*ScheduledRebalancingAPIListRebalancingSchedulesResponse, error) {
rsp, err := c.ScheduledRebalancingAPIListRebalancingSchedules(ctx)
@@ -9322,22 +9358,22 @@ func ParseAuthTokenAPIUpdateAuthTokenResponse(rsp *http.Response) (*AuthTokenAPI
return response, nil
}
-// ParseListInvitationsResponse parses an HTTP response from a ListInvitationsWithResponse call
-func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse, error) {
+// ParseUsersAPIListInvitationsResponse parses an HTTP response from a UsersAPIListInvitationsWithResponse call
+func ParseUsersAPIListInvitationsResponse(rsp *http.Response) (*UsersAPIListInvitationsResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &ListInvitationsResponse{
+ response := &UsersAPIListInvitationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest InvitationsList
+ var dest CastaiUsersV1beta1ListInvitationsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -9348,22 +9384,22 @@ func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse,
return response, nil
}
-// ParseCreateInvitationResponse parses an HTTP response from a CreateInvitationWithResponse call
-func ParseCreateInvitationResponse(rsp *http.Response) (*CreateInvitationResponse, error) {
+// ParseUsersAPICreateInvitationsResponse parses an HTTP response from a UsersAPICreateInvitationsWithResponse call
+func ParseUsersAPICreateInvitationsResponse(rsp *http.Response) (*UsersAPICreateInvitationsResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &CreateInvitationResponse{
+ response := &UsersAPICreateInvitationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest NewInvitationsResponse
+ var dest CastaiUsersV1beta1CreateInvitationsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -9374,22 +9410,22 @@ func ParseCreateInvitationResponse(rsp *http.Response) (*CreateInvitationRespons
return response, nil
}
-// ParseDeleteInvitationResponse parses an HTTP response from a DeleteInvitationWithResponse call
-func ParseDeleteInvitationResponse(rsp *http.Response) (*DeleteInvitationResponse, error) {
+// ParseUsersAPIDeleteInvitationResponse parses an HTTP response from a UsersAPIDeleteInvitationWithResponse call
+func ParseUsersAPIDeleteInvitationResponse(rsp *http.Response) (*UsersAPIDeleteInvitationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &DeleteInvitationResponse{
+ response := &UsersAPIDeleteInvitationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest CastaiUsersV1beta1DeleteInvitationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -9400,22 +9436,22 @@ func ParseDeleteInvitationResponse(rsp *http.Response) (*DeleteInvitationRespons
return response, nil
}
-// ParseClaimInvitationResponse parses an HTTP response from a ClaimInvitationWithResponse call
-func ParseClaimInvitationResponse(rsp *http.Response) (*ClaimInvitationResponse, error) {
+// ParseUsersAPIClaimInvitationResponse parses an HTTP response from a UsersAPIClaimInvitationWithResponse call
+func ParseUsersAPIClaimInvitationResponse(rsp *http.Response) (*UsersAPIClaimInvitationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &ClaimInvitationResponse{
+ response := &UsersAPIClaimInvitationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest CastaiUsersV1beta1ClaimInvitationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10560,22 +10596,22 @@ func ParseExternalClusterAPICreateClusterTokenResponse(rsp *http.Response) (*Ext
return response, nil
}
-// ParseCurrentUserProfileResponse parses an HTTP response from a CurrentUserProfileWithResponse call
-func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileResponse, error) {
+// ParseUsersAPICurrentUserProfileResponse parses an HTTP response from a UsersAPICurrentUserProfileWithResponse call
+func ParseUsersAPICurrentUserProfileResponse(rsp *http.Response) (*UsersAPICurrentUserProfileResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &CurrentUserProfileResponse{
+ response := &UsersAPICurrentUserProfileResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest UserProfileResponse
+ var dest CastaiUsersV1beta1CurrentUserProfileResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10586,22 +10622,22 @@ func ParseCurrentUserProfileResponse(rsp *http.Response) (*CurrentUserProfileRes
return response, nil
}
-// ParseUpdateCurrentUserProfileResponse parses an HTTP response from a UpdateCurrentUserProfileWithResponse call
-func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUserProfileResponse, error) {
+// ParseUsersAPIUpdateCurrentUserProfileResponse parses an HTTP response from a UsersAPIUpdateCurrentUserProfileWithResponse call
+func ParseUsersAPIUpdateCurrentUserProfileResponse(rsp *http.Response) (*UsersAPIUpdateCurrentUserProfileResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &UpdateCurrentUserProfileResponse{
+ response := &UsersAPIUpdateCurrentUserProfileResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest UserProfile
+ var dest CastaiUsersV1beta1User
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10612,22 +10648,22 @@ func ParseUpdateCurrentUserProfileResponse(rsp *http.Response) (*UpdateCurrentUs
return response, nil
}
-// ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call
-func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error) {
+// ParseUsersAPIListOrganizationsResponse parses an HTTP response from a UsersAPIListOrganizationsWithResponse call
+func ParseUsersAPIListOrganizationsResponse(rsp *http.Response) (*UsersAPIListOrganizationsResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &ListOrganizationsResponse{
+ response := &UsersAPIListOrganizationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OrganizationsList
+ var dest CastaiUsersV1beta1ListOrganizationsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10638,22 +10674,22 @@ func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsRespo
return response, nil
}
-// ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call
-func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error) {
+// ParseUsersAPICreateOrganizationResponse parses an HTTP response from a UsersAPICreateOrganizationWithResponse call
+func ParseUsersAPICreateOrganizationResponse(rsp *http.Response) (*UsersAPICreateOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &CreateOrganizationResponse{
+ response := &UsersAPICreateOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Organization
+ var dest CastaiUsersV1beta1Organization
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10664,22 +10700,22 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationRes
return response, nil
}
-// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call
-func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) {
+// ParseUsersAPIDeleteOrganizationResponse parses an HTTP response from a UsersAPIDeleteOrganizationWithResponse call
+func ParseUsersAPIDeleteOrganizationResponse(rsp *http.Response) (*UsersAPIDeleteOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &DeleteOrganizationResponse{
+ response := &UsersAPIDeleteOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Organization
+ var dest CastaiUsersV1beta1DeleteOrganizationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10690,22 +10726,22 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationRes
return response, nil
}
-// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
-func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) {
+// ParseUsersAPIGetOrganizationResponse parses an HTTP response from a UsersAPIGetOrganizationWithResponse call
+func ParseUsersAPIGetOrganizationResponse(rsp *http.Response) (*UsersAPIGetOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &GetOrganizationResponse{
+ response := &UsersAPIGetOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Organization
+ var dest CastaiUsersV1beta1Organization
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10716,22 +10752,22 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse,
return response, nil
}
-// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call
-func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) {
+// ParseUsersAPIEditOrganizationResponse parses an HTTP response from a UsersAPIEditOrganizationWithResponse call
+func ParseUsersAPIEditOrganizationResponse(rsp *http.Response) (*UsersAPIEditOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &UpdateOrganizationResponse{
+ response := &UsersAPIEditOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest Organization
+ var dest CastaiUsersV1beta1Organization
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10742,22 +10778,22 @@ func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationRes
return response, nil
}
-// ParseGetOrganizationUsersResponse parses an HTTP response from a GetOrganizationUsersWithResponse call
-func ParseGetOrganizationUsersResponse(rsp *http.Response) (*GetOrganizationUsersResponse, error) {
+// ParseInventoryAPISyncClusterResourcesResponse parses an HTTP response from a InventoryAPISyncClusterResourcesWithResponse call
+func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*InventoryAPISyncClusterResourcesResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &GetOrganizationUsersResponse{
+ response := &InventoryAPISyncClusterResourcesResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OrganizationUsersList
+ var dest map[string]interface{}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10768,22 +10804,22 @@ func ParseGetOrganizationUsersResponse(rsp *http.Response) (*GetOrganizationUser
return response, nil
}
-// ParseCreateOrganizationUserResponse parses an HTTP response from a CreateOrganizationUserWithResponse call
-func ParseCreateOrganizationUserResponse(rsp *http.Response) (*CreateOrganizationUserResponse, error) {
+// ParseInventoryAPIGetReservationsResponse parses an HTTP response from a InventoryAPIGetReservationsWithResponse call
+func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPIGetReservationsResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &CreateOrganizationUserResponse{
+ response := &InventoryAPIGetReservationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OrganizationUser
+ var dest CastaiInventoryV1beta1GetReservationsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10794,22 +10830,22 @@ func ParseCreateOrganizationUserResponse(rsp *http.Response) (*CreateOrganizatio
return response, nil
}
-// ParseDeleteOrganizationUserResponse parses an HTTP response from a DeleteOrganizationUserWithResponse call
-func ParseDeleteOrganizationUserResponse(rsp *http.Response) (*DeleteOrganizationUserResponse, error) {
+// ParseInventoryAPIAddReservationResponse parses an HTTP response from a InventoryAPIAddReservationWithResponse call
+func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIAddReservationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &DeleteOrganizationUserResponse{
+ response := &InventoryAPIAddReservationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest CastaiInventoryV1beta1AddReservationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10820,22 +10856,22 @@ func ParseDeleteOrganizationUserResponse(rsp *http.Response) (*DeleteOrganizatio
return response, nil
}
-// ParseUpdateOrganizationUserResponse parses an HTTP response from a UpdateOrganizationUserWithResponse call
-func ParseUpdateOrganizationUserResponse(rsp *http.Response) (*UpdateOrganizationUserResponse, error) {
+// ParseInventoryAPIGetReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetReservationsBalanceWithResponse call
+func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetReservationsBalanceResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &UpdateOrganizationUserResponse{
+ response := &InventoryAPIGetReservationsBalanceResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest OrganizationUser
+ var dest CastaiInventoryV1beta1GetReservationsBalanceResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10846,22 +10882,22 @@ func ParseUpdateOrganizationUserResponse(rsp *http.Response) (*UpdateOrganizatio
return response, nil
}
-// ParseInventoryAPISyncClusterResourcesResponse parses an HTTP response from a InventoryAPISyncClusterResourcesWithResponse call
-func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*InventoryAPISyncClusterResourcesResponse, error) {
+// ParseInventoryAPIOverwriteReservationsResponse parses an HTTP response from a InventoryAPIOverwriteReservationsWithResponse call
+func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*InventoryAPIOverwriteReservationsResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPISyncClusterResourcesResponse{
+ response := &InventoryAPIOverwriteReservationsResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest CastaiInventoryV1beta1OverwriteReservationsResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10872,22 +10908,22 @@ func ParseInventoryAPISyncClusterResourcesResponse(rsp *http.Response) (*Invento
return response, nil
}
-// ParseInventoryAPIGetReservationsResponse parses an HTTP response from a InventoryAPIGetReservationsWithResponse call
-func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPIGetReservationsResponse, error) {
+// ParseInventoryAPIDeleteReservationResponse parses an HTTP response from a InventoryAPIDeleteReservationWithResponse call
+func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryAPIDeleteReservationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIGetReservationsResponse{
+ response := &InventoryAPIDeleteReservationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest CastaiInventoryV1beta1GetReservationsResponse
+ var dest map[string]interface{}
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10898,22 +10934,22 @@ func ParseInventoryAPIGetReservationsResponse(rsp *http.Response) (*InventoryAPI
return response, nil
}
-// ParseInventoryAPIAddReservationResponse parses an HTTP response from a InventoryAPIAddReservationWithResponse call
-func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIAddReservationResponse, error) {
+// ParseInventoryAPIGetResourceUsageResponse parses an HTTP response from a InventoryAPIGetResourceUsageWithResponse call
+func ParseInventoryAPIGetResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetResourceUsageResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIAddReservationResponse{
+ response := &InventoryAPIGetResourceUsageResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest CastaiInventoryV1beta1AddReservationResponse
+ var dest CastaiInventoryV1beta1GetResourceUsageResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10924,22 +10960,22 @@ func ParseInventoryAPIAddReservationResponse(rsp *http.Response) (*InventoryAPIA
return response, nil
}
-// ParseInventoryAPIGetReservationsBalanceResponse parses an HTTP response from a InventoryAPIGetReservationsBalanceWithResponse call
-func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*InventoryAPIGetReservationsBalanceResponse, error) {
+// ParseUsersAPIListOrganizationUsersResponse parses an HTTP response from a UsersAPIListOrganizationUsersWithResponse call
+func ParseUsersAPIListOrganizationUsersResponse(rsp *http.Response) (*UsersAPIListOrganizationUsersResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIGetReservationsBalanceResponse{
+ response := &UsersAPIListOrganizationUsersResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest CastaiInventoryV1beta1GetReservationsBalanceResponse
+ var dest CastaiUsersV1beta1ListOrganizationUsersResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10950,22 +10986,22 @@ func ParseInventoryAPIGetReservationsBalanceResponse(rsp *http.Response) (*Inven
return response, nil
}
-// ParseInventoryAPIOverwriteReservationsResponse parses an HTTP response from a InventoryAPIOverwriteReservationsWithResponse call
-func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*InventoryAPIOverwriteReservationsResponse, error) {
+// ParseUsersAPIAddUserToOrganizationResponse parses an HTTP response from a UsersAPIAddUserToOrganizationWithResponse call
+func ParseUsersAPIAddUserToOrganizationResponse(rsp *http.Response) (*UsersAPIAddUserToOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIOverwriteReservationsResponse{
+ response := &UsersAPIAddUserToOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest CastaiInventoryV1beta1OverwriteReservationsResponse
+ var dest CastaiUsersV1beta1AddUserToOrganizationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -10976,22 +11012,22 @@ func ParseInventoryAPIOverwriteReservationsResponse(rsp *http.Response) (*Invent
return response, nil
}
-// ParseInventoryAPIDeleteReservationResponse parses an HTTP response from a InventoryAPIDeleteReservationWithResponse call
-func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryAPIDeleteReservationResponse, error) {
+// ParseUsersAPIRemoveUserFromOrganizationResponse parses an HTTP response from a UsersAPIRemoveUserFromOrganizationWithResponse call
+func ParseUsersAPIRemoveUserFromOrganizationResponse(rsp *http.Response) (*UsersAPIRemoveUserFromOrganizationResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIDeleteReservationResponse{
+ response := &UsersAPIRemoveUserFromOrganizationResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest map[string]interface{}
+ var dest CastaiUsersV1beta1RemoveUserFromOrganizationResponse
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
@@ -11002,22 +11038,22 @@ func ParseInventoryAPIDeleteReservationResponse(rsp *http.Response) (*InventoryA
return response, nil
}
-// ParseInventoryAPIGetResourceUsageResponse parses an HTTP response from a InventoryAPIGetResourceUsageWithResponse call
-func ParseInventoryAPIGetResourceUsageResponse(rsp *http.Response) (*InventoryAPIGetResourceUsageResponse, error) {
+// ParseUsersAPIUpdateOrganizationUserResponse parses an HTTP response from a UsersAPIUpdateOrganizationUserWithResponse call
+func ParseUsersAPIUpdateOrganizationUserResponse(rsp *http.Response) (*UsersAPIUpdateOrganizationUserResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer rsp.Body.Close()
if err != nil {
return nil, err
}
- response := &InventoryAPIGetResourceUsageResponse{
+ response := &UsersAPIUpdateOrganizationUserResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
- var dest CastaiInventoryV1beta1GetResourceUsageResponse
+ var dest CastaiUsersV1beta1Membership
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
diff --git a/castai/sdk/mock/client.go b/castai/sdk/mock/client.go
index 9d7f291c..3cbf15b7 100644
--- a/castai/sdk/mock/client.go
+++ b/castai/sdk/mock/client.go
@@ -215,246 +215,6 @@ func (mr *MockClientInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBody(c
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBody", reflect.TypeOf((*MockClientInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBody), varargs...)
}
-// ClaimInvitation mocks base method.
-func (m *MockClientInterface) ClaimInvitation(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "ClaimInvitation", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ClaimInvitation indicates an expected call of ClaimInvitation.
-func (mr *MockClientInterfaceMockRecorder) ClaimInvitation(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitation", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitation), varargs...)
-}
-
-// ClaimInvitationWithBody mocks base method.
-func (m *MockClientInterface) ClaimInvitationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, contentType, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "ClaimInvitationWithBody", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ClaimInvitationWithBody indicates an expected call of ClaimInvitationWithBody.
-func (mr *MockClientInterfaceMockRecorder) ClaimInvitationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).ClaimInvitationWithBody), varargs...)
-}
-
-// CreateInvitation mocks base method.
-func (m *MockClientInterface) CreateInvitation(ctx context.Context, body sdk.CreateInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateInvitation", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateInvitation indicates an expected call of CreateInvitation.
-func (mr *MockClientInterfaceMockRecorder) CreateInvitation(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitation", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitation), varargs...)
-}
-
-// CreateInvitationWithBody mocks base method.
-func (m *MockClientInterface) CreateInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, contentType, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateInvitationWithBody", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateInvitationWithBody indicates an expected call of CreateInvitationWithBody.
-func (mr *MockClientInterfaceMockRecorder) CreateInvitationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateInvitationWithBody), varargs...)
-}
-
-// CreateOrganization mocks base method.
-func (m *MockClientInterface) CreateOrganization(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateOrganization", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateOrganization indicates an expected call of CreateOrganization.
-func (mr *MockClientInterfaceMockRecorder) CreateOrganization(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganization", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganization), varargs...)
-}
-
-// CreateOrganizationUser mocks base method.
-func (m *MockClientInterface) CreateOrganizationUser(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateOrganizationUser", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateOrganizationUser indicates an expected call of CreateOrganizationUser.
-func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUser(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUser), varargs...)
-}
-
-// CreateOrganizationUserWithBody mocks base method.
-func (m *MockClientInterface) CreateOrganizationUserWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, contentType, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateOrganizationUserWithBody", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateOrganizationUserWithBody indicates an expected call of CreateOrganizationUserWithBody.
-func (mr *MockClientInterfaceMockRecorder) CreateOrganizationUserWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationUserWithBody), varargs...)
-}
-
-// CreateOrganizationWithBody mocks base method.
-func (m *MockClientInterface) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, contentType, body}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CreateOrganizationWithBody", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CreateOrganizationWithBody indicates an expected call of CreateOrganizationWithBody.
-func (mr *MockClientInterfaceMockRecorder) CreateOrganizationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).CreateOrganizationWithBody), varargs...)
-}
-
-// CurrentUserProfile mocks base method.
-func (m *MockClientInterface) CurrentUserProfile(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "CurrentUserProfile", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// CurrentUserProfile indicates an expected call of CurrentUserProfile.
-func (mr *MockClientInterfaceMockRecorder) CurrentUserProfile(ctx interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).CurrentUserProfile), varargs...)
-}
-
-// DeleteInvitation mocks base method.
-func (m *MockClientInterface) DeleteInvitation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "DeleteInvitation", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// DeleteInvitation indicates an expected call of DeleteInvitation.
-func (mr *MockClientInterfaceMockRecorder) DeleteInvitation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitation", reflect.TypeOf((*MockClientInterface)(nil).DeleteInvitation), varargs...)
-}
-
-// DeleteOrganization mocks base method.
-func (m *MockClientInterface) DeleteOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "DeleteOrganization", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// DeleteOrganization indicates an expected call of DeleteOrganization.
-func (mr *MockClientInterfaceMockRecorder) DeleteOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganization", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganization), varargs...)
-}
-
-// DeleteOrganizationUser mocks base method.
-func (m *MockClientInterface) DeleteOrganizationUser(ctx context.Context, id, userId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, userId}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "DeleteOrganizationUser", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// DeleteOrganizationUser indicates an expected call of DeleteOrganizationUser.
-func (mr *MockClientInterfaceMockRecorder) DeleteOrganizationUser(ctx, id, userId interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, userId}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).DeleteOrganizationUser), varargs...)
-}
-
// EvictorAPIGetAdvancedConfig mocks base method.
func (m *MockClientInterface) EvictorAPIGetAdvancedConfig(ctx context.Context, clusterId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
@@ -1075,46 +835,6 @@ func (mr *MockClientInterfaceMockRecorder) ExternalClusterAPIUpdateClusterWithBo
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithBody", reflect.TypeOf((*MockClientInterface)(nil).ExternalClusterAPIUpdateClusterWithBody), varargs...)
}
-// GetOrganization mocks base method.
-func (m *MockClientInterface) GetOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "GetOrganization", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// GetOrganization indicates an expected call of GetOrganization.
-func (mr *MockClientInterfaceMockRecorder) GetOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganization", reflect.TypeOf((*MockClientInterface)(nil).GetOrganization), varargs...)
-}
-
-// GetOrganizationUsers mocks base method.
-func (m *MockClientInterface) GetOrganizationUsers(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "GetOrganizationUsers", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// GetOrganizationUsers indicates an expected call of GetOrganizationUsers.
-func (mr *MockClientInterfaceMockRecorder) GetOrganizationUsers(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsers", reflect.TypeOf((*MockClientInterface)(nil).GetOrganizationUsers), varargs...)
-}
-
// InventoryAPIAddReservation mocks base method.
func (m *MockClientInterface) InventoryAPIAddReservation(ctx context.Context, organizationId string, body sdk.InventoryAPIAddReservationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
@@ -1295,46 +1015,6 @@ func (mr *MockClientInterfaceMockRecorder) InventoryAPISyncClusterResources(ctx,
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResources", reflect.TypeOf((*MockClientInterface)(nil).InventoryAPISyncClusterResources), varargs...)
}
-// ListInvitations mocks base method.
-func (m *MockClientInterface) ListInvitations(ctx context.Context, params *sdk.ListInvitationsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx, params}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "ListInvitations", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ListInvitations indicates an expected call of ListInvitations.
-func (mr *MockClientInterfaceMockRecorder) ListInvitations(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, params}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInvitations", reflect.TypeOf((*MockClientInterface)(nil).ListInvitations), varargs...)
-}
-
-// ListOrganizations mocks base method.
-func (m *MockClientInterface) ListOrganizations(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
- m.ctrl.T.Helper()
- varargs := []interface{}{ctx}
- for _, a := range reqEditors {
- varargs = append(varargs, a)
- }
- ret := m.ctrl.Call(m, "ListOrganizations", varargs...)
- ret0, _ := ret[0].(*http.Response)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ListOrganizations indicates an expected call of ListOrganizations.
-func (mr *MockClientInterfaceMockRecorder) ListOrganizations(ctx interface{}, reqEditors ...interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizations", reflect.TypeOf((*MockClientInterface)(nil).ListOrganizations), varargs...)
-}
-
// NodeConfigurationAPICreateConfiguration mocks base method.
func (m *MockClientInterface) NodeConfigurationAPICreateConfiguration(ctx context.Context, clusterId string, body sdk.NodeConfigurationAPICreateConfigurationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
@@ -2255,432 +1935,572 @@ func (mr *MockClientInterfaceMockRecorder) ScheduledRebalancingAPIUpdateRebalanc
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody", reflect.TypeOf((*MockClientInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingScheduleWithBody), varargs...)
}
-// UpdateCurrentUserProfile mocks base method.
-func (m *MockClientInterface) UpdateCurrentUserProfile(ctx context.Context, body sdk.UpdateCurrentUserProfileJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPIAddUserToOrganization mocks base method.
+func (m *MockClientInterface) UsersAPIAddUserToOrganization(ctx context.Context, organizationId string, body sdk.UsersAPIAddUserToOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, body}
+ varargs := []interface{}{ctx, organizationId, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateCurrentUserProfile", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPIAddUserToOrganization", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateCurrentUserProfile indicates an expected call of UpdateCurrentUserProfile.
-func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfile(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPIAddUserToOrganization indicates an expected call of UsersAPIAddUserToOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIAddUserToOrganization(ctx, organizationId, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfile), varargs...)
+ varargs := append([]interface{}{ctx, organizationId, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIAddUserToOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIAddUserToOrganization), varargs...)
}
-// UpdateCurrentUserProfileWithBody mocks base method.
-func (m *MockClientInterface) UpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPIAddUserToOrganizationWithBody mocks base method.
+func (m *MockClientInterface) UsersAPIAddUserToOrganizationWithBody(ctx context.Context, organizationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, contentType, body}
+ varargs := []interface{}{ctx, organizationId, contentType, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateCurrentUserProfileWithBody", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPIAddUserToOrganizationWithBody", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateCurrentUserProfileWithBody indicates an expected call of UpdateCurrentUserProfileWithBody.
-func (mr *MockClientInterfaceMockRecorder) UpdateCurrentUserProfileWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPIAddUserToOrganizationWithBody indicates an expected call of UsersAPIAddUserToOrganizationWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIAddUserToOrganizationWithBody(ctx, organizationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfileWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateCurrentUserProfileWithBody), varargs...)
+ varargs := append([]interface{}{ctx, organizationId, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIAddUserToOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIAddUserToOrganizationWithBody), varargs...)
}
-// UpdateOrganization mocks base method.
-func (m *MockClientInterface) UpdateOrganization(ctx context.Context, id string, body sdk.UpdateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPIClaimInvitation mocks base method.
+func (m *MockClientInterface) UsersAPIClaimInvitation(ctx context.Context, invitationId string, body sdk.UsersAPIClaimInvitationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, body}
+ varargs := []interface{}{ctx, invitationId, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateOrganization", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPIClaimInvitation", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganization indicates an expected call of UpdateOrganization.
-func (mr *MockClientInterfaceMockRecorder) UpdateOrganization(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPIClaimInvitation indicates an expected call of UsersAPIClaimInvitation.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIClaimInvitation(ctx, invitationId, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganization", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganization), varargs...)
+ varargs := append([]interface{}{ctx, invitationId, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIClaimInvitation", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIClaimInvitation), varargs...)
}
-// UpdateOrganizationUser mocks base method.
-func (m *MockClientInterface) UpdateOrganizationUser(ctx context.Context, id, userId string, body sdk.UpdateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPIClaimInvitationWithBody mocks base method.
+func (m *MockClientInterface) UsersAPIClaimInvitationWithBody(ctx context.Context, invitationId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, userId, body}
+ varargs := []interface{}{ctx, invitationId, contentType, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateOrganizationUser", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPIClaimInvitationWithBody", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationUser indicates an expected call of UpdateOrganizationUser.
-func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUser(ctx, id, userId, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPIClaimInvitationWithBody indicates an expected call of UsersAPIClaimInvitationWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIClaimInvitationWithBody(ctx, invitationId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, userId, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUser), varargs...)
+ varargs := append([]interface{}{ctx, invitationId, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIClaimInvitationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIClaimInvitationWithBody), varargs...)
}
-// UpdateOrganizationUserWithBody mocks base method.
-func (m *MockClientInterface) UpdateOrganizationUserWithBody(ctx context.Context, id, userId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPICreateInvitations mocks base method.
+func (m *MockClientInterface) UsersAPICreateInvitations(ctx context.Context, body sdk.UsersAPICreateInvitationsJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, userId, contentType, body}
+ varargs := []interface{}{ctx, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateOrganizationUserWithBody", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPICreateInvitations", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationUserWithBody indicates an expected call of UpdateOrganizationUserWithBody.
-func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationUserWithBody(ctx, id, userId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPICreateInvitations indicates an expected call of UsersAPICreateInvitations.
+func (mr *MockClientInterfaceMockRecorder) UsersAPICreateInvitations(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, userId, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationUserWithBody), varargs...)
+ varargs := append([]interface{}{ctx, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateInvitations", reflect.TypeOf((*MockClientInterface)(nil).UsersAPICreateInvitations), varargs...)
}
-// UpdateOrganizationWithBody mocks base method.
-func (m *MockClientInterface) UpdateOrganizationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+// UsersAPICreateInvitationsWithBody mocks base method.
+func (m *MockClientInterface) UsersAPICreateInvitationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- varargs := []interface{}{ctx, id, contentType, body}
+ varargs := []interface{}{ctx, contentType, body}
for _, a := range reqEditors {
varargs = append(varargs, a)
}
- ret := m.ctrl.Call(m, "UpdateOrganizationWithBody", varargs...)
+ ret := m.ctrl.Call(m, "UsersAPICreateInvitationsWithBody", varargs...)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationWithBody indicates an expected call of UpdateOrganizationWithBody.
-func (mr *MockClientInterfaceMockRecorder) UpdateOrganizationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
+// UsersAPICreateInvitationsWithBody indicates an expected call of UsersAPICreateInvitationsWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPICreateInvitationsWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...)
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UpdateOrganizationWithBody), varargs...)
+ varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateInvitationsWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPICreateInvitationsWithBody), varargs...)
}
-// MockClientWithResponsesInterface is a mock of ClientWithResponsesInterface interface.
-type MockClientWithResponsesInterface struct {
- ctrl *gomock.Controller
- recorder *MockClientWithResponsesInterfaceMockRecorder
+// UsersAPICreateOrganization mocks base method.
+func (m *MockClientInterface) UsersAPICreateOrganization(ctx context.Context, body sdk.UsersAPICreateOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+ m.ctrl.T.Helper()
+ varargs := []interface{}{ctx, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPICreateOrganization", varargs...)
+ ret0, _ := ret[0].(*http.Response)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
}
-// MockClientWithResponsesInterfaceMockRecorder is the mock recorder for MockClientWithResponsesInterface.
-type MockClientWithResponsesInterfaceMockRecorder struct {
- mock *MockClientWithResponsesInterface
+// UsersAPICreateOrganization indicates an expected call of UsersAPICreateOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPICreateOrganization(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]interface{}{ctx, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPICreateOrganization), varargs...)
}
-// NewMockClientWithResponsesInterface creates a new mock instance.
-func NewMockClientWithResponsesInterface(ctrl *gomock.Controller) *MockClientWithResponsesInterface {
- mock := &MockClientWithResponsesInterface{ctrl: ctrl}
- mock.recorder = &MockClientWithResponsesInterfaceMockRecorder{mock}
- return mock
+// UsersAPICreateOrganizationWithBody mocks base method.
+func (m *MockClientInterface) UsersAPICreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+ m.ctrl.T.Helper()
+ varargs := []interface{}{ctx, contentType, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPICreateOrganizationWithBody", varargs...)
+ ret0, _ := ret[0].(*http.Response)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
}
-// EXPECT returns an object that allows the caller to indicate expected use.
-func (m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterfaceMockRecorder {
- return m.recorder
+// UsersAPICreateOrganizationWithBody indicates an expected call of UsersAPICreateOrganizationWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPICreateOrganizationWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPICreateOrganizationWithBody), varargs...)
}
-// AuthTokenAPICreateAuthTokenWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) {
+// UsersAPICurrentUserProfile mocks base method.
+func (m *MockClientInterface) UsersAPICurrentUserProfile(ctx context.Context, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", ctx, contentType, body)
- ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse)
+ varargs := []interface{}{ctx}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPICurrentUserProfile", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPICreateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+// UsersAPICurrentUserProfile indicates an expected call of UsersAPICurrentUserProfile.
+func (mr *MockClientInterfaceMockRecorder) UsersAPICurrentUserProfile(ctx interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithBodyWithResponse), ctx, contentType, body)
+ varargs := append([]interface{}{ctx}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).UsersAPICurrentUserProfile), varargs...)
}
-// AuthTokenAPICreateAuthTokenWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body sdk.AuthTokenAPICreateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) {
+// UsersAPIDeleteInvitation mocks base method.
+func (m *MockClientInterface) UsersAPIDeleteInvitation(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithResponse", ctx, body)
- ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse)
+ varargs := []interface{}{ctx, id}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIDeleteInvitation", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPICreateAuthTokenWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithResponse(ctx, body interface{}) *gomock.Call {
+// UsersAPIDeleteInvitation indicates an expected call of UsersAPIDeleteInvitation.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIDeleteInvitation(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithResponse), ctx, body)
+ varargs := append([]interface{}{ctx, id}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIDeleteInvitation", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIDeleteInvitation), varargs...)
}
-// AuthTokenAPIDeleteAuthTokenWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIDeleteAuthTokenResponse, error) {
+// UsersAPIDeleteOrganization mocks base method.
+func (m *MockClientInterface) UsersAPIDeleteOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPIDeleteAuthTokenWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.AuthTokenAPIDeleteAuthTokenResponse)
+ varargs := []interface{}{ctx, id}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIDeleteOrganization", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPIDeleteAuthTokenWithResponse indicates an expected call of AuthTokenAPIDeleteAuthTokenWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIDeleteAuthTokenWithResponse(ctx, id interface{}) *gomock.Call {
+// UsersAPIDeleteOrganization indicates an expected call of UsersAPIDeleteOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIDeleteOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIDeleteAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIDeleteAuthTokenWithResponse), ctx, id)
+ varargs := append([]interface{}{ctx, id}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIDeleteOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIDeleteOrganization), varargs...)
}
-// AuthTokenAPIGetAuthTokenWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIGetAuthTokenResponse, error) {
+// UsersAPIEditOrganization mocks base method.
+func (m *MockClientInterface) UsersAPIEditOrganization(ctx context.Context, id string, body sdk.UsersAPIEditOrganizationJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPIGetAuthTokenWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.AuthTokenAPIGetAuthTokenResponse)
+ varargs := []interface{}{ctx, id, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIEditOrganization", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPIGetAuthTokenWithResponse indicates an expected call of AuthTokenAPIGetAuthTokenWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIGetAuthTokenWithResponse(ctx, id interface{}) *gomock.Call {
+// UsersAPIEditOrganization indicates an expected call of UsersAPIEditOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIEditOrganization(ctx, id, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIGetAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIGetAuthTokenWithResponse), ctx, id)
+ varargs := append([]interface{}{ctx, id, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIEditOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIEditOrganization), varargs...)
}
-// AuthTokenAPIListAuthTokensWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *sdk.AuthTokenAPIListAuthTokensParams) (*sdk.AuthTokenAPIListAuthTokensResponse, error) {
+// UsersAPIEditOrganizationWithBody mocks base method.
+func (m *MockClientInterface) UsersAPIEditOrganizationWithBody(ctx context.Context, id, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPIListAuthTokensWithResponse", ctx, params)
- ret0, _ := ret[0].(*sdk.AuthTokenAPIListAuthTokensResponse)
+ varargs := []interface{}{ctx, id, contentType, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIEditOrganizationWithBody", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPIListAuthTokensWithResponse indicates an expected call of AuthTokenAPIListAuthTokensWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIListAuthTokensWithResponse(ctx, params interface{}) *gomock.Call {
+// UsersAPIEditOrganizationWithBody indicates an expected call of UsersAPIEditOrganizationWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIEditOrganizationWithBody(ctx, id, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIListAuthTokensWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIListAuthTokensWithResponse), ctx, params)
+ varargs := append([]interface{}{ctx, id, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIEditOrganizationWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIEditOrganizationWithBody), varargs...)
}
-// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) {
+// UsersAPIGetOrganization mocks base method.
+func (m *MockClientInterface) UsersAPIGetOrganization(ctx context.Context, id string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", ctx, id, contentType, body)
- ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse)
+ varargs := []interface{}{ctx, id}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIGetOrganization", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
+// UsersAPIGetOrganization indicates an expected call of UsersAPIGetOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIGetOrganization(ctx, id interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBodyWithResponse), ctx, id, contentType, body)
+ varargs := append([]interface{}{ctx, id}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIGetOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIGetOrganization), varargs...)
}
-// AuthTokenAPIUpdateAuthTokenWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body sdk.AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) {
+// UsersAPIListInvitations mocks base method.
+func (m *MockClientInterface) UsersAPIListInvitations(ctx context.Context, params *sdk.UsersAPIListInvitationsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithResponse", ctx, id, body)
- ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse)
+ varargs := []interface{}{ctx, params}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIListInvitations", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// AuthTokenAPIUpdateAuthTokenWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithResponse(ctx, id, body interface{}) *gomock.Call {
+// UsersAPIListInvitations indicates an expected call of UsersAPIListInvitations.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIListInvitations(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithResponse), ctx, id, body)
+ varargs := append([]interface{}{ctx, params}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListInvitations", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIListInvitations), varargs...)
}
-// ClaimInvitationWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) ClaimInvitationWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.ClaimInvitationResponse, error) {
+// UsersAPIListOrganizationUsers mocks base method.
+func (m *MockClientInterface) UsersAPIListOrganizationUsers(ctx context.Context, organizationId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "ClaimInvitationWithBodyWithResponse", ctx, id, contentType, body)
- ret0, _ := ret[0].(*sdk.ClaimInvitationResponse)
+ varargs := []interface{}{ctx, organizationId}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIListOrganizationUsers", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// ClaimInvitationWithBodyWithResponse indicates an expected call of ClaimInvitationWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
+// UsersAPIListOrganizationUsers indicates an expected call of UsersAPIListOrganizationUsers.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIListOrganizationUsers(ctx, organizationId interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithBodyWithResponse), ctx, id, contentType, body)
+ varargs := append([]interface{}{ctx, organizationId}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListOrganizationUsers", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIListOrganizationUsers), varargs...)
}
-// ClaimInvitationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) ClaimInvitationWithResponse(ctx context.Context, id string, body sdk.ClaimInvitationJSONRequestBody) (*sdk.ClaimInvitationResponse, error) {
+// UsersAPIListOrganizations mocks base method.
+func (m *MockClientInterface) UsersAPIListOrganizations(ctx context.Context, params *sdk.UsersAPIListOrganizationsParams, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "ClaimInvitationWithResponse", ctx, id, body)
- ret0, _ := ret[0].(*sdk.ClaimInvitationResponse)
+ varargs := []interface{}{ctx, params}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIListOrganizations", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// ClaimInvitationWithResponse indicates an expected call of ClaimInvitationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) ClaimInvitationWithResponse(ctx, id, body interface{}) *gomock.Call {
+// UsersAPIListOrganizations indicates an expected call of UsersAPIListOrganizations.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIListOrganizations(ctx, params interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClaimInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ClaimInvitationWithResponse), ctx, id, body)
+ varargs := append([]interface{}{ctx, params}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListOrganizations", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIListOrganizations), varargs...)
}
-// CreateInvitationWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateInvitationResponse, error) {
+// UsersAPIRemoveUserFromOrganization mocks base method.
+func (m *MockClientInterface) UsersAPIRemoveUserFromOrganization(ctx context.Context, organizationId, userId string, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateInvitationWithBodyWithResponse", ctx, contentType, body)
- ret0, _ := ret[0].(*sdk.CreateInvitationResponse)
+ varargs := []interface{}{ctx, organizationId, userId}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIRemoveUserFromOrganization", varargs...)
+ ret0, _ := ret[0].(*http.Response)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIRemoveUserFromOrganization indicates an expected call of UsersAPIRemoveUserFromOrganization.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIRemoveUserFromOrganization(ctx, organizationId, userId interface{}, reqEditors ...interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]interface{}{ctx, organizationId, userId}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIRemoveUserFromOrganization", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIRemoveUserFromOrganization), varargs...)
+}
+
+// UsersAPIUpdateCurrentUserProfile mocks base method.
+func (m *MockClientInterface) UsersAPIUpdateCurrentUserProfile(ctx context.Context, body sdk.UsersAPIUpdateCurrentUserProfileJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+ m.ctrl.T.Helper()
+ varargs := []interface{}{ctx, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIUpdateCurrentUserProfile", varargs...)
+ ret0, _ := ret[0].(*http.Response)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIUpdateCurrentUserProfile indicates an expected call of UsersAPIUpdateCurrentUserProfile.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIUpdateCurrentUserProfile(ctx, body interface{}, reqEditors ...interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ varargs := append([]interface{}{ctx, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateCurrentUserProfile", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIUpdateCurrentUserProfile), varargs...)
+}
+
+// UsersAPIUpdateCurrentUserProfileWithBody mocks base method.
+func (m *MockClientInterface) UsersAPIUpdateCurrentUserProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
+ m.ctrl.T.Helper()
+ varargs := []interface{}{ctx, contentType, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIUpdateCurrentUserProfileWithBody", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateInvitationWithBodyWithResponse indicates an expected call of CreateInvitationWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+// UsersAPIUpdateCurrentUserProfileWithBody indicates an expected call of UsersAPIUpdateCurrentUserProfileWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIUpdateCurrentUserProfileWithBody(ctx, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithBodyWithResponse), ctx, contentType, body)
+ varargs := append([]interface{}{ctx, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateCurrentUserProfileWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIUpdateCurrentUserProfileWithBody), varargs...)
}
-// CreateInvitationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateInvitationWithResponse(ctx context.Context, body sdk.CreateInvitationJSONRequestBody) (*sdk.CreateInvitationResponse, error) {
+// UsersAPIUpdateOrganizationUser mocks base method.
+func (m *MockClientInterface) UsersAPIUpdateOrganizationUser(ctx context.Context, organizationId, userId string, body sdk.UsersAPIUpdateOrganizationUserJSONRequestBody, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateInvitationWithResponse", ctx, body)
- ret0, _ := ret[0].(*sdk.CreateInvitationResponse)
+ varargs := []interface{}{ctx, organizationId, userId, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIUpdateOrganizationUser", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateInvitationWithResponse indicates an expected call of CreateInvitationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateInvitationWithResponse(ctx, body interface{}) *gomock.Call {
+// UsersAPIUpdateOrganizationUser indicates an expected call of UsersAPIUpdateOrganizationUser.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIUpdateOrganizationUser(ctx, organizationId, userId, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateInvitationWithResponse), ctx, body)
+ varargs := append([]interface{}{ctx, organizationId, userId, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUser", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIUpdateOrganizationUser), varargs...)
}
-// CreateOrganizationUserWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.CreateOrganizationUserResponse, error) {
+// UsersAPIUpdateOrganizationUserWithBody mocks base method.
+func (m *MockClientInterface) UsersAPIUpdateOrganizationUserWithBody(ctx context.Context, organizationId, userId, contentType string, body io.Reader, reqEditors ...sdk.RequestEditorFn) (*http.Response, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrganizationUserWithBodyWithResponse", ctx, id, contentType, body)
- ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse)
+ varargs := []interface{}{ctx, organizationId, userId, contentType, body}
+ for _, a := range reqEditors {
+ varargs = append(varargs, a)
+ }
+ ret := m.ctrl.Call(m, "UsersAPIUpdateOrganizationUserWithBody", varargs...)
+ ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateOrganizationUserWithBodyWithResponse indicates an expected call of CreateOrganizationUserWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
+// UsersAPIUpdateOrganizationUserWithBody indicates an expected call of UsersAPIUpdateOrganizationUserWithBody.
+func (mr *MockClientInterfaceMockRecorder) UsersAPIUpdateOrganizationUserWithBody(ctx, organizationId, userId, contentType, body interface{}, reqEditors ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithBodyWithResponse), ctx, id, contentType, body)
+ varargs := append([]interface{}{ctx, organizationId, userId, contentType, body}, reqEditors...)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUserWithBody", reflect.TypeOf((*MockClientInterface)(nil).UsersAPIUpdateOrganizationUserWithBody), varargs...)
}
-// CreateOrganizationUserWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateOrganizationUserWithResponse(ctx context.Context, id string, body sdk.CreateOrganizationUserJSONRequestBody) (*sdk.CreateOrganizationUserResponse, error) {
+// MockClientWithResponsesInterface is a mock of ClientWithResponsesInterface interface.
+type MockClientWithResponsesInterface struct {
+ ctrl *gomock.Controller
+ recorder *MockClientWithResponsesInterfaceMockRecorder
+}
+
+// MockClientWithResponsesInterfaceMockRecorder is the mock recorder for MockClientWithResponsesInterface.
+type MockClientWithResponsesInterfaceMockRecorder struct {
+ mock *MockClientWithResponsesInterface
+}
+
+// NewMockClientWithResponsesInterface creates a new mock instance.
+func NewMockClientWithResponsesInterface(ctrl *gomock.Controller) *MockClientWithResponsesInterface {
+ mock := &MockClientWithResponsesInterface{ctrl: ctrl}
+ mock.recorder = &MockClientWithResponsesInterfaceMockRecorder{mock}
+ return mock
+}
+
+// EXPECT returns an object that allows the caller to indicate expected use.
+func (m *MockClientWithResponsesInterface) EXPECT() *MockClientWithResponsesInterfaceMockRecorder {
+ return m.recorder
+}
+
+// AuthTokenAPICreateAuthTokenWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrganizationUserWithResponse", ctx, id, body)
- ret0, _ := ret[0].(*sdk.CreateOrganizationUserResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", ctx, contentType, body)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateOrganizationUserWithResponse indicates an expected call of CreateOrganizationUserWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationUserWithResponse(ctx, id, body interface{}) *gomock.Call {
+// AuthTokenAPICreateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationUserWithResponse), ctx, id, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithBodyWithResponse), ctx, contentType, body)
}
-// CreateOrganizationWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.CreateOrganizationResponse, error) {
+// AuthTokenAPICreateAuthTokenWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPICreateAuthTokenWithResponse(ctx context.Context, body sdk.AuthTokenAPICreateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPICreateAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrganizationWithBodyWithResponse", ctx, contentType, body)
- ret0, _ := ret[0].(*sdk.CreateOrganizationResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPICreateAuthTokenWithResponse", ctx, body)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPICreateAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateOrganizationWithBodyWithResponse indicates an expected call of CreateOrganizationWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+// AuthTokenAPICreateAuthTokenWithResponse indicates an expected call of AuthTokenAPICreateAuthTokenWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPICreateAuthTokenWithResponse(ctx, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithBodyWithResponse), ctx, contentType, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPICreateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPICreateAuthTokenWithResponse), ctx, body)
}
-// CreateOrganizationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CreateOrganizationWithResponse(ctx context.Context, body sdk.CreateOrganizationJSONRequestBody) (*sdk.CreateOrganizationResponse, error) {
+// AuthTokenAPIDeleteAuthTokenWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPIDeleteAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIDeleteAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CreateOrganizationWithResponse", ctx, body)
- ret0, _ := ret[0].(*sdk.CreateOrganizationResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPIDeleteAuthTokenWithResponse", ctx, id)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPIDeleteAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CreateOrganizationWithResponse indicates an expected call of CreateOrganizationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CreateOrganizationWithResponse(ctx, body interface{}) *gomock.Call {
+// AuthTokenAPIDeleteAuthTokenWithResponse indicates an expected call of AuthTokenAPIDeleteAuthTokenWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIDeleteAuthTokenWithResponse(ctx, id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CreateOrganizationWithResponse), ctx, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIDeleteAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIDeleteAuthTokenWithResponse), ctx, id)
}
-// CurrentUserProfileWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) CurrentUserProfileWithResponse(ctx context.Context) (*sdk.CurrentUserProfileResponse, error) {
+// AuthTokenAPIGetAuthTokenWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPIGetAuthTokenWithResponse(ctx context.Context, id string) (*sdk.AuthTokenAPIGetAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "CurrentUserProfileWithResponse", ctx)
- ret0, _ := ret[0].(*sdk.CurrentUserProfileResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPIGetAuthTokenWithResponse", ctx, id)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPIGetAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// CurrentUserProfileWithResponse indicates an expected call of CurrentUserProfileWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) CurrentUserProfileWithResponse(ctx interface{}) *gomock.Call {
+// AuthTokenAPIGetAuthTokenWithResponse indicates an expected call of AuthTokenAPIGetAuthTokenWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIGetAuthTokenWithResponse(ctx, id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).CurrentUserProfileWithResponse), ctx)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIGetAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIGetAuthTokenWithResponse), ctx, id)
}
-// DeleteInvitationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) DeleteInvitationWithResponse(ctx context.Context, id string) (*sdk.DeleteInvitationResponse, error) {
+// AuthTokenAPIListAuthTokensWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPIListAuthTokensWithResponse(ctx context.Context, params *sdk.AuthTokenAPIListAuthTokensParams) (*sdk.AuthTokenAPIListAuthTokensResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "DeleteInvitationWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.DeleteInvitationResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPIListAuthTokensWithResponse", ctx, params)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPIListAuthTokensResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// DeleteInvitationWithResponse indicates an expected call of DeleteInvitationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteInvitationWithResponse(ctx, id interface{}) *gomock.Call {
+// AuthTokenAPIListAuthTokensWithResponse indicates an expected call of AuthTokenAPIListAuthTokensWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIListAuthTokensWithResponse(ctx, params interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteInvitationWithResponse), ctx, id)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIListAuthTokensWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIListAuthTokensWithResponse), ctx, params)
}
-// DeleteOrganizationUserWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) DeleteOrganizationUserWithResponse(ctx context.Context, id, userId string) (*sdk.DeleteOrganizationUserResponse, error) {
+// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "DeleteOrganizationUserWithResponse", ctx, id, userId)
- ret0, _ := ret[0].(*sdk.DeleteOrganizationUserResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", ctx, id, contentType, body)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// DeleteOrganizationUserWithResponse indicates an expected call of DeleteOrganizationUserWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationUserWithResponse(ctx, id, userId interface{}) *gomock.Call {
+// AuthTokenAPIUpdateAuthTokenWithBodyWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationUserWithResponse), ctx, id, userId)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithBodyWithResponse), ctx, id, contentType, body)
}
-// DeleteOrganizationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) DeleteOrganizationWithResponse(ctx context.Context, id string) (*sdk.DeleteOrganizationResponse, error) {
+// AuthTokenAPIUpdateAuthTokenWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) AuthTokenAPIUpdateAuthTokenWithResponse(ctx context.Context, id string, body sdk.AuthTokenAPIUpdateAuthTokenJSONRequestBody) (*sdk.AuthTokenAPIUpdateAuthTokenResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "DeleteOrganizationWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.DeleteOrganizationResponse)
+ ret := m.ctrl.Call(m, "AuthTokenAPIUpdateAuthTokenWithResponse", ctx, id, body)
+ ret0, _ := ret[0].(*sdk.AuthTokenAPIUpdateAuthTokenResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// DeleteOrganizationWithResponse indicates an expected call of DeleteOrganizationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) DeleteOrganizationWithResponse(ctx, id interface{}) *gomock.Call {
+// AuthTokenAPIUpdateAuthTokenWithResponse indicates an expected call of AuthTokenAPIUpdateAuthTokenWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) AuthTokenAPIUpdateAuthTokenWithResponse(ctx, id, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).DeleteOrganizationWithResponse), ctx, id)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthTokenAPIUpdateAuthTokenWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).AuthTokenAPIUpdateAuthTokenWithResponse), ctx, id, body)
}
// EvictorAPIGetAdvancedConfigWithResponse mocks base method.
@@ -3148,36 +2968,6 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) ExternalClusterAPIUpdate
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExternalClusterAPIUpdateClusterWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ExternalClusterAPIUpdateClusterWithResponse), ctx, clusterId, body)
}
-// GetOrganizationUsersWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) GetOrganizationUsersWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationUsersResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GetOrganizationUsersWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.GetOrganizationUsersResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// GetOrganizationUsersWithResponse indicates an expected call of GetOrganizationUsersWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationUsersWithResponse(ctx, id interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationUsersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationUsersWithResponse), ctx, id)
-}
-
-// GetOrganizationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) GetOrganizationWithResponse(ctx context.Context, id string) (*sdk.GetOrganizationResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GetOrganizationWithResponse", ctx, id)
- ret0, _ := ret[0].(*sdk.GetOrganizationResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// GetOrganizationWithResponse indicates an expected call of GetOrganizationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) GetOrganizationWithResponse(ctx, id interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).GetOrganizationWithResponse), ctx, id)
-}
-
// InventoryAPIAddReservationWithBodyWithResponse mocks base method.
func (m *MockClientWithResponsesInterface) InventoryAPIAddReservationWithBodyWithResponse(ctx context.Context, organizationId, contentType string, body io.Reader) (*sdk.InventoryAPIAddReservationResponse, error) {
m.ctrl.T.Helper()
@@ -3313,36 +3103,6 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) InventoryAPISyncClusterR
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InventoryAPISyncClusterResourcesWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).InventoryAPISyncClusterResourcesWithResponse), ctx, organizationId, clusterId)
}
-// ListInvitationsWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) ListInvitationsWithResponse(ctx context.Context, params *sdk.ListInvitationsParams) (*sdk.ListInvitationsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "ListInvitationsWithResponse", ctx, params)
- ret0, _ := ret[0].(*sdk.ListInvitationsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ListInvitationsWithResponse indicates an expected call of ListInvitationsWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) ListInvitationsWithResponse(ctx, params interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInvitationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ListInvitationsWithResponse), ctx, params)
-}
-
-// ListOrganizationsWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) ListOrganizationsWithResponse(ctx context.Context) (*sdk.ListOrganizationsResponse, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "ListOrganizationsWithResponse", ctx)
- ret0, _ := ret[0].(*sdk.ListOrganizationsResponse)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// ListOrganizationsWithResponse indicates an expected call of ListOrganizationsWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) ListOrganizationsWithResponse(ctx interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOrganizationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ListOrganizationsWithResponse), ctx)
-}
-
// NodeConfigurationAPICreateConfigurationWithBodyWithResponse mocks base method.
func (m *MockClientWithResponsesInterface) NodeConfigurationAPICreateConfigurationWithBodyWithResponse(ctx context.Context, clusterId, contentType string, body io.Reader) (*sdk.NodeConfigurationAPICreateConfigurationResponse, error) {
m.ctrl.T.Helper()
@@ -4033,94 +3793,334 @@ func (mr *MockClientWithResponsesInterfaceMockRecorder) ScheduledRebalancingAPIU
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).ScheduledRebalancingAPIUpdateRebalancingScheduleWithResponse), ctx, params, body)
}
-// UpdateCurrentUserProfileWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.UpdateCurrentUserProfileResponse, error) {
+// UsersAPIAddUserToOrganizationWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx context.Context, organizationId, contentType string, body io.Reader) (*sdk.UsersAPIAddUserToOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIAddUserToOrganizationWithBodyWithResponse", ctx, organizationId, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIAddUserToOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIAddUserToOrganizationWithBodyWithResponse indicates an expected call of UsersAPIAddUserToOrganizationWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIAddUserToOrganizationWithBodyWithResponse(ctx, organizationId, contentType, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIAddUserToOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIAddUserToOrganizationWithBodyWithResponse), ctx, organizationId, contentType, body)
+}
+
+// UsersAPIAddUserToOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIAddUserToOrganizationWithResponse(ctx context.Context, organizationId string, body sdk.UsersAPIAddUserToOrganizationJSONRequestBody) (*sdk.UsersAPIAddUserToOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIAddUserToOrganizationWithResponse", ctx, organizationId, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIAddUserToOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIAddUserToOrganizationWithResponse indicates an expected call of UsersAPIAddUserToOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIAddUserToOrganizationWithResponse(ctx, organizationId, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIAddUserToOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIAddUserToOrganizationWithResponse), ctx, organizationId, body)
+}
+
+// UsersAPIClaimInvitationWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIClaimInvitationWithBodyWithResponse(ctx context.Context, invitationId, contentType string, body io.Reader) (*sdk.UsersAPIClaimInvitationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIClaimInvitationWithBodyWithResponse", ctx, invitationId, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIClaimInvitationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIClaimInvitationWithBodyWithResponse indicates an expected call of UsersAPIClaimInvitationWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIClaimInvitationWithBodyWithResponse(ctx, invitationId, contentType, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIClaimInvitationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIClaimInvitationWithBodyWithResponse), ctx, invitationId, contentType, body)
+}
+
+// UsersAPIClaimInvitationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIClaimInvitationWithResponse(ctx context.Context, invitationId string, body sdk.UsersAPIClaimInvitationJSONRequestBody) (*sdk.UsersAPIClaimInvitationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIClaimInvitationWithResponse", ctx, invitationId, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIClaimInvitationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIClaimInvitationWithResponse indicates an expected call of UsersAPIClaimInvitationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIClaimInvitationWithResponse(ctx, invitationId, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIClaimInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIClaimInvitationWithResponse), ctx, invitationId, body)
+}
+
+// UsersAPICreateInvitationsWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPICreateInvitationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.UsersAPICreateInvitationsResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPICreateInvitationsWithBodyWithResponse", ctx, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPICreateInvitationsResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPICreateInvitationsWithBodyWithResponse indicates an expected call of UsersAPICreateInvitationsWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPICreateInvitationsWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateInvitationsWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPICreateInvitationsWithBodyWithResponse), ctx, contentType, body)
+}
+
+// UsersAPICreateInvitationsWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPICreateInvitationsWithResponse(ctx context.Context, body sdk.UsersAPICreateInvitationsJSONRequestBody) (*sdk.UsersAPICreateInvitationsResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPICreateInvitationsWithResponse", ctx, body)
+ ret0, _ := ret[0].(*sdk.UsersAPICreateInvitationsResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPICreateInvitationsWithResponse indicates an expected call of UsersAPICreateInvitationsWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPICreateInvitationsWithResponse(ctx, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateInvitationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPICreateInvitationsWithResponse), ctx, body)
+}
+
+// UsersAPICreateOrganizationWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPICreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.UsersAPICreateOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPICreateOrganizationWithBodyWithResponse", ctx, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPICreateOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPICreateOrganizationWithBodyWithResponse indicates an expected call of UsersAPICreateOrganizationWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPICreateOrganizationWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPICreateOrganizationWithBodyWithResponse), ctx, contentType, body)
+}
+
+// UsersAPICreateOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPICreateOrganizationWithResponse(ctx context.Context, body sdk.UsersAPICreateOrganizationJSONRequestBody) (*sdk.UsersAPICreateOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPICreateOrganizationWithResponse", ctx, body)
+ ret0, _ := ret[0].(*sdk.UsersAPICreateOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPICreateOrganizationWithResponse indicates an expected call of UsersAPICreateOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPICreateOrganizationWithResponse(ctx, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICreateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPICreateOrganizationWithResponse), ctx, body)
+}
+
+// UsersAPICurrentUserProfileWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPICurrentUserProfileWithResponse(ctx context.Context) (*sdk.UsersAPICurrentUserProfileResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPICurrentUserProfileWithResponse", ctx)
+ ret0, _ := ret[0].(*sdk.UsersAPICurrentUserProfileResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPICurrentUserProfileWithResponse indicates an expected call of UsersAPICurrentUserProfileWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPICurrentUserProfileWithResponse(ctx interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPICurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPICurrentUserProfileWithResponse), ctx)
+}
+
+// UsersAPIDeleteInvitationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIDeleteInvitationWithResponse(ctx context.Context, id string) (*sdk.UsersAPIDeleteInvitationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIDeleteInvitationWithResponse", ctx, id)
+ ret0, _ := ret[0].(*sdk.UsersAPIDeleteInvitationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIDeleteInvitationWithResponse indicates an expected call of UsersAPIDeleteInvitationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIDeleteInvitationWithResponse(ctx, id interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIDeleteInvitationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIDeleteInvitationWithResponse), ctx, id)
+}
+
+// UsersAPIDeleteOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIDeleteOrganizationWithResponse(ctx context.Context, id string) (*sdk.UsersAPIDeleteOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIDeleteOrganizationWithResponse", ctx, id)
+ ret0, _ := ret[0].(*sdk.UsersAPIDeleteOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIDeleteOrganizationWithResponse indicates an expected call of UsersAPIDeleteOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIDeleteOrganizationWithResponse(ctx, id interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIDeleteOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIDeleteOrganizationWithResponse), ctx, id)
+}
+
+// UsersAPIEditOrganizationWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIEditOrganizationWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.UsersAPIEditOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIEditOrganizationWithBodyWithResponse", ctx, id, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIEditOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIEditOrganizationWithBodyWithResponse indicates an expected call of UsersAPIEditOrganizationWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIEditOrganizationWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIEditOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIEditOrganizationWithBodyWithResponse), ctx, id, contentType, body)
+}
+
+// UsersAPIEditOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIEditOrganizationWithResponse(ctx context.Context, id string, body sdk.UsersAPIEditOrganizationJSONRequestBody) (*sdk.UsersAPIEditOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIEditOrganizationWithResponse", ctx, id, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIEditOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIEditOrganizationWithResponse indicates an expected call of UsersAPIEditOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIEditOrganizationWithResponse(ctx, id, body interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIEditOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIEditOrganizationWithResponse), ctx, id, body)
+}
+
+// UsersAPIGetOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIGetOrganizationWithResponse(ctx context.Context, id string) (*sdk.UsersAPIGetOrganizationResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIGetOrganizationWithResponse", ctx, id)
+ ret0, _ := ret[0].(*sdk.UsersAPIGetOrganizationResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIGetOrganizationWithResponse indicates an expected call of UsersAPIGetOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIGetOrganizationWithResponse(ctx, id interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIGetOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIGetOrganizationWithResponse), ctx, id)
+}
+
+// UsersAPIListInvitationsWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIListInvitationsWithResponse(ctx context.Context, params *sdk.UsersAPIListInvitationsParams) (*sdk.UsersAPIListInvitationsResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIListInvitationsWithResponse", ctx, params)
+ ret0, _ := ret[0].(*sdk.UsersAPIListInvitationsResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIListInvitationsWithResponse indicates an expected call of UsersAPIListInvitationsWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIListInvitationsWithResponse(ctx, params interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListInvitationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIListInvitationsWithResponse), ctx, params)
+}
+
+// UsersAPIListOrganizationUsersWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIListOrganizationUsersWithResponse(ctx context.Context, organizationId string) (*sdk.UsersAPIListOrganizationUsersResponse, error) {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "UsersAPIListOrganizationUsersWithResponse", ctx, organizationId)
+ ret0, _ := ret[0].(*sdk.UsersAPIListOrganizationUsersResponse)
+ ret1, _ := ret[1].(error)
+ return ret0, ret1
+}
+
+// UsersAPIListOrganizationUsersWithResponse indicates an expected call of UsersAPIListOrganizationUsersWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIListOrganizationUsersWithResponse(ctx, organizationId interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListOrganizationUsersWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIListOrganizationUsersWithResponse), ctx, organizationId)
+}
+
+// UsersAPIListOrganizationsWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIListOrganizationsWithResponse(ctx context.Context, params *sdk.UsersAPIListOrganizationsParams) (*sdk.UsersAPIListOrganizationsResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateCurrentUserProfileWithBodyWithResponse", ctx, contentType, body)
- ret0, _ := ret[0].(*sdk.UpdateCurrentUserProfileResponse)
+ ret := m.ctrl.Call(m, "UsersAPIListOrganizationsWithResponse", ctx, params)
+ ret0, _ := ret[0].(*sdk.UsersAPIListOrganizationsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateCurrentUserProfileWithBodyWithResponse indicates an expected call of UpdateCurrentUserProfileWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateCurrentUserProfileWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
+// UsersAPIListOrganizationsWithResponse indicates an expected call of UsersAPIListOrganizationsWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIListOrganizationsWithResponse(ctx, params interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfileWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateCurrentUserProfileWithBodyWithResponse), ctx, contentType, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIListOrganizationsWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIListOrganizationsWithResponse), ctx, params)
}
-// UpdateCurrentUserProfileWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateCurrentUserProfileWithResponse(ctx context.Context, body sdk.UpdateCurrentUserProfileJSONRequestBody) (*sdk.UpdateCurrentUserProfileResponse, error) {
+// UsersAPIRemoveUserFromOrganizationWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIRemoveUserFromOrganizationWithResponse(ctx context.Context, organizationId, userId string) (*sdk.UsersAPIRemoveUserFromOrganizationResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateCurrentUserProfileWithResponse", ctx, body)
- ret0, _ := ret[0].(*sdk.UpdateCurrentUserProfileResponse)
+ ret := m.ctrl.Call(m, "UsersAPIRemoveUserFromOrganizationWithResponse", ctx, organizationId, userId)
+ ret0, _ := ret[0].(*sdk.UsersAPIRemoveUserFromOrganizationResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateCurrentUserProfileWithResponse indicates an expected call of UpdateCurrentUserProfileWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateCurrentUserProfileWithResponse(ctx, body interface{}) *gomock.Call {
+// UsersAPIRemoveUserFromOrganizationWithResponse indicates an expected call of UsersAPIRemoveUserFromOrganizationWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIRemoveUserFromOrganizationWithResponse(ctx, organizationId, userId interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateCurrentUserProfileWithResponse), ctx, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIRemoveUserFromOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIRemoveUserFromOrganizationWithResponse), ctx, organizationId, userId)
}
-// UpdateOrganizationUserWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateOrganizationUserWithBodyWithResponse(ctx context.Context, id, userId, contentType string, body io.Reader) (*sdk.UpdateOrganizationUserResponse, error) {
+// UsersAPIUpdateCurrentUserProfileWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*sdk.UsersAPIUpdateCurrentUserProfileResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateOrganizationUserWithBodyWithResponse", ctx, id, userId, contentType, body)
- ret0, _ := ret[0].(*sdk.UpdateOrganizationUserResponse)
+ ret := m.ctrl.Call(m, "UsersAPIUpdateCurrentUserProfileWithBodyWithResponse", ctx, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIUpdateCurrentUserProfileResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationUserWithBodyWithResponse indicates an expected call of UpdateOrganizationUserWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateOrganizationUserWithBodyWithResponse(ctx, id, userId, contentType, body interface{}) *gomock.Call {
+// UsersAPIUpdateCurrentUserProfileWithBodyWithResponse indicates an expected call of UsersAPIUpdateCurrentUserProfileWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIUpdateCurrentUserProfileWithBodyWithResponse(ctx, contentType, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUserWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateOrganizationUserWithBodyWithResponse), ctx, id, userId, contentType, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateCurrentUserProfileWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIUpdateCurrentUserProfileWithBodyWithResponse), ctx, contentType, body)
}
-// UpdateOrganizationUserWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateOrganizationUserWithResponse(ctx context.Context, id, userId string, body sdk.UpdateOrganizationUserJSONRequestBody) (*sdk.UpdateOrganizationUserResponse, error) {
+// UsersAPIUpdateCurrentUserProfileWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIUpdateCurrentUserProfileWithResponse(ctx context.Context, body sdk.UsersAPIUpdateCurrentUserProfileJSONRequestBody) (*sdk.UsersAPIUpdateCurrentUserProfileResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateOrganizationUserWithResponse", ctx, id, userId, body)
- ret0, _ := ret[0].(*sdk.UpdateOrganizationUserResponse)
+ ret := m.ctrl.Call(m, "UsersAPIUpdateCurrentUserProfileWithResponse", ctx, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIUpdateCurrentUserProfileResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationUserWithResponse indicates an expected call of UpdateOrganizationUserWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateOrganizationUserWithResponse(ctx, id, userId, body interface{}) *gomock.Call {
+// UsersAPIUpdateCurrentUserProfileWithResponse indicates an expected call of UsersAPIUpdateCurrentUserProfileWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIUpdateCurrentUserProfileWithResponse(ctx, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateOrganizationUserWithResponse), ctx, id, userId, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateCurrentUserProfileWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIUpdateCurrentUserProfileWithResponse), ctx, body)
}
-// UpdateOrganizationWithBodyWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateOrganizationWithBodyWithResponse(ctx context.Context, id, contentType string, body io.Reader) (*sdk.UpdateOrganizationResponse, error) {
+// UsersAPIUpdateOrganizationUserWithBodyWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx context.Context, organizationId, userId, contentType string, body io.Reader) (*sdk.UsersAPIUpdateOrganizationUserResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateOrganizationWithBodyWithResponse", ctx, id, contentType, body)
- ret0, _ := ret[0].(*sdk.UpdateOrganizationResponse)
+ ret := m.ctrl.Call(m, "UsersAPIUpdateOrganizationUserWithBodyWithResponse", ctx, organizationId, userId, contentType, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIUpdateOrganizationUserResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationWithBodyWithResponse indicates an expected call of UpdateOrganizationWithBodyWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateOrganizationWithBodyWithResponse(ctx, id, contentType, body interface{}) *gomock.Call {
+// UsersAPIUpdateOrganizationUserWithBodyWithResponse indicates an expected call of UsersAPIUpdateOrganizationUserWithBodyWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIUpdateOrganizationUserWithBodyWithResponse(ctx, organizationId, userId, contentType, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateOrganizationWithBodyWithResponse), ctx, id, contentType, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUserWithBodyWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIUpdateOrganizationUserWithBodyWithResponse), ctx, organizationId, userId, contentType, body)
}
-// UpdateOrganizationWithResponse mocks base method.
-func (m *MockClientWithResponsesInterface) UpdateOrganizationWithResponse(ctx context.Context, id string, body sdk.UpdateOrganizationJSONRequestBody) (*sdk.UpdateOrganizationResponse, error) {
+// UsersAPIUpdateOrganizationUserWithResponse mocks base method.
+func (m *MockClientWithResponsesInterface) UsersAPIUpdateOrganizationUserWithResponse(ctx context.Context, organizationId, userId string, body sdk.UsersAPIUpdateOrganizationUserJSONRequestBody) (*sdk.UsersAPIUpdateOrganizationUserResponse, error) {
m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "UpdateOrganizationWithResponse", ctx, id, body)
- ret0, _ := ret[0].(*sdk.UpdateOrganizationResponse)
+ ret := m.ctrl.Call(m, "UsersAPIUpdateOrganizationUserWithResponse", ctx, organizationId, userId, body)
+ ret0, _ := ret[0].(*sdk.UsersAPIUpdateOrganizationUserResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
-// UpdateOrganizationWithResponse indicates an expected call of UpdateOrganizationWithResponse.
-func (mr *MockClientWithResponsesInterfaceMockRecorder) UpdateOrganizationWithResponse(ctx, id, body interface{}) *gomock.Call {
+// UsersAPIUpdateOrganizationUserWithResponse indicates an expected call of UsersAPIUpdateOrganizationUserWithResponse.
+func (mr *MockClientWithResponsesInterfaceMockRecorder) UsersAPIUpdateOrganizationUserWithResponse(ctx, organizationId, userId, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOrganizationWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UpdateOrganizationWithResponse), ctx, id, body)
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UsersAPIUpdateOrganizationUserWithResponse", reflect.TypeOf((*MockClientWithResponsesInterface)(nil).UsersAPIUpdateOrganizationUserWithResponse), ctx, organizationId, userId, body)
}
// MockResponse is a mock of Response interface.