locationbasedrecommendedactionsessionsresult

package
v0.20221129.1132320 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2018-06-01/locationbasedrecommendedactionsessionsresult Documentation

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

Client Initialization

client := locationbasedrecommendedactionsessionsresult.NewLocationBasedRecommendedActionSessionsResultClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LocationBasedRecommendedActionSessionsResultClient.List

ctx := context.TODO()
id := locationbasedrecommendedactionsessionsresult.NewRecommendedActionSessionsOperationResultID("12345678-1234-9876-4563-123456789012", "locationValue", "operationIdValue")

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

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

ValidateRecommendedActionSessionsOperationResultID checks that 'input' can be parsed as a Recommended Action Sessions Operation Result ID

Types

type ListCompleteResult

type ListCompleteResult struct {
	Items []RecommendationAction
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type LocationBasedRecommendedActionSessionsResultClient

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

func NewLocationBasedRecommendedActionSessionsResultClientWithBaseURI

func NewLocationBasedRecommendedActionSessionsResultClientWithBaseURI(endpoint string) LocationBasedRecommendedActionSessionsResultClient

func (LocationBasedRecommendedActionSessionsResultClient) List

List ...

func (LocationBasedRecommendedActionSessionsResultClient) ListComplete

ListComplete retrieves all of the results into a single object

func (LocationBasedRecommendedActionSessionsResultClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type RecommendationAction

type RecommendationAction struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *RecommendationActionProperties `json:"properties"`
	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 RecommendedActionSessionsOperationResultId

type RecommendedActionSessionsOperationResultId struct {
	SubscriptionId string
	LocationName   string
	OperationId    string
}

RecommendedActionSessionsOperationResultId is a struct representing the Resource ID for a Recommended Action Sessions Operation Result

func NewRecommendedActionSessionsOperationResultID

func NewRecommendedActionSessionsOperationResultID(subscriptionId string, locationName string, operationId string) RecommendedActionSessionsOperationResultId

NewRecommendedActionSessionsOperationResultID returns a new RecommendedActionSessionsOperationResultId struct

func ParseRecommendedActionSessionsOperationResultID

func ParseRecommendedActionSessionsOperationResultID(input string) (*RecommendedActionSessionsOperationResultId, error)

ParseRecommendedActionSessionsOperationResultID parses 'input' into a RecommendedActionSessionsOperationResultId

func ParseRecommendedActionSessionsOperationResultIDInsensitively

func ParseRecommendedActionSessionsOperationResultIDInsensitively(input string) (*RecommendedActionSessionsOperationResultId, error)

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

func (RecommendedActionSessionsOperationResultId) ID

ID returns the formatted Recommended Action Sessions Operation Result ID

func (RecommendedActionSessionsOperationResultId) Segments

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

func (RecommendedActionSessionsOperationResultId) String

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

Jump to

Keyboard shortcuts

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