databaseprincipalassignments

package
v0.20220822.1091039 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2021-08-27/databaseprincipalassignments Documentation

The databaseprincipalassignments SDK allows for interaction with the Azure Resource Manager Service kusto (API Version 2021-08-27).

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/2021-08-27/databaseprincipalassignments"

Client Initialization

client := databaseprincipalassignments.NewDatabasePrincipalAssignmentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DatabasePrincipalAssignmentsClient.CheckNameAvailability

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

payload := databaseprincipalassignments.DatabasePrincipalAssignmentCheckNameRequest{
	// ...
}


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: DatabasePrincipalAssignmentsClient.CreateOrUpdate

ctx := context.TODO()
id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue")

payload := databaseprincipalassignments.DatabasePrincipalAssignment{
	// ...
}


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

Example Usage: DatabasePrincipalAssignmentsClient.Delete

ctx := context.TODO()
id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue")

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

Example Usage: DatabasePrincipalAssignmentsClient.Get

ctx := context.TODO()
id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue")

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

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

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

func PossibleValuesForDatabasePrincipalAssignmentType() []string

func PossibleValuesForDatabasePrincipalRole

func PossibleValuesForDatabasePrincipalRole() []string

func PossibleValuesForPrincipalType

func PossibleValuesForPrincipalType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForReason

func PossibleValuesForReason() []string

func ValidateDatabaseID

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

ValidateDatabaseID checks that 'input' can be parsed as a Database ID

func ValidateDatabasePrincipalAssignmentID

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

ValidateDatabasePrincipalAssignmentID checks that 'input' can be parsed as a Database Principal Assignment ID

Types

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 CreateOrUpdateOperationResponse

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

type DatabaseId

type DatabaseId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	DatabaseName      string
}

DatabaseId is a struct representing the Resource ID for a Database

func NewDatabaseID

func NewDatabaseID(subscriptionId string, resourceGroupName string, clusterName string, databaseName string) DatabaseId

NewDatabaseID returns a new DatabaseId struct

func ParseDatabaseID

func ParseDatabaseID(input string) (*DatabaseId, error)

ParseDatabaseID parses 'input' into a DatabaseId

func ParseDatabaseIDInsensitively

func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)

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

func (DatabaseId) ID

func (id DatabaseId) ID() string

ID returns the formatted Database ID

func (DatabaseId) Segments

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

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

func (DatabaseId) String

func (id DatabaseId) String() string

String returns a human-readable description of this Database ID

type DatabasePrincipalAssignment

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

type DatabasePrincipalAssignmentCheckNameRequest

type DatabasePrincipalAssignmentCheckNameRequest struct {
	Name string                          `json:"name"`
	Type DatabasePrincipalAssignmentType `json:"type"`
}

type DatabasePrincipalAssignmentId

type DatabasePrincipalAssignmentId struct {
	SubscriptionId          string
	ResourceGroupName       string
	ClusterName             string
	DatabaseName            string
	PrincipalAssignmentName string
}

DatabasePrincipalAssignmentId is a struct representing the Resource ID for a Database Principal Assignment

func NewDatabasePrincipalAssignmentID

func NewDatabasePrincipalAssignmentID(subscriptionId string, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string) DatabasePrincipalAssignmentId

NewDatabasePrincipalAssignmentID returns a new DatabasePrincipalAssignmentId struct

func ParseDatabasePrincipalAssignmentID

func ParseDatabasePrincipalAssignmentID(input string) (*DatabasePrincipalAssignmentId, error)

ParseDatabasePrincipalAssignmentID parses 'input' into a DatabasePrincipalAssignmentId

func ParseDatabasePrincipalAssignmentIDInsensitively

func ParseDatabasePrincipalAssignmentIDInsensitively(input string) (*DatabasePrincipalAssignmentId, error)

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

func (DatabasePrincipalAssignmentId) ID

ID returns the formatted Database Principal Assignment ID

func (DatabasePrincipalAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Database Principal Assignment ID

func (DatabasePrincipalAssignmentId) String

String returns a human-readable description of this Database Principal Assignment ID

type DatabasePrincipalAssignmentListResult

type DatabasePrincipalAssignmentListResult struct {
	Value *[]DatabasePrincipalAssignment `json:"value,omitempty"`
}

type DatabasePrincipalAssignmentType

type DatabasePrincipalAssignmentType string
const (
	DatabasePrincipalAssignmentTypeMicrosoftPointKustoClustersDatabasesPrincipalAssignments DatabasePrincipalAssignmentType = "Microsoft.Kusto/clusters/databases/principalAssignments"
)

type DatabasePrincipalAssignmentsClient

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

func NewDatabasePrincipalAssignmentsClientWithBaseURI

func NewDatabasePrincipalAssignmentsClientWithBaseURI(endpoint string) DatabasePrincipalAssignmentsClient

func (DatabasePrincipalAssignmentsClient) CheckNameAvailability

CheckNameAvailability ...

func (DatabasePrincipalAssignmentsClient) CreateOrUpdate

CreateOrUpdate ...

func (DatabasePrincipalAssignmentsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DatabasePrincipalAssignmentsClient) Delete

Delete ...

func (DatabasePrincipalAssignmentsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (DatabasePrincipalAssignmentsClient) Get

Get ...

func (DatabasePrincipalAssignmentsClient) List

List ...

type DatabasePrincipalProperties

type DatabasePrincipalProperties struct {
	PrincipalId       string                `json:"principalId"`
	PrincipalName     *string               `json:"principalName,omitempty"`
	PrincipalType     PrincipalType         `json:"principalType"`
	ProvisioningState *ProvisioningState    `json:"provisioningState,omitempty"`
	Role              DatabasePrincipalRole `json:"role"`
	TenantId          *string               `json:"tenantId,omitempty"`
	TenantName        *string               `json:"tenantName,omitempty"`
}

type DatabasePrincipalRole

type DatabasePrincipalRole string
const (
	DatabasePrincipalRoleAdmin              DatabasePrincipalRole = "Admin"
	DatabasePrincipalRoleIngestor           DatabasePrincipalRole = "Ingestor"
	DatabasePrincipalRoleMonitor            DatabasePrincipalRole = "Monitor"
	DatabasePrincipalRoleUnrestrictedViewer DatabasePrincipalRole = "UnrestrictedViewer"
	DatabasePrincipalRoleUser               DatabasePrincipalRole = "User"
	DatabasePrincipalRoleViewer             DatabasePrincipalRole = "Viewer"
)

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *DatabasePrincipalAssignmentListResult
}

type PrincipalType

type PrincipalType string
const (
	PrincipalTypeApp   PrincipalType = "App"
	PrincipalTypeGroup PrincipalType = "Group"
	PrincipalTypeUser  PrincipalType = "User"
)

type ProvisioningState

type ProvisioningState string
const (
	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"
)

Jump to

Keyboard shortcuts

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