managementgroupdiagnosticsettings

package
v0.20240610.1112704 Latest Latest
Warning

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

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

README

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

The managementgroupdiagnosticsettings 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/managementgroupdiagnosticsettings"

Client Initialization

client := managementgroupdiagnosticsettings.NewManagementGroupDiagnosticSettingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagementGroupDiagnosticSettingsClient.CreateOrUpdate

ctx := context.TODO()
id := managementgroupdiagnosticsettings.NewProviders2DiagnosticSettingID("managementGroupIdValue", "diagnosticSettingValue")

payload := managementgroupdiagnosticsettings.ManagementGroupDiagnosticSettingsResource{
	// ...
}


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

Example Usage: ManagementGroupDiagnosticSettingsClient.Delete

ctx := context.TODO()
id := managementgroupdiagnosticsettings.NewProviders2DiagnosticSettingID("managementGroupIdValue", "diagnosticSettingValue")

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

Example Usage: ManagementGroupDiagnosticSettingsClient.Get

ctx := context.TODO()
id := managementgroupdiagnosticsettings.NewProviders2DiagnosticSettingID("managementGroupIdValue", "diagnosticSettingValue")

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

Example Usage: ManagementGroupDiagnosticSettingsClient.List

ctx := context.TODO()
id := commonids.NewManagementGroupID("groupIdValue")

read, err := client.List(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 ValidateProviders2DiagnosticSettingID

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

ValidateProviders2DiagnosticSettingID checks that 'input' can be parsed as a Providers 2 Diagnostic Setting ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroupDiagnosticSettingsResource
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroupDiagnosticSettingsResource
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ManagementGroupDiagnosticSettingsResourceCollection
}

type ManagementGroupDiagnosticSettings

type ManagementGroupDiagnosticSettings struct {
	EventHubAuthorizationRuleId *string                       `json:"eventHubAuthorizationRuleId,omitempty"`
	EventHubName                *string                       `json:"eventHubName,omitempty"`
	Logs                        *[]ManagementGroupLogSettings `json:"logs,omitempty"`
	MarketplacePartnerId        *string                       `json:"marketplacePartnerId,omitempty"`
	ServiceBusRuleId            *string                       `json:"serviceBusRuleId,omitempty"`
	StorageAccountId            *string                       `json:"storageAccountId,omitempty"`
	WorkspaceId                 *string                       `json:"workspaceId,omitempty"`
}

type ManagementGroupDiagnosticSettingsClient

type ManagementGroupDiagnosticSettingsClient struct {
	Client *resourcemanager.Client
}

func NewManagementGroupDiagnosticSettingsClientWithBaseURI

func NewManagementGroupDiagnosticSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementGroupDiagnosticSettingsClient, error)

func (ManagementGroupDiagnosticSettingsClient) CreateOrUpdate

CreateOrUpdate ...

func (ManagementGroupDiagnosticSettingsClient) Delete

Delete ...

func (ManagementGroupDiagnosticSettingsClient) Get

Get ...

func (ManagementGroupDiagnosticSettingsClient) List

List ...

type ManagementGroupDiagnosticSettingsResource

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

type ManagementGroupDiagnosticSettingsResourceCollection

type ManagementGroupDiagnosticSettingsResourceCollection struct {
	Value *[]ManagementGroupDiagnosticSettingsResource `json:"value,omitempty"`
}

type ManagementGroupLogSettings

type ManagementGroupLogSettings struct {
	Category      *string `json:"category,omitempty"`
	CategoryGroup *string `json:"categoryGroup,omitempty"`
	Enabled       bool    `json:"enabled"`
}

type Providers2DiagnosticSettingId

type Providers2DiagnosticSettingId struct {
	ManagementGroupId     string
	DiagnosticSettingName string
}

Providers2DiagnosticSettingId is a struct representing the Resource ID for a Providers 2 Diagnostic Setting

func NewProviders2DiagnosticSettingID

func NewProviders2DiagnosticSettingID(managementGroupId string, diagnosticSettingName string) Providers2DiagnosticSettingId

NewProviders2DiagnosticSettingID returns a new Providers2DiagnosticSettingId struct

func ParseProviders2DiagnosticSettingID

func ParseProviders2DiagnosticSettingID(input string) (*Providers2DiagnosticSettingId, error)

ParseProviders2DiagnosticSettingID parses 'input' into a Providers2DiagnosticSettingId

func ParseProviders2DiagnosticSettingIDInsensitively

func ParseProviders2DiagnosticSettingIDInsensitively(input string) (*Providers2DiagnosticSettingId, error)

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

func (*Providers2DiagnosticSettingId) FromParseResult

func (id *Providers2DiagnosticSettingId) FromParseResult(input resourceids.ParseResult) error

func (Providers2DiagnosticSettingId) ID

ID returns the formatted Providers 2 Diagnostic Setting ID

func (Providers2DiagnosticSettingId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Diagnostic Setting ID

func (Providers2DiagnosticSettingId) String

String returns a human-readable description of this Providers 2 Diagnostic Setting ID

Jump to

Keyboard shortcuts

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