diagnosticsettingscategories

package
v0.20240402.1064951 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories Documentation

The diagnosticsettingscategories SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2021-05-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories"

Client Initialization

client := diagnosticsettingscategories.NewDiagnosticSettingsCategoriesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DiagnosticSettingsCategoriesClient.DiagnosticSettingsCategoryGet

ctx := context.TODO()
id := diagnosticsettingscategories.NewScopedDiagnosticSettingsCategoryID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "diagnosticSettingsCategoryValue")

read, err := client.DiagnosticSettingsCategoryGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: DiagnosticSettingsCategoriesClient.DiagnosticSettingsCategoryList

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

read, err := client.DiagnosticSettingsCategoryList(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCategoryType

func PossibleValuesForCategoryType() []string

func ValidateScopedDiagnosticSettingsCategoryID

func ValidateScopedDiagnosticSettingsCategoryID(input interface{}, key string) (warnings []string, errors []error)

ValidateScopedDiagnosticSettingsCategoryID checks that 'input' can be parsed as a Scoped Diagnostic Settings Category ID

Types

type CategoryType

type CategoryType string
const (
	CategoryTypeLogs    CategoryType = "Logs"
	CategoryTypeMetrics CategoryType = "Metrics"
)

func (*CategoryType) UnmarshalJSON added in v0.20240229.1102109

func (s *CategoryType) UnmarshalJSON(bytes []byte) error

type DiagnosticSettingsCategoriesClient

type DiagnosticSettingsCategoriesClient struct {
	Client *resourcemanager.Client
}

func NewDiagnosticSettingsCategoriesClientWithBaseURI

func NewDiagnosticSettingsCategoriesClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsCategoriesClient, error)

func (DiagnosticSettingsCategoriesClient) DiagnosticSettingsCategoryGet

DiagnosticSettingsCategoryGet ...

func (DiagnosticSettingsCategoriesClient) DiagnosticSettingsCategoryList

DiagnosticSettingsCategoryList ...

type DiagnosticSettingsCategory

type DiagnosticSettingsCategory struct {
	CategoryGroups *[]string     `json:"categoryGroups,omitempty"`
	CategoryType   *CategoryType `json:"categoryType,omitempty"`
}

type DiagnosticSettingsCategoryGetOperationResponse

type DiagnosticSettingsCategoryGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticSettingsCategoryResource
}

type DiagnosticSettingsCategoryListOperationResponse

type DiagnosticSettingsCategoryListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DiagnosticSettingsCategoryResourceCollection
}

type DiagnosticSettingsCategoryResource

type DiagnosticSettingsCategoryResource struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *DiagnosticSettingsCategory `json:"properties,omitempty"`
	SystemData *systemdata.SystemData      `json:"systemData,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type DiagnosticSettingsCategoryResourceCollection

type DiagnosticSettingsCategoryResourceCollection struct {
	Value *[]DiagnosticSettingsCategoryResource `json:"value,omitempty"`
}

type ScopedDiagnosticSettingsCategoryId

type ScopedDiagnosticSettingsCategoryId struct {
	ResourceUri                    string
	DiagnosticSettingsCategoryName string
}

ScopedDiagnosticSettingsCategoryId is a struct representing the Resource ID for a Scoped Diagnostic Settings Category

func NewScopedDiagnosticSettingsCategoryID

func NewScopedDiagnosticSettingsCategoryID(resourceUri string, diagnosticSettingsCategoryName string) ScopedDiagnosticSettingsCategoryId

NewScopedDiagnosticSettingsCategoryID returns a new ScopedDiagnosticSettingsCategoryId struct

func ParseScopedDiagnosticSettingsCategoryID

func ParseScopedDiagnosticSettingsCategoryID(input string) (*ScopedDiagnosticSettingsCategoryId, error)

ParseScopedDiagnosticSettingsCategoryID parses 'input' into a ScopedDiagnosticSettingsCategoryId

func ParseScopedDiagnosticSettingsCategoryIDInsensitively

func ParseScopedDiagnosticSettingsCategoryIDInsensitively(input string) (*ScopedDiagnosticSettingsCategoryId, error)

ParseScopedDiagnosticSettingsCategoryIDInsensitively parses 'input' case-insensitively into a ScopedDiagnosticSettingsCategoryId note: this method should only be used for API response data and not user input

func (*ScopedDiagnosticSettingsCategoryId) FromParseResult

func (ScopedDiagnosticSettingsCategoryId) ID

ID returns the formatted Scoped Diagnostic Settings Category ID

func (ScopedDiagnosticSettingsCategoryId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Diagnostic Settings Category ID

func (ScopedDiagnosticSettingsCategoryId) String

String returns a human-readable description of this Scoped Diagnostic Settings Category ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL