README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers
Documentation
The fleetmembers
SDK allows for interaction with the Azure Resource Manager Service containerservice
(API Version 2022-09-02-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-sdk/resource-manager/containerservice/2022-09-02-preview/fleetmembers"
Client Initialization
client := fleetmembers.NewFleetMembersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: FleetMembersClient.CreateOrUpdate
ctx := context.TODO()
id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue")
payload := fleetmembers.FleetMember{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload, fleetmembers.DefaultCreateOrUpdateOperationOptions()); err != nil {
// handle the error
}
Example Usage: FleetMembersClient.Delete
ctx := context.TODO()
id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue")
if err := client.DeleteThenPoll(ctx, id, fleetmembers.DefaultDeleteOperationOptions()); err != nil {
// handle the error
}
Example Usage: FleetMembersClient.Get
ctx := context.TODO()
id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue")
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: FleetMembersClient.ListByFleet
ctx := context.TODO()
id := fleetmembers.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue")
// alternatively `client.ListByFleet(ctx, id)` can be used to do batched pagination
items, err := client.ListByFleetComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForFleetMemberProvisioningState() []string
- func ValidateFleetID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateMemberID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type FleetId
- type FleetMember
- type FleetMemberOperationPredicate
- type FleetMemberProperties
- type FleetMemberProvisioningState
- type FleetMembersClient
- func (c FleetMembersClient) CreateOrUpdate(ctx context.Context, id MemberId, input FleetMember, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c FleetMembersClient) CreateOrUpdateThenPoll(ctx context.Context, id MemberId, input FleetMember, ...) error
- func (c FleetMembersClient) Delete(ctx context.Context, id MemberId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c FleetMembersClient) DeleteThenPoll(ctx context.Context, id MemberId, options DeleteOperationOptions) error
- func (c FleetMembersClient) Get(ctx context.Context, id MemberId) (result GetOperationResponse, err error)
- func (c FleetMembersClient) ListByFleet(ctx context.Context, id FleetId) (resp ListByFleetOperationResponse, err error)
- func (c FleetMembersClient) ListByFleetComplete(ctx context.Context, id FleetId) (ListByFleetCompleteResult, error)
- func (c FleetMembersClient) ListByFleetCompleteMatchingPredicate(ctx context.Context, id FleetId, predicate FleetMemberOperationPredicate) (resp ListByFleetCompleteResult, err error)
- type GetOperationResponse
- type ListByFleetCompleteResult
- type ListByFleetOperationResponse
- type MemberId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForFleetMemberProvisioningState ¶
func PossibleValuesForFleetMemberProvisioningState() []string
func ValidateFleetID ¶
ValidateFleetID checks that 'input' can be parsed as a Fleet ID
func ValidateMemberID ¶
ValidateMemberID checks that 'input' can be parsed as a Member ID
Types ¶
type CreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type FleetId ¶
FleetId is a struct representing the Resource ID for a Fleet
func NewFleetID ¶
NewFleetID returns a new FleetId struct
func ParseFleetID ¶
ParseFleetID parses 'input' into a FleetId
func ParseFleetIDInsensitively ¶
ParseFleetIDInsensitively parses 'input' case-insensitively into a FleetId note: this method should only be used for API response data and not user input
func (FleetId) Segments ¶
func (id FleetId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Fleet ID
type FleetMember ¶
type FleetMember struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *FleetMemberProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type FleetMemberOperationPredicate ¶
func (FleetMemberOperationPredicate) Matches ¶
func (p FleetMemberOperationPredicate) Matches(input FleetMember) bool
type FleetMemberProperties ¶
type FleetMemberProperties struct { ClusterResourceId *string `json:"clusterResourceId,omitempty"` ProvisioningState *FleetMemberProvisioningState `json:"provisioningState,omitempty"` }
type FleetMemberProvisioningState ¶
type FleetMemberProvisioningState string
const ( FleetMemberProvisioningStateCanceled FleetMemberProvisioningState = "Canceled" FleetMemberProvisioningStateFailed FleetMemberProvisioningState = "Failed" FleetMemberProvisioningStateJoining FleetMemberProvisioningState = "Joining" FleetMemberProvisioningStateLeaving FleetMemberProvisioningState = "Leaving" FleetMemberProvisioningStateSucceeded FleetMemberProvisioningState = "Succeeded" FleetMemberProvisioningStateUpdating FleetMemberProvisioningState = "Updating" )
type FleetMembersClient ¶
func NewFleetMembersClientWithBaseURI ¶
func NewFleetMembersClientWithBaseURI(endpoint string) FleetMembersClient
func (FleetMembersClient) CreateOrUpdate ¶
func (c FleetMembersClient) CreateOrUpdate(ctx context.Context, id MemberId, input FleetMember, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (FleetMembersClient) CreateOrUpdateThenPoll ¶
func (c FleetMembersClient) CreateOrUpdateThenPoll(ctx context.Context, id MemberId, input FleetMember, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (FleetMembersClient) Delete ¶
func (c FleetMembersClient) Delete(ctx context.Context, id MemberId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (FleetMembersClient) DeleteThenPoll ¶
func (c FleetMembersClient) DeleteThenPoll(ctx context.Context, id MemberId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (FleetMembersClient) Get ¶
func (c FleetMembersClient) Get(ctx context.Context, id MemberId) (result GetOperationResponse, err error)
Get ...
func (FleetMembersClient) ListByFleet ¶
func (c FleetMembersClient) ListByFleet(ctx context.Context, id FleetId) (resp ListByFleetOperationResponse, err error)
ListByFleet ...
func (FleetMembersClient) ListByFleetComplete ¶
func (c FleetMembersClient) ListByFleetComplete(ctx context.Context, id FleetId) (ListByFleetCompleteResult, error)
ListByFleetComplete retrieves all of the results into a single object
func (FleetMembersClient) ListByFleetCompleteMatchingPredicate ¶
func (c FleetMembersClient) ListByFleetCompleteMatchingPredicate(ctx context.Context, id FleetId, predicate FleetMemberOperationPredicate) (resp ListByFleetCompleteResult, err error)
ListByFleetCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *FleetMember }
type ListByFleetCompleteResult ¶
type ListByFleetCompleteResult struct {
Items []FleetMember
}
type ListByFleetOperationResponse ¶
type ListByFleetOperationResponse struct { HttpResponse *http.Response Model *[]FleetMember // contains filtered or unexported fields }
func (ListByFleetOperationResponse) HasMore ¶
func (r ListByFleetOperationResponse) HasMore() bool
func (ListByFleetOperationResponse) LoadMore ¶
func (r ListByFleetOperationResponse) LoadMore(ctx context.Context) (resp ListByFleetOperationResponse, err error)
type MemberId ¶
type MemberId struct { SubscriptionId string ResourceGroupName string FleetName string MemberName string }
MemberId is a struct representing the Resource ID for a Member
func NewMemberID ¶
func NewMemberID(subscriptionId string, resourceGroupName string, fleetName string, memberName string) MemberId
NewMemberID returns a new MemberId struct
func ParseMemberID ¶
ParseMemberID parses 'input' into a MemberId
func ParseMemberIDInsensitively ¶
ParseMemberIDInsensitively parses 'input' case-insensitively into a MemberId note: this method should only be used for API response data and not user input
func (MemberId) Segments ¶
func (id MemberId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Member ID