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

	// Properties: Resource properties.
	Properties *DataCollectionRuleAssociationSpec `json:"properties,omitempty"`
}

var _ genruntime.ARMResourceSpec = &DataCollectionRuleAssociation_Spec{}

// GetAPIVersion returns the ARM API version of the resource. This is always "2023-03-11"
func (association DataCollectionRuleAssociation_Spec) GetAPIVersion() string {
	return "2023-03-11"
}

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

// GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/dataCollectionRuleAssociations"
func (association *DataCollectionRuleAssociation_Spec) GetType() string {
	return "Microsoft.Insights/dataCollectionRuleAssociations"
}

// Definition of association of a data collection rule with a monitored Azure resource.
type DataCollectionRuleAssociationSpec struct {
	// DataCollectionEndpointId: The resource ID of the data collection endpoint that is to be associated.
	DataCollectionEndpointId *string `json:"dataCollectionEndpointId,omitempty"`

	// DataCollectionRuleId: The resource ID of the data collection rule that is to be associated.
	DataCollectionRuleId *string `json:"dataCollectionRuleId,omitempty"`

	// Description: Description of the association.
	Description *string `json:"description,omitempty"`
}
