Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for legacy_org_id when creating/fetching orgs #27

Merged
merged 4 commits into from
Jun 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/models/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type OrgMetadata struct {
Metadata map[string]interface{} `json:"metadata"`
IsSamlConfigured bool `json:"is_saml_configured"`
CustomRoleMappingName *string `json:"custom_role_mapping_name"`
LegacyOrgId string `json:"legacy_org_id"`
}

// OrgList is a paged list of organizations. The actual fetched organizations are in the Orgs field, and the
Expand Down Expand Up @@ -84,6 +85,7 @@ type CreateOrgV2Params struct {
MembersMustHaveMatchingDomain bool `json:"members_must_have_matching_domain,omitempty"`
MaxUsers int `json:"max_users,omitempty"`
CustomRoleMappingName *string `json:"custom_role_mapping_name,omitempty"`
LegacyOrgId string `json:"legacy_org_id,omitempty"`
mrmauer marked this conversation as resolved.
Show resolved Hide resolved
}

// CreateOrgV2Response is the information returned when creating an organization.
Expand Down
Loading