// Copyright 2019 VMware, Inc.
// SPDX-License-Identifier: Mozilla Public License 2.0

package avi

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

func dataSourceAviAuthProfile() *schema.Resource {
	return &schema.Resource{
		Read: ResourceAviAuthProfileRead,
		Schema: map[string]*schema.Schema{
			"configpb_attributes": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceConfigPbAttributesSchema(),
			},
			"description": {
				Type:     schema.TypeString,
				Computed: true,
			},
			"http": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceAuthProfileHTTPClientParamsSchema(),
			},
			"jwt_profile_ref": {
				Type:     schema.TypeString,
				Computed: true,
			},
			"ldap": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceLdapAuthSettingsSchema(),
			},
			"markers": {
				Type:     schema.TypeList,
				Computed: true,
				Elem:     ResourceRoleFilterMatchLabelSchema(),
			},
			"name": {
				Type:     schema.TypeString,
				Optional: true,
				Computed: true,
			},
			"oauth_profile": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceOAuthProfileSchema(),
			},
			"saml": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceSamlSettingsSchema(),
			},
			"tacacs_plus": {
				Type:     schema.TypeSet,
				Computed: true,
				Elem:     ResourceTacacsPlusAuthSettingsSchema(),
			},
			"tenant_ref": {
				Type:     schema.TypeString,
				Optional: true,
				Computed: true,
			},
			"type": {
				Type:     schema.TypeString,
				Computed: true,
			},
			"uuid": {
				Type:     schema.TypeString,
				Optional: true,
				Computed: true,
			},
		},
	}
}
