forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getDataManager.go
133 lines (112 loc) · 5.2 KB
/
getDataManager.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package hybriddata
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets information about the specified data manager resource.
// Azure REST API version: 2019-06-01.
func LookupDataManager(ctx *pulumi.Context, args *LookupDataManagerArgs, opts ...pulumi.InvokeOption) (*LookupDataManagerResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv LookupDataManagerResult
err := ctx.Invoke("azure-native:hybriddata:getDataManager", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDataManagerArgs struct {
// The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
DataManagerName string `pulumi:"dataManagerName"`
// The Resource Group Name
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The DataManager resource.
type LookupDataManagerResult struct {
// Etag of the Resource.
Etag *string `pulumi:"etag"`
// The Resource Id.
Id string `pulumi:"id"`
// The location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East
// US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo
// region is specified on update the request will succeed.
Location string `pulumi:"location"`
// The Resource Name.
Name string `pulumi:"name"`
// The sku type.
Sku *SkuResponse `pulumi:"sku"`
// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource
// (across resource groups).
Tags map[string]string `pulumi:"tags"`
// The Resource type.
Type string `pulumi:"type"`
}
func LookupDataManagerOutput(ctx *pulumi.Context, args LookupDataManagerOutputArgs, opts ...pulumi.InvokeOption) LookupDataManagerResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupDataManagerResult, error) {
args := v.(LookupDataManagerArgs)
r, err := LookupDataManager(ctx, &args, opts...)
var s LookupDataManagerResult
if r != nil {
s = *r
}
return s, err
}).(LookupDataManagerResultOutput)
}
type LookupDataManagerOutputArgs struct {
// The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
DataManagerName pulumi.StringInput `pulumi:"dataManagerName"`
// The Resource Group Name
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupDataManagerOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDataManagerArgs)(nil)).Elem()
}
// The DataManager resource.
type LookupDataManagerResultOutput struct{ *pulumi.OutputState }
func (LookupDataManagerResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDataManagerResult)(nil)).Elem()
}
func (o LookupDataManagerResultOutput) ToLookupDataManagerResultOutput() LookupDataManagerResultOutput {
return o
}
func (o LookupDataManagerResultOutput) ToLookupDataManagerResultOutputWithContext(ctx context.Context) LookupDataManagerResultOutput {
return o
}
// Etag of the Resource.
func (o LookupDataManagerResultOutput) Etag() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupDataManagerResult) *string { return v.Etag }).(pulumi.StringPtrOutput)
}
// The Resource Id.
func (o LookupDataManagerResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataManagerResult) string { return v.Id }).(pulumi.StringOutput)
}
// The location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East
// US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo
// region is specified on update the request will succeed.
func (o LookupDataManagerResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataManagerResult) string { return v.Location }).(pulumi.StringOutput)
}
// The Resource Name.
func (o LookupDataManagerResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataManagerResult) string { return v.Name }).(pulumi.StringOutput)
}
// The sku type.
func (o LookupDataManagerResultOutput) Sku() SkuResponsePtrOutput {
return o.ApplyT(func(v LookupDataManagerResult) *SkuResponse { return v.Sku }).(SkuResponsePtrOutput)
}
// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource
// (across resource groups).
func (o LookupDataManagerResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupDataManagerResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
// The Resource type.
func (o LookupDataManagerResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataManagerResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupDataManagerResultOutput{})
}