// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package nginx

import (
	"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
)

type Registration struct{}

var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{}

func (r Registration) AssociatedGitHubLabel() string {
	return "service/nginx"
}

// Name is the name of this Service
func (r Registration) Name() string {
	return "Nginx"
}

// WebsiteCategories returns a list of categories which can be used for the sidebar
func (r Registration) WebsiteCategories() []string {
	return []string{
		"NGINX",
	}
}

// DataSources ...
func (r Registration) DataSources() []sdk.DataSource {
	return []sdk.DataSource{
		DeploymentDataSource{},
		CertificateDataSource{},
		ConfigurationDataSource{},
	}
}

// Resources ...
func (r Registration) Resources() []sdk.Resource {
	return []sdk.Resource{
		CertificateResource{},
		DeploymentResource{},
		ConfigurationResource{},
	}
}
