querytexts

package
v0.20230508.1101604 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2018-06-01/querytexts Documentation

The querytexts SDK allows for interaction with the Azure Resource Manager Service postgresql (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/postgresql/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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateQueryTextID

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

ValidateQueryTextID checks that 'input' can be parsed as a Query Text ID

func ValidateServerID

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

ValidateServerID checks that 'input' can be parsed as a Server ID

Types

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *QueryText
}

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	Items []QueryText
}

type ListByServerOperationOptions

type ListByServerOperationOptions struct {
	QueryIds *[]string
}

func DefaultListByServerOperationOptions

func DefaultListByServerOperationOptions() ListByServerOperationOptions

type ListByServerOperationResponse

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

func (ListByServerOperationResponse) HasMore

func (r ListByServerOperationResponse) HasMore() bool

func (ListByServerOperationResponse) LoadMore

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

func (id QueryTextId) ID() string

ID returns the formatted Query Text ID

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

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

func (QueryTextOperationPredicate) Matches

func (p QueryTextOperationPredicate) Matches(input QueryText) bool

type QueryTextProperties

type QueryTextProperties struct {
	QueryId   *string `json:"queryId,omitempty"`
	QueryText *string `json:"queryText,omitempty"`
}

type QueryTextsClient

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

func NewQueryTextsClientWithBaseURI

func NewQueryTextsClientWithBaseURI(endpoint string) QueryTextsClient

func (QueryTextsClient) Get

Get ...

func (QueryTextsClient) ListByServer

ListByServer ...

func (QueryTextsClient) ListByServerComplete

ListByServerComplete retrieves all of the results into a single object

func (QueryTextsClient) ListByServerCompleteMatchingPredicate

func (c QueryTextsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, options ListByServerOperationOptions, predicate QueryTextOperationPredicate) (resp ListByServerCompleteResult, err error)

ListByServerCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ServerId

type ServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
}

ServerId is a struct representing the Resource ID for a Server

func NewServerID

func NewServerID(subscriptionId string, resourceGroupName string, serverName string) ServerId

NewServerID returns a new ServerId struct

func ParseServerID

func ParseServerID(input string) (*ServerId, error)

ParseServerID parses 'input' into a ServerId

func ParseServerIDInsensitively

func ParseServerIDInsensitively(input string) (*ServerId, error)

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

func (id ServerId) ID() string

ID returns the formatted Server ID

func (ServerId) Segments

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

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

func (ServerId) String

func (id ServerId) String() string

String returns a human-readable description of this Server ID

Jump to

Keyboard shortcuts

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