querypackqueries

package
v0.20230320.1165256 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

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

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

Client Initialization

client := querypackqueries.NewQueryPackQueriesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: QueryPackQueriesClient.QueriesDelete

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

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

Example Usage: QueryPackQueriesClient.QueriesGet

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

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

Example Usage: QueryPackQueriesClient.QueriesList

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

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

Example Usage: QueryPackQueriesClient.QueriesPut

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

payload := querypackqueries.LogAnalyticsQueryPackQuery{
	// ...
}


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

Example Usage: QueryPackQueriesClient.QueriesSearch

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

payload := querypackqueries.LogAnalyticsQueryPackQuerySearchProperties{
	// ...
}


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

Example Usage: QueryPackQueriesClient.QueriesUpdate

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

payload := querypackqueries.LogAnalyticsQueryPackQuery{
	// ...
}


read, err := client.QueriesUpdate(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 ValidateQueryID added in v0.20220907.1111434

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

ValidateQueryID checks that 'input' can be parsed as a Query ID

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 LogAnalyticsQueryPackQuery

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

type LogAnalyticsQueryPackQueryOperationPredicate

type LogAnalyticsQueryPackQueryOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (LogAnalyticsQueryPackQueryOperationPredicate) Matches

type LogAnalyticsQueryPackQueryProperties

type LogAnalyticsQueryPackQueryProperties struct {
	Author       *string                                      `json:"author,omitempty"`
	Body         string                                       `json:"body"`
	Description  *string                                      `json:"description,omitempty"`
	DisplayName  string                                       `json:"displayName"`
	Id           *string                                      `json:"id,omitempty"`
	Properties   *interface{}                                 `json:"properties,omitempty"`
	Related      *LogAnalyticsQueryPackQueryPropertiesRelated `json:"related,omitempty"`
	Tags         *map[string][]string                         `json:"tags,omitempty"`
	TimeCreated  *string                                      `json:"timeCreated,omitempty"`
	TimeModified *string                                      `json:"timeModified,omitempty"`
}

func (*LogAnalyticsQueryPackQueryProperties) GetTimeCreatedAsTime

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

func (*LogAnalyticsQueryPackQueryProperties) GetTimeModifiedAsTime

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

func (*LogAnalyticsQueryPackQueryProperties) SetTimeCreatedAsTime

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

func (*LogAnalyticsQueryPackQueryProperties) SetTimeModifiedAsTime

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

type LogAnalyticsQueryPackQueryPropertiesRelated

type LogAnalyticsQueryPackQueryPropertiesRelated struct {
	Categories    *[]string `json:"categories,omitempty"`
	ResourceTypes *[]string `json:"resourceTypes,omitempty"`
	Solutions     *[]string `json:"solutions,omitempty"`
}

type LogAnalyticsQueryPackQuerySearchProperties

type LogAnalyticsQueryPackQuerySearchProperties struct {
	Related *LogAnalyticsQueryPackQuerySearchPropertiesRelated `json:"related,omitempty"`
	Tags    *map[string][]string                               `json:"tags,omitempty"`
}

type LogAnalyticsQueryPackQuerySearchPropertiesRelated

type LogAnalyticsQueryPackQuerySearchPropertiesRelated struct {
	Categories    *[]string `json:"categories,omitempty"`
	ResourceTypes *[]string `json:"resourceTypes,omitempty"`
	Solutions     *[]string `json:"solutions,omitempty"`
}

type QueriesDeleteOperationResponse

type QueriesDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type QueriesGetOperationResponse

type QueriesGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueriesListCompleteResult

type QueriesListCompleteResult struct {
	Items []LogAnalyticsQueryPackQuery
}

type QueriesListOperationOptions

type QueriesListOperationOptions struct {
	IncludeBody *bool
	Top         *int64
}

func DefaultQueriesListOperationOptions

func DefaultQueriesListOperationOptions() QueriesListOperationOptions

type QueriesListOperationResponse

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

func (QueriesListOperationResponse) HasMore

func (r QueriesListOperationResponse) HasMore() bool

func (QueriesListOperationResponse) LoadMore

type QueriesPutOperationResponse

type QueriesPutOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueriesSearchCompleteResult

type QueriesSearchCompleteResult struct {
	Items []LogAnalyticsQueryPackQuery
}

type QueriesSearchOperationOptions

type QueriesSearchOperationOptions struct {
	IncludeBody *bool
	Top         *int64
}

func DefaultQueriesSearchOperationOptions

func DefaultQueriesSearchOperationOptions() QueriesSearchOperationOptions

type QueriesSearchOperationResponse

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

func (QueriesSearchOperationResponse) HasMore

func (QueriesSearchOperationResponse) LoadMore

type QueriesUpdateOperationResponse

type QueriesUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *LogAnalyticsQueryPackQuery
}

type QueryId added in v0.20220907.1111434

type QueryId struct {
	SubscriptionId    string
	ResourceGroupName string
	QueryPackName     string
	QueryName         string
}

QueryId is a struct representing the Resource ID for a Query

func NewQueryID added in v0.20220907.1111434

func NewQueryID(subscriptionId string, resourceGroupName string, queryPackName string, queryName string) QueryId

NewQueryID returns a new QueryId struct

func ParseQueryID added in v0.20220907.1111434

func ParseQueryID(input string) (*QueryId, error)

ParseQueryID parses 'input' into a QueryId

func ParseQueryIDInsensitively added in v0.20220907.1111434

func ParseQueryIDInsensitively(input string) (*QueryId, error)

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

func (QueryId) ID added in v0.20220907.1111434

func (id QueryId) ID() string

ID returns the formatted Query ID

func (QueryId) Segments added in v0.20220907.1111434

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

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

func (QueryId) String added in v0.20220907.1111434

func (id QueryId) String() string

String returns a human-readable description of this Query ID

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 QueryPackQueriesClient

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

func NewQueryPackQueriesClientWithBaseURI

func NewQueryPackQueriesClientWithBaseURI(endpoint string) QueryPackQueriesClient

func (QueryPackQueriesClient) QueriesDelete

func (c QueryPackQueriesClient) QueriesDelete(ctx context.Context, id QueryId) (result QueriesDeleteOperationResponse, err error)

QueriesDelete ...

func (QueryPackQueriesClient) QueriesGet

func (c QueryPackQueriesClient) QueriesGet(ctx context.Context, id QueryId) (result QueriesGetOperationResponse, err error)

QueriesGet ...

func (QueryPackQueriesClient) QueriesList

QueriesList ...

func (QueryPackQueriesClient) QueriesListComplete

QueriesListComplete retrieves all of the results into a single object

func (QueryPackQueriesClient) QueriesListCompleteMatchingPredicate

QueriesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (QueryPackQueriesClient) QueriesPut

QueriesPut ...

func (QueryPackQueriesClient) QueriesSearch

QueriesSearch ...

func (QueryPackQueriesClient) QueriesSearchComplete

QueriesSearchComplete retrieves all of the results into a single object

func (QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate

QueriesSearchCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (QueryPackQueriesClient) QueriesUpdate

QueriesUpdate ...

Jump to

Keyboard shortcuts

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