diagnosticsettingscategories

package
v0.20230503.1130337 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MPL-2.0 Imports: 9 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-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 := diagnosticsettingscategories.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 added in v0.20220907.1111434

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"
)

type DiagnosticSettingsCategoriesClient

type DiagnosticSettingsCategoriesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewDiagnosticSettingsCategoriesClientWithBaseURI

func NewDiagnosticSettingsCategoriesClientWithBaseURI(endpoint string) DiagnosticSettingsCategoriesClient

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
	Model        *DiagnosticSettingsCategoryResource
}

type DiagnosticSettingsCategoryListOperationResponse

type DiagnosticSettingsCategoryListOperationResponse struct {
	HttpResponse *http.Response
	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 added in v0.20220907.1111434

type ScopedDiagnosticSettingsCategoryId struct {
	ResourceUri                    string
	DiagnosticSettingsCategoryName string
}

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

func NewScopedDiagnosticSettingsCategoryID added in v0.20220907.1111434

func NewScopedDiagnosticSettingsCategoryID(resourceUri string, diagnosticSettingsCategoryName string) ScopedDiagnosticSettingsCategoryId

NewScopedDiagnosticSettingsCategoryID returns a new ScopedDiagnosticSettingsCategoryId struct

func ParseScopedDiagnosticSettingsCategoryID added in v0.20220907.1111434

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

ParseScopedDiagnosticSettingsCategoryID parses 'input' into a ScopedDiagnosticSettingsCategoryId

func ParseScopedDiagnosticSettingsCategoryIDInsensitively added in v0.20220907.1111434

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) ID added in v0.20220907.1111434

ID returns the formatted Scoped Diagnostic Settings Category ID

func (ScopedDiagnosticSettingsCategoryId) Segments added in v0.20220907.1111434

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

func (ScopedDiagnosticSettingsCategoryId) String added in v0.20220907.1111434

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