graphBetaServicePrincipal

package
v0.35.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadTimeout = 180
)

Variables

This section is empty.

Functions

func NewServicePrincipalDataSource

func NewServicePrincipalDataSource() datasource.DataSource

Types

type InformationalUrlModel

type InformationalUrlModel struct {
	TermsOfServiceUrl   types.String `tfsdk:"terms_of_service_url"`
	SupportUrl          types.String `tfsdk:"support_url"`
	PrivacyStatementUrl types.String `tfsdk:"privacy_statement_url"`
	MarketingUrl        types.String `tfsdk:"marketing_url"`
	LogoUrl             types.String `tfsdk:"logo_url"`
}

InformationalUrlModel represents application information URLs

type SamlSingleSignOnSettingsModel

type SamlSingleSignOnSettingsModel struct {
	RelayState types.String `tfsdk:"relay_state"`
}

SamlSingleSignOnSettingsModel represents SAML SSO settings

type ServicePrincipalDataSource

type ServicePrincipalDataSource struct {
	ProviderTypeName string
	TypeName         string
	ReadPermissions  []string
	// contains filtered or unexported fields
}

func (*ServicePrincipalDataSource) Configure

Configure sets the client for the data source

func (*ServicePrincipalDataSource) Metadata

Metadata returns the datasource type name.

func (*ServicePrincipalDataSource) Read

func (*ServicePrincipalDataSource) Schema

Schema defines the schema for the data source

type ServicePrincipalDataSourceModel

type ServicePrincipalDataSourceModel struct {
	FilterType   types.String            `tfsdk:"filter_type"`   // Required field to specify how to filter
	FilterValue  types.String            `tfsdk:"filter_value"`  // Value to filter by (not used for "all" or "odata")
	ODataFilter  types.String            `tfsdk:"odata_filter"`  // OData filter parameter
	ODataTop     types.Int32             `tfsdk:"odata_top"`     // OData top parameter for limiting results
	ODataSkip    types.Int32             `tfsdk:"odata_skip"`    // OData skip parameter for pagination
	ODataSelect  types.String            `tfsdk:"odata_select"`  // OData select parameter for field selection
	ODataOrderBy types.String            `tfsdk:"odata_orderby"` // OData orderby parameter for sorting
	ODataCount   types.Bool              `tfsdk:"odata_count"`   // OData count parameter
	ODataSearch  types.String            `tfsdk:"odata_search"`  // OData search parameter
	ODataExpand  types.String            `tfsdk:"odata_expand"`  // OData expand parameter
	Items        []ServicePrincipalModel `tfsdk:"items"`         // List of service principals that match the filters
	Timeouts     timeouts.Value          `tfsdk:"timeouts"`
}

ServicePrincipalDataSourceModel defines the data source model

type ServicePrincipalModel

type ServicePrincipalModel struct {
	ID                                  types.String                   `tfsdk:"id"`
	AppID                               types.String                   `tfsdk:"app_id"`
	AppDisplayName                      types.String                   `tfsdk:"app_display_name"`
	DisplayName                         types.String                   `tfsdk:"display_name"`
	DeletedDateTime                     types.String                   `tfsdk:"deleted_date_time"`
	CreatedDateTime                     types.String                   `tfsdk:"created_date_time"`
	ApplicationTemplateID               types.String                   `tfsdk:"application_template_id"`
	AccountEnabled                      types.Bool                     `tfsdk:"account_enabled"`
	AppRoleAssignmentRequired           types.Bool                     `tfsdk:"app_role_assignment_required"`
	ServicePrincipalType                types.String                   `tfsdk:"service_principal_type"`
	SignInAudience                      types.String                   `tfsdk:"sign_in_audience"`
	PreferredSingleSignOnMode           types.String                   `tfsdk:"preferred_single_sign_on_mode"`
	Homepage                            types.String                   `tfsdk:"homepage"`
	ErrorUrl                            types.String                   `tfsdk:"error_url"`
	PublisherName                       types.String                   `tfsdk:"publisher_name"`
	ReplyUrls                           []types.String                 `tfsdk:"reply_urls"`
	ServicePrincipalNames               []types.String                 `tfsdk:"service_principal_names"`
	Tags                                []types.String                 `tfsdk:"tags"`
	DisabledByMicrosoftStatus           types.String                   `tfsdk:"disabled_by_microsoft_status"`
	AppOwnerOrganizationID              types.String                   `tfsdk:"app_owner_organization_id"`
	LoginUrl                            types.String                   `tfsdk:"login_url"`
	LogoutUrl                           types.String                   `tfsdk:"logout_url"`
	Notes                               types.String                   `tfsdk:"notes"`
	NotificationEmailAddresses          []types.String                 `tfsdk:"notification_email_addresses"`
	SamlMetadataUrl                     types.String                   `tfsdk:"saml_metadata_url"`
	PreferredTokenSigningKeyEndDateTime types.String                   `tfsdk:"preferred_token_signing_key_end_date_time"`
	PreferredTokenSigningKeyThumbprint  types.String                   `tfsdk:"preferred_token_signing_key_thumbprint"`
	SamlSingleSignOnSettings            *SamlSingleSignOnSettingsModel `tfsdk:"saml_single_sign_on_settings"`
	VerifiedPublisher                   *VerifiedPublisherModel        `tfsdk:"verified_publisher"`
	Info                                *InformationalUrlModel         `tfsdk:"info"`
}

ServicePrincipalModel represents a single service principal

func MapRemoteStateToDataSource

func MapRemoteStateToDataSource(ctx context.Context, servicePrincipal graphmodels.ServicePrincipalable) ServicePrincipalModel

MapRemoteStateToDataSource maps a service principal from the Graph API to the data source model

type VerifiedPublisherModel

type VerifiedPublisherModel struct {
	DisplayName         types.String `tfsdk:"display_name"`
	VerifiedPublisherID types.String `tfsdk:"verified_publisher_id"`
	AddedDateTime       types.String `tfsdk:"added_date_time"`
}

VerifiedPublisherModel represents verified publisher information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL