README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2022-02-01/databaseprincipalassignments
Documentation
The databaseprincipalassignments
SDK allows for interaction with the Azure Resource Manager Service kusto
(API Version 2022-02-01
).
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/2022-02-01/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 ¶
- func PossibleValuesForDatabasePrincipalAssignmentType() []string
- func PossibleValuesForDatabasePrincipalRole() []string
- func PossibleValuesForPrincipalType() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForReason() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDatabasePrincipalAssignmentID(input interface{}, key string) (warnings []string, errors []error)
- type CheckNameAvailabilityOperationResponse
- type CheckNameResult
- type CreateOrUpdateOperationResponse
- type DatabaseId
- type DatabasePrincipalAssignment
- type DatabasePrincipalAssignmentCheckNameRequest
- type DatabasePrincipalAssignmentId
- func NewDatabasePrincipalAssignmentID(subscriptionId string, resourceGroupName string, clusterName string, ...) DatabasePrincipalAssignmentId
- func ParseDatabasePrincipalAssignmentID(input string) (*DatabasePrincipalAssignmentId, error)
- func ParseDatabasePrincipalAssignmentIDInsensitively(input string) (*DatabasePrincipalAssignmentId, error)
- type DatabasePrincipalAssignmentListResult
- type DatabasePrincipalAssignmentType
- type DatabasePrincipalAssignmentsClient
- func (c DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, id DatabaseId, ...) (result CheckNameAvailabilityOperationResponse, err error)
- func (c DatabasePrincipalAssignmentsClient) CreateOrUpdate(ctx context.Context, id DatabasePrincipalAssignmentId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c DatabasePrincipalAssignmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabasePrincipalAssignmentId, ...) error
- func (c DatabasePrincipalAssignmentsClient) Delete(ctx context.Context, id DatabasePrincipalAssignmentId) (result DeleteOperationResponse, err error)
- func (c DatabasePrincipalAssignmentsClient) DeleteThenPoll(ctx context.Context, id DatabasePrincipalAssignmentId) error
- func (c DatabasePrincipalAssignmentsClient) Get(ctx context.Context, id DatabasePrincipalAssignmentId) (result GetOperationResponse, err error)
- func (c DatabasePrincipalAssignmentsClient) List(ctx context.Context, id DatabaseId) (result ListOperationResponse, err error)
- type DatabasePrincipalProperties
- type DatabasePrincipalRole
- type DeleteOperationResponse
- type GetOperationResponse
- type ListOperationResponse
- type PrincipalType
- type ProvisioningState
- type Reason
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 ¶
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 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) 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 ¶
func (id DatabasePrincipalAssignmentId) ID() string
ID returns the formatted Database Principal Assignment ID
func (DatabasePrincipalAssignmentId) Segments ¶
func (id DatabasePrincipalAssignmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database Principal Assignment ID
func (DatabasePrincipalAssignmentId) String ¶
func (id DatabasePrincipalAssignmentId) String() 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 ¶
func (c DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, id DatabaseId, input DatabasePrincipalAssignmentCheckNameRequest) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (DatabasePrincipalAssignmentsClient) CreateOrUpdate ¶
func (c DatabasePrincipalAssignmentsClient) CreateOrUpdate(ctx context.Context, id DatabasePrincipalAssignmentId, input DatabasePrincipalAssignment) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DatabasePrincipalAssignmentsClient) CreateOrUpdateThenPoll ¶
func (c DatabasePrincipalAssignmentsClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabasePrincipalAssignmentId, input DatabasePrincipalAssignment) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (DatabasePrincipalAssignmentsClient) Delete ¶
func (c DatabasePrincipalAssignmentsClient) Delete(ctx context.Context, id DatabasePrincipalAssignmentId) (result DeleteOperationResponse, err error)
Delete ...
func (DatabasePrincipalAssignmentsClient) DeleteThenPoll ¶
func (c DatabasePrincipalAssignmentsClient) DeleteThenPoll(ctx context.Context, id DatabasePrincipalAssignmentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (DatabasePrincipalAssignmentsClient) Get ¶
func (c DatabasePrincipalAssignmentsClient) Get(ctx context.Context, id DatabasePrincipalAssignmentId) (result GetOperationResponse, err error)
Get ...
func (DatabasePrincipalAssignmentsClient) List ¶
func (c DatabasePrincipalAssignmentsClient) List(ctx context.Context, id DatabaseId) (result ListOperationResponse, err error)
List ...
type DatabasePrincipalProperties ¶
type DatabasePrincipalProperties struct { AadObjectId *string `json:"aadObjectId,omitempty"` 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" )
Source Files ¶
- client.go
- constants.go
- id_database.go
- id_databaseprincipalassignment.go
- method_checknameavailability_autorest.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_checknameresult.go
- model_databaseprincipalassignment.go
- model_databaseprincipalassignmentchecknamerequest.go
- model_databaseprincipalassignmentlistresult.go
- model_databaseprincipalproperties.go
- version.go