sqlpoolsworkloadclassifiers

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsworkloadclassifiers Documentation

The sqlpoolsworkloadclassifiers SDK allows for interaction with Azure Resource Manager synapse (API Version 2021-06-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/synapse/2021-06-01/sqlpoolsworkloadclassifiers"

Client Initialization

client := sqlpoolsworkloadclassifiers.NewSqlPoolsWorkloadClassifiersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsWorkloadClassifiersClient.SqlPoolWorkloadClassifierCreateOrUpdate

ctx := context.TODO()
id := sqlpoolsworkloadclassifiers.NewWorkloadClassifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName", "workloadGroupName", "workloadClassifierName")

payload := sqlpoolsworkloadclassifiers.WorkloadClassifier{
	// ...
}


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

Example Usage: SqlPoolsWorkloadClassifiersClient.SqlPoolWorkloadClassifierDelete

ctx := context.TODO()
id := sqlpoolsworkloadclassifiers.NewWorkloadClassifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName", "workloadGroupName", "workloadClassifierName")

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

Example Usage: SqlPoolsWorkloadClassifiersClient.SqlPoolWorkloadClassifierGet

ctx := context.TODO()
id := sqlpoolsworkloadclassifiers.NewWorkloadClassifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName", "workloadGroupName", "workloadClassifierName")

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

Example Usage: SqlPoolsWorkloadClassifiersClient.SqlPoolWorkloadClassifierList

ctx := context.TODO()
id := sqlpoolsworkloadclassifiers.NewWorkloadGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sqlPoolName", "workloadGroupName")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateWorkloadClassifierID

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

ValidateWorkloadClassifierID checks that 'input' can be parsed as a Workload Classifier ID

func ValidateWorkloadGroupID

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

ValidateWorkloadGroupID checks that 'input' can be parsed as a Workload Group ID

Types

type SqlPoolWorkloadClassifierCreateOrUpdateOperationResponse

type SqlPoolWorkloadClassifierCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkloadClassifier
}

type SqlPoolWorkloadClassifierDeleteOperationResponse

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

type SqlPoolWorkloadClassifierGetOperationResponse

type SqlPoolWorkloadClassifierGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WorkloadClassifier
}

type SqlPoolWorkloadClassifierListCompleteResult

type SqlPoolWorkloadClassifierListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []WorkloadClassifier
}

type SqlPoolWorkloadClassifierListCustomPager added in v0.20240628.1153531

type SqlPoolWorkloadClassifierListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type SqlPoolWorkloadClassifierListOperationResponse

type SqlPoolWorkloadClassifierListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]WorkloadClassifier
}

type SqlPoolsWorkloadClassifiersClient

type SqlPoolsWorkloadClassifiersClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsWorkloadClassifiersClientWithBaseURI

func NewSqlPoolsWorkloadClassifiersClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsWorkloadClassifiersClient, error)

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierCreateOrUpdate

SqlPoolWorkloadClassifierCreateOrUpdate ...

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierCreateOrUpdateThenPoll

func (c SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierCreateOrUpdateThenPoll(ctx context.Context, id WorkloadClassifierId, input WorkloadClassifier) error

SqlPoolWorkloadClassifierCreateOrUpdateThenPoll performs SqlPoolWorkloadClassifierCreateOrUpdate then polls until it's completed

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierDelete

SqlPoolWorkloadClassifierDelete ...

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierDeleteThenPoll

func (c SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierDeleteThenPoll(ctx context.Context, id WorkloadClassifierId) error

SqlPoolWorkloadClassifierDeleteThenPoll performs SqlPoolWorkloadClassifierDelete then polls until it's completed

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierGet

SqlPoolWorkloadClassifierGet ...

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierList

SqlPoolWorkloadClassifierList ...

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierListComplete

SqlPoolWorkloadClassifierListComplete retrieves all the results into a single object

func (SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierListCompleteMatchingPredicate

func (c SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierListCompleteMatchingPredicate(ctx context.Context, id WorkloadGroupId, predicate WorkloadClassifierOperationPredicate) (result SqlPoolWorkloadClassifierListCompleteResult, err error)

SqlPoolWorkloadClassifierListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type WorkloadClassifier

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

type WorkloadClassifierId

type WorkloadClassifierId struct {
	SubscriptionId         string
	ResourceGroupName      string
	WorkspaceName          string
	SqlPoolName            string
	WorkloadGroupName      string
	WorkloadClassifierName string
}

WorkloadClassifierId is a struct representing the Resource ID for a Workload Classifier

func NewWorkloadClassifierID

func NewWorkloadClassifierID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string) WorkloadClassifierId

NewWorkloadClassifierID returns a new WorkloadClassifierId struct

func ParseWorkloadClassifierID

func ParseWorkloadClassifierID(input string) (*WorkloadClassifierId, error)

ParseWorkloadClassifierID parses 'input' into a WorkloadClassifierId

func ParseWorkloadClassifierIDInsensitively

func ParseWorkloadClassifierIDInsensitively(input string) (*WorkloadClassifierId, error)

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

func (*WorkloadClassifierId) FromParseResult

func (id *WorkloadClassifierId) FromParseResult(input resourceids.ParseResult) error

func (WorkloadClassifierId) ID

func (id WorkloadClassifierId) ID() string

ID returns the formatted Workload Classifier ID

func (WorkloadClassifierId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Workload Classifier ID

func (WorkloadClassifierId) String

func (id WorkloadClassifierId) String() string

String returns a human-readable description of this Workload Classifier ID

type WorkloadClassifierOperationPredicate

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

func (WorkloadClassifierOperationPredicate) Matches

type WorkloadClassifierProperties

type WorkloadClassifierProperties struct {
	Context    *string `json:"context,omitempty"`
	EndTime    *string `json:"endTime,omitempty"`
	Importance *string `json:"importance,omitempty"`
	Label      *string `json:"label,omitempty"`
	MemberName string  `json:"memberName"`
	StartTime  *string `json:"startTime,omitempty"`
}

type WorkloadGroupId

type WorkloadGroupId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
	WorkloadGroupName string
}

WorkloadGroupId is a struct representing the Resource ID for a Workload Group

func NewWorkloadGroupID

func NewWorkloadGroupID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string) WorkloadGroupId

NewWorkloadGroupID returns a new WorkloadGroupId struct

func ParseWorkloadGroupID

func ParseWorkloadGroupID(input string) (*WorkloadGroupId, error)

ParseWorkloadGroupID parses 'input' into a WorkloadGroupId

func ParseWorkloadGroupIDInsensitively

func ParseWorkloadGroupIDInsensitively(input string) (*WorkloadGroupId, error)

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

func (*WorkloadGroupId) FromParseResult

func (id *WorkloadGroupId) FromParseResult(input resourceids.ParseResult) error

func (WorkloadGroupId) ID

func (id WorkloadGroupId) ID() string

ID returns the formatted Workload Group ID

func (WorkloadGroupId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Workload Group ID

func (WorkloadGroupId) String

func (id WorkloadGroupId) String() string

String returns a human-readable description of this Workload Group ID

Jump to

Keyboard shortcuts

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