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 ¶
ValidateLogProfileID checks that 'input' can be parsed as a Log Profile ID
Types ¶
type LogProfileId ¶
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 ¶ added in v0.20231127.1171502
func (id *LogProfileId) FromParseResult(input resourceids.ParseResult) error
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 LogProfileResourcePatch ¶
type LogProfileResourcePatch struct { Properties *LogProfileProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type LogProfilesAPIsClient ¶
type LogProfilesAPIsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewLogProfilesAPIsClientWithBaseURI ¶
func NewLogProfilesAPIsClientWithBaseURI(endpoint string) LogProfilesAPIsClient
func (LogProfilesAPIsClient) LogProfilesUpdate ¶
func (c LogProfilesAPIsClient) LogProfilesUpdate(ctx context.Context, id LogProfileId, input LogProfileResourcePatch) (result LogProfilesUpdateOperationResponse, err error)
LogProfilesUpdate ...
type LogProfilesUpdateOperationResponse ¶
type LogProfilesUpdateOperationResponse struct { HttpResponse *http.Response Model *LogProfileResource }