Documentation ¶
Index ¶
- func ValidateWorkloadGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByDatabaseCompleteResult
- type ListByDatabaseCustomPager
- type ListByDatabaseOperationResponse
- type WorkloadGroup
- type WorkloadGroupId
- type WorkloadGroupOperationPredicate
- type WorkloadGroupProperties
- type WorkloadGroupsClient
- func (c WorkloadGroupsClient) CreateOrUpdate(ctx context.Context, id WorkloadGroupId, input WorkloadGroup) (result CreateOrUpdateOperationResponse, err error)
- func (c WorkloadGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id WorkloadGroupId, input WorkloadGroup) error
- func (c WorkloadGroupsClient) Delete(ctx context.Context, id WorkloadGroupId) (result DeleteOperationResponse, err error)
- func (c WorkloadGroupsClient) DeleteThenPoll(ctx context.Context, id WorkloadGroupId) error
- func (c WorkloadGroupsClient) Get(ctx context.Context, id WorkloadGroupId) (result GetOperationResponse, err error)
- func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c WorkloadGroupsClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
- func (c WorkloadGroupsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateWorkloadGroupID ¶
ValidateWorkloadGroupID checks that 'input' can be parsed as a Workload Group ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *WorkloadGroup }
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct { LatestHttpResponse *http.Response Items []WorkloadGroup }
type ListByDatabaseCustomPager ¶ added in v0.20240628.1153531
func (*ListByDatabaseCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]WorkloadGroup }
type WorkloadGroup ¶
type WorkloadGroup struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *WorkloadGroupProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type WorkloadGroupId ¶
type WorkloadGroupId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string WorkloadGroupName string }
WorkloadGroupId is a struct representing the Resource ID for a Workload Group
func NewWorkloadGroupID ¶
func NewWorkloadGroupID(subscriptionId string, resourceGroupName string, serverName string, databaseName 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
type WorkloadGroupOperationPredicate ¶
func (WorkloadGroupOperationPredicate) Matches ¶
func (p WorkloadGroupOperationPredicate) Matches(input WorkloadGroup) bool
type WorkloadGroupProperties ¶
type WorkloadGroupProperties struct { Importance *string `json:"importance,omitempty"` MaxResourcePercent int64 `json:"maxResourcePercent"` MaxResourcePercentPerRequest *float64 `json:"maxResourcePercentPerRequest,omitempty"` MinResourcePercent int64 `json:"minResourcePercent"` MinResourcePercentPerRequest float64 `json:"minResourcePercentPerRequest"` QueryExecutionTimeout *int64 `json:"queryExecutionTimeout,omitempty"` }
type WorkloadGroupsClient ¶
type WorkloadGroupsClient struct {
Client *resourcemanager.Client
}
func NewWorkloadGroupsClientWithBaseURI ¶
func NewWorkloadGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkloadGroupsClient, error)
func (WorkloadGroupsClient) CreateOrUpdate ¶
func (c WorkloadGroupsClient) CreateOrUpdate(ctx context.Context, id WorkloadGroupId, input WorkloadGroup) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (WorkloadGroupsClient) CreateOrUpdateThenPoll ¶
func (c WorkloadGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id WorkloadGroupId, input WorkloadGroup) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (WorkloadGroupsClient) Delete ¶
func (c WorkloadGroupsClient) Delete(ctx context.Context, id WorkloadGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (WorkloadGroupsClient) DeleteThenPoll ¶
func (c WorkloadGroupsClient) DeleteThenPoll(ctx context.Context, id WorkloadGroupId) error
DeleteThenPoll performs Delete then polls until it's completed
func (WorkloadGroupsClient) Get ¶
func (c WorkloadGroupsClient) Get(ctx context.Context, id WorkloadGroupId) (result GetOperationResponse, err error)
Get ...
func (WorkloadGroupsClient) ListByDatabase ¶
func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (WorkloadGroupsClient) ListByDatabaseComplete ¶
func (c WorkloadGroupsClient) ListByDatabaseComplete(ctx context.Context, id commonids.SqlDatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (WorkloadGroupsClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c WorkloadGroupsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id commonids.SqlDatabaseId, predicate WorkloadGroupOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate