Skip to content

Commit

Permalink
feat(codegen): generate code based on latest API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nr-developer-toolkit committed Sep 25, 2024
1 parent 73f3f66 commit 1eb0047
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 389 deletions.
18 changes: 11 additions & 7 deletions pkg/accountmanagement/accountmanagement_api.go

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

84 changes: 0 additions & 84 deletions pkg/usermanagement/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,6 @@ type OrganizationAuthenticationDomainCollection struct {
NextCursor string `json:"nextCursor,omitempty"`
}

// UserManagementAddUsersToGroupsPayload - Autogenerated return type of AddUsersToGroups.
type UserManagementAddUsersToGroupsPayload struct {
// The group(s) updated.
Groups []UserManagementGroup `json:"groups"`
}

// UserManagementAuthenticationDomain - An "authentication domain" is a grouping of New Relic users governed by the same user management settings, like how they're provisioned (added and updated), how they're authenticated (logged in), session settings, and how user upgrades are managed.
type UserManagementAuthenticationDomain struct {
// container for groups enabling cursor based pagination
Expand Down Expand Up @@ -305,36 +299,6 @@ type UserManagementCreatedUser struct {
Type UserManagementUserType `json:"type"`
}

// UserManagementDeleteGroup - The input object representing the group to remove
type UserManagementDeleteGroup struct {
// The ID of the group being removed.
ID string `json:"id"`
}

// UserManagementDeleteGroupPayload - Autogenerated return type of DeleteGroup.
type UserManagementDeleteGroupPayload struct {
// The group that was deleted
Group UserManagementGroup `json:"group,omitempty"`
}

// UserManagementDeleteUser - The input object representing the user being deleted
type UserManagementDeleteUser struct {
// The ID of the user to be deleted
ID string `json:"id"`
}

// UserManagementDeleteUserPayload - Autogenerated return type of DeleteUser.
type UserManagementDeleteUserPayload struct {
// The user that was deleted
DeletedUser UserManagementDeletedUser `json:"deletedUser,omitempty"`
}

// UserManagementDeletedUser - A user of New Relic to be deleted.
type UserManagementDeletedUser struct {
// The id of the deleted user
ID string `json:"id"`
}

// UserManagementDisplayNameInput - Available filtering types for group display names
type UserManagementDisplayNameInput struct {
// Part of a display name
Expand Down Expand Up @@ -452,52 +416,12 @@ type UserManagementPendingUpgradeRequestInput struct {
Exists bool `json:"exists"`
}

// UserManagementRemoveUsersFromGroupsPayload - Autogenerated return type of RemoveUsersFromGroups.
type UserManagementRemoveUsersFromGroupsPayload struct {
// The group(s) updated.
Groups []UserManagementGroup `json:"groups"`
}

// UserManagementTypeInput - Available filtering types for user type
type UserManagementTypeInput struct {
// A user type
Eq UserManagementTypeEnum `json:"eq"`
}

// UserManagementUpdateGroup - The input object representing the group being updated
type UserManagementUpdateGroup struct {
// The name of the group
DisplayName string `json:"displayName"`
// The id of the group to update
ID string `json:"id"`
}

// UserManagementUpdateGroupPayload - Autogenerated return type of UpdateGroup.
type UserManagementUpdateGroupPayload struct {
// The group that was updated
Group UserManagementGroup `json:"group,omitempty"`
}

// UserManagementUpdateUser - The input object representing the user being updated
type UserManagementUpdateUser struct {
// The new email address to be updated on the user
Email string `json:"email,omitempty"`
// The ID of the user to be updated
ID string `json:"id"`
// The full name of the user to be updated
Name string `json:"name,omitempty"`
// The user time zone to be updated, in IANA zoneinfo format, e.g. 'America/Chicago'
TimeZone string `json:"timeZone,omitempty"`
// The new user type to be updated on the user
UserType UserManagementRequestedTierName `json:"userType,omitempty"`
}

// UserManagementUpdateUserPayload - Autogenerated return type of UpdateUser.
type UserManagementUpdateUserPayload struct {
// The user that was updated
User UserManagementUser `json:"user,omitempty"`
}

// UserManagementUser - A user of New Relic scoped to an authentication domain.
type UserManagementUser struct {
// Email address of the user.
Expand Down Expand Up @@ -586,14 +510,6 @@ type UserManagementUsers struct {
Users []UserManagementUser `json:"users"`
}

// UserManagementUsersGroupsInput - The input object representing the group(s) and user(s) to update.
type UserManagementUsersGroupsInput struct {
// The id of the group(s) to add the user(s) to. Max: 10
GroupIds []string `json:"groupIds"`
// The id of the user(s) to be added to the group(s). Max: 50
UserIDs []string `json:"userIds"`
}

type authenticationDomainsResponse struct {
Actor Actor `json:"actor"`
}
Loading

0 comments on commit 1eb0047

Please sign in to comment.