forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listListSchema.go
107 lines (92 loc) · 3.46 KB
/
listListSchema.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
// 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 azuredatatransfer
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Lists the schemas for the specified connection in a pipeline.
// Azure REST API version: 2023-10-11-preview.
//
// Other available API versions: 2024-01-25.
func ListListSchema(ctx *pulumi.Context, args *ListListSchemaArgs, opts ...pulumi.InvokeOption) (*ListListSchemaResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv ListListSchemaResult
err := ctx.Invoke("azure-native:azuredatatransfer:listListSchema", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type ListListSchemaArgs struct {
// Connection ID associated with this schema
ConnectionId *string `pulumi:"connectionId"`
// Content of the schema
Content *string `pulumi:"content"`
// ID associated with this schema
Id *string `pulumi:"id"`
// Name of the schema
Name *string `pulumi:"name"`
// The name for the pipeline that is to be requested.
PipelineName string `pulumi:"pipelineName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
// Status of the schema
Status *string `pulumi:"status"`
}
// The schemas list result.
type ListListSchemaResult struct {
// Schemas array.
Value []SchemaResponse `pulumi:"value"`
}
func ListListSchemaOutput(ctx *pulumi.Context, args ListListSchemaOutputArgs, opts ...pulumi.InvokeOption) ListListSchemaResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (ListListSchemaResult, error) {
args := v.(ListListSchemaArgs)
r, err := ListListSchema(ctx, &args, opts...)
var s ListListSchemaResult
if r != nil {
s = *r
}
return s, err
}).(ListListSchemaResultOutput)
}
type ListListSchemaOutputArgs struct {
// Connection ID associated with this schema
ConnectionId pulumi.StringPtrInput `pulumi:"connectionId"`
// Content of the schema
Content pulumi.StringPtrInput `pulumi:"content"`
// ID associated with this schema
Id pulumi.StringPtrInput `pulumi:"id"`
// Name of the schema
Name pulumi.StringPtrInput `pulumi:"name"`
// The name for the pipeline that is to be requested.
PipelineName pulumi.StringInput `pulumi:"pipelineName"`
// The name of the resource group. The name is case insensitive.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
// Status of the schema
Status pulumi.StringPtrInput `pulumi:"status"`
}
func (ListListSchemaOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ListListSchemaArgs)(nil)).Elem()
}
// The schemas list result.
type ListListSchemaResultOutput struct{ *pulumi.OutputState }
func (ListListSchemaResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ListListSchemaResult)(nil)).Elem()
}
func (o ListListSchemaResultOutput) ToListListSchemaResultOutput() ListListSchemaResultOutput {
return o
}
func (o ListListSchemaResultOutput) ToListListSchemaResultOutputWithContext(ctx context.Context) ListListSchemaResultOutput {
return o
}
// Schemas array.
func (o ListListSchemaResultOutput) Value() SchemaResponseArrayOutput {
return o.ApplyT(func(v ListListSchemaResult) []SchemaResponse { return v.Value }).(SchemaResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(ListListSchemaResultOutput{})
}