sqlvirtualmachinetroubleshoot

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinetroubleshoot Documentation

The sqlvirtualmachinetroubleshoot SDK allows for interaction with Azure Resource Manager sqlvirtualmachine (API Version 2023-10-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/sqlvirtualmachine/2023-10-01/sqlvirtualmachinetroubleshoot"

Client Initialization

client := sqlvirtualmachinetroubleshoot.NewSqlVirtualMachineTroubleshootClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlVirtualMachineTroubleshootClient.Troubleshoot

ctx := context.TODO()
id := sqlvirtualmachinetroubleshoot.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName")

payload := sqlvirtualmachinetroubleshoot.SqlVMTroubleshooting{
	// ...
}


if err := client.TroubleshootThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForTroubleshootingScenario

func PossibleValuesForTroubleshootingScenario() []string

func ValidateSqlVirtualMachineID

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

ValidateSqlVirtualMachineID checks that 'input' can be parsed as a Sql Virtual Machine ID

Types

type SqlVMTroubleshooting

type SqlVMTroubleshooting struct {
	EndTimeUtc               *string                              `json:"endTimeUtc,omitempty"`
	Properties               *TroubleshootingAdditionalProperties `json:"properties,omitempty"`
	StartTimeUtc             *string                              `json:"startTimeUtc,omitempty"`
	TroubleshootingScenario  *TroubleshootingScenario             `json:"troubleshootingScenario,omitempty"`
	VirtualMachineResourceId *string                              `json:"virtualMachineResourceId,omitempty"`
}

func (*SqlVMTroubleshooting) GetEndTimeUtcAsTime

func (o *SqlVMTroubleshooting) GetEndTimeUtcAsTime() (*time.Time, error)

func (*SqlVMTroubleshooting) GetStartTimeUtcAsTime

func (o *SqlVMTroubleshooting) GetStartTimeUtcAsTime() (*time.Time, error)

func (*SqlVMTroubleshooting) SetEndTimeUtcAsTime

func (o *SqlVMTroubleshooting) SetEndTimeUtcAsTime(input time.Time)

func (*SqlVMTroubleshooting) SetStartTimeUtcAsTime

func (o *SqlVMTroubleshooting) SetStartTimeUtcAsTime(input time.Time)

type SqlVirtualMachineId

type SqlVirtualMachineId struct {
	SubscriptionId        string
	ResourceGroupName     string
	SqlVirtualMachineName string
}

SqlVirtualMachineId is a struct representing the Resource ID for a Sql Virtual Machine

func NewSqlVirtualMachineID

func NewSqlVirtualMachineID(subscriptionId string, resourceGroupName string, sqlVirtualMachineName string) SqlVirtualMachineId

NewSqlVirtualMachineID returns a new SqlVirtualMachineId struct

func ParseSqlVirtualMachineID

func ParseSqlVirtualMachineID(input string) (*SqlVirtualMachineId, error)

ParseSqlVirtualMachineID parses 'input' into a SqlVirtualMachineId

func ParseSqlVirtualMachineIDInsensitively

func ParseSqlVirtualMachineIDInsensitively(input string) (*SqlVirtualMachineId, error)

ParseSqlVirtualMachineIDInsensitively parses 'input' case-insensitively into a SqlVirtualMachineId note: this method should only be used for API response data and not user input

func (*SqlVirtualMachineId) FromParseResult

func (id *SqlVirtualMachineId) FromParseResult(input resourceids.ParseResult) error

func (SqlVirtualMachineId) ID

func (id SqlVirtualMachineId) ID() string

ID returns the formatted Sql Virtual Machine ID

func (SqlVirtualMachineId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Sql Virtual Machine ID

func (SqlVirtualMachineId) String

func (id SqlVirtualMachineId) String() string

String returns a human-readable description of this Sql Virtual Machine ID

type SqlVirtualMachineTroubleshootClient

type SqlVirtualMachineTroubleshootClient struct {
	Client *resourcemanager.Client
}

func NewSqlVirtualMachineTroubleshootClientWithBaseURI

func NewSqlVirtualMachineTroubleshootClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlVirtualMachineTroubleshootClient, error)

func (SqlVirtualMachineTroubleshootClient) Troubleshoot

Troubleshoot ...

func (SqlVirtualMachineTroubleshootClient) TroubleshootThenPoll

TroubleshootThenPoll performs Troubleshoot then polls until it's completed

type TroubleshootOperationResponse

type TroubleshootOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlVMTroubleshooting
}

type TroubleshootingAdditionalProperties

type TroubleshootingAdditionalProperties struct {
	UnhealthyReplicaInfo *UnhealthyReplicaInfo `json:"unhealthyReplicaInfo,omitempty"`
}

type TroubleshootingScenario

type TroubleshootingScenario string
const (
	TroubleshootingScenarioUnhealthyReplica TroubleshootingScenario = "UnhealthyReplica"
)

func (*TroubleshootingScenario) UnmarshalJSON

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

type UnhealthyReplicaInfo

type UnhealthyReplicaInfo struct {
	AvailabilityGroupName *string `json:"availabilityGroupName,omitempty"`
}

Jump to

Keyboard shortcuts

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