recommendedactions

package
v0.20230221.1111959 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/recommendedactions Documentation

The recommendedactions SDK allows for interaction with the Azure Resource Manager Service mariadb (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/mariadb/2018-06-01/recommendedactions"

Client Initialization

client := recommendedactions.NewRecommendedActionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RecommendedActionsClient.Get

ctx := context.TODO()
id := recommendedactions.NewRecommendedActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "advisorValue", "recommendedActionValue")

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: RecommendedActionsClient.ListByServer

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

// alternatively `client.ListByServer(ctx, id, recommendedactions.DefaultListByServerOperationOptions())` can be used to do batched pagination
items, err := client.ListByServerComplete(ctx, id, recommendedactions.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 ValidateAdvisorID

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

ValidateAdvisorID checks that 'input' can be parsed as a Advisor ID

func ValidateRecommendedActionID

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

ValidateRecommendedActionID checks that 'input' can be parsed as a Recommended Action ID

Types

type AdvisorId

type AdvisorId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	AdvisorName       string
}

AdvisorId is a struct representing the Resource ID for a Advisor

func NewAdvisorID

func NewAdvisorID(subscriptionId string, resourceGroupName string, serverName string, advisorName string) AdvisorId

NewAdvisorID returns a new AdvisorId struct

func ParseAdvisorID

func ParseAdvisorID(input string) (*AdvisorId, error)

ParseAdvisorID parses 'input' into a AdvisorId

func ParseAdvisorIDInsensitively

func ParseAdvisorIDInsensitively(input string) (*AdvisorId, error)

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

func (AdvisorId) ID

func (id AdvisorId) ID() string

ID returns the formatted Advisor ID

func (AdvisorId) Segments

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

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

func (AdvisorId) String

func (id AdvisorId) String() string

String returns a human-readable description of this Advisor ID

type GetOperationResponse

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

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	Items []RecommendationAction
}

type ListByServerOperationOptions

type ListByServerOperationOptions struct {
	SessionId *string
}

func DefaultListByServerOperationOptions

func DefaultListByServerOperationOptions() ListByServerOperationOptions

type ListByServerOperationResponse

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

func (ListByServerOperationResponse) HasMore

func (r ListByServerOperationResponse) HasMore() bool

func (ListByServerOperationResponse) LoadMore

type RecommendationAction

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

type RecommendationActionOperationPredicate

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

func (RecommendationActionOperationPredicate) Matches

type RecommendationActionProperties

type RecommendationActionProperties struct {
	ActionId           *int64             `json:"actionId,omitempty"`
	AdvisorName        *string            `json:"advisorName,omitempty"`
	CreatedTime        *string            `json:"createdTime,omitempty"`
	Details            *map[string]string `json:"details,omitempty"`
	ExpirationTime     *string            `json:"expirationTime,omitempty"`
	Reason             *string            `json:"reason,omitempty"`
	RecommendationType *string            `json:"recommendationType,omitempty"`
	SessionId          *string            `json:"sessionId,omitempty"`
}

func (*RecommendationActionProperties) GetCreatedTimeAsTime

func (o *RecommendationActionProperties) GetCreatedTimeAsTime() (*time.Time, error)

func (*RecommendationActionProperties) GetExpirationTimeAsTime

func (o *RecommendationActionProperties) GetExpirationTimeAsTime() (*time.Time, error)

func (*RecommendationActionProperties) SetCreatedTimeAsTime

func (o *RecommendationActionProperties) SetCreatedTimeAsTime(input time.Time)

func (*RecommendationActionProperties) SetExpirationTimeAsTime

func (o *RecommendationActionProperties) SetExpirationTimeAsTime(input time.Time)

type RecommendedActionId

type RecommendedActionId struct {
	SubscriptionId        string
	ResourceGroupName     string
	ServerName            string
	AdvisorName           string
	RecommendedActionName string
}

RecommendedActionId is a struct representing the Resource ID for a Recommended Action

func NewRecommendedActionID

func NewRecommendedActionID(subscriptionId string, resourceGroupName string, serverName string, advisorName string, recommendedActionName string) RecommendedActionId

NewRecommendedActionID returns a new RecommendedActionId struct

func ParseRecommendedActionID

func ParseRecommendedActionID(input string) (*RecommendedActionId, error)

ParseRecommendedActionID parses 'input' into a RecommendedActionId

func ParseRecommendedActionIDInsensitively

func ParseRecommendedActionIDInsensitively(input string) (*RecommendedActionId, error)

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

func (RecommendedActionId) ID

func (id RecommendedActionId) ID() string

ID returns the formatted Recommended Action ID

func (RecommendedActionId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Recommended Action ID

func (RecommendedActionId) String

func (id RecommendedActionId) String() string

String returns a human-readable description of this Recommended Action ID

type RecommendedActionsClient

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

func NewRecommendedActionsClientWithBaseURI

func NewRecommendedActionsClientWithBaseURI(endpoint string) RecommendedActionsClient

func (RecommendedActionsClient) Get

Get ...

func (RecommendedActionsClient) ListByServer

ListByServer ...

func (RecommendedActionsClient) ListByServerComplete

ListByServerComplete retrieves all of the results into a single object

func (RecommendedActionsClient) ListByServerCompleteMatchingPredicate

func (c RecommendedActionsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id AdvisorId, options ListByServerOperationOptions, predicate RecommendationActionOperationPredicate) (resp ListByServerCompleteResult, err error)

ListByServerCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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