README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/intelligencepacks
Documentation
The intelligencepacks
SDK allows for interaction with Azure Resource Manager operationalinsights
(API Version 2020-08-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/operationalinsights/2020-08-01/intelligencepacks"
Client Initialization
client := intelligencepacks.NewIntelligencePacksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: IntelligencePacksClient.Disable
ctx := context.TODO()
id := intelligencepacks.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "intelligencePackName")
read, err := client.Disable(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IntelligencePacksClient.Enable
ctx := context.TODO()
id := intelligencepacks.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "intelligencePackName")
read, err := client.Enable(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: IntelligencePacksClient.List
ctx := context.TODO()
id := intelligencepacks.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")
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 ¶
- func ValidateIntelligencePackID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type DisableOperationResponse
- type EnableOperationResponse
- type IntelligencePack
- type IntelligencePackId
- type IntelligencePacksClient
- func (c IntelligencePacksClient) Disable(ctx context.Context, id IntelligencePackId) (result DisableOperationResponse, err error)
- func (c IntelligencePacksClient) Enable(ctx context.Context, id IntelligencePackId) (result EnableOperationResponse, err error)
- func (c IntelligencePacksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error)
- type ListOperationResponse
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateIntelligencePackID ¶
ValidateIntelligencePackID checks that 'input' can be parsed as a Intelligence Pack ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type EnableOperationResponse ¶
type IntelligencePack ¶
type IntelligencePackId ¶
type IntelligencePackId struct { SubscriptionId string ResourceGroupName string WorkspaceName string IntelligencePackName string }
IntelligencePackId is a struct representing the Resource ID for a Intelligence Pack
func NewIntelligencePackID ¶
func NewIntelligencePackID(subscriptionId string, resourceGroupName string, workspaceName string, intelligencePackName string) IntelligencePackId
NewIntelligencePackID returns a new IntelligencePackId struct
func ParseIntelligencePackID ¶
func ParseIntelligencePackID(input string) (*IntelligencePackId, error)
ParseIntelligencePackID parses 'input' into a IntelligencePackId
func ParseIntelligencePackIDInsensitively ¶
func ParseIntelligencePackIDInsensitively(input string) (*IntelligencePackId, error)
ParseIntelligencePackIDInsensitively parses 'input' case-insensitively into a IntelligencePackId note: this method should only be used for API response data and not user input
func (*IntelligencePackId) FromParseResult ¶
func (id *IntelligencePackId) FromParseResult(input resourceids.ParseResult) error
func (IntelligencePackId) ID ¶
func (id IntelligencePackId) ID() string
ID returns the formatted Intelligence Pack ID
func (IntelligencePackId) Segments ¶
func (id IntelligencePackId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Intelligence Pack ID
func (IntelligencePackId) String ¶
func (id IntelligencePackId) String() string
String returns a human-readable description of this Intelligence Pack ID
type IntelligencePacksClient ¶
type IntelligencePacksClient struct {
Client *resourcemanager.Client
}
func NewIntelligencePacksClientWithBaseURI ¶
func NewIntelligencePacksClientWithBaseURI(sdkApi sdkEnv.Api) (*IntelligencePacksClient, error)
func (IntelligencePacksClient) Disable ¶
func (c IntelligencePacksClient) Disable(ctx context.Context, id IntelligencePackId) (result DisableOperationResponse, err error)
Disable ...
func (IntelligencePacksClient) Enable ¶
func (c IntelligencePacksClient) Enable(ctx context.Context, id IntelligencePackId) (result EnableOperationResponse, err error)
Enable ...
func (IntelligencePacksClient) List ¶
func (c IntelligencePacksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error)
List ...
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]IntelligencePack }
type WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID