This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
forked from pulumi/pulumi-tf-provider-boilerplate
/
getMeIdentityUser.go
118 lines (94 loc) · 4.44 KB
/
getMeIdentityUser.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package ovh
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func LookupMeIdentityUser(ctx *pulumi.Context, args *LookupMeIdentityUserArgs, opts ...pulumi.InvokeOption) (*LookupMeIdentityUserResult, error) {
var rv LookupMeIdentityUserResult
err := ctx.Invoke("ovh:index/getMeIdentityUser:getMeIdentityUser", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getMeIdentityUser.
type LookupMeIdentityUserArgs struct {
User string `pulumi:"user"`
}
// A collection of values returned by getMeIdentityUser.
type LookupMeIdentityUserResult struct {
Creation string `pulumi:"creation"`
Description string `pulumi:"description"`
Email string `pulumi:"email"`
Group string `pulumi:"group"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
LastUpdate string `pulumi:"lastUpdate"`
Login string `pulumi:"login"`
PasswordLastUpdate string `pulumi:"passwordLastUpdate"`
Status string `pulumi:"status"`
User string `pulumi:"user"`
}
func LookupMeIdentityUserOutput(ctx *pulumi.Context, args LookupMeIdentityUserOutputArgs, opts ...pulumi.InvokeOption) LookupMeIdentityUserResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupMeIdentityUserResult, error) {
args := v.(LookupMeIdentityUserArgs)
r, err := LookupMeIdentityUser(ctx, &args, opts...)
return *r, err
}).(LookupMeIdentityUserResultOutput)
}
// A collection of arguments for invoking getMeIdentityUser.
type LookupMeIdentityUserOutputArgs struct {
User pulumi.StringInput `pulumi:"user"`
}
func (LookupMeIdentityUserOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMeIdentityUserArgs)(nil)).Elem()
}
// A collection of values returned by getMeIdentityUser.
type LookupMeIdentityUserResultOutput struct{ *pulumi.OutputState }
func (LookupMeIdentityUserResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupMeIdentityUserResult)(nil)).Elem()
}
func (o LookupMeIdentityUserResultOutput) ToLookupMeIdentityUserResultOutput() LookupMeIdentityUserResultOutput {
return o
}
func (o LookupMeIdentityUserResultOutput) ToLookupMeIdentityUserResultOutputWithContext(ctx context.Context) LookupMeIdentityUserResultOutput {
return o
}
func (o LookupMeIdentityUserResultOutput) Creation() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Creation }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Description }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) Email() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Email }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) Group() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Group }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupMeIdentityUserResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) LastUpdate() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.LastUpdate }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) Login() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Login }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) PasswordLastUpdate() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.PasswordLastUpdate }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.Status }).(pulumi.StringOutput)
}
func (o LookupMeIdentityUserResultOutput) User() pulumi.StringOutput {
return o.ApplyT(func(v LookupMeIdentityUserResult) string { return v.User }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupMeIdentityUserResultOutput{})
}