logprofilesapis

package
v0.20240903.1111904 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2016-03-01/logprofilesapis Documentation

The logprofilesapis SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2016-03-01).

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/2016-03-01/logprofilesapis"

Client Initialization

client := logprofilesapis.NewLogProfilesAPIsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LogProfilesAPIsClient.LogProfilesUpdate

ctx := context.TODO()
id := logprofilesapis.NewLogProfileID("12345678-1234-9876-4563-123456789012", "logProfileValue")

payload := logprofilesapis.LogProfileResourcePatch{
	// ...
}


read, err := client.LogProfilesUpdate(ctx, id, payload)
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 ValidateLogProfileID

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

ValidateLogProfileID checks that 'input' can be parsed as a Log Profile ID

Types

type LogProfileId

type LogProfileId struct {
	SubscriptionId string
	LogProfileName string
}

LogProfileId is a struct representing the Resource ID for a Log Profile

func NewLogProfileID

func NewLogProfileID(subscriptionId string, logProfileName string) LogProfileId

NewLogProfileID returns a new LogProfileId struct

func ParseLogProfileID

func ParseLogProfileID(input string) (*LogProfileId, error)

ParseLogProfileID parses 'input' into a LogProfileId

func ParseLogProfileIDInsensitively

func ParseLogProfileIDInsensitively(input string) (*LogProfileId, error)

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

func (*LogProfileId) FromParseResult

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

func (LogProfileId) ID

func (id LogProfileId) ID() string

ID returns the formatted Log Profile ID

func (LogProfileId) Segments

func (id LogProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Log Profile ID

func (LogProfileId) String

func (id LogProfileId) String() string

String returns a human-readable description of this Log Profile ID

type LogProfileProperties

type LogProfileProperties struct {
	Categories       []string        `json:"categories"`
	Locations        []string        `json:"locations"`
	RetentionPolicy  RetentionPolicy `json:"retentionPolicy"`
	ServiceBusRuleId *string         `json:"serviceBusRuleId,omitempty"`
	StorageAccountId *string         `json:"storageAccountId,omitempty"`
}

type LogProfileResource

type LogProfileResource struct {
	Id         *string              `json:"id,omitempty"`
	Location   string               `json:"location"`
	Name       *string              `json:"name,omitempty"`
	Properties LogProfileProperties `json:"properties"`
	Tags       *map[string]string   `json:"tags,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type LogProfileResourcePatch

type LogProfileResourcePatch struct {
	Properties *LogProfileProperties `json:"properties,omitempty"`
	Tags       *map[string]string    `json:"tags,omitempty"`
}

type LogProfilesAPIsClient

type LogProfilesAPIsClient struct {
	Client *resourcemanager.Client
}

func NewLogProfilesAPIsClientWithBaseURI

func NewLogProfilesAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*LogProfilesAPIsClient, error)

func (LogProfilesAPIsClient) LogProfilesUpdate

LogProfilesUpdate ...

type LogProfilesUpdateOperationResponse

type LogProfilesUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LogProfileResource
}

type RetentionPolicy

type RetentionPolicy struct {
	Days    int64 `json:"days"`
	Enabled bool  `json:"enabled"`
}

Jump to

Keyboard shortcuts

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