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

import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"

type TopicAuthorizationRule_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: AuthorizationRule properties.
	Properties *Namespaces_Topics_AuthorizationRule_Properties_Spec `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &TopicAuthorizationRule_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2024-01-01"
func (rule TopicAuthorizationRule_Spec) GetAPIVersion() string {
	return "2024-01-01"
}

// GetName returns the Name of the resource
func (rule *TopicAuthorizationRule_Spec) GetName() string {
	return rule.Name
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.ServiceBus/namespaces/topics/authorizationRules"
func (rule *TopicAuthorizationRule_Spec) GetType() string {
	return "Microsoft.ServiceBus/namespaces/topics/authorizationRules"
}

type Namespaces_Topics_AuthorizationRule_Properties_Spec struct {
	// Rights: The rights associated with the rule.
	Rights []TopicAuthorizationRuleRights_Spec `json:"rights,omitempty"`
}

// +kubebuilder:validation:Enum={"Listen","Manage","Send"}
type TopicAuthorizationRuleRights_Spec string

const (
	TopicAuthorizationRuleRights_Spec_Listen = TopicAuthorizationRuleRights_Spec("Listen")
	TopicAuthorizationRuleRights_Spec_Manage = TopicAuthorizationRuleRights_Spec("Manage")
	TopicAuthorizationRuleRights_Spec_Send   = TopicAuthorizationRuleRights_Spec("Send")
)

// Mapping from string to TopicAuthorizationRuleRights_Spec
var topicAuthorizationRuleRights_Spec_Values = map[string]TopicAuthorizationRuleRights_Spec{
	"listen": TopicAuthorizationRuleRights_Spec_Listen,
	"manage": TopicAuthorizationRuleRights_Spec_Manage,
	"send":   TopicAuthorizationRuleRights_Spec_Send,
}
