managedinstanceoperations

package
v0.20240209.1123314 Latest Latest
Warning

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

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

README

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

The managedinstanceoperations 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/managedinstanceoperations"

Client Initialization

client := managedinstanceoperations.NewManagedInstanceOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedInstanceOperationsClient.ListByManagedInstance

ctx := context.TODO()
id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue")

// alternatively `client.ListByManagedInstance(ctx, id)` can be used to do batched pagination
items, err := client.ListByManagedInstanceComplete(ctx, id)
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 PossibleValuesForManagementOperationState

func PossibleValuesForManagementOperationState() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

Types

type ListByManagedInstanceCompleteResult

type ListByManagedInstanceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ManagedInstanceOperation
}

type ListByManagedInstanceOperationResponse

type ListByManagedInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstanceOperation
}

type ManagedInstanceOperation

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

type ManagedInstanceOperationOperationPredicate

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

func (ManagedInstanceOperationOperationPredicate) Matches

type ManagedInstanceOperationParametersPair

type ManagedInstanceOperationParametersPair struct {
	CurrentParameters   *UpsertManagedServerOperationParameters `json:"currentParameters,omitempty"`
	RequestedParameters *UpsertManagedServerOperationParameters `json:"requestedParameters,omitempty"`
}

type ManagedInstanceOperationProperties

type ManagedInstanceOperationProperties struct {
	Description             *string                                 `json:"description,omitempty"`
	ErrorCode               *int64                                  `json:"errorCode,omitempty"`
	ErrorDescription        *string                                 `json:"errorDescription,omitempty"`
	ErrorSeverity           *int64                                  `json:"errorSeverity,omitempty"`
	EstimatedCompletionTime *string                                 `json:"estimatedCompletionTime,omitempty"`
	IsCancellable           *bool                                   `json:"isCancellable,omitempty"`
	IsUserError             *bool                                   `json:"isUserError,omitempty"`
	ManagedInstanceName     *string                                 `json:"managedInstanceName,omitempty"`
	Operation               *string                                 `json:"operation,omitempty"`
	OperationFriendlyName   *string                                 `json:"operationFriendlyName,omitempty"`
	OperationParameters     *ManagedInstanceOperationParametersPair `json:"operationParameters,omitempty"`
	OperationSteps          *ManagedInstanceOperationSteps          `json:"operationSteps,omitempty"`
	PercentComplete         *int64                                  `json:"percentComplete,omitempty"`
	StartTime               *string                                 `json:"startTime,omitempty"`
	State                   *ManagementOperationState               `json:"state,omitempty"`
}

func (*ManagedInstanceOperationProperties) GetEstimatedCompletionTimeAsTime

func (o *ManagedInstanceOperationProperties) GetEstimatedCompletionTimeAsTime() (*time.Time, error)

func (*ManagedInstanceOperationProperties) GetStartTimeAsTime

func (o *ManagedInstanceOperationProperties) GetStartTimeAsTime() (*time.Time, error)

func (*ManagedInstanceOperationProperties) SetEstimatedCompletionTimeAsTime

func (o *ManagedInstanceOperationProperties) SetEstimatedCompletionTimeAsTime(input time.Time)

func (*ManagedInstanceOperationProperties) SetStartTimeAsTime

func (o *ManagedInstanceOperationProperties) SetStartTimeAsTime(input time.Time)

type ManagedInstanceOperationSteps

type ManagedInstanceOperationSteps struct {
	CurrentStep *int64                                                      `json:"currentStep,omitempty"`
	StepsList   *[]UpsertManagedServerOperationStepWithEstimatesAndDuration `json:"stepsList,omitempty"`
	TotalSteps  *string                                                     `json:"totalSteps,omitempty"`
}

type ManagedInstanceOperationsClient

type ManagedInstanceOperationsClient struct {
	Client *resourcemanager.Client
}

func NewManagedInstanceOperationsClientWithBaseURI

func NewManagedInstanceOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceOperationsClient, error)

func (ManagedInstanceOperationsClient) ListByManagedInstance

ListByManagedInstance ...

func (ManagedInstanceOperationsClient) ListByManagedInstanceComplete

ListByManagedInstanceComplete retrieves all the results into a single object

func (ManagedInstanceOperationsClient) ListByManagedInstanceCompleteMatchingPredicate

ListByManagedInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ManagementOperationState

type ManagementOperationState string
const (
	ManagementOperationStateCancelInProgress ManagementOperationState = "CancelInProgress"
	ManagementOperationStateCancelled        ManagementOperationState = "Cancelled"
	ManagementOperationStateFailed           ManagementOperationState = "Failed"
	ManagementOperationStateInProgress       ManagementOperationState = "InProgress"
	ManagementOperationStatePending          ManagementOperationState = "Pending"
	ManagementOperationStateSucceeded        ManagementOperationState = "Succeeded"
)

func (*ManagementOperationState) UnmarshalJSON

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

type Status

type Status string
const (
	StatusCanceled   Status = "Canceled"
	StatusCompleted  Status = "Completed"
	StatusFailed     Status = "Failed"
	StatusInProgress Status = "InProgress"
	StatusNotStarted Status = "NotStarted"
	StatusSlowedDown Status = "SlowedDown"
)

func (*Status) UnmarshalJSON

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

type UpsertManagedServerOperationParameters

type UpsertManagedServerOperationParameters struct {
	Family          *string `json:"family,omitempty"`
	StorageSizeInGB *int64  `json:"storageSizeInGB,omitempty"`
	Tier            *string `json:"tier,omitempty"`
	VCores          *int64  `json:"vCores,omitempty"`
}

type UpsertManagedServerOperationStepWithEstimatesAndDuration

type UpsertManagedServerOperationStepWithEstimatesAndDuration struct {
	Name          *string `json:"name,omitempty"`
	Order         *int64  `json:"order,omitempty"`
	Status        *Status `json:"status,omitempty"`
	StepEndTime   *string `json:"stepEndTime,omitempty"`
	StepStartTime *string `json:"stepStartTime,omitempty"`
	TimeElapsed   *string `json:"timeElapsed,omitempty"`
}

func (*UpsertManagedServerOperationStepWithEstimatesAndDuration) GetStepEndTimeAsTime

func (*UpsertManagedServerOperationStepWithEstimatesAndDuration) GetStepStartTimeAsTime

func (*UpsertManagedServerOperationStepWithEstimatesAndDuration) SetStepEndTimeAsTime

func (*UpsertManagedServerOperationStepWithEstimatesAndDuration) SetStepStartTimeAsTime

func (o *UpsertManagedServerOperationStepWithEstimatesAndDuration) SetStepStartTimeAsTime(input time.Time)

Jump to

Keyboard shortcuts

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