serverautomatictuning

package
v0.20240606.1065251 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The serverautomatictuning SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-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 := commonids.NewSqlServerID("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 := commonids.NewSqlServerID("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

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