forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listLabVhds.go
94 lines (78 loc) · 2.83 KB
/
listLabVhds.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
// 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 devtestlab
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// List disk images available for custom image creation.
// Azure REST API version: 2018-09-15.
//
// Other available API versions: 2015-05-21-preview, 2016-05-15.
func ListLabVhds(ctx *pulumi.Context, args *ListLabVhdsArgs, opts ...pulumi.InvokeOption) (*ListLabVhdsResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv ListLabVhdsResult
err := ctx.Invoke("azure-native:devtestlab:listLabVhds", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type ListLabVhdsArgs struct {
// The name of the lab.
Name string `pulumi:"name"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The response of a list operation.
type ListLabVhdsResult struct {
// Link for next set of results.
NextLink *string `pulumi:"nextLink"`
// Results of the list operation.
Value []LabVhdResponse `pulumi:"value"`
}
func ListLabVhdsOutput(ctx *pulumi.Context, args ListLabVhdsOutputArgs, opts ...pulumi.InvokeOption) ListLabVhdsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (ListLabVhdsResult, error) {
args := v.(ListLabVhdsArgs)
r, err := ListLabVhds(ctx, &args, opts...)
var s ListLabVhdsResult
if r != nil {
s = *r
}
return s, err
}).(ListLabVhdsResultOutput)
}
type ListLabVhdsOutputArgs struct {
// The name of the lab.
Name pulumi.StringInput `pulumi:"name"`
// The name of the resource group.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (ListLabVhdsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ListLabVhdsArgs)(nil)).Elem()
}
// The response of a list operation.
type ListLabVhdsResultOutput struct{ *pulumi.OutputState }
func (ListLabVhdsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ListLabVhdsResult)(nil)).Elem()
}
func (o ListLabVhdsResultOutput) ToListLabVhdsResultOutput() ListLabVhdsResultOutput {
return o
}
func (o ListLabVhdsResultOutput) ToListLabVhdsResultOutputWithContext(ctx context.Context) ListLabVhdsResultOutput {
return o
}
// Link for next set of results.
func (o ListLabVhdsResultOutput) NextLink() pulumi.StringPtrOutput {
return o.ApplyT(func(v ListLabVhdsResult) *string { return v.NextLink }).(pulumi.StringPtrOutput)
}
// Results of the list operation.
func (o ListLabVhdsResultOutput) Value() LabVhdResponseArrayOutput {
return o.ApplyT(func(v ListLabVhdsResult) []LabVhdResponse { return v.Value }).(LabVhdResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(ListLabVhdsResultOutput{})
}