// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package storage

import (
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/configmaps"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/core"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/secrets"
	"github.com/rotisserie/eris"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime/schema"
)

// +kubebuilder:rbac:groups=app.azure.com,resources=authconfigs,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=app.azure.com,resources={authconfigs/status,authconfigs/finalizers},verbs=get;update;patch

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories={azure,app}
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity"
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
// Storage version of v1api20250101.AuthConfig
// Generator information:
// - Generated from: /app/resource-manager/Microsoft.App/ContainerApps/stable/2025-01-01/AuthConfigs.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}
type AuthConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AuthConfig_Spec   `json:"spec,omitempty"`
	Status            AuthConfig_STATUS `json:"status,omitempty"`
}

var _ conditions.Conditioner = &AuthConfig{}

// GetConditions returns the conditions of the resource
func (config *AuthConfig) GetConditions() conditions.Conditions {
	return config.Status.Conditions
}

// SetConditions sets the conditions on the resource status
func (config *AuthConfig) SetConditions(conditions conditions.Conditions) {
	config.Status.Conditions = conditions
}

var _ configmaps.Exporter = &AuthConfig{}

// ConfigMapDestinationExpressions returns the Spec.OperatorSpec.ConfigMapExpressions property
func (config *AuthConfig) ConfigMapDestinationExpressions() []*core.DestinationExpression {
	if config.Spec.OperatorSpec == nil {
		return nil
	}
	return config.Spec.OperatorSpec.ConfigMapExpressions
}

var _ secrets.Exporter = &AuthConfig{}

// SecretDestinationExpressions returns the Spec.OperatorSpec.SecretExpressions property
func (config *AuthConfig) SecretDestinationExpressions() []*core.DestinationExpression {
	if config.Spec.OperatorSpec == nil {
		return nil
	}
	return config.Spec.OperatorSpec.SecretExpressions
}

var _ genruntime.KubernetesResource = &AuthConfig{}

// AzureName returns the Azure name of the resource
func (config *AuthConfig) AzureName() string {
	return config.Spec.AzureName
}

// GetAPIVersion returns the ARM API version of the resource. This is always "2025-01-01"
func (config AuthConfig) GetAPIVersion() string {
	return "2025-01-01"
}

// GetResourceScope returns the scope of the resource
func (config *AuthConfig) GetResourceScope() genruntime.ResourceScope {
	return genruntime.ResourceScopeResourceGroup
}

// GetSpec returns the specification of this resource
func (config *AuthConfig) GetSpec() genruntime.ConvertibleSpec {
	return &config.Spec
}

// GetStatus returns the status of this resource
func (config *AuthConfig) GetStatus() genruntime.ConvertibleStatus {
	return &config.Status
}

// GetSupportedOperations returns the operations supported by the resource
func (config *AuthConfig) GetSupportedOperations() []genruntime.ResourceOperation {
	return []genruntime.ResourceOperation{
		genruntime.ResourceOperationDelete,
		genruntime.ResourceOperationGet,
		genruntime.ResourceOperationPut,
	}
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.App/containerApps/authConfigs"
func (config *AuthConfig) GetType() string {
	return "Microsoft.App/containerApps/authConfigs"
}

// NewEmptyStatus returns a new empty (blank) status
func (config *AuthConfig) NewEmptyStatus() genruntime.ConvertibleStatus {
	return &AuthConfig_STATUS{}
}

// Owner returns the ResourceReference of the owner
func (config *AuthConfig) Owner() *genruntime.ResourceReference {
	if config.Spec.Owner == nil {
		return nil
	}

	group, kind := genruntime.LookupOwnerGroupKind(config.Spec)
	return config.Spec.Owner.AsResourceReference(group, kind)
}

// SetStatus sets the status of this resource
func (config *AuthConfig) SetStatus(status genruntime.ConvertibleStatus) error {
	// If we have exactly the right type of status, assign it
	if st, ok := status.(*AuthConfig_STATUS); ok {
		config.Status = *st
		return nil
	}

	// Convert status to required version
	var st AuthConfig_STATUS
	err := status.ConvertStatusTo(&st)
	if err != nil {
		return eris.Wrap(err, "failed to convert status")
	}

	config.Status = st
	return nil
}

// Hub marks that this AuthConfig is the hub type for conversion
func (config *AuthConfig) Hub() {}

// OriginalGVK returns a GroupValueKind for the original API version used to create the resource
func (config *AuthConfig) OriginalGVK() *schema.GroupVersionKind {
	return &schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: config.Spec.OriginalVersion,
		Kind:    "AuthConfig",
	}
}

// +kubebuilder:object:root=true
// Storage version of v1api20250101.AuthConfig
// Generator information:
// - Generated from: /app/resource-manager/Microsoft.App/ContainerApps/stable/2025-01-01/AuthConfigs.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}
type AuthConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AuthConfig `json:"items"`
}

