diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 00457bc9..6e87846c 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "C4D764354C09F3368D481B03828B3989456CB5BFA95D3617D50FB8EDB5D482B43E04E026D0B7C8380C38BD215C9D5A45E08B8EF00FDD2A7A66EF8D2449ECFF03", + "descriptionHash": "CC651E4ACEA89E310D94E680A9C5DA642585F6E64A62690EF521FEC32645CFF020BE50EDD35878C18D66BD61A8E735804C69FA02094A6F459E02BBFC1AF46C6E", "descriptionLocation": "../../../../schemas/downloaded.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/pkg/github/models/team_role_assignment.go b/pkg/github/models/team_role_assignment.go new file mode 100644 index 00000000..e51c85fc --- /dev/null +++ b/pkg/github/models/team_role_assignment.go @@ -0,0 +1,458 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// TeamRoleAssignment the Relationship a Team has with a role. +type TeamRoleAssignment struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The description property + description *string + // The html_url property + html_url *string + // The id property + id *int32 + // The members_url property + members_url *string + // The name property + name *string + // The node_id property + node_id *string + // The notification_setting property + notification_setting *string + // Groups of organization members that gives permissions on specified repositories. + parent NullableTeamSimpleable + // The permission property + permission *string + // The permissions property + permissions TeamRoleAssignment_permissionsable + // The privacy property + privacy *string + // The repositories_url property + repositories_url *string + // The slug property + slug *string + // The url property + url *string +} +// NewTeamRoleAssignment instantiates a new TeamRoleAssignment and sets the default values. +func NewTeamRoleAssignment()(*TeamRoleAssignment) { + m := &TeamRoleAssignment{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamRoleAssignmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamRoleAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamRoleAssignment(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamRoleAssignment) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetDescription gets the description property value. The description property +// returns a *string when successful +func (m *TeamRoleAssignment) GetDescription()(*string) { + return m.description +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamRoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHtmlUrl(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["members_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetMembersUrl(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNodeId(val) + } + return nil + } + res["notification_setting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNotificationSetting(val) + } + return nil + } + res["parent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateNullableTeamSimpleFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetParent(val.(NullableTeamSimpleable)) + } + return nil + } + res["permission"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPermission(val) + } + return nil + } + res["permissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateTeamRoleAssignment_permissionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPermissions(val.(TeamRoleAssignment_permissionsable)) + } + return nil + } + res["privacy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivacy(val) + } + return nil + } + res["repositories_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRepositoriesUrl(val) + } + return nil + } + res["slug"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSlug(val) + } + return nil + } + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetHtmlUrl gets the html_url property value. The html_url property +// returns a *string when successful +func (m *TeamRoleAssignment) GetHtmlUrl()(*string) { + return m.html_url +} +// GetId gets the id property value. The id property +// returns a *int32 when successful +func (m *TeamRoleAssignment) GetId()(*int32) { + return m.id +} +// GetMembersUrl gets the members_url property value. The members_url property +// returns a *string when successful +func (m *TeamRoleAssignment) GetMembersUrl()(*string) { + return m.members_url +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *TeamRoleAssignment) GetName()(*string) { + return m.name +} +// GetNodeId gets the node_id property value. The node_id property +// returns a *string when successful +func (m *TeamRoleAssignment) GetNodeId()(*string) { + return m.node_id +} +// GetNotificationSetting gets the notification_setting property value. The notification_setting property +// returns a *string when successful +func (m *TeamRoleAssignment) GetNotificationSetting()(*string) { + return m.notification_setting +} +// GetParent gets the parent property value. Groups of organization members that gives permissions on specified repositories. +// returns a NullableTeamSimpleable when successful +func (m *TeamRoleAssignment) GetParent()(NullableTeamSimpleable) { + return m.parent +} +// GetPermission gets the permission property value. The permission property +// returns a *string when successful +func (m *TeamRoleAssignment) GetPermission()(*string) { + return m.permission +} +// GetPermissions gets the permissions property value. The permissions property +// returns a TeamRoleAssignment_permissionsable when successful +func (m *TeamRoleAssignment) GetPermissions()(TeamRoleAssignment_permissionsable) { + return m.permissions +} +// GetPrivacy gets the privacy property value. The privacy property +// returns a *string when successful +func (m *TeamRoleAssignment) GetPrivacy()(*string) { + return m.privacy +} +// GetRepositoriesUrl gets the repositories_url property value. The repositories_url property +// returns a *string when successful +func (m *TeamRoleAssignment) GetRepositoriesUrl()(*string) { + return m.repositories_url +} +// GetSlug gets the slug property value. The slug property +// returns a *string when successful +func (m *TeamRoleAssignment) GetSlug()(*string) { + return m.slug +} +// GetUrl gets the url property value. The url property +// returns a *string when successful +func (m *TeamRoleAssignment) GetUrl()(*string) { + return m.url +} +// Serialize serializes information the current object +func (m *TeamRoleAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("members_url", m.GetMembersUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("node_id", m.GetNodeId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("notification_setting", m.GetNotificationSetting()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("parent", m.GetParent()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("permission", m.GetPermission()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("permissions", m.GetPermissions()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("privacy", m.GetPrivacy()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("repositories_url", m.GetRepositoriesUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("slug", m.GetSlug()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("url", m.GetUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamRoleAssignment) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetDescription sets the description property value. The description property +func (m *TeamRoleAssignment) SetDescription(value *string)() { + m.description = value +} +// SetHtmlUrl sets the html_url property value. The html_url property +func (m *TeamRoleAssignment) SetHtmlUrl(value *string)() { + m.html_url = value +} +// SetId sets the id property value. The id property +func (m *TeamRoleAssignment) SetId(value *int32)() { + m.id = value +} +// SetMembersUrl sets the members_url property value. The members_url property +func (m *TeamRoleAssignment) SetMembersUrl(value *string)() { + m.members_url = value +} +// SetName sets the name property value. The name property +func (m *TeamRoleAssignment) SetName(value *string)() { + m.name = value +} +// SetNodeId sets the node_id property value. The node_id property +func (m *TeamRoleAssignment) SetNodeId(value *string)() { + m.node_id = value +} +// SetNotificationSetting sets the notification_setting property value. The notification_setting property +func (m *TeamRoleAssignment) SetNotificationSetting(value *string)() { + m.notification_setting = value +} +// SetParent sets the parent property value. Groups of organization members that gives permissions on specified repositories. +func (m *TeamRoleAssignment) SetParent(value NullableTeamSimpleable)() { + m.parent = value +} +// SetPermission sets the permission property value. The permission property +func (m *TeamRoleAssignment) SetPermission(value *string)() { + m.permission = value +} +// SetPermissions sets the permissions property value. The permissions property +func (m *TeamRoleAssignment) SetPermissions(value TeamRoleAssignment_permissionsable)() { + m.permissions = value +} +// SetPrivacy sets the privacy property value. The privacy property +func (m *TeamRoleAssignment) SetPrivacy(value *string)() { + m.privacy = value +} +// SetRepositoriesUrl sets the repositories_url property value. The repositories_url property +func (m *TeamRoleAssignment) SetRepositoriesUrl(value *string)() { + m.repositories_url = value +} +// SetSlug sets the slug property value. The slug property +func (m *TeamRoleAssignment) SetSlug(value *string)() { + m.slug = value +} +// SetUrl sets the url property value. The url property +func (m *TeamRoleAssignment) SetUrl(value *string)() { + m.url = value +} +type TeamRoleAssignmentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDescription()(*string) + GetHtmlUrl()(*string) + GetId()(*int32) + GetMembersUrl()(*string) + GetName()(*string) + GetNodeId()(*string) + GetNotificationSetting()(*string) + GetParent()(NullableTeamSimpleable) + GetPermission()(*string) + GetPermissions()(TeamRoleAssignment_permissionsable) + GetPrivacy()(*string) + GetRepositoriesUrl()(*string) + GetSlug()(*string) + GetUrl()(*string) + SetDescription(value *string)() + SetHtmlUrl(value *string)() + SetId(value *int32)() + SetMembersUrl(value *string)() + SetName(value *string)() + SetNodeId(value *string)() + SetNotificationSetting(value *string)() + SetParent(value NullableTeamSimpleable)() + SetPermission(value *string)() + SetPermissions(value TeamRoleAssignment_permissionsable)() + SetPrivacy(value *string)() + SetRepositoriesUrl(value *string)() + SetSlug(value *string)() + SetUrl(value *string)() +} diff --git a/pkg/github/models/team_role_assignment_permissions.go b/pkg/github/models/team_role_assignment_permissions.go new file mode 100644 index 00000000..295a8588 --- /dev/null +++ b/pkg/github/models/team_role_assignment_permissions.go @@ -0,0 +1,196 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type TeamRoleAssignment_permissions struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The admin property + admin *bool + // The maintain property + maintain *bool + // The pull property + pull *bool + // The push property + push *bool + // The triage property + triage *bool +} +// NewTeamRoleAssignment_permissions instantiates a new TeamRoleAssignment_permissions and sets the default values. +func NewTeamRoleAssignment_permissions()(*TeamRoleAssignment_permissions) { + m := &TeamRoleAssignment_permissions{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTeamRoleAssignment_permissionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateTeamRoleAssignment_permissionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTeamRoleAssignment_permissions(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *TeamRoleAssignment_permissions) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAdmin gets the admin property value. The admin property +// returns a *bool when successful +func (m *TeamRoleAssignment_permissions) GetAdmin()(*bool) { + return m.admin +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *TeamRoleAssignment_permissions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAdmin(val) + } + return nil + } + res["maintain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetMaintain(val) + } + return nil + } + res["pull"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPull(val) + } + return nil + } + res["push"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetPush(val) + } + return nil + } + res["triage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetTriage(val) + } + return nil + } + return res +} +// GetMaintain gets the maintain property value. The maintain property +// returns a *bool when successful +func (m *TeamRoleAssignment_permissions) GetMaintain()(*bool) { + return m.maintain +} +// GetPull gets the pull property value. The pull property +// returns a *bool when successful +func (m *TeamRoleAssignment_permissions) GetPull()(*bool) { + return m.pull +} +// GetPush gets the push property value. The push property +// returns a *bool when successful +func (m *TeamRoleAssignment_permissions) GetPush()(*bool) { + return m.push +} +// GetTriage gets the triage property value. The triage property +// returns a *bool when successful +func (m *TeamRoleAssignment_permissions) GetTriage()(*bool) { + return m.triage +} +// Serialize serializes information the current object +func (m *TeamRoleAssignment_permissions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("admin", m.GetAdmin()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("maintain", m.GetMaintain()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("pull", m.GetPull()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("push", m.GetPush()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("triage", m.GetTriage()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *TeamRoleAssignment_permissions) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAdmin sets the admin property value. The admin property +func (m *TeamRoleAssignment_permissions) SetAdmin(value *bool)() { + m.admin = value +} +// SetMaintain sets the maintain property value. The maintain property +func (m *TeamRoleAssignment_permissions) SetMaintain(value *bool)() { + m.maintain = value +} +// SetPull sets the pull property value. The pull property +func (m *TeamRoleAssignment_permissions) SetPull(value *bool)() { + m.pull = value +} +// SetPush sets the push property value. The push property +func (m *TeamRoleAssignment_permissions) SetPush(value *bool)() { + m.push = value +} +// SetTriage sets the triage property value. The triage property +func (m *TeamRoleAssignment_permissions) SetTriage(value *bool)() { + m.triage = value +} +type TeamRoleAssignment_permissionsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAdmin()(*bool) + GetMaintain()(*bool) + GetPull()(*bool) + GetPush()(*bool) + GetTriage()(*bool) + SetAdmin(value *bool)() + SetMaintain(value *bool)() + SetPull(value *bool)() + SetPush(value *bool)() + SetTriage(value *bool)() +} diff --git a/pkg/github/models/user_role_assignment.go b/pkg/github/models/user_role_assignment.go new file mode 100644 index 00000000..245e3452 --- /dev/null +++ b/pkg/github/models/user_role_assignment.go @@ -0,0 +1,661 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// UserRoleAssignment the Relationship a User has with a role. +type UserRoleAssignment struct { + // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additionalData map[string]any + // The avatar_url property + avatar_url *string + // The email property + email *string + // The events_url property + events_url *string + // The followers_url property + followers_url *string + // The following_url property + following_url *string + // The gists_url property + gists_url *string + // The gravatar_id property + gravatar_id *string + // The html_url property + html_url *string + // The id property + id *int32 + // The login property + login *string + // The name property + name *string + // The node_id property + node_id *string + // The organizations_url property + organizations_url *string + // The received_events_url property + received_events_url *string + // The repos_url property + repos_url *string + // The site_admin property + site_admin *bool + // The starred_at property + starred_at *string + // The starred_url property + starred_url *string + // The subscriptions_url property + subscriptions_url *string + // The type property + typeEscaped *string + // The url property + url *string +} +// NewUserRoleAssignment instantiates a new UserRoleAssignment and sets the default values. +func NewUserRoleAssignment()(*UserRoleAssignment) { + m := &UserRoleAssignment{ + } + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateUserRoleAssignmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUserRoleAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUserRoleAssignment(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *UserRoleAssignment) GetAdditionalData()(map[string]any) { + return m.additionalData +} +// GetAvatarUrl gets the avatar_url property value. The avatar_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetAvatarUrl()(*string) { + return m.avatar_url +} +// GetEmail gets the email property value. The email property +// returns a *string when successful +func (m *UserRoleAssignment) GetEmail()(*string) { + return m.email +} +// GetEventsUrl gets the events_url property value. The events_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetEventsUrl()(*string) { + return m.events_url +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UserRoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["avatar_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAvatarUrl(val) + } + return nil + } + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmail(val) + } + return nil + } + res["events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEventsUrl(val) + } + return nil + } + res["followers_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFollowersUrl(val) + } + return nil + } + res["following_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFollowingUrl(val) + } + return nil + } + res["gists_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGistsUrl(val) + } + return nil + } + res["gravatar_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetGravatarId(val) + } + return nil + } + res["html_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetHtmlUrl(val) + } + return nil + } + res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetId(val) + } + return nil + } + res["login"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLogin(val) + } + return nil + } + res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetName(val) + } + return nil + } + res["node_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetNodeId(val) + } + return nil + } + res["organizations_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOrganizationsUrl(val) + } + return nil + } + res["received_events_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReceivedEventsUrl(val) + } + return nil + } + res["repos_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetReposUrl(val) + } + return nil + } + res["site_admin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetSiteAdmin(val) + } + return nil + } + res["starred_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStarredAt(val) + } + return nil + } + res["starred_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetStarredUrl(val) + } + return nil + } + res["subscriptions_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSubscriptionsUrl(val) + } + return nil + } + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTypeEscaped(val) + } + return nil + } + res["url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUrl(val) + } + return nil + } + return res +} +// GetFollowersUrl gets the followers_url property value. The followers_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetFollowersUrl()(*string) { + return m.followers_url +} +// GetFollowingUrl gets the following_url property value. The following_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetFollowingUrl()(*string) { + return m.following_url +} +// GetGistsUrl gets the gists_url property value. The gists_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetGistsUrl()(*string) { + return m.gists_url +} +// GetGravatarId gets the gravatar_id property value. The gravatar_id property +// returns a *string when successful +func (m *UserRoleAssignment) GetGravatarId()(*string) { + return m.gravatar_id +} +// GetHtmlUrl gets the html_url property value. The html_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetHtmlUrl()(*string) { + return m.html_url +} +// GetId gets the id property value. The id property +// returns a *int32 when successful +func (m *UserRoleAssignment) GetId()(*int32) { + return m.id +} +// GetLogin gets the login property value. The login property +// returns a *string when successful +func (m *UserRoleAssignment) GetLogin()(*string) { + return m.login +} +// GetName gets the name property value. The name property +// returns a *string when successful +func (m *UserRoleAssignment) GetName()(*string) { + return m.name +} +// GetNodeId gets the node_id property value. The node_id property +// returns a *string when successful +func (m *UserRoleAssignment) GetNodeId()(*string) { + return m.node_id +} +// GetOrganizationsUrl gets the organizations_url property value. The organizations_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetOrganizationsUrl()(*string) { + return m.organizations_url +} +// GetReceivedEventsUrl gets the received_events_url property value. The received_events_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetReceivedEventsUrl()(*string) { + return m.received_events_url +} +// GetReposUrl gets the repos_url property value. The repos_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetReposUrl()(*string) { + return m.repos_url +} +// GetSiteAdmin gets the site_admin property value. The site_admin property +// returns a *bool when successful +func (m *UserRoleAssignment) GetSiteAdmin()(*bool) { + return m.site_admin +} +// GetStarredAt gets the starred_at property value. The starred_at property +// returns a *string when successful +func (m *UserRoleAssignment) GetStarredAt()(*string) { + return m.starred_at +} +// GetStarredUrl gets the starred_url property value. The starred_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetStarredUrl()(*string) { + return m.starred_url +} +// GetSubscriptionsUrl gets the subscriptions_url property value. The subscriptions_url property +// returns a *string when successful +func (m *UserRoleAssignment) GetSubscriptionsUrl()(*string) { + return m.subscriptions_url +} +// GetTypeEscaped gets the type property value. The type property +// returns a *string when successful +func (m *UserRoleAssignment) GetTypeEscaped()(*string) { + return m.typeEscaped +} +// GetUrl gets the url property value. The url property +// returns a *string when successful +func (m *UserRoleAssignment) GetUrl()(*string) { + return m.url +} +// Serialize serializes information the current object +func (m *UserRoleAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("avatar_url", m.GetAvatarUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("email", m.GetEmail()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("events_url", m.GetEventsUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("followers_url", m.GetFollowersUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("following_url", m.GetFollowingUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("gists_url", m.GetGistsUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("gravatar_id", m.GetGravatarId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("html_url", m.GetHtmlUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("id", m.GetId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("login", m.GetLogin()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("name", m.GetName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("node_id", m.GetNodeId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("organizations_url", m.GetOrganizationsUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("received_events_url", m.GetReceivedEventsUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("repos_url", m.GetReposUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("site_admin", m.GetSiteAdmin()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("starred_at", m.GetStarredAt()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("starred_url", m.GetStarredUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("subscriptions_url", m.GetSubscriptionsUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("type", m.GetTypeEscaped()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("url", m.GetUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *UserRoleAssignment) SetAdditionalData(value map[string]any)() { + m.additionalData = value +} +// SetAvatarUrl sets the avatar_url property value. The avatar_url property +func (m *UserRoleAssignment) SetAvatarUrl(value *string)() { + m.avatar_url = value +} +// SetEmail sets the email property value. The email property +func (m *UserRoleAssignment) SetEmail(value *string)() { + m.email = value +} +// SetEventsUrl sets the events_url property value. The events_url property +func (m *UserRoleAssignment) SetEventsUrl(value *string)() { + m.events_url = value +} +// SetFollowersUrl sets the followers_url property value. The followers_url property +func (m *UserRoleAssignment) SetFollowersUrl(value *string)() { + m.followers_url = value +} +// SetFollowingUrl sets the following_url property value. The following_url property +func (m *UserRoleAssignment) SetFollowingUrl(value *string)() { + m.following_url = value +} +// SetGistsUrl sets the gists_url property value. The gists_url property +func (m *UserRoleAssignment) SetGistsUrl(value *string)() { + m.gists_url = value +} +// SetGravatarId sets the gravatar_id property value. The gravatar_id property +func (m *UserRoleAssignment) SetGravatarId(value *string)() { + m.gravatar_id = value +} +// SetHtmlUrl sets the html_url property value. The html_url property +func (m *UserRoleAssignment) SetHtmlUrl(value *string)() { + m.html_url = value +} +// SetId sets the id property value. The id property +func (m *UserRoleAssignment) SetId(value *int32)() { + m.id = value +} +// SetLogin sets the login property value. The login property +func (m *UserRoleAssignment) SetLogin(value *string)() { + m.login = value +} +// SetName sets the name property value. The name property +func (m *UserRoleAssignment) SetName(value *string)() { + m.name = value +} +// SetNodeId sets the node_id property value. The node_id property +func (m *UserRoleAssignment) SetNodeId(value *string)() { + m.node_id = value +} +// SetOrganizationsUrl sets the organizations_url property value. The organizations_url property +func (m *UserRoleAssignment) SetOrganizationsUrl(value *string)() { + m.organizations_url = value +} +// SetReceivedEventsUrl sets the received_events_url property value. The received_events_url property +func (m *UserRoleAssignment) SetReceivedEventsUrl(value *string)() { + m.received_events_url = value +} +// SetReposUrl sets the repos_url property value. The repos_url property +func (m *UserRoleAssignment) SetReposUrl(value *string)() { + m.repos_url = value +} +// SetSiteAdmin sets the site_admin property value. The site_admin property +func (m *UserRoleAssignment) SetSiteAdmin(value *bool)() { + m.site_admin = value +} +// SetStarredAt sets the starred_at property value. The starred_at property +func (m *UserRoleAssignment) SetStarredAt(value *string)() { + m.starred_at = value +} +// SetStarredUrl sets the starred_url property value. The starred_url property +func (m *UserRoleAssignment) SetStarredUrl(value *string)() { + m.starred_url = value +} +// SetSubscriptionsUrl sets the subscriptions_url property value. The subscriptions_url property +func (m *UserRoleAssignment) SetSubscriptionsUrl(value *string)() { + m.subscriptions_url = value +} +// SetTypeEscaped sets the type property value. The type property +func (m *UserRoleAssignment) SetTypeEscaped(value *string)() { + m.typeEscaped = value +} +// SetUrl sets the url property value. The url property +func (m *UserRoleAssignment) SetUrl(value *string)() { + m.url = value +} +type UserRoleAssignmentable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAvatarUrl()(*string) + GetEmail()(*string) + GetEventsUrl()(*string) + GetFollowersUrl()(*string) + GetFollowingUrl()(*string) + GetGistsUrl()(*string) + GetGravatarId()(*string) + GetHtmlUrl()(*string) + GetId()(*int32) + GetLogin()(*string) + GetName()(*string) + GetNodeId()(*string) + GetOrganizationsUrl()(*string) + GetReceivedEventsUrl()(*string) + GetReposUrl()(*string) + GetSiteAdmin()(*bool) + GetStarredAt()(*string) + GetStarredUrl()(*string) + GetSubscriptionsUrl()(*string) + GetTypeEscaped()(*string) + GetUrl()(*string) + SetAvatarUrl(value *string)() + SetEmail(value *string)() + SetEventsUrl(value *string)() + SetFollowersUrl(value *string)() + SetFollowingUrl(value *string)() + SetGistsUrl(value *string)() + SetGravatarId(value *string)() + SetHtmlUrl(value *string)() + SetId(value *int32)() + SetLogin(value *string)() + SetName(value *string)() + SetNodeId(value *string)() + SetOrganizationsUrl(value *string)() + SetReceivedEventsUrl(value *string)() + SetReposUrl(value *string)() + SetSiteAdmin(value *bool)() + SetStarredAt(value *string)() + SetStarredUrl(value *string)() + SetSubscriptionsUrl(value *string)() + SetTypeEscaped(value *string)() + SetUrl(value *string)() +} diff --git a/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go b/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go index 72f120e3..91f804e5 100644 --- a/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_item_teams_request_builder.go @@ -31,23 +31,23 @@ func NewItemOrganizationRolesItemTeamsRequestBuilder(rawUrl string, requestAdapt return NewItemOrganizationRolesItemTeamsRequestBuilderInternal(urlParams, requestAdapter) } // Get lists the teams that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a []Teamable when successful +// returns a []TeamRoleAssignmentable when successful // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role -func (m *ItemOrganizationRolesItemTeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Teamable, error) { +func (m *ItemOrganizationRolesItemTeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemTeamsRequestBuilderGetQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TeamRoleAssignmentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err } - res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateTeamFromDiscriminatorValue, nil) + res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateTeamRoleAssignmentFromDiscriminatorValue, nil) if err != nil { return nil, err } - val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Teamable, len(res)) + val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TeamRoleAssignmentable, len(res)) for i, v := range res { if v != nil { - val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Teamable) + val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.TeamRoleAssignmentable) } } return val, nil diff --git a/pkg/github/orgs/item_organization_roles_item_users_request_builder.go b/pkg/github/orgs/item_organization_roles_item_users_request_builder.go index 37058a6a..f7cc70ee 100644 --- a/pkg/github/orgs/item_organization_roles_item_users_request_builder.go +++ b/pkg/github/orgs/item_organization_roles_item_users_request_builder.go @@ -31,23 +31,23 @@ func NewItemOrganizationRolesItemUsersRequestBuilder(rawUrl string, requestAdapt return NewItemOrganizationRolesItemUsersRequestBuilderInternal(urlParams, requestAdapter) } // Get lists organization members that are assigned to an organization role. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."To use this endpoint, you must be an administrator for the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. -// returns a []SimpleUserable when successful +// returns a []UserRoleAssignmentable when successful // [API method documentation] // // [API method documentation]: https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role -func (m *ItemOrganizationRolesItemUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.SimpleUserable, error) { +func (m *ItemOrganizationRolesItemUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemOrganizationRolesItemUsersRequestBuilderGetQueryParameters])([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserRoleAssignmentable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err } - res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateSimpleUserFromDiscriminatorValue, nil) + res, err := m.BaseRequestBuilder.RequestAdapter.SendCollection(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateUserRoleAssignmentFromDiscriminatorValue, nil) if err != nil { return nil, err } - val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.SimpleUserable, len(res)) + val := make([]i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserRoleAssignmentable, len(res)) for i, v := range res { if v != nil { - val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.SimpleUserable) + val[i] = v.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.UserRoleAssignmentable) } } return val, nil