// 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=notificationhubs.azure.com,resources=notificationhubs,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=notificationhubs.azure.com,resources={notificationhubs/status,notificationhubs/finalizers},verbs=get;update;patch

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories={azure,notificationhubs}
// +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 v1api20230901.NotificationHub
// Generator information:
// - Generated from: /notificationhubs/resource-manager/Microsoft.NotificationHubs/NotificationHubs/stable/2023-09-01/notificationhubs.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
type NotificationHub struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              NotificationHub_Spec   `json:"spec,omitempty"`
	Status            NotificationHub_STATUS `json:"status,omitempty"`
}

var _ conditions.Conditioner = &NotificationHub{}

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

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

var _ configmaps.Exporter = &NotificationHub{}

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

var _ secrets.Exporter = &NotificationHub{}

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

var _ genruntime.KubernetesResource = &NotificationHub{}

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

// GetAPIVersion returns the ARM API version of the resource. This is always "2023-09-01"
func (notificationHub NotificationHub) GetAPIVersion() string {
	return "2023-09-01"
}

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

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

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

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

// GetType returns the ARM Type of the resource. This is always "Microsoft.NotificationHubs/namespaces/notificationHubs"
func (notificationHub *NotificationHub) GetType() string {
	return "Microsoft.NotificationHubs/namespaces/notificationHubs"
}

// NewEmptyStatus returns a new empty (blank) status
func (notificationHub *NotificationHub) NewEmptyStatus() genruntime.ConvertibleStatus {
	return &NotificationHub_STATUS{}
}

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

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

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

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

	notificationHub.Status = st
	return nil
}

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

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

// +kubebuilder:object:root=true
// Storage version of v1api20230901.NotificationHub
// Generator information:
// - Generated from: /notificationhubs/resource-manager/Microsoft.NotificationHubs/NotificationHubs/stable/2023-09-01/notificationhubs.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}
type NotificationHubList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NotificationHub `json:"items"`
}

// Storage version of v1api20230901.NotificationHub_Spec
type NotificationHub_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"`
	Location        *string                      `json:"location,omitempty"`
	OperatorSpec    *NotificationHubOperatorSpec `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 notificationhubs.azure.com/Namespace resource
	Owner       *genruntime.KnownResourceReference `group:"notificationhubs.azure.com" json:"owner,omitempty" kind:"Namespace"`
	Properties  *NotificationHubProperties         `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	Sku         *Sku                               `json:"sku,omitempty"`
	Tags        map[string]string                  `json:"tags,omitempty"`
}

var _ genruntime.ConvertibleSpec = &NotificationHub_Spec{}

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

	return source.ConvertSpecTo(notificationHub)
}

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

	return destination.ConvertSpecFrom(notificationHub)
}

// Storage version of v1api20230901.NotificationHub_STATUS
type NotificationHub_STATUS struct {
	Conditions  []conditions.Condition            `json:"conditions,omitempty"`
	Id          *string                           `json:"id,omitempty"`
	Location    *string                           `json:"location,omitempty"`
	Name        *string                           `json:"name,omitempty"`
	Properties  *NotificationHubProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
	Sku         *Sku_STATUS                       `json:"sku,omitempty"`
	SystemData  *SystemData_STATUS                `json:"systemData,omitempty"`
	Tags        map[string]string                 `json:"tags,omitempty"`
	Type        *string                           `json:"type,omitempty"`
}

var _ genruntime.ConvertibleStatus = &NotificationHub_STATUS{}

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

	return source.ConvertStatusTo(notificationHub)
}

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

	return destination.ConvertStatusFrom(notificationHub)
}

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

// Storage version of v1api20230901.NotificationHubProperties
// NotificationHub properties.
type NotificationHubProperties struct {
	AdmCredential     *AdmCredential         `json:"admCredential,omitempty"`
	ApnsCredential    *ApnsCredential        `json:"apnsCredential,omitempty"`
	BaiduCredential   *BaiduCredential       `json:"baiduCredential,omitempty"`
	BrowserCredential *BrowserCredential     `json:"browserCredential,omitempty"`
	GcmCredential     *GcmCredential         `json:"gcmCredential,omitempty"`
	MpnsCredential    *MpnsCredential        `json:"mpnsCredential,omitempty"`
	Name              *string                `json:"name,omitempty"`
	PropertyBag       genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	RegistrationTtl   *string                `json:"registrationTtl,omitempty"`
	WnsCredential     *WnsCredential         `json:"wnsCredential,omitempty"`
	XiaomiCredential  *XiaomiCredential      `json:"xiaomiCredential,omitempty"`
}

// Storage version of v1api20230901.NotificationHubProperties_STATUS
// NotificationHub properties.
type NotificationHubProperties_STATUS struct {
	AdmCredential         *AdmCredential_STATUS                            `json:"admCredential,omitempty"`
	ApnsCredential        *ApnsCredential_STATUS                           `json:"apnsCredential,omitempty"`
	AuthorizationRules    []SharedAccessAuthorizationRuleProperties_STATUS `json:"authorizationRules,omitempty"`
	BaiduCredential       *BaiduCredential_STATUS                          `json:"baiduCredential,omitempty"`
	BrowserCredential     *BrowserCredential_STATUS                        `json:"browserCredential,omitempty"`
	DailyMaxActiveDevices *int                                             `json:"dailyMaxActiveDevices,omitempty"`
	GcmCredential         *GcmCredential_STATUS                            `json:"gcmCredential,omitempty"`
	MpnsCredential        *MpnsCredential_STATUS                           `json:"mpnsCredential,omitempty"`
	Name                  *string                                          `json:"name,omitempty"`
	PropertyBag           genruntime.PropertyBag                           `json:"$propertyBag,omitempty"`
	RegistrationTtl       *string                                          `json:"registrationTtl,omitempty"`
	WnsCredential         *WnsCredential_STATUS                            `json:"wnsCredential,omitempty"`
	XiaomiCredential      *XiaomiCredential_STATUS                         `json:"xiaomiCredential,omitempty"`
}

// Storage version of v1api20230901.AdmCredential
// Description of a NotificationHub AdmCredential.
type AdmCredential struct {
	Properties  *AdmCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag   `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.AdmCredential_STATUS
// Description of a NotificationHub AdmCredential.
type AdmCredential_STATUS struct {
	Properties  *AdmCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag          `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.ApnsCredential
// Description of a NotificationHub ApnsCredential.
type ApnsCredential struct {
	Properties  *ApnsCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag    `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.ApnsCredential_STATUS
// Description of a NotificationHub ApnsCredential.
type ApnsCredential_STATUS struct {
	Properties  *ApnsCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag           `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BaiduCredential
// Description of a NotificationHub BaiduCredential.
type BaiduCredential struct {
	Properties  *BaiduCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BaiduCredential_STATUS
// Description of a NotificationHub BaiduCredential.
type BaiduCredential_STATUS struct {
	Properties  *BaiduCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BrowserCredential
// Description of a NotificationHub BrowserCredential.
type BrowserCredential struct {
	Properties  *BrowserCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag       `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BrowserCredential_STATUS
// Description of a NotificationHub BrowserCredential.
type BrowserCredential_STATUS struct {
	Properties  *BrowserCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag              `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.GcmCredential
// Description of a NotificationHub GcmCredential.
type GcmCredential struct {
	Properties  *GcmCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag   `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.GcmCredential_STATUS
// Description of a NotificationHub GcmCredential.
type GcmCredential_STATUS struct {
	Properties  *GcmCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag          `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.MpnsCredential
// Description of a NotificationHub MpnsCredential.
type MpnsCredential struct {
	Properties  *MpnsCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag    `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.MpnsCredential_STATUS
// Description of a NotificationHub MpnsCredential.
type MpnsCredential_STATUS struct {
	Properties  *MpnsCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag           `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.NotificationHubOperatorSecrets
type NotificationHubOperatorSecrets struct {
	PrimaryConnectionString   *genruntime.SecretDestination `json:"primaryConnectionString,omitempty"`
	PrimaryKey                *genruntime.SecretDestination `json:"primaryKey,omitempty"`
	PropertyBag               genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	SecondaryConnectionString *genruntime.SecretDestination `json:"secondaryConnectionString,omitempty"`
	SecondaryKey              *genruntime.SecretDestination `json:"secondaryKey,omitempty"`
}

// Storage version of v1api20230901.WnsCredential
// Description of a NotificationHub WnsCredential.
type WnsCredential struct {
	Properties  *WnsCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag   `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.WnsCredential_STATUS
// Description of a NotificationHub WnsCredential.
type WnsCredential_STATUS struct {
	Properties  *WnsCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag          `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.XiaomiCredential
// Description of a NotificationHub XiaomiCredential.
type XiaomiCredential struct {
	Properties  *XiaomiCredentialProperties `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.XiaomiCredential_STATUS
// Description of a NotificationHub XiaomiCredential.
type XiaomiCredential_STATUS struct {
	Properties  *XiaomiCredentialProperties_STATUS `json:"properties,omitempty"`
	PropertyBag genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.AdmCredentialProperties
// Description of a NotificationHub AdmCredential.
type AdmCredentialProperties struct {
	AuthTokenUrl *genruntime.SecretReference `json:"authTokenUrl,omitempty"`
	ClientId     *genruntime.SecretReference `json:"clientId,omitempty"`
	ClientSecret *genruntime.SecretReference `json:"clientSecret,omitempty"`
	PropertyBag  genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.AdmCredentialProperties_STATUS
// Description of a NotificationHub AdmCredential.
type AdmCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.ApnsCredentialProperties
// Description of a NotificationHub ApnsCredential.
type ApnsCredentialProperties struct {
	ApnsCertificate *genruntime.SecretReference `json:"apnsCertificate,omitempty"`
	AppId           *genruntime.SecretReference `json:"appId,omitempty"`
	AppName         *genruntime.SecretReference `json:"appName,omitempty"`
	CertificateKey  *genruntime.SecretReference `json:"certificateKey,omitempty"`
	Endpoint        *genruntime.SecretReference `json:"endpoint,omitempty"`
	KeyId           *genruntime.SecretReference `json:"keyId,omitempty"`
	PropertyBag     genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Thumbprint      *genruntime.SecretReference `json:"thumbprint,omitempty"`
	Token           *genruntime.SecretReference `json:"token,omitempty"`
}

// Storage version of v1api20230901.ApnsCredentialProperties_STATUS
// Description of a NotificationHub ApnsCredential.
type ApnsCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BaiduCredentialProperties
// Description of a NotificationHub BaiduCredential.
type BaiduCredentialProperties struct {
	BaiduApiKey    *genruntime.SecretReference `json:"baiduApiKey,omitempty"`
	BaiduEndPoint  *genruntime.SecretReference `json:"baiduEndPoint,omitempty"`
	BaiduSecretKey *genruntime.SecretReference `json:"baiduSecretKey,omitempty"`
	PropertyBag    genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BaiduCredentialProperties_STATUS
// Description of a NotificationHub BaiduCredential.
type BaiduCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.BrowserCredentialProperties
// Description of a NotificationHub BrowserCredential.
type BrowserCredentialProperties struct {
	PropertyBag     genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Subject         *genruntime.SecretReference `json:"subject,omitempty"`
	VapidPrivateKey *genruntime.SecretReference `json:"vapidPrivateKey,omitempty"`
	VapidPublicKey  *genruntime.SecretReference `json:"vapidPublicKey,omitempty"`
}

// Storage version of v1api20230901.BrowserCredentialProperties_STATUS
// Description of a NotificationHub BrowserCredential.
type BrowserCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.GcmCredentialProperties
// Description of a NotificationHub GcmCredential.
type GcmCredentialProperties struct {
	GcmEndpoint  *genruntime.SecretReference `json:"gcmEndpoint,omitempty"`
	GoogleApiKey *genruntime.SecretReference `json:"googleApiKey,omitempty"`
	PropertyBag  genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.GcmCredentialProperties_STATUS
// Description of a NotificationHub GcmCredential.
type GcmCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.MpnsCredentialProperties
// Description of a NotificationHub MpnsCredential.
type MpnsCredentialProperties struct {
	CertificateKey  *genruntime.SecretReference `json:"certificateKey,omitempty"`
	MpnsCertificate *genruntime.SecretReference `json:"mpnsCertificate,omitempty"`
	PropertyBag     genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Thumbprint      *genruntime.SecretReference `json:"thumbprint,omitempty"`
}

// Storage version of v1api20230901.MpnsCredentialProperties_STATUS
// Description of a NotificationHub MpnsCredential.
type MpnsCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.WnsCredentialProperties
// Description of a NotificationHub WnsCredential.
type WnsCredentialProperties struct {
	CertificateKey      *genruntime.SecretReference `json:"certificateKey,omitempty"`
	PackageSid          *genruntime.SecretReference `json:"packageSid,omitempty"`
	PropertyBag         genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	SecretKey           *genruntime.SecretReference `json:"secretKey,omitempty"`
	WindowsLiveEndpoint *genruntime.SecretReference `json:"windowsLiveEndpoint,omitempty"`
	WnsCertificate      *genruntime.SecretReference `json:"wnsCertificate,omitempty"`
}

// Storage version of v1api20230901.WnsCredentialProperties_STATUS
// Description of a NotificationHub WnsCredential.
type WnsCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.XiaomiCredentialProperties
// Description of a NotificationHub XiaomiCredentialProperties.
type XiaomiCredentialProperties struct {
	AppSecret   *genruntime.SecretReference `json:"appSecret,omitempty"`
	Endpoint    *genruntime.SecretReference `json:"endpoint,omitempty"`
	PropertyBag genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20230901.XiaomiCredentialProperties_STATUS
// Description of a NotificationHub XiaomiCredentialProperties.
type XiaomiCredentialProperties_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

func init() {
	SchemeBuilder.Register(&NotificationHub{}, &NotificationHubList{})
}