// Storage version of v1api20250101.APIVersion
// +kubebuilder:validation:Enum={"2025-01-01"}
type APIVersion string

const APIVersion_Value = APIVersion("2025-01-01")

// Storage version of v1api20250101.AuthConfig_Spec
type AuthConfig_Spec struct {
	// AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it
	// doesn't have to be.
	AzureName          string                  `json:"azureName,omitempty"`
	EncryptionSettings *EncryptionSettings     `json:"encryptionSettings,omitempty"`
	GlobalValidation   *GlobalValidation       `json:"globalValidation,omitempty"`
	HttpSettings       *HttpSettings           `json:"httpSettings,omitempty"`
	IdentityProviders  *IdentityProviders      `json:"identityProviders,omitempty"`
	Login              *Login                  `json:"login,omitempty"`
	OperatorSpec       *AuthConfigOperatorSpec `json:"operatorSpec,omitempty"`
	OriginalVersion    string                  `json:"originalVersion,omitempty"`

	// +kubebuilder:validation:Required
	// Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also
	// controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a
	// reference to a app.azure.com/ContainerApp resource
	Owner       *genruntime.KnownResourceReference `group:"app.azure.com" json:"owner,omitempty" kind:"ContainerApp"`
	Platform    *AuthPlatform                      `json:"platform,omitempty"`
	PropertyBag genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
}

var _ genruntime.ConvertibleSpec = &AuthConfig_Spec{}

// ConvertSpecFrom populates our AuthConfig_Spec from the provided source
func (config *AuthConfig_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error {
	if source == config {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleSpec")
	}

	return source.ConvertSpecTo(config)
}

// ConvertSpecTo populates the provided destination from our AuthConfig_Spec
func (config *AuthConfig_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error {
	if destination == config {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleSpec")
	}

	return destination.ConvertSpecFrom(config)
}

// Storage version of v1api20250101.AuthConfig_STATUS
type AuthConfig_STATUS struct {
	Conditions         []conditions.Condition     `json:"conditions,omitempty"`
	EncryptionSettings *EncryptionSettings_STATUS `json:"encryptionSettings,omitempty"`
	GlobalValidation   *GlobalValidation_STATUS   `json:"globalValidation,omitempty"`
	HttpSettings       *HttpSettings_STATUS       `json:"httpSettings,omitempty"`
	Id                 *string                    `json:"id,omitempty"`
	IdentityProviders  *IdentityProviders_STATUS  `json:"identityProviders,omitempty"`
	Login              *Login_STATUS              `json:"login,omitempty"`
	Name               *string                    `json:"name,omitempty"`
	Platform           *AuthPlatform_STATUS       `json:"platform,omitempty"`
	PropertyBag        genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
	SystemData         *SystemData_STATUS         `json:"systemData,omitempty"`
	Type               *string                    `json:"type,omitempty"`
}

var _ genruntime.ConvertibleStatus = &AuthConfig_STATUS{}

// ConvertStatusFrom populates our AuthConfig_STATUS from the provided source
func (config *AuthConfig_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error {
	if source == config {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleStatus")
	}

	return source.ConvertStatusTo(config)
}

// ConvertStatusTo populates the provided destination from our AuthConfig_STATUS
func (config *AuthConfig_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error {
	if destination == config {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleStatus")
	}

	return destination.ConvertStatusFrom(config)
}

// Storage version of v1api20250101.AuthConfigOperatorSpec
// Details for configuring operator behavior. Fields in this struct are interpreted by the operator directly rather than being passed to Azure
type AuthConfigOperatorSpec struct {
	ConfigMapExpressions []*core.DestinationExpression `json:"configMapExpressions,omitempty"`
	PropertyBag          genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	SecretExpressions    []*core.DestinationExpression `json:"secretExpressions,omitempty"`
}

// Storage version of v1api20250101.AuthPlatform
// The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
type AuthPlatform struct {
	Enabled        *bool                  `json:"enabled,omitempty"`
	PropertyBag    genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RuntimeVersion *string                `json:"runtimeVersion,omitempty"`
}

// Storage version of v1api20250101.AuthPlatform_STATUS
// The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
type AuthPlatform_STATUS struct {
	Enabled        *bool                  `json:"enabled,omitempty"`
	PropertyBag    genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RuntimeVersion *string                `json:"runtimeVersion,omitempty"`
}

// Storage version of v1api20250101.EncryptionSettings
// The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service
// Authentication/Authorization.
type EncryptionSettings struct {
	ContainerAppAuthEncryptionSecretName *string                `json:"containerAppAuthEncryptionSecretName,omitempty"`
	ContainerAppAuthSigningSecretName    *string                `json:"containerAppAuthSigningSecretName,omitempty"`
	PropertyBag                          genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.EncryptionSettings_STATUS
// The configuration settings of the secrets references of encryption key and signing key for ContainerApp Service
// Authentication/Authorization.
type EncryptionSettings_STATUS struct {
	ContainerAppAuthEncryptionSecretName *string                `json:"containerAppAuthEncryptionSecretName,omitempty"`
	ContainerAppAuthSigningSecretName    *string                `json:"containerAppAuthSigningSecretName,omitempty"`
	PropertyBag                          genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.GlobalValidation
// The configuration settings that determines the validation flow of users using ContainerApp Service
// Authentication/Authorization.
type GlobalValidation struct {
	ExcludedPaths               []string               `json:"excludedPaths,omitempty"`
	PropertyBag                 genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RedirectToProvider          *string                `json:"redirectToProvider,omitempty"`
	UnauthenticatedClientAction *string                `json:"unauthenticatedClientAction,omitempty"`
}

// Storage version of v1api20250101.GlobalValidation_STATUS
// The configuration settings that determines the validation flow of users using ContainerApp Service
// Authentication/Authorization.
type GlobalValidation_STATUS struct {
	ExcludedPaths               []string               `json:"excludedPaths,omitempty"`
	PropertyBag                 genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RedirectToProvider          *string                `json:"redirectToProvider,omitempty"`
	UnauthenticatedClientAction *string                `json:"unauthenticatedClientAction,omitempty"`
}

// Storage version of v1api20250101.HttpSettings
// The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp
// Service Authentication/Authorization.
type HttpSettings struct {
	ForwardProxy *ForwardProxy          `json:"forwardProxy,omitempty"`
	PropertyBag  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RequireHttps *bool                  `json:"requireHttps,omitempty"`
	Routes       *HttpSettingsRoutes    `json:"routes,omitempty"`
}

// Storage version of v1api20250101.HttpSettings_STATUS
// The configuration settings of the HTTP requests for authentication and authorization requests made against ContainerApp
// Service Authentication/Authorization.
type HttpSettings_STATUS struct {
	ForwardProxy *ForwardProxy_STATUS       `json:"forwardProxy,omitempty"`
	PropertyBag  genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
	RequireHttps *bool                      `json:"requireHttps,omitempty"`
	Routes       *HttpSettingsRoutes_STATUS `json:"routes,omitempty"`
}

// Storage version of v1api20250101.IdentityProviders
// The configuration settings of each of the identity providers used to configure ContainerApp Service
// Authentication/Authorization.
type IdentityProviders struct {
	Apple                        *Apple                                 `json:"apple,omitempty"`
	AzureActiveDirectory         *AzureActiveDirectory                  `json:"azureActiveDirectory,omitempty"`
	AzureStaticWebApps           *AzureStaticWebApps                    `json:"azureStaticWebApps,omitempty"`
	CustomOpenIdConnectProviders map[string]CustomOpenIdConnectProvider `json:"customOpenIdConnectProviders,omitempty"`
	Facebook                     *Facebook                              `json:"facebook,omitempty"`
	GitHub                       *GitHub                                `json:"gitHub,omitempty"`
	Google                       *Google                                `json:"google,omitempty"`
	PropertyBag                  genruntime.PropertyBag                 `json:"$propertyBag,omitempty"`
	Twitter                      *Twitter                               `json:"twitter,omitempty"`
}

// Storage version of v1api20250101.IdentityProviders_STATUS
// The configuration settings of each of the identity providers used to configure ContainerApp Service
// Authentication/Authorization.
type IdentityProviders_STATUS struct {
	Apple                        *Apple_STATUS                                 `json:"apple,omitempty"`
	AzureActiveDirectory         *AzureActiveDirectory_STATUS                  `json:"azureActiveDirectory,omitempty"`
	AzureStaticWebApps           *AzureStaticWebApps_STATUS                    `json:"azureStaticWebApps,omitempty"`
	CustomOpenIdConnectProviders map[string]CustomOpenIdConnectProvider_STATUS `json:"customOpenIdConnectProviders,omitempty"`
	Facebook                     *Facebook_STATUS                              `json:"facebook,omitempty"`
	GitHub                       *GitHub_STATUS                                `json:"gitHub,omitempty"`
	Google                       *Google_STATUS                                `json:"google,omitempty"`
	PropertyBag                  genruntime.PropertyBag                        `json:"$propertyBag,omitempty"`
	Twitter                      *Twitter_STATUS                               `json:"twitter,omitempty"`
}

// Storage version of v1api20250101.Login
// The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
type Login struct {
	AllowedExternalRedirectUrls   []string               `json:"allowedExternalRedirectUrls,omitempty"`
	CookieExpiration              *CookieExpiration      `json:"cookieExpiration,omitempty"`
	Nonce                         *Nonce                 `json:"nonce,omitempty"`
	PreserveUrlFragmentsForLogins *bool                  `json:"preserveUrlFragmentsForLogins,omitempty"`
	PropertyBag                   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Routes                        *LoginRoutes           `json:"routes,omitempty"`
	TokenStore                    *TokenStore            `json:"tokenStore,omitempty"`
}

// Storage version of v1api20250101.Login_STATUS
// The configuration settings of the login flow of users using ContainerApp Service Authentication/Authorization.
type Login_STATUS struct {
	AllowedExternalRedirectUrls   []string                 `json:"allowedExternalRedirectUrls,omitempty"`
	CookieExpiration              *CookieExpiration_STATUS `json:"cookieExpiration,omitempty"`
	Nonce                         *Nonce_STATUS            `json:"nonce,omitempty"`
	PreserveUrlFragmentsForLogins *bool                    `json:"preserveUrlFragmentsForLogins,omitempty"`
	PropertyBag                   genruntime.PropertyBag   `json:"$propertyBag,omitempty"`
	Routes                        *LoginRoutes_STATUS      `json:"routes,omitempty"`
	TokenStore                    *TokenStore_STATUS       `json:"tokenStore,omitempty"`
}

// Storage version of v1api20250101.SystemData_STATUS
// Metadata pertaining to creation and last modification of the resource.
type SystemData_STATUS struct {
	CreatedAt          *string                `json:"createdAt,omitempty"`
	CreatedBy          *string                `json:"createdBy,omitempty"`
	CreatedByType      *string                `json:"createdByType,omitempty"`
	LastModifiedAt     *string                `json:"lastModifiedAt,omitempty"`
	LastModifiedBy     *string                `json:"lastModifiedBy,omitempty"`
	LastModifiedByType *string                `json:"lastModifiedByType,omitempty"`
	PropertyBag        genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.Apple
// The configuration settings of the Apple provider.
type Apple struct {
	Enabled      *bool                  `json:"enabled,omitempty"`
	Login        *LoginScopes           `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Registration *AppleRegistration     `json:"registration,omitempty"`
}

// Storage version of v1api20250101.Apple_STATUS
// The configuration settings of the Apple provider.
type Apple_STATUS struct {
	Enabled      *bool                     `json:"enabled,omitempty"`
	Login        *LoginScopes_STATUS       `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag    `json:"$propertyBag,omitempty"`
	Registration *AppleRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectory
// The configuration settings of the Azure Active directory provider.
type AzureActiveDirectory struct {
	Enabled           *bool                             `json:"enabled,omitempty"`
	IsAutoProvisioned *bool                             `json:"isAutoProvisioned,omitempty"`
	Login             *AzureActiveDirectoryLogin        `json:"login,omitempty"`
	PropertyBag       genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
	Registration      *AzureActiveDirectoryRegistration `json:"registration,omitempty"`
	Validation        *AzureActiveDirectoryValidation   `json:"validation,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectory_STATUS
// The configuration settings of the Azure Active directory provider.
type AzureActiveDirectory_STATUS struct {
	Enabled           *bool                                    `json:"enabled,omitempty"`
	IsAutoProvisioned *bool                                    `json:"isAutoProvisioned,omitempty"`
	Login             *AzureActiveDirectoryLogin_STATUS        `json:"login,omitempty"`
	PropertyBag       genruntime.PropertyBag                   `json:"$propertyBag,omitempty"`
	Registration      *AzureActiveDirectoryRegistration_STATUS `json:"registration,omitempty"`
	Validation        *AzureActiveDirectoryValidation_STATUS   `json:"validation,omitempty"`
}

// Storage version of v1api20250101.AzureStaticWebApps
// The configuration settings of the Azure Static Web Apps provider.
type AzureStaticWebApps struct {
	Enabled      *bool                           `json:"enabled,omitempty"`
	PropertyBag  genruntime.PropertyBag          `json:"$propertyBag,omitempty"`
	Registration *AzureStaticWebAppsRegistration `json:"registration,omitempty"`
}

// Storage version of v1api20250101.AzureStaticWebApps_STATUS
// The configuration settings of the Azure Static Web Apps provider.
type AzureStaticWebApps_STATUS struct {
	Enabled      *bool                                  `json:"enabled,omitempty"`
	PropertyBag  genruntime.PropertyBag                 `json:"$propertyBag,omitempty"`
	Registration *AzureStaticWebAppsRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.CookieExpiration
// The configuration settings of the session cookie's expiration.
type CookieExpiration struct {
	Convention       *string                `json:"convention,omitempty"`
	PropertyBag      genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TimeToExpiration *string                `json:"timeToExpiration,omitempty"`
}

// Storage version of v1api20250101.CookieExpiration_STATUS
// The configuration settings of the session cookie's expiration.
type CookieExpiration_STATUS struct {
	Convention       *string                `json:"convention,omitempty"`
	PropertyBag      genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TimeToExpiration *string                `json:"timeToExpiration,omitempty"`
}

// Storage version of v1api20250101.CustomOpenIdConnectProvider
// The configuration settings of the custom Open ID Connect provider.
type CustomOpenIdConnectProvider struct {
	Enabled      *bool                      `json:"enabled,omitempty"`
	Login        *OpenIdConnectLogin        `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
	Registration *OpenIdConnectRegistration `json:"registration,omitempty"`
}

// Storage version of v1api20250101.CustomOpenIdConnectProvider_STATUS
// The configuration settings of the custom Open ID Connect provider.
type CustomOpenIdConnectProvider_STATUS struct {
	Enabled      *bool                             `json:"enabled,omitempty"`
	Login        *OpenIdConnectLogin_STATUS        `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
	Registration *OpenIdConnectRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.Facebook
// The configuration settings of the Facebook provider.
type Facebook struct {
	Enabled         *bool                  `json:"enabled,omitempty"`
	GraphApiVersion *string                `json:"graphApiVersion,omitempty"`
	Login           *LoginScopes           `json:"login,omitempty"`
	PropertyBag     genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Registration    *AppRegistration       `json:"registration,omitempty"`
}

// Storage version of v1api20250101.Facebook_STATUS
// The configuration settings of the Facebook provider.
type Facebook_STATUS struct {
	Enabled         *bool                   `json:"enabled,omitempty"`
	GraphApiVersion *string                 `json:"graphApiVersion,omitempty"`
	Login           *LoginScopes_STATUS     `json:"login,omitempty"`
	PropertyBag     genruntime.PropertyBag  `json:"$propertyBag,omitempty"`
	Registration    *AppRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.ForwardProxy
// The configuration settings of a forward proxy used to make the requests.
type ForwardProxy struct {
	Convention            *string                `json:"convention,omitempty"`
	CustomHostHeaderName  *string                `json:"customHostHeaderName,omitempty"`
	CustomProtoHeaderName *string                `json:"customProtoHeaderName,omitempty"`
	PropertyBag           genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.ForwardProxy_STATUS
// The configuration settings of a forward proxy used to make the requests.
type ForwardProxy_STATUS struct {
	Convention            *string                `json:"convention,omitempty"`
	CustomHostHeaderName  *string                `json:"customHostHeaderName,omitempty"`
	CustomProtoHeaderName *string                `json:"customProtoHeaderName,omitempty"`
	PropertyBag           genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.GitHub
// The configuration settings of the GitHub provider.
type GitHub struct {
	Enabled      *bool                  `json:"enabled,omitempty"`
	Login        *LoginScopes           `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Registration *ClientRegistration    `json:"registration,omitempty"`
}

// Storage version of v1api20250101.GitHub_STATUS
// The configuration settings of the GitHub provider.
type GitHub_STATUS struct {
	Enabled      *bool                      `json:"enabled,omitempty"`
	Login        *LoginScopes_STATUS        `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
	Registration *ClientRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.Google
// The configuration settings of the Google provider.
type Google struct {
	Enabled      *bool                       `json:"enabled,omitempty"`
	Login        *LoginScopes                `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Registration *ClientRegistration         `json:"registration,omitempty"`
	Validation   *AllowedAudiencesValidation `json:"validation,omitempty"`
}

// Storage version of v1api20250101.Google_STATUS
// The configuration settings of the Google provider.
type Google_STATUS struct {
	Enabled      *bool                              `json:"enabled,omitempty"`
	Login        *LoginScopes_STATUS                `json:"login,omitempty"`
	PropertyBag  genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	Registration *ClientRegistration_STATUS         `json:"registration,omitempty"`
	Validation   *AllowedAudiencesValidation_STATUS `json:"validation,omitempty"`
}

// Storage version of v1api20250101.HttpSettingsRoutes
// The configuration settings of the paths HTTP requests.
type HttpSettingsRoutes struct {
	ApiPrefix   *string                `json:"apiPrefix,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.HttpSettingsRoutes_STATUS
// The configuration settings of the paths HTTP requests.
type HttpSettingsRoutes_STATUS struct {
	ApiPrefix   *string                `json:"apiPrefix,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.LoginRoutes
// The routes that specify the endpoints used for login and logout requests.
type LoginRoutes struct {
	LogoutEndpoint *string                `json:"logoutEndpoint,omitempty"`
	PropertyBag    genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.LoginRoutes_STATUS
// The routes that specify the endpoints used for login and logout requests.
type LoginRoutes_STATUS struct {
	LogoutEndpoint *string                `json:"logoutEndpoint,omitempty"`
	PropertyBag    genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.Nonce
// The configuration settings of the nonce used in the login flow.
type Nonce struct {
	NonceExpirationInterval *string                `json:"nonceExpirationInterval,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	ValidateNonce           *bool                  `json:"validateNonce,omitempty"`
}

// Storage version of v1api20250101.Nonce_STATUS
// The configuration settings of the nonce used in the login flow.
type Nonce_STATUS struct {
	NonceExpirationInterval *string                `json:"nonceExpirationInterval,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	ValidateNonce           *bool                  `json:"validateNonce,omitempty"`
}

// Storage version of v1api20250101.TokenStore
// The configuration settings of the token store.
type TokenStore struct {
	AzureBlobStorage           *BlobStorageTokenStore `json:"azureBlobStorage,omitempty"`
	Enabled                    *bool                  `json:"enabled,omitempty"`
	PropertyBag                genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TokenRefreshExtensionHours *float64               `json:"tokenRefreshExtensionHours,omitempty"`
}

// Storage version of v1api20250101.TokenStore_STATUS
// The configuration settings of the token store.
type TokenStore_STATUS struct {
	AzureBlobStorage           *BlobStorageTokenStore_STATUS `json:"azureBlobStorage,omitempty"`
	Enabled                    *bool                         `json:"enabled,omitempty"`
	PropertyBag                genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	TokenRefreshExtensionHours *float64                      `json:"tokenRefreshExtensionHours,omitempty"`
}

// Storage version of v1api20250101.Twitter
// The configuration settings of the Twitter provider.
type Twitter struct {
	Enabled      *bool                  `json:"enabled,omitempty"`
	PropertyBag  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Registration *TwitterRegistration   `json:"registration,omitempty"`
}

// Storage version of v1api20250101.Twitter_STATUS
// The configuration settings of the Twitter provider.
type Twitter_STATUS struct {
	Enabled      *bool                       `json:"enabled,omitempty"`
	PropertyBag  genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Registration *TwitterRegistration_STATUS `json:"registration,omitempty"`
}

// Storage version of v1api20250101.AllowedAudiencesValidation
// The configuration settings of the Allowed Audiences validation flow.
type AllowedAudiencesValidation struct {
	AllowedAudiences []string               `json:"allowedAudiences,omitempty"`
	PropertyBag      genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AllowedAudiencesValidation_STATUS
// The configuration settings of the Allowed Audiences validation flow.
type AllowedAudiencesValidation_STATUS struct {
	AllowedAudiences []string               `json:"allowedAudiences,omitempty"`
	PropertyBag      genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AppleRegistration
// The configuration settings of the registration for the Apple provider
type AppleRegistration struct {
	ClientId                *string                `json:"clientId,omitempty"`
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AppleRegistration_STATUS
// The configuration settings of the registration for the Apple provider
type AppleRegistration_STATUS struct {
	ClientId                *string                `json:"clientId,omitempty"`
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AppRegistration
// The configuration settings of the app registration for providers that have app ids and app secrets
type AppRegistration struct {
	AppId                *string                `json:"appId,omitempty"`
	AppSecretSettingName *string                `json:"appSecretSettingName,omitempty"`
	PropertyBag          genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AppRegistration_STATUS
// The configuration settings of the app registration for providers that have app ids and app secrets
type AppRegistration_STATUS struct {
	AppId                *string                `json:"appId,omitempty"`
	AppSecretSettingName *string                `json:"appSecretSettingName,omitempty"`
	PropertyBag          genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryLogin
// The configuration settings of the Azure Active Directory login flow.
type AzureActiveDirectoryLogin struct {
	DisableWWWAuthenticate *bool                  `json:"disableWWWAuthenticate,omitempty"`
	LoginParameters        []string               `json:"loginParameters,omitempty"`
	PropertyBag            genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryLogin_STATUS
// The configuration settings of the Azure Active Directory login flow.
type AzureActiveDirectoryLogin_STATUS struct {
	DisableWWWAuthenticate *bool                  `json:"disableWWWAuthenticate,omitempty"`
	LoginParameters        []string               `json:"loginParameters,omitempty"`
	PropertyBag            genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryRegistration
// The configuration settings of the Azure Active Directory app registration.
type AzureActiveDirectoryRegistration struct {
	ClientId                                      *string                `json:"clientId,omitempty"`
	ClientSecretCertificateIssuer                 *string                `json:"clientSecretCertificateIssuer,omitempty"`
	ClientSecretCertificateSubjectAlternativeName *string                `json:"clientSecretCertificateSubjectAlternativeName,omitempty"`
	ClientSecretCertificateThumbprint             *string                `json:"clientSecretCertificateThumbprint,omitempty"`
	ClientSecretSettingName                       *string                `json:"clientSecretSettingName,omitempty"`
	OpenIdIssuer                                  *string                `json:"openIdIssuer,omitempty"`
	PropertyBag                                   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryRegistration_STATUS
// The configuration settings of the Azure Active Directory app registration.
type AzureActiveDirectoryRegistration_STATUS struct {
	ClientId                                      *string                `json:"clientId,omitempty"`
	ClientSecretCertificateIssuer                 *string                `json:"clientSecretCertificateIssuer,omitempty"`
	ClientSecretCertificateSubjectAlternativeName *string                `json:"clientSecretCertificateSubjectAlternativeName,omitempty"`
	ClientSecretCertificateThumbprint             *string                `json:"clientSecretCertificateThumbprint,omitempty"`
	ClientSecretSettingName                       *string                `json:"clientSecretSettingName,omitempty"`
	OpenIdIssuer                                  *string                `json:"openIdIssuer,omitempty"`
	PropertyBag                                   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryValidation
// The configuration settings of the Azure Active Directory token validation flow.
type AzureActiveDirectoryValidation struct {
	AllowedAudiences           []string                    `json:"allowedAudiences,omitempty"`
	DefaultAuthorizationPolicy *DefaultAuthorizationPolicy `json:"defaultAuthorizationPolicy,omitempty"`
	JwtClaimChecks             *JwtClaimChecks             `json:"jwtClaimChecks,omitempty"`
	PropertyBag                genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureActiveDirectoryValidation_STATUS
// The configuration settings of the Azure Active Directory token validation flow.
type AzureActiveDirectoryValidation_STATUS struct {
	AllowedAudiences           []string                           `json:"allowedAudiences,omitempty"`
	DefaultAuthorizationPolicy *DefaultAuthorizationPolicy_STATUS `json:"defaultAuthorizationPolicy,omitempty"`
	JwtClaimChecks             *JwtClaimChecks_STATUS             `json:"jwtClaimChecks,omitempty"`
	PropertyBag                genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureStaticWebAppsRegistration
// The configuration settings of the registration for the Azure Static Web Apps provider
type AzureStaticWebAppsRegistration struct {
	ClientId    *string                `json:"clientId,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AzureStaticWebAppsRegistration_STATUS
// The configuration settings of the registration for the Azure Static Web Apps provider
type AzureStaticWebAppsRegistration_STATUS struct {
	ClientId    *string                `json:"clientId,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.BlobStorageTokenStore
// The configuration settings of the storage of the tokens if blob storage is used.
type BlobStorageTokenStore struct {
	PropertyBag       genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	SasUrlSettingName *string                `json:"sasUrlSettingName,omitempty"`
}

// Storage version of v1api20250101.BlobStorageTokenStore_STATUS
// The configuration settings of the storage of the tokens if blob storage is used.
type BlobStorageTokenStore_STATUS struct {
	PropertyBag       genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	SasUrlSettingName *string                `json:"sasUrlSettingName,omitempty"`
}

// Storage version of v1api20250101.ClientRegistration
// The configuration settings of the app registration for providers that have client ids and client secrets
type ClientRegistration struct {
	ClientId                *string                `json:"clientId,omitempty"`
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.ClientRegistration_STATUS
// The configuration settings of the app registration for providers that have client ids and client secrets
type ClientRegistration_STATUS struct {
	ClientId                *string                `json:"clientId,omitempty"`
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.LoginScopes
// The configuration settings of the login flow, including the scopes that should be requested.
type LoginScopes struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Scopes      []string               `json:"scopes,omitempty"`
}

// Storage version of v1api20250101.LoginScopes_STATUS
// The configuration settings of the login flow, including the scopes that should be requested.
type LoginScopes_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Scopes      []string               `json:"scopes,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectLogin
// The configuration settings of the login flow of the custom Open ID Connect provider.
type OpenIdConnectLogin struct {
	NameClaimType *string                `json:"nameClaimType,omitempty"`
	PropertyBag   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Scopes        []string               `json:"scopes,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectLogin_STATUS
// The configuration settings of the login flow of the custom Open ID Connect provider.
type OpenIdConnectLogin_STATUS struct {
	NameClaimType *string                `json:"nameClaimType,omitempty"`
	PropertyBag   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Scopes        []string               `json:"scopes,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectRegistration
// The configuration settings of the app registration for the custom Open ID Connect provider.
type OpenIdConnectRegistration struct {
	ClientCredential           *OpenIdConnectClientCredential `json:"clientCredential,omitempty"`
	ClientId                   *string                        `json:"clientId,omitempty"`
	OpenIdConnectConfiguration *OpenIdConnectConfig           `json:"openIdConnectConfiguration,omitempty"`
	PropertyBag                genruntime.PropertyBag         `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectRegistration_STATUS
// The configuration settings of the app registration for the custom Open ID Connect provider.
type OpenIdConnectRegistration_STATUS struct {
	ClientCredential           *OpenIdConnectClientCredential_STATUS `json:"clientCredential,omitempty"`
	ClientId                   *string                               `json:"clientId,omitempty"`
	OpenIdConnectConfiguration *OpenIdConnectConfig_STATUS           `json:"openIdConnectConfiguration,omitempty"`
	PropertyBag                genruntime.PropertyBag                `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.TwitterRegistration
// The configuration settings of the app registration for the Twitter provider.
type TwitterRegistration struct {
	ConsumerKey               *string                `json:"consumerKey,omitempty"`
	ConsumerSecretSettingName *string                `json:"consumerSecretSettingName,omitempty"`
	PropertyBag               genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.TwitterRegistration_STATUS
// The configuration settings of the app registration for the Twitter provider.
type TwitterRegistration_STATUS struct {
	ConsumerKey               *string                `json:"consumerKey,omitempty"`
	ConsumerSecretSettingName *string                `json:"consumerSecretSettingName,omitempty"`
	PropertyBag               genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.DefaultAuthorizationPolicy
// The configuration settings of the Azure Active Directory default authorization policy.
type DefaultAuthorizationPolicy struct {
	AllowedApplications []string               `json:"allowedApplications,omitempty"`
	AllowedPrincipals   *AllowedPrincipals     `json:"allowedPrincipals,omitempty"`
	PropertyBag         genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.DefaultAuthorizationPolicy_STATUS
// The configuration settings of the Azure Active Directory default authorization policy.
type DefaultAuthorizationPolicy_STATUS struct {
	AllowedApplications []string                  `json:"allowedApplications,omitempty"`
	AllowedPrincipals   *AllowedPrincipals_STATUS `json:"allowedPrincipals,omitempty"`
	PropertyBag         genruntime.PropertyBag    `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.JwtClaimChecks
// The configuration settings of the checks that should be made while validating the JWT Claims.
type JwtClaimChecks struct {
	AllowedClientApplications []string               `json:"allowedClientApplications,omitempty"`
	AllowedGroups             []string               `json:"allowedGroups,omitempty"`
	PropertyBag               genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.JwtClaimChecks_STATUS
// The configuration settings of the checks that should be made while validating the JWT Claims.
type JwtClaimChecks_STATUS struct {
	AllowedClientApplications []string               `json:"allowedClientApplications,omitempty"`
	AllowedGroups             []string               `json:"allowedGroups,omitempty"`
	PropertyBag               genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectClientCredential
// The authentication client credentials of the custom Open ID Connect provider.
type OpenIdConnectClientCredential struct {
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	Method                  *string                `json:"method,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectClientCredential_STATUS
// The authentication client credentials of the custom Open ID Connect provider.
type OpenIdConnectClientCredential_STATUS struct {
	ClientSecretSettingName *string                `json:"clientSecretSettingName,omitempty"`
	Method                  *string                `json:"method,omitempty"`
	PropertyBag             genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectConfig
// The configuration settings of the endpoints used for the custom Open ID Connect provider.
type OpenIdConnectConfig struct {
	AuthorizationEndpoint        *string                `json:"authorizationEndpoint,omitempty"`
	CertificationUri             *string                `json:"certificationUri,omitempty"`
	Issuer                       *string                `json:"issuer,omitempty"`
	PropertyBag                  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TokenEndpoint                *string                `json:"tokenEndpoint,omitempty"`
	WellKnownOpenIdConfiguration *string                `json:"wellKnownOpenIdConfiguration,omitempty"`
}

// Storage version of v1api20250101.OpenIdConnectConfig_STATUS
// The configuration settings of the endpoints used for the custom Open ID Connect provider.
type OpenIdConnectConfig_STATUS struct {
	AuthorizationEndpoint        *string                `json:"authorizationEndpoint,omitempty"`
	CertificationUri             *string                `json:"certificationUri,omitempty"`
	Issuer                       *string                `json:"issuer,omitempty"`
	PropertyBag                  genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TokenEndpoint                *string                `json:"tokenEndpoint,omitempty"`
	WellKnownOpenIdConfiguration *string                `json:"wellKnownOpenIdConfiguration,omitempty"`
}

// Storage version of v1api20250101.AllowedPrincipals
// The configuration settings of the Azure Active Directory allowed principals.
type AllowedPrincipals struct {
	Groups      []string               `json:"groups,omitempty"`
	Identities  []string               `json:"identities,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20250101.AllowedPrincipals_STATUS
// The configuration settings of the Azure Active Directory allowed principals.
type AllowedPrincipals_STATUS struct {
	Groups      []string               `json:"groups,omitempty"`
	Identities  []string               `json:"identities,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

func init() {
	SchemeBuilder.Register(&AuthConfig{}, &AuthConfigList{})
}
