README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/querytexts
Documentation
The querytexts
SDK allows for interaction with the Azure Resource Manager Service mariadb
(API Version 2018-06-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/mariadb/2018-06-01/querytexts"
Client Initialization
client := querytexts.NewQueryTextsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: QueryTextsClient.Get
ctx := context.TODO()
id := querytexts.NewQueryTextID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "queryIdValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: QueryTextsClient.ListByServer
ctx := context.TODO()
id := querytexts.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")
// alternatively `client.ListByServer(ctx, id, querytexts.DefaultListByServerOperationOptions())` can be used to do batched pagination
items, err := client.ListByServerComplete(ctx, id, querytexts.DefaultListByServerOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateQueryTextID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationOptions
- type ListByServerOperationResponse
- type QueryText
- type QueryTextId
- type QueryTextOperationPredicate
- type QueryTextProperties
- type QueryTextsClient
- func (c QueryTextsClient) Get(ctx context.Context, id QueryTextId) (result GetOperationResponse, err error)
- func (c QueryTextsClient) ListByServer(ctx context.Context, id ServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error)
- func (c QueryTextsClient) ListByServerComplete(ctx context.Context, id ServerId, options ListByServerOperationOptions) (ListByServerCompleteResult, error)
- func (c QueryTextsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, options ListByServerOperationOptions, ...) (result ListByServerCompleteResult, err error)
- type ServerId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateQueryTextID ¶
ValidateQueryTextID checks that 'input' can be parsed as a Query Text ID
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
Types ¶
type GetOperationResponse ¶
type ListByServerOperationOptions ¶
type ListByServerOperationOptions struct {
QueryIds *[]string
}
func DefaultListByServerOperationOptions ¶
func DefaultListByServerOperationOptions() ListByServerOperationOptions
func (ListByServerOperationOptions) ToHeaders ¶ added in v0.20230713.1092427
func (o ListByServerOperationOptions) ToHeaders() *client.Headers
func (ListByServerOperationOptions) ToOData ¶ added in v0.20230713.1092427
func (o ListByServerOperationOptions) ToOData() *odata.Query
func (ListByServerOperationOptions) ToQuery ¶ added in v0.20230713.1092427
func (o ListByServerOperationOptions) ToQuery() *client.QueryParams
type QueryText ¶
type QueryText struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueryTextProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type QueryTextId ¶
type QueryTextId struct { SubscriptionId string ResourceGroupName string ServerName string QueryId string }
QueryTextId is a struct representing the Resource ID for a Query Text
func NewQueryTextID ¶
func NewQueryTextID(subscriptionId string, resourceGroupName string, serverName string, queryId string) QueryTextId
NewQueryTextID returns a new QueryTextId struct
func ParseQueryTextID ¶
func ParseQueryTextID(input string) (*QueryTextId, error)
ParseQueryTextID parses 'input' into a QueryTextId
func ParseQueryTextIDInsensitively ¶
func ParseQueryTextIDInsensitively(input string) (*QueryTextId, error)
ParseQueryTextIDInsensitively parses 'input' case-insensitively into a QueryTextId note: this method should only be used for API response data and not user input
func (*QueryTextId) FromParseResult ¶ added in v0.20231127.1171502
func (id *QueryTextId) FromParseResult(input resourceids.ParseResult) error
func (QueryTextId) Segments ¶
func (id QueryTextId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Query Text ID
func (QueryTextId) String ¶
func (id QueryTextId) String() string
String returns a human-readable description of this Query Text ID
type QueryTextOperationPredicate ¶
func (QueryTextOperationPredicate) Matches ¶
func (p QueryTextOperationPredicate) Matches(input QueryText) bool
type QueryTextProperties ¶
type QueryTextsClient ¶
type QueryTextsClient struct {
Client *resourcemanager.Client
}
func NewQueryTextsClientWithBaseURI ¶
func NewQueryTextsClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryTextsClient, error)
func (QueryTextsClient) Get ¶
func (c QueryTextsClient) Get(ctx context.Context, id QueryTextId) (result GetOperationResponse, err error)
Get ...
func (QueryTextsClient) ListByServer ¶
func (c QueryTextsClient) ListByServer(ctx context.Context, id ServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error)
ListByServer ...
func (QueryTextsClient) ListByServerComplete ¶
func (c QueryTextsClient) ListByServerComplete(ctx context.Context, id ServerId, options ListByServerOperationOptions) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (QueryTextsClient) ListByServerCompleteMatchingPredicate ¶
func (c QueryTextsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, options ListByServerOperationOptions, predicate QueryTextOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
ParseServerIDInsensitively parses 'input' case-insensitively into a ServerId note: this method should only be used for API response data and not user input
func (*ServerId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ServerId) FromParseResult(input resourceids.ParseResult) error
func (ServerId) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID