virtualclusters

package
v0.20230630.1064152 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2021-02-01-preview/virtualclusters Documentation

The virtualclusters SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-02-01-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/sql/2021-02-01-preview/virtualclusters"

Client Initialization

client := virtualclusters.NewVirtualClustersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualClustersClient.Delete

ctx := context.TODO()
id := virtualclusters.NewVirtualClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualClusterValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualClustersClient.Get

ctx := context.TODO()
id := virtualclusters.NewVirtualClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualClusterValue")

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: VirtualClustersClient.List

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

// 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
}

Example Usage: VirtualClustersClient.ListByResourceGroup

ctx := context.TODO()
id := virtualclusters.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: VirtualClustersClient.Update

ctx := context.TODO()
id := virtualclusters.NewVirtualClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualClusterValue")

payload := virtualclusters.VirtualClusterUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualClustersClient.UpdateDnsServers

ctx := context.TODO()
id := virtualclusters.NewVirtualClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualClusterValue")

read, err := client.UpdateDnsServers(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func ValidateVirtualClusterID

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

ValidateVirtualClusterID checks that 'input' can be parsed as a Virtual Cluster ID

Types

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DnsRefreshConfigurationProperties

type DnsRefreshConfigurationProperties struct {
	Status *Status `json:"status,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualCluster
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	Items []VirtualCluster
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualCluster
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []VirtualCluster
}

type ListOperationResponse

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

type Status

type Status string
const (
	StatusFailed    Status = "Failed"
	StatusSucceeded Status = "Succeeded"
)

func (*Status) UnmarshalJSON

func (s *Status) UnmarshalJSON(bytes []byte) error

type UpdateDnsServersOperationResponse

type UpdateDnsServersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *UpdateManagedInstanceDnsServersOperation
}

type UpdateManagedInstanceDnsServersOperation

type UpdateManagedInstanceDnsServersOperation struct {
	Id         *string                            `json:"id,omitempty"`
	Name       *string                            `json:"name,omitempty"`
	Properties *DnsRefreshConfigurationProperties `json:"properties,omitempty"`
	Type       *string                            `json:"type,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type VirtualCluster

type VirtualCluster struct {
	Id         *string                   `json:"id,omitempty"`
	Location   string                    `json:"location"`
	Name       *string                   `json:"name,omitempty"`
	Properties *VirtualClusterProperties `json:"properties,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type VirtualClusterId

type VirtualClusterId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualClusterName string
}

VirtualClusterId is a struct representing the Resource ID for a Virtual Cluster

func NewVirtualClusterID

func NewVirtualClusterID(subscriptionId string, resourceGroupName string, virtualClusterName string) VirtualClusterId

NewVirtualClusterID returns a new VirtualClusterId struct

func ParseVirtualClusterID

func ParseVirtualClusterID(input string) (*VirtualClusterId, error)

ParseVirtualClusterID parses 'input' into a VirtualClusterId

func ParseVirtualClusterIDInsensitively

func ParseVirtualClusterIDInsensitively(input string) (*VirtualClusterId, error)

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

func (VirtualClusterId) ID

func (id VirtualClusterId) ID() string

ID returns the formatted Virtual Cluster ID

func (VirtualClusterId) Segments

func (id VirtualClusterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Virtual Cluster ID

func (VirtualClusterId) String

func (id VirtualClusterId) String() string

String returns a human-readable description of this Virtual Cluster ID

type VirtualClusterOperationPredicate

type VirtualClusterOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (VirtualClusterOperationPredicate) Matches

type VirtualClusterProperties

type VirtualClusterProperties struct {
	ChildResources             *[]string `json:"childResources,omitempty"`
	Family                     *string   `json:"family,omitempty"`
	MaintenanceConfigurationId *string   `json:"maintenanceConfigurationId,omitempty"`
	SubnetId                   *string   `json:"subnetId,omitempty"`
}

type VirtualClusterUpdate

type VirtualClusterUpdate struct {
	Properties *VirtualClusterProperties `json:"properties,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
}

type VirtualClustersClient

type VirtualClustersClient struct {
	Client *resourcemanager.Client
}

func NewVirtualClustersClientWithBaseURI

func NewVirtualClustersClientWithBaseURI(api environments.Api) (*VirtualClustersClient, error)

func (VirtualClustersClient) Delete

Delete ...

func (VirtualClustersClient) DeleteThenPoll

func (c VirtualClustersClient) DeleteThenPoll(ctx context.Context, id VirtualClusterId) error

DeleteThenPoll performs Delete then polls until it's completed

func (VirtualClustersClient) Get

Get ...

func (VirtualClustersClient) List

List ...

func (VirtualClustersClient) ListByResourceGroup

ListByResourceGroup ...

func (VirtualClustersClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (VirtualClustersClient) ListByResourceGroupCompleteMatchingPredicate

func (c VirtualClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualClusterOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualClustersClient) ListComplete

ListComplete retrieves all the results into a single object

func (VirtualClustersClient) ListCompleteMatchingPredicate

func (c VirtualClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualClusterOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualClustersClient) Update

Update ...

func (VirtualClustersClient) UpdateDnsServers

UpdateDnsServers ...

func (VirtualClustersClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

Jump to

Keyboard shortcuts

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