This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getWorkloadClassifier.go
52 lines (47 loc) · 1.91 KB
/
getWorkloadClassifier.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190601preview
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupWorkloadClassifier(ctx *pulumi.Context, args *LookupWorkloadClassifierArgs, opts ...pulumi.InvokeOption) (*LookupWorkloadClassifierResult, error) {
var rv LookupWorkloadClassifierResult
err := ctx.Invoke("azure-nextgen:sql/v20190601preview:getWorkloadClassifier", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupWorkloadClassifierArgs struct {
// The name of the database.
DatabaseName string `pulumi:"databaseName"`
// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the server.
ServerName string `pulumi:"serverName"`
// The name of the workload classifier.
WorkloadClassifierName string `pulumi:"workloadClassifierName"`
// The name of the workload group from which to receive the classifier from.
WorkloadGroupName string `pulumi:"workloadGroupName"`
}
// Workload classifier operations for a data warehouse
type LookupWorkloadClassifierResult struct {
// The workload classifier context.
Context *string `pulumi:"context"`
// The workload classifier end time for classification.
EndTime *string `pulumi:"endTime"`
// Resource ID.
Id string `pulumi:"id"`
// The workload classifier importance.
Importance *string `pulumi:"importance"`
// The workload classifier label.
Label *string `pulumi:"label"`
// The workload classifier member name.
MemberName string `pulumi:"memberName"`
// Resource name.
Name string `pulumi:"name"`
// The workload classifier start time for classification.
StartTime *string `pulumi:"startTime"`
// Resource type.
Type string `pulumi:"type"`
}