elasticversions

package
v0.20240416.1114103 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/elasticversions Documentation

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

Client Initialization

client := elasticversions.NewElasticVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ElasticVersionsClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

This section is empty.

Types

type ElasticVersionListFormat

type ElasticVersionListFormat struct {
	Properties *ElasticVersionListProperties `json:"properties,omitempty"`
}

type ElasticVersionListFormatOperationPredicate

type ElasticVersionListFormatOperationPredicate struct {
}

func (ElasticVersionListFormatOperationPredicate) Matches

type ElasticVersionListProperties

type ElasticVersionListProperties struct {
	Version *string `json:"version,omitempty"`
}

type ElasticVersionsClient

type ElasticVersionsClient struct {
	Client *resourcemanager.Client
}

func NewElasticVersionsClientWithBaseURI

func NewElasticVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticVersionsClient, error)

func (ElasticVersionsClient) List

List ...

func (ElasticVersionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ElasticVersionsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ElasticVersionListFormat
}

type ListOperationOptions

type ListOperationOptions struct {
	Region *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ElasticVersionListFormat
}

Jump to

Keyboard shortcuts

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