querypackqueries

package
v0.20220817.1110045 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 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.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

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.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

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.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

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.NewQueriesID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "idValue")

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 ValidateQueriesID

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

ValidateQueriesID checks that 'input' can be parsed as a Queries 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 QueriesId

type QueriesId struct {
	SubscriptionId    string
	ResourceGroupName string
	QueryPackName     string
	Id                string
}

QueriesId is a struct representing the Resource ID for a Queries

func NewQueriesID

func NewQueriesID(subscriptionId string, resourceGroupName string, queryPackName string, id string) QueriesId

NewQueriesID returns a new QueriesId struct

func ParseQueriesID

func ParseQueriesID(input string) (*QueriesId, error)

ParseQueriesID parses 'input' into a QueriesId

func ParseQueriesIDInsensitively

func ParseQueriesIDInsensitively(input string) (*QueriesId, error)

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

func (QueriesId) ID

func (id QueriesId) ID() string

ID returns the formatted Queries ID

func (QueriesId) Segments

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

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

func (QueriesId) String

func (id QueriesId) String() string

String returns a human-readable description of this Queries ID

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 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

QueriesDelete ...

func (QueryPackQueriesClient) QueriesGet

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