// 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 RedisAccessPolicy_Spec struct {
	Name string `json:"name,omitempty"`

	// Properties: Properties of an access policy.
	Properties *RedisCacheAccessPolicyProperties `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &RedisAccessPolicy_Spec{}

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

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

// GetType returns the ARM Type of the resource. This is always "Microsoft.Cache/redis/accessPolicies"
func (policy *RedisAccessPolicy_Spec) GetType() string {
	return "Microsoft.Cache/redis/accessPolicies"
}

// All properties of an access policy.
type RedisCacheAccessPolicyProperties struct {
	// Permissions: Permissions for the access policy. Learn how to configure permissions at
	// https://aka.ms/redis/AADPreRequisites
	Permissions *string `json:"permissions,omitempty"`
}
