diagnosticsettingscategories

package
v0.20220906.1075003 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 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.NewScopedDiagnosticSettingsCategoriesID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "nameValue")

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 ValidateScopedDiagnosticSettingsCategoriesID

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

ValidateScopedDiagnosticSettingsCategoriesID checks that 'input' can be parsed as a Scoped Diagnostic Settings Categories 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 ScopedDiagnosticSettingsCategoriesId

type ScopedDiagnosticSettingsCategoriesId struct {
	ResourceUri string
	Name        string
}

ScopedDiagnosticSettingsCategoriesId is a struct representing the Resource ID for a Scoped Diagnostic Settings Categories

func NewScopedDiagnosticSettingsCategoriesID

func NewScopedDiagnosticSettingsCategoriesID(resourceUri string, name string) ScopedDiagnosticSettingsCategoriesId

NewScopedDiagnosticSettingsCategoriesID returns a new ScopedDiagnosticSettingsCategoriesId struct

func ParseScopedDiagnosticSettingsCategoriesID

func ParseScopedDiagnosticSettingsCategoriesID(input string) (*ScopedDiagnosticSettingsCategoriesId, error)

ParseScopedDiagnosticSettingsCategoriesID parses 'input' into a ScopedDiagnosticSettingsCategoriesId

func ParseScopedDiagnosticSettingsCategoriesIDInsensitively

func ParseScopedDiagnosticSettingsCategoriesIDInsensitively(input string) (*ScopedDiagnosticSettingsCategoriesId, error)

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

func (ScopedDiagnosticSettingsCategoriesId) ID

ID returns the formatted Scoped Diagnostic Settings Categories ID

func (ScopedDiagnosticSettingsCategoriesId) Segments

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

func (ScopedDiagnosticSettingsCategoriesId) String

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

Jump to

Keyboard shortcuts

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