README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2024-03-01/elasticversions
Documentation
The elasticversions
SDK allows for interaction with the Azure Resource Manager Service elastic
(API Version 2024-03-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/2024-03-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 ¶
- type ElasticVersionListFormat
- type ElasticVersionListFormatOperationPredicate
- type ElasticVersionListProperties
- type ElasticVersionsClient
- func (c ElasticVersionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ElasticVersionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ElasticVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
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 ¶
func (p ElasticVersionListFormatOperationPredicate) Matches(input ElasticVersionListFormat) bool
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 ¶
func (c ElasticVersionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ElasticVersionsClient) ListComplete ¶
func (c ElasticVersionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ElasticVersionsClient) ListCompleteMatchingPredicate ¶
func (c ElasticVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate ElasticVersionListFormatOperationPredicate) (result ListCompleteResult, err error)
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 ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ElasticVersionListFormat }
Click to show internal directories.
Click to hide internal directories.