clusters

package
v2.85.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Id         *string           `json:"id,omitempty"`
	Name       *string           `json:"name,omitempty"`
	Properties ClusterProperties `json:"properties"`
	Sku        Sku               `json:"sku"`
	Type       *string           `json:"type,omitempty"`
}

type ClusterId

type ClusterId struct {
	SubscriptionId   string
	ResourceGroup    string
	PrivateCloudName string
	Name             string
}

func NewClusterID

func NewClusterID(subscriptionId, resourceGroup, privateCloudName, name string) ClusterId

func ParseClusterID

func ParseClusterID(input string) (*ClusterId, error)

ParseClusterID parses a Cluster ID into an ClusterId struct

func ParseClusterIDInsensitively

func ParseClusterIDInsensitively(input string) (*ClusterId, error)

ParseClusterIDInsensitively parses an Cluster ID into an ClusterId struct, insensitively This should only be used to parse an ID for rewriting to a consistent casing, the ParseClusterID method should be used instead for validation etc.

func (ClusterId) ID

func (id ClusterId) ID() string

func (ClusterId) String

func (id ClusterId) String() string

type ClusterPredicate

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

func (ClusterPredicate) Matches

func (p ClusterPredicate) Matches(input Cluster) bool

type ClusterProperties

type ClusterProperties struct {
	ClusterId         *int64                    `json:"clusterId,omitempty"`
	ClusterSize       int64                     `json:"clusterSize"`
	Hosts             *[]string                 `json:"hosts,omitempty"`
	ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty"`
}

type ClusterProvisioningState

type ClusterProvisioningState string
const (
	ClusterProvisioningStateCancelled ClusterProvisioningState = "Cancelled"
	ClusterProvisioningStateDeleting  ClusterProvisioningState = "Deleting"
	ClusterProvisioningStateFailed    ClusterProvisioningState = "Failed"
	ClusterProvisioningStateSucceeded ClusterProvisioningState = "Succeeded"
	ClusterProvisioningStateUpdating  ClusterProvisioningState = "Updating"
)

type ClusterUpdate

type ClusterUpdate struct {
	Properties *ClusterUpdateProperties `json:"properties,omitempty"`
}

type ClusterUpdateProperties

type ClusterUpdateProperties struct {
	ClusterSize *int64 `json:"clusterSize,omitempty"`
}

type ClustersClient

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

func NewClustersClientWithBaseURI

func NewClustersClientWithBaseURI(endpoint string) ClustersClient

func (ClustersClient) CreateOrUpdate

func (c ClustersClient) CreateOrUpdate(ctx context.Context, id ClusterId, input Cluster) (result CreateOrUpdateResponse, err error)

CreateOrUpdate ...

func (ClustersClient) CreateOrUpdateThenPoll

func (c ClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id ClusterId, input Cluster) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (ClustersClient) Delete

func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteResponse, err error)

Delete ...

func (ClustersClient) DeleteThenPoll

func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ClustersClient) Get

func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetResponse, err error)

Get ...

func (ClustersClient) List

func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (resp ListResponse, err error)

List ...

func (ClustersClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ClustersClient) ListCompleteMatchingPredicate

func (c ClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id PrivateCloudId, predicate ClusterPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ClustersClient) Update

func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ClusterUpdate) (result UpdateResponse, err error)

Update ...

func (ClustersClient) UpdateThenPoll

func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ClusterId, input ClusterUpdate) error

UpdateThenPoll performs Update then polls until it's completed

type CreateOrUpdateResponse

type CreateOrUpdateResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteResponse

type DeleteResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetResponse

type GetResponse struct {
	HttpResponse *http.Response
	Model        *Cluster
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []Cluster
}

type ListResponse

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

func (ListResponse) HasMore

func (r ListResponse) HasMore() bool

func (ListResponse) LoadMore

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

type PrivateCloudId

type PrivateCloudId struct {
	SubscriptionId string
	ResourceGroup  string
	Name           string
}

func NewPrivateCloudID

func NewPrivateCloudID(subscriptionId, resourceGroup, name string) PrivateCloudId

func ParsePrivateCloudID

func ParsePrivateCloudID(input string) (*PrivateCloudId, error)

ParsePrivateCloudID parses a PrivateCloud ID into an PrivateCloudId struct

func ParsePrivateCloudIDInsensitively

func ParsePrivateCloudIDInsensitively(input string) (*PrivateCloudId, error)

ParsePrivateCloudIDInsensitively parses an PrivateCloud ID into an PrivateCloudId struct, insensitively This should only be used to parse an ID for rewriting to a consistent casing, the ParsePrivateCloudID method should be used instead for validation etc.

func (PrivateCloudId) ID

func (id PrivateCloudId) ID() string

func (PrivateCloudId) String

func (id PrivateCloudId) String() string

type Sku

type Sku struct {
	Name string `json:"name"`
}

type UpdateResponse

type UpdateResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

Jump to

Keyboard shortcuts

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