serverautomatictuning

package
v0.20231016.1052817 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2021-02-01-preview/serverautomatictuning Documentation

The serverautomatictuning SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-02-01-preview).

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/sql/2021-02-01-preview/serverautomatictuning"

Client Initialization

client := serverautomatictuning.NewServerAutomaticTuningClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerAutomaticTuningClient.Get

ctx := context.TODO()
id := serverautomatictuning.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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: ServerAutomaticTuningClient.Update

ctx := context.TODO()
id := serverautomatictuning.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

payload := serverautomatictuning.ServerAutomaticTuning{
	// ...
}


read, err := client.Update(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 PossibleValuesForAutomaticTuningOptionModeActual

func PossibleValuesForAutomaticTuningOptionModeActual() []string

func PossibleValuesForAutomaticTuningOptionModeDesired

func PossibleValuesForAutomaticTuningOptionModeDesired() []string

func PossibleValuesForAutomaticTuningServerMode

func PossibleValuesForAutomaticTuningServerMode() []string

func PossibleValuesForAutomaticTuningServerReason

func PossibleValuesForAutomaticTuningServerReason() []string

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 AutomaticTuningOptionModeActual

type AutomaticTuningOptionModeActual string
const (
	AutomaticTuningOptionModeActualOff AutomaticTuningOptionModeActual = "Off"
	AutomaticTuningOptionModeActualOn  AutomaticTuningOptionModeActual = "On"
)

func (*AutomaticTuningOptionModeActual) UnmarshalJSON

func (s *AutomaticTuningOptionModeActual) UnmarshalJSON(bytes []byte) error

type AutomaticTuningOptionModeDesired

type AutomaticTuningOptionModeDesired string
const (
	AutomaticTuningOptionModeDesiredDefault AutomaticTuningOptionModeDesired = "Default"
	AutomaticTuningOptionModeDesiredOff     AutomaticTuningOptionModeDesired = "Off"
	AutomaticTuningOptionModeDesiredOn      AutomaticTuningOptionModeDesired = "On"
)

func (*AutomaticTuningOptionModeDesired) UnmarshalJSON

func (s *AutomaticTuningOptionModeDesired) UnmarshalJSON(bytes []byte) error

type AutomaticTuningServerMode

type AutomaticTuningServerMode string
const (
	AutomaticTuningServerModeAuto        AutomaticTuningServerMode = "Auto"
	AutomaticTuningServerModeCustom      AutomaticTuningServerMode = "Custom"
	AutomaticTuningServerModeUnspecified AutomaticTuningServerMode = "Unspecified"
)

func (*AutomaticTuningServerMode) UnmarshalJSON

func (s *AutomaticTuningServerMode) UnmarshalJSON(bytes []byte) error

type AutomaticTuningServerOptions

type AutomaticTuningServerOptions struct {
	ActualState  *AutomaticTuningOptionModeActual  `json:"actualState,omitempty"`
	DesiredState *AutomaticTuningOptionModeDesired `json:"desiredState,omitempty"`
	ReasonCode   *int64                            `json:"reasonCode,omitempty"`
	ReasonDesc   *AutomaticTuningServerReason      `json:"reasonDesc,omitempty"`
}

type AutomaticTuningServerProperties

type AutomaticTuningServerProperties struct {
	ActualState  *AutomaticTuningServerMode               `json:"actualState,omitempty"`
	DesiredState *AutomaticTuningServerMode               `json:"desiredState,omitempty"`
	Options      *map[string]AutomaticTuningServerOptions `json:"options,omitempty"`
}

type AutomaticTuningServerReason

type AutomaticTuningServerReason string
const (
	AutomaticTuningServerReasonAutoConfigured AutomaticTuningServerReason = "AutoConfigured"
	AutomaticTuningServerReasonDefault        AutomaticTuningServerReason = "Default"
	AutomaticTuningServerReasonDisabled       AutomaticTuningServerReason = "Disabled"
)

func (*AutomaticTuningServerReason) UnmarshalJSON

func (s *AutomaticTuningServerReason) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerAutomaticTuning
}

type ServerAutomaticTuning

type ServerAutomaticTuning struct {
	Id         *string                          `json:"id,omitempty"`
	Name       *string                          `json:"name,omitempty"`
	Properties *AutomaticTuningServerProperties `json:"properties,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type ServerAutomaticTuningClient

type ServerAutomaticTuningClient struct {
	Client *resourcemanager.Client
}

func NewServerAutomaticTuningClientWithBaseURI

func NewServerAutomaticTuningClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAutomaticTuningClient, error)

func (ServerAutomaticTuningClient) Get

Get ...

func (ServerAutomaticTuningClient) Update

Update ...

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ServerAutomaticTuning
}

Jump to

Keyboard shortcuts

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