Skip to content

Commit

Permalink
new type SAMLIdentityProviderGroupMappingsConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdJeremia committed Aug 7, 2024
1 parent bac51d1 commit 6794356
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 2 additions & 9 deletions internal/provider/resource_saml_group_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,9 @@ import (
)

// ReadSAMLGroupMappings represents the structure of a SAML group mappings read operation.
// It includes a SAMLGroupMappings object.
// It includes a SAMLIdentityProviderGroupMappingsConnection object.
type ReadSAMLGroupMappings struct {
SAMLGroupMappings SAMLGroupMappings `json:"samlIdentityProviderGroupMappings"`
}

// SAMLGroupMappings represents the structure of SAML group mappings.
// It includes PageInfo and a list of Nodes.
type SAMLGroupMappings struct {
PageInfo wiz.PageInfo `json:"pageInfo"`
Nodes []*wiz.SAMLGroupMapping `json:"nodes,omitempty"`
SAMLGroupMappings wiz.SAMLIdentityProviderGroupMappingsConnection `json:"samlIdentityProviderGroupMappings"`
}

// SAMLGroupMappingsImport represents the structure of a SAML group mapping import.
Expand Down
6 changes: 6 additions & 0 deletions internal/wiz/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ type ModifySAMLGroupMappingPatch struct {
Delete *[]string `json:"delete,omitempty"`
}

// SAMLIdentityProviderGroupMappingsConnection struct
type SAMLIdentityProviderGroupMappingsConnection struct {
PageInfo PageInfo `json:"pageInfo"`
Nodes []*SAMLGroupMapping `json:"nodes,omitempty"`
}

// SAMLIdentityProvider struct -- updates
type SAMLIdentityProvider struct {
AllowManualRoleOverride *bool `json:"allowManualRoleOverride"`
Expand Down

0 comments on commit 6794356

Please sign in to comment.