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 ¶
- func ValidateQueryID(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 QueriesListCompleteResult
- type QueriesListOperationOptions
- type QueriesListOperationResponse
- type QueriesPutOperationResponse
- type QueriesSearchCompleteResult
- type QueriesSearchOperationOptions
- type QueriesSearchOperationResponse
- type QueriesUpdateOperationResponse
- type QueryId
- type QueryPackId
- type QueryPackQueriesClient
- func (c QueryPackQueriesClient) QueriesDelete(ctx context.Context, id QueryId) (result QueriesDeleteOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesGet(ctx context.Context, id QueryId) (result QueriesGetOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (result 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, ...) (result QueriesListCompleteResult, err error)
- func (c QueryPackQueriesClient) QueriesPut(ctx context.Context, id QueryId, input LogAnalyticsQueryPackQuery) (result QueriesPutOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackId, ...) (result QueriesSearchOperationResponse, err error)
- func (c QueryPackQueriesClient) QueriesSearchComplete(ctx context.Context, id QueryPackId, ...) (QueriesSearchCompleteResult, error)
- func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, ...) (result QueriesSearchCompleteResult, err error)
- func (c QueryPackQueriesClient) QueriesUpdate(ctx context.Context, id QueryId, input LogAnalyticsQueryPackQuery) (result QueriesUpdateOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateQueryID ¶
ValidateQueryID checks that 'input' can be parsed as a Query 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 OData *odata.OData Model *LogAnalyticsQueryPackQuery }
type QueriesListCompleteResult ¶
type QueriesListCompleteResult struct { LatestHttpResponse *http.Response Items []LogAnalyticsQueryPackQuery }
type QueriesListOperationOptions ¶
func DefaultQueriesListOperationOptions ¶
func DefaultQueriesListOperationOptions() QueriesListOperationOptions
func (QueriesListOperationOptions) ToHeaders ¶
func (o QueriesListOperationOptions) ToHeaders() *client.Headers
func (QueriesListOperationOptions) ToOData ¶
func (o QueriesListOperationOptions) ToOData() *odata.Query
func (QueriesListOperationOptions) ToQuery ¶
func (o QueriesListOperationOptions) ToQuery() *client.QueryParams
type QueriesListOperationResponse ¶
type QueriesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LogAnalyticsQueryPackQuery }
type QueriesPutOperationResponse ¶
type QueriesPutOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogAnalyticsQueryPackQuery }
type QueriesSearchCompleteResult ¶
type QueriesSearchCompleteResult struct { LatestHttpResponse *http.Response Items []LogAnalyticsQueryPackQuery }
type QueriesSearchOperationOptions ¶
func DefaultQueriesSearchOperationOptions ¶
func DefaultQueriesSearchOperationOptions() QueriesSearchOperationOptions
func (QueriesSearchOperationOptions) ToHeaders ¶
func (o QueriesSearchOperationOptions) ToHeaders() *client.Headers
func (QueriesSearchOperationOptions) ToOData ¶
func (o QueriesSearchOperationOptions) ToOData() *odata.Query
func (QueriesSearchOperationOptions) ToQuery ¶
func (o QueriesSearchOperationOptions) ToQuery() *client.QueryParams
type QueriesSearchOperationResponse ¶
type QueriesSearchOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LogAnalyticsQueryPackQuery }
type QueriesUpdateOperationResponse ¶
type QueriesUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogAnalyticsQueryPackQuery }
type QueryId ¶
type QueryId struct { SubscriptionId string ResourceGroupName string QueryPackName string QueryName string }
QueryId is a struct representing the Resource ID for a Query
func NewQueryID ¶
func NewQueryID(subscriptionId string, resourceGroupName string, queryPackName string, queryName string) QueryId
NewQueryID returns a new QueryId struct
func ParseQueryID ¶
ParseQueryID parses 'input' into a QueryId
func ParseQueryIDInsensitively ¶
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) FromParseResult ¶
func (id *QueryId) FromParseResult(input resourceids.ParseResult) error
func (QueryId) Segments ¶
func (id QueryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Query ID
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) FromParseResult ¶
func (id *QueryPackId) FromParseResult(input resourceids.ParseResult) error
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 *resourcemanager.Client
}
func NewQueryPackQueriesClientWithBaseURI ¶
func NewQueryPackQueriesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryPackQueriesClient, error)
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 ¶
func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (result QueriesListOperationResponse, err error)
QueriesList ...
func (QueryPackQueriesClient) QueriesListComplete ¶
func (c QueryPackQueriesClient) QueriesListComplete(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (QueriesListCompleteResult, error)
QueriesListComplete retrieves all the results into a single object
func (QueryPackQueriesClient) QueriesListCompleteMatchingPredicate ¶
func (c QueryPackQueriesClient) QueriesListCompleteMatchingPredicate(ctx context.Context, id QueryPackId, options QueriesListOperationOptions, predicate LogAnalyticsQueryPackQueryOperationPredicate) (result QueriesListCompleteResult, err error)
QueriesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (QueryPackQueriesClient) QueriesPut ¶
func (c QueryPackQueriesClient) QueriesPut(ctx context.Context, id QueryId, input LogAnalyticsQueryPackQuery) (result QueriesPutOperationResponse, err error)
QueriesPut ...
func (QueryPackQueriesClient) QueriesSearch ¶
func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions) (result 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 the results into a single object
func (QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate ¶
func (c QueryPackQueriesClient) QueriesSearchCompleteMatchingPredicate(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions, predicate LogAnalyticsQueryPackQueryOperationPredicate) (result QueriesSearchCompleteResult, err error)
QueriesSearchCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (QueryPackQueriesClient) QueriesUpdate ¶
func (c QueryPackQueriesClient) QueriesUpdate(ctx context.Context, id QueryId, input LogAnalyticsQueryPackQuery) (result QueriesUpdateOperationResponse, err error)
QueriesUpdate ...
Source Files ¶
- client.go
- id_query.go
- id_querypack.go
- method_queriesdelete.go
- method_queriesget.go
- method_querieslist.go
- method_queriesput.go
- method_queriessearch.go
- method_queriesupdate.go
- model_loganalyticsquerypackquery.go
- model_loganalyticsquerypackqueryproperties.go
- model_loganalyticsquerypackquerypropertiesrelated.go
- model_loganalyticsquerypackquerysearchproperties.go
- model_loganalyticsquerypackquerysearchpropertiesrelated.go
- predicates.go
- version.go