attacheddatabaseconfigurations

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-05-02/attacheddatabaseconfigurations Documentation

The attacheddatabaseconfigurations SDK allows for interaction with the Azure Resource Manager Service kusto (API Version 2023-05-02).

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/kusto/2023-05-02/attacheddatabaseconfigurations"

Client Initialization

client := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AttachedDatabaseConfigurationsClient.CheckNameAvailability

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

payload := attacheddatabaseconfigurations.AttachedDatabaseConfigurationsCheckNameRequest{
	// ...
}


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

Example Usage: AttachedDatabaseConfigurationsClient.CreateOrUpdate

ctx := context.TODO()
id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue")

payload := attacheddatabaseconfigurations.AttachedDatabaseConfiguration{
	// ...
}


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

Example Usage: AttachedDatabaseConfigurationsClient.Delete

ctx := context.TODO()
id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue")

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

Example Usage: AttachedDatabaseConfigurationsClient.Get

ctx := context.TODO()
id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue")

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: AttachedDatabaseConfigurationsClient.ListByCluster

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

read, err := client.ListByCluster(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 PossibleValuesForAttachedDatabaseType

func PossibleValuesForAttachedDatabaseType() []string

func PossibleValuesForDefaultPrincipalsModificationKind

func PossibleValuesForDefaultPrincipalsModificationKind() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForReason

func PossibleValuesForReason() []string

func ValidateAttachedDatabaseConfigurationID

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

ValidateAttachedDatabaseConfigurationID checks that 'input' can be parsed as a Attached Database Configuration ID

func ValidateClusterID

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

ValidateClusterID checks that 'input' can be parsed as a Cluster ID

Types

type AttachedDatabaseConfiguration

type AttachedDatabaseConfiguration struct {
	Id         *string                                  `json:"id,omitempty"`
	Location   *string                                  `json:"location,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *AttachedDatabaseConfigurationProperties `json:"properties,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type AttachedDatabaseConfigurationId

type AttachedDatabaseConfigurationId struct {
	SubscriptionId                    string
	ResourceGroupName                 string
	ClusterName                       string
	AttachedDatabaseConfigurationName string
}

AttachedDatabaseConfigurationId is a struct representing the Resource ID for a Attached Database Configuration

func NewAttachedDatabaseConfigurationID

func NewAttachedDatabaseConfigurationID(subscriptionId string, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string) AttachedDatabaseConfigurationId

NewAttachedDatabaseConfigurationID returns a new AttachedDatabaseConfigurationId struct

func ParseAttachedDatabaseConfigurationID

func ParseAttachedDatabaseConfigurationID(input string) (*AttachedDatabaseConfigurationId, error)

ParseAttachedDatabaseConfigurationID parses 'input' into a AttachedDatabaseConfigurationId

func ParseAttachedDatabaseConfigurationIDInsensitively

func ParseAttachedDatabaseConfigurationIDInsensitively(input string) (*AttachedDatabaseConfigurationId, error)

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

func (AttachedDatabaseConfigurationId) ID

ID returns the formatted Attached Database Configuration ID

func (AttachedDatabaseConfigurationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Attached Database Configuration ID

func (AttachedDatabaseConfigurationId) String

String returns a human-readable description of this Attached Database Configuration ID

type AttachedDatabaseConfigurationListResult

type AttachedDatabaseConfigurationListResult struct {
	Value *[]AttachedDatabaseConfiguration `json:"value,omitempty"`
}

type AttachedDatabaseConfigurationProperties

type AttachedDatabaseConfigurationProperties struct {
	AttachedDatabaseNames             *[]string                         `json:"attachedDatabaseNames,omitempty"`
	ClusterResourceId                 string                            `json:"clusterResourceId"`
	DatabaseName                      string                            `json:"databaseName"`
	DatabaseNameOverride              *string                           `json:"databaseNameOverride,omitempty"`
	DatabaseNamePrefix                *string                           `json:"databaseNamePrefix,omitempty"`
	DefaultPrincipalsModificationKind DefaultPrincipalsModificationKind `json:"defaultPrincipalsModificationKind"`
	ProvisioningState                 *ProvisioningState                `json:"provisioningState,omitempty"`
	TableLevelSharingProperties       *TableLevelSharingProperties      `json:"tableLevelSharingProperties,omitempty"`
}

type AttachedDatabaseConfigurationsCheckNameRequest

type AttachedDatabaseConfigurationsCheckNameRequest struct {
	Name string               `json:"name"`
	Type AttachedDatabaseType `json:"type"`
}

type AttachedDatabaseConfigurationsClient

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

func NewAttachedDatabaseConfigurationsClientWithBaseURI

func NewAttachedDatabaseConfigurationsClientWithBaseURI(endpoint string) AttachedDatabaseConfigurationsClient

func (AttachedDatabaseConfigurationsClient) CheckNameAvailability

CheckNameAvailability ...

func (AttachedDatabaseConfigurationsClient) CreateOrUpdate

CreateOrUpdate ...

func (AttachedDatabaseConfigurationsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (AttachedDatabaseConfigurationsClient) Delete

Delete ...

func (AttachedDatabaseConfigurationsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (AttachedDatabaseConfigurationsClient) Get

Get ...

func (AttachedDatabaseConfigurationsClient) ListByCluster

ListByCluster ...

type AttachedDatabaseType

type AttachedDatabaseType string
const (
	AttachedDatabaseTypeMicrosoftPointKustoClustersAttachedDatabaseConfigurations AttachedDatabaseType = "Microsoft.Kusto/clusters/attachedDatabaseConfigurations"
)

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	Model        *CheckNameResult
}

type CheckNameResult

type CheckNameResult struct {
	Message       *string `json:"message,omitempty"`
	Name          *string `json:"name,omitempty"`
	NameAvailable *bool   `json:"nameAvailable,omitempty"`
	Reason        *Reason `json:"reason,omitempty"`
}

type ClusterId

type ClusterId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
}

ClusterId is a struct representing the Resource ID for a Cluster

func NewClusterID

func NewClusterID(subscriptionId string, resourceGroupName string, clusterName string) ClusterId

NewClusterID returns a new ClusterId struct

func ParseClusterID

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

ParseClusterID parses 'input' into a ClusterId

func ParseClusterIDInsensitively

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

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

func (ClusterId) ID

func (id ClusterId) ID() string

ID returns the formatted Cluster ID

func (ClusterId) Segments

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

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

func (ClusterId) String

func (id ClusterId) String() string

String returns a human-readable description of this Cluster ID

type CreateOrUpdateOperationResponse

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

type DefaultPrincipalsModificationKind

type DefaultPrincipalsModificationKind string
const (
	DefaultPrincipalsModificationKindNone    DefaultPrincipalsModificationKind = "None"
	DefaultPrincipalsModificationKindReplace DefaultPrincipalsModificationKind = "Replace"
	DefaultPrincipalsModificationKindUnion   DefaultPrincipalsModificationKind = "Union"
)

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *AttachedDatabaseConfiguration
}

type ListByClusterOperationResponse

type ListByClusterOperationResponse struct {
	HttpResponse *http.Response
	Model        *AttachedDatabaseConfigurationListResult
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateMoving    ProvisioningState = "Moving"
	ProvisioningStateRunning   ProvisioningState = "Running"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

type Reason

type Reason string
const (
	ReasonAlreadyExists Reason = "AlreadyExists"
	ReasonInvalid       Reason = "Invalid"
)

type TableLevelSharingProperties

type TableLevelSharingProperties struct {
	ExternalTablesToExclude    *[]string `json:"externalTablesToExclude,omitempty"`
	ExternalTablesToInclude    *[]string `json:"externalTablesToInclude,omitempty"`
	FunctionsToExclude         *[]string `json:"functionsToExclude,omitempty"`
	FunctionsToInclude         *[]string `json:"functionsToInclude,omitempty"`
	MaterializedViewsToExclude *[]string `json:"materializedViewsToExclude,omitempty"`
	MaterializedViewsToInclude *[]string `json:"materializedViewsToInclude,omitempty"`
	TablesToExclude            *[]string `json:"tablesToExclude,omitempty"`
	TablesToInclude            *[]string `json:"tablesToInclude,omitempty"`
}

Jump to

Keyboard shortcuts

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