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 ¶
- func ValidateQueriesID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateQueryPackID(input interface{}, key string) (warnings []string, errors []error)
- type LogAnalyticsQueryPackQuery
- type LogAnalyticsQueryPackQueryOperationPredicate
- type LogAnalyticsQueryPackQueryProperties
- func (o *LogAnalyticsQueryPackQueryProperties) GetTimeCreatedAsTime() (*time.Time, error)
- func (o *LogAnalyticsQueryPackQueryProperties) GetTimeModifiedAsTime() (*time.Time, error)
- func (o *LogAnalyticsQueryPackQueryProperties) SetTimeCreatedAsTime(input time.Time)
- func (o *LogAnalyticsQueryPackQueryProperties) SetTimeModifiedAsTime(input time.Time)
- type LogAnalyticsQueryPackQueryPropertiesRelated
- type LogAnalyticsQueryPackQuerySearchProperties
- type LogAnalyticsQueryPackQuerySearchPropertiesRelated
- type QueriesDeleteOperationResponse
- type QueriesGetOperationResponse
- type QueriesId
- type QueriesListCompleteResult
- type QueriesListOperationOptions
- type QueriesListOperationResponse
- type QueriesPutOperationResponse
- type QueriesSearchCompleteResult
- type QueriesSearchOperationOptions
- type QueriesSearchOperationResponse
- type QueriesUpdateOperationResponse
- type QueryPackId
- type QueryPackQueriesClient
- func (c QueryPackQueriesClient) QueriesDelete(ctx context.Context, id QueriesId) (result QueriesDeleteOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesGet(ctx context.Context, id QueriesId) (result QueriesGetOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (resp QueriesListOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesListComplete(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (QueriesListCompleteResult, error)
- func (c QueryPackQueriesClient) QueriesListCompleteMatchingPredicate(ctx context.Context, id QueryPackId, options QueriesListOperationOptions, ...) (resp QueriesListCompleteResult, err error)
- func (c QueryPackQueriesClient) QueriesPut(ctx context.Context, id QueriesId, input LogAnalyticsQueryPackQuery) (result QueriesPutOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackId, ...) (resp QueriesSearchOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesSearchComplete(ctx context.Context, id QueryPackId, ...) (QueriesSearchCompleteResult, error)
- func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, ...) (resp QueriesSearchCompleteResult, err error)
- func (c QueryPackQueriesClient) QueriesUpdate(ctx context.Context, id QueriesId, input LogAnalyticsQueryPackQuery) (result QueriesUpdateOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateQueriesID ¶
ValidateQueriesID checks that 'input' can be parsed as a Queries ID
func ValidateQueryPackID ¶
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 ¶
func (LogAnalyticsQueryPackQueryOperationPredicate) Matches ¶
func (p LogAnalyticsQueryPackQueryOperationPredicate) Matches(input LogAnalyticsQueryPackQuery) bool
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 LogAnalyticsQueryPackQuerySearchProperties ¶
type LogAnalyticsQueryPackQuerySearchProperties struct { Related *LogAnalyticsQueryPackQuerySearchPropertiesRelated `json:"related,omitempty"` Tags *map[string][]string `json:"tags,omitempty"` }
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 ¶
ParseQueriesID parses 'input' into a QueriesId
func ParseQueriesIDInsensitively ¶
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) Segments ¶
func (id QueriesId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Queries ID
type QueriesListCompleteResult ¶
type QueriesListCompleteResult struct {
Items []LogAnalyticsQueryPackQuery
}
type QueriesListOperationOptions ¶
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 ¶
func (r QueriesListOperationResponse) LoadMore(ctx context.Context) (resp QueriesListOperationResponse, err error)
type QueriesPutOperationResponse ¶
type QueriesPutOperationResponse struct { HttpResponse *http.Response Model *LogAnalyticsQueryPackQuery }
type QueriesSearchCompleteResult ¶
type QueriesSearchCompleteResult struct {
Items []LogAnalyticsQueryPackQuery
}
type QueriesSearchOperationOptions ¶
func DefaultQueriesSearchOperationOptions ¶
func DefaultQueriesSearchOperationOptions() QueriesSearchOperationOptions
type QueriesSearchOperationResponse ¶
type QueriesSearchOperationResponse struct { HttpResponse *http.Response Model *[]LogAnalyticsQueryPackQuery // contains filtered or unexported fields }
func (QueriesSearchOperationResponse) HasMore ¶
func (r QueriesSearchOperationResponse) HasMore() bool
func (QueriesSearchOperationResponse) LoadMore ¶
func (r QueriesSearchOperationResponse) LoadMore(ctx context.Context) (resp QueriesSearchOperationResponse, err error)
type QueriesUpdateOperationResponse ¶
type QueriesUpdateOperationResponse struct { HttpResponse *http.Response Model *LogAnalyticsQueryPackQuery }
type QueryPackId ¶
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) 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 QueriesId) (result QueriesDeleteOperationResponse, err error)
QueriesDelete ...
func (QueryPackQueriesClient) QueriesGet ¶
func (c QueryPackQueriesClient) QueriesGet(ctx context.Context, id QueriesId) (result QueriesGetOperationResponse, err error)
QueriesGet ...
func (QueryPackQueriesClient) QueriesList ¶
func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (resp QueriesListOperationResponse, err error)
QueriesList ...
func (QueryPackQueriesClient) QueriesListComplete ¶
func (c QueryPackQueriesClient) QueriesListComplete(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (QueriesListCompleteResult, error)
QueriesListComplete retrieves all of the results into a single object
func (QueryPackQueriesClient) QueriesListCompleteMatchingPredicate ¶
func (c QueryPackQueriesClient) QueriesListCompleteMatchingPredicate(ctx context.Context, id QueryPackId, options QueriesListOperationOptions, predicate LogAnalyticsQueryPackQueryOperationPredicate) (resp QueriesListCompleteResult, err error)
QueriesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (QueryPackQueriesClient) QueriesPut ¶
func (c QueryPackQueriesClient) QueriesPut(ctx context.Context, id QueriesId, input LogAnalyticsQueryPackQuery) (result QueriesPutOperationResponse, err error)
QueriesPut ...
func (QueryPackQueriesClient) QueriesSearch ¶
func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions) (resp QueriesSearchOperationResponse, err error)
QueriesSearch ...
func (QueryPackQueriesClient) QueriesSearchComplete ¶
func (c QueryPackQueriesClient) QueriesSearchComplete(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions) (QueriesSearchCompleteResult, error)
QueriesSearchComplete retrieves all of the results into a single object
func (QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate ¶
func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions, predicate LogAnalyticsQueryPackQueryOperationPredicate) (resp QueriesSearchCompleteResult, err error)
QueriesSearchCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (QueryPackQueriesClient) QueriesUpdate ¶
func (c QueryPackQueriesClient) QueriesUpdate(ctx context.Context, id QueriesId, input LogAnalyticsQueryPackQuery) (result QueriesUpdateOperationResponse, err error)
QueriesUpdate ...
Source Files ¶
- client.go
- id_queries.go
- id_querypack.go
- method_queriesdelete_autorest.go
- method_queriesget_autorest.go
- method_querieslist_autorest.go
- method_queriesput_autorest.go
- method_queriessearch_autorest.go
- method_queriesupdate_autorest.go
- model_loganalyticsquerypackquery.go
- model_loganalyticsquerypackqueryproperties.go
- model_loganalyticsquerypackquerypropertiesrelated.go
- model_loganalyticsquerypackquerysearchproperties.go
- model_loganalyticsquerypackquerysearchpropertiesrelated.go
- predicates.go
- version.go