forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
getDataStore.go
138 lines (116 loc) · 5.54 KB
/
getDataStore.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
134
135
136
137
138
// 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"
)
// This method gets the data store/repository by name.
// Azure REST API version: 2019-06-01.
func LookupDataStore(ctx *pulumi.Context, args *LookupDataStoreArgs, opts ...pulumi.InvokeOption) (*LookupDataStoreResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv LookupDataStoreResult
err := ctx.Invoke("azure-native:hybriddata:getDataStore", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDataStoreArgs 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 data store/repository name queried.
DataStoreName string `pulumi:"dataStoreName"`
// The Resource Group Name
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Data store.
type LookupDataStoreResult struct {
// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
CustomerSecrets []CustomerSecretResponse `pulumi:"customerSecrets"`
// The arm id of the data store type.
DataStoreTypeId string `pulumi:"dataStoreTypeId"`
// A generic json used differently by each data source type.
ExtendedProperties interface{} `pulumi:"extendedProperties"`
// Id of the object.
Id string `pulumi:"id"`
// Name of the object.
Name string `pulumi:"name"`
// Arm Id for the manager resource to which the data source is associated. This is optional.
RepositoryId *string `pulumi:"repositoryId"`
// State of the data source.
State string `pulumi:"state"`
// Type of the object.
Type string `pulumi:"type"`
}
func LookupDataStoreOutput(ctx *pulumi.Context, args LookupDataStoreOutputArgs, opts ...pulumi.InvokeOption) LookupDataStoreResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupDataStoreResult, error) {
args := v.(LookupDataStoreArgs)
r, err := LookupDataStore(ctx, &args, opts...)
var s LookupDataStoreResult
if r != nil {
s = *r
}
return s, err
}).(LookupDataStoreResultOutput)
}
type LookupDataStoreOutputArgs 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 data store/repository name queried.
DataStoreName pulumi.StringInput `pulumi:"dataStoreName"`
// The Resource Group Name
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (LookupDataStoreOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDataStoreArgs)(nil)).Elem()
}
// Data store.
type LookupDataStoreResultOutput struct{ *pulumi.OutputState }
func (LookupDataStoreResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDataStoreResult)(nil)).Elem()
}
func (o LookupDataStoreResultOutput) ToLookupDataStoreResultOutput() LookupDataStoreResultOutput {
return o
}
func (o LookupDataStoreResultOutput) ToLookupDataStoreResultOutputWithContext(ctx context.Context) LookupDataStoreResultOutput {
return o
}
// List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys.
func (o LookupDataStoreResultOutput) CustomerSecrets() CustomerSecretResponseArrayOutput {
return o.ApplyT(func(v LookupDataStoreResult) []CustomerSecretResponse { return v.CustomerSecrets }).(CustomerSecretResponseArrayOutput)
}
// The arm id of the data store type.
func (o LookupDataStoreResultOutput) DataStoreTypeId() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataStoreResult) string { return v.DataStoreTypeId }).(pulumi.StringOutput)
}
// A generic json used differently by each data source type.
func (o LookupDataStoreResultOutput) ExtendedProperties() pulumi.AnyOutput {
return o.ApplyT(func(v LookupDataStoreResult) interface{} { return v.ExtendedProperties }).(pulumi.AnyOutput)
}
// Id of the object.
func (o LookupDataStoreResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataStoreResult) string { return v.Id }).(pulumi.StringOutput)
}
// Name of the object.
func (o LookupDataStoreResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataStoreResult) string { return v.Name }).(pulumi.StringOutput)
}
// Arm Id for the manager resource to which the data source is associated. This is optional.
func (o LookupDataStoreResultOutput) RepositoryId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupDataStoreResult) *string { return v.RepositoryId }).(pulumi.StringPtrOutput)
}
// State of the data source.
func (o LookupDataStoreResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataStoreResult) string { return v.State }).(pulumi.StringOutput)
}
// Type of the object.
func (o LookupDataStoreResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupDataStoreResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupDataStoreResultOutput{})
}