forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listScheduleApplicable.go
98 lines (82 loc) · 3.27 KB
/
listScheduleApplicable.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
// 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"
)
// Lists all applicable schedules
// Azure REST API version: 2018-09-15.
//
// Other available API versions: 2016-05-15.
func ListScheduleApplicable(ctx *pulumi.Context, args *ListScheduleApplicableArgs, opts ...pulumi.InvokeOption) (*ListScheduleApplicableResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv ListScheduleApplicableResult
err := ctx.Invoke("azure-native:devtestlab:listScheduleApplicable", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type ListScheduleApplicableArgs struct {
// The name of the lab.
LabName string `pulumi:"labName"`
// The name of the schedule.
Name string `pulumi:"name"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The response of a list operation.
type ListScheduleApplicableResult struct {
// Link for next set of results.
NextLink *string `pulumi:"nextLink"`
// Results of the list operation.
Value []ScheduleResponse `pulumi:"value"`
}
func ListScheduleApplicableOutput(ctx *pulumi.Context, args ListScheduleApplicableOutputArgs, opts ...pulumi.InvokeOption) ListScheduleApplicableResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (ListScheduleApplicableResult, error) {
args := v.(ListScheduleApplicableArgs)
r, err := ListScheduleApplicable(ctx, &args, opts...)
var s ListScheduleApplicableResult
if r != nil {
s = *r
}
return s, err
}).(ListScheduleApplicableResultOutput)
}
type ListScheduleApplicableOutputArgs struct {
// The name of the lab.
LabName pulumi.StringInput `pulumi:"labName"`
// The name of the schedule.
Name pulumi.StringInput `pulumi:"name"`
// The name of the resource group.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (ListScheduleApplicableOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ListScheduleApplicableArgs)(nil)).Elem()
}
// The response of a list operation.
type ListScheduleApplicableResultOutput struct{ *pulumi.OutputState }
func (ListScheduleApplicableResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ListScheduleApplicableResult)(nil)).Elem()
}
func (o ListScheduleApplicableResultOutput) ToListScheduleApplicableResultOutput() ListScheduleApplicableResultOutput {
return o
}
func (o ListScheduleApplicableResultOutput) ToListScheduleApplicableResultOutputWithContext(ctx context.Context) ListScheduleApplicableResultOutput {
return o
}
// Link for next set of results.
func (o ListScheduleApplicableResultOutput) NextLink() pulumi.StringPtrOutput {
return o.ApplyT(func(v ListScheduleApplicableResult) *string { return v.NextLink }).(pulumi.StringPtrOutput)
}
// Results of the list operation.
func (o ListScheduleApplicableResultOutput) Value() ScheduleResponseArrayOutput {
return o.ApplyT(func(v ListScheduleApplicableResult) []ScheduleResponse { return v.Value }).(ScheduleResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(ListScheduleApplicableResultOutput{})
}