func (s *displayService) ListManageableUserTemplateRoles(
	ctx context.Context,
	templateId string,
	userId string,
) (roles []v1alpha1.TemplateRole, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListManageableUserTemplateRoles(
		ctx,
		&v1alpha1.ListManageableUserTemplateRolesRequest{
			TemplateId: templateId,
			UserId:     userId,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Roles, nil
}
// ListManageableUserTemplateRoles returns which roles should be displayed
// to the user when they are managing a specific contributor on the template.
ListManageableUserTemplateRoles returns which roles should be displayed
to the user when they are managing a specific contributor on the template.
// ListManageableUserTemplateRoles returns which roles should be displayed // to the user when they are managing a specific contributor on the template .
func (s *displayService) ListManageableUserTemplateRoles(
	ctx context.Context,
	templateId string,
	userId string,
) (roles []v1alpha1.TemplateRole, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListManageableUserTemplateRoles(
		ctx,
		&v1alpha1.ListManageableUserTemplateRolesRequest{
			TemplateId: templateId,
			UserId:     userId,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Roles, nil
}
func ( s * displayService ) ListManageableUserTemplateRoles ( ctx context . Context , templateId string , userId string , ) ( roles [ ] v1alpha1 . TemplateRole , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListManageableUserTemplateRoles ( ctx , & v1alpha1 . ListManageableUserTemplateRolesRequest { TemplateId : templateId , UserId : userId , } , ) if err != nil { return nil , err } return response . Roles , nil }
ListManageableUserTemplateRoles returns which roles should be displayed
to the user when they are managing a specific contributor on the template.
ListManageableUserTemplateRoles returns which roles should be displayed to the user when they are managing a specific contributor on the template .