querypacks

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks Documentation

The querypacks SDK allows for interaction with the Azure Resource Manager Service operationalinsights (API Version 2019-09-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/2019-09-01/querypacks"

Client Initialization

client := querypacks.NewQueryPacksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: QueryPacksClient.QueryPacksCreateOrUpdate

ctx := context.TODO()
id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

payload := querypacks.LogAnalyticsQueryPack{
	// ...
}


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

Example Usage: QueryPacksClient.QueryPacksCreateOrUpdateWithoutName

ctx := context.TODO()
id := querypacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

payload := querypacks.LogAnalyticsQueryPack{
	// ...
}


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

Example Usage: QueryPacksClient.QueryPacksDelete

ctx := context.TODO()
id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

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

Example Usage: QueryPacksClient.QueryPacksGet

ctx := context.TODO()
id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

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

Example Usage: QueryPacksClient.QueryPacksList

ctx := context.TODO()
id := querypacks.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.QueryPacksList(ctx, id)` can be used to do batched pagination
items, err := client.QueryPacksListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: QueryPacksClient.QueryPacksListByResourceGroup

ctx := context.TODO()
id := querypacks.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.QueryPacksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.QueryPacksListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: QueryPacksClient.QueryPacksUpdateTags

ctx := context.TODO()
id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue")

payload := querypacks.TagsResource{
	// ...
}


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

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

ValidateQueryPackID checks that 'input' can be parsed as a Query Pack ID

Types

type LogAnalyticsQueryPack

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

type LogAnalyticsQueryPackOperationPredicate

type LogAnalyticsQueryPackOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (LogAnalyticsQueryPackOperationPredicate) Matches

type LogAnalyticsQueryPackProperties

type LogAnalyticsQueryPackProperties struct {
	ProvisioningState *string `json:"provisioningState,omitempty"`
	QueryPackId       *string `json:"queryPackId,omitempty"`
	TimeCreated       *string `json:"timeCreated,omitempty"`
	TimeModified      *string `json:"timeModified,omitempty"`
}

func (*LogAnalyticsQueryPackProperties) GetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackProperties) GetTimeCreatedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackProperties) GetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackProperties) GetTimeModifiedAsTime() (*time.Time, error)

func (*LogAnalyticsQueryPackProperties) SetTimeCreatedAsTime

func (o *LogAnalyticsQueryPackProperties) SetTimeCreatedAsTime(input time.Time)

func (*LogAnalyticsQueryPackProperties) SetTimeModifiedAsTime

func (o *LogAnalyticsQueryPackProperties) SetTimeModifiedAsTime(input time.Time)

type QueryPackId

type QueryPackId struct {
	SubscriptionId    string
	ResourceGroupName string
	QueryPackName     string
}

QueryPackId is a struct representing the Resource ID for a Query Pack

func NewQueryPackID

func NewQueryPackID(subscriptionId string, resourceGroupName string, queryPackName string) QueryPackId

NewQueryPackID returns a new QueryPackId struct

func ParseQueryPackID

func ParseQueryPackID(input string) (*QueryPackId, error)

ParseQueryPackID parses 'input' into a QueryPackId

func ParseQueryPackIDInsensitively

func ParseQueryPackIDInsensitively(input string) (*QueryPackId, error)

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

func (QueryPackId) ID

func (id QueryPackId) ID() string

ID returns the formatted Query Pack ID

func (QueryPackId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Query Pack ID

func (QueryPackId) String

func (id QueryPackId) String() string

String returns a human-readable description of this Query Pack ID

type QueryPacksClient

type QueryPacksClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewQueryPacksClientWithBaseURI

func NewQueryPacksClientWithBaseURI(endpoint string) QueryPacksClient

func (QueryPacksClient) QueryPacksCreateOrUpdate

func (c QueryPacksClient) QueryPacksCreateOrUpdate(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPack) (result QueryPacksCreateOrUpdateOperationResponse, err error)

QueryPacksCreateOrUpdate ...

func (QueryPacksClient) QueryPacksCreateOrUpdateWithoutName

QueryPacksCreateOrUpdateWithoutName ...

func (QueryPacksClient) QueryPacksDelete

func (c QueryPacksClient) QueryPacksDelete(ctx context.Context, id QueryPackId) (result QueryPacksDeleteOperationResponse, err error)

QueryPacksDelete ...

func (QueryPacksClient) QueryPacksGet

func (c QueryPacksClient) QueryPacksGet(ctx context.Context, id QueryPackId) (result QueryPacksGetOperationResponse, err error)

QueryPacksGet ...

func (QueryPacksClient) QueryPacksList

QueryPacksList ...

func (QueryPacksClient) QueryPacksListByResourceGroup

QueryPacksListByResourceGroup ...

func (QueryPacksClient) QueryPacksListByResourceGroupComplete

QueryPacksListByResourceGroupComplete retrieves all of the results into a single object

func (QueryPacksClient) QueryPacksListByResourceGroupCompleteMatchingPredicate

func (c QueryPacksClient) QueryPacksListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LogAnalyticsQueryPackOperationPredicate) (resp QueryPacksListByResourceGroupCompleteResult, err error)

QueryPacksListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (QueryPacksClient) QueryPacksListComplete

QueryPacksListComplete retrieves all of the results into a single object

func (QueryPacksClient) QueryPacksListCompleteMatchingPredicate

func (c QueryPacksClient) QueryPacksListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate LogAnalyticsQueryPackOperationPredicate) (resp QueryPacksListCompleteResult, err error)

QueryPacksListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (QueryPacksClient) QueryPacksUpdateTags

func (c QueryPacksClient) QueryPacksUpdateTags(ctx context.Context, id QueryPackId, input TagsResource) (result QueryPacksUpdateTagsOperationResponse, err error)

QueryPacksUpdateTags ...

type QueryPacksCreateOrUpdateOperationResponse

type QueryPacksCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type QueryPacksCreateOrUpdateWithoutNameOperationResponse

type QueryPacksCreateOrUpdateWithoutNameOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type QueryPacksDeleteOperationResponse

type QueryPacksDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type QueryPacksGetOperationResponse

type QueryPacksGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type QueryPacksListByResourceGroupCompleteResult

type QueryPacksListByResourceGroupCompleteResult struct {
	Items []LogAnalyticsQueryPack
}

type QueryPacksListByResourceGroupOperationResponse

type QueryPacksListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPack
	// contains filtered or unexported fields
}

func (QueryPacksListByResourceGroupOperationResponse) HasMore

func (QueryPacksListByResourceGroupOperationResponse) LoadMore

type QueryPacksListCompleteResult

type QueryPacksListCompleteResult struct {
	Items []LogAnalyticsQueryPack
}

type QueryPacksListOperationResponse

type QueryPacksListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]LogAnalyticsQueryPack
	// contains filtered or unexported fields
}

func (QueryPacksListOperationResponse) HasMore

func (QueryPacksListOperationResponse) LoadMore

type QueryPacksUpdateTagsOperationResponse

type QueryPacksUpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPack
}

type TagsResource

type TagsResource struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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