forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listAssetStreamingLocators.go
89 lines (74 loc) · 3.31 KB
/
listAssetStreamingLocators.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
// 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 media
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Lists Streaming Locators which are associated with this asset.
// Azure REST API version: 2023-01-01.
func ListAssetStreamingLocators(ctx *pulumi.Context, args *ListAssetStreamingLocatorsArgs, opts ...pulumi.InvokeOption) (*ListAssetStreamingLocatorsResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv ListAssetStreamingLocatorsResult
err := ctx.Invoke("azure-native:media:listAssetStreamingLocators", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type ListAssetStreamingLocatorsArgs struct {
// The Media Services account name.
AccountName string `pulumi:"accountName"`
// The Asset name.
AssetName string `pulumi:"assetName"`
// The name of the resource group within the Azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The Streaming Locators associated with this Asset.
type ListAssetStreamingLocatorsResult struct {
// The list of Streaming Locators.
StreamingLocators []AssetStreamingLocatorResponse `pulumi:"streamingLocators"`
}
func ListAssetStreamingLocatorsOutput(ctx *pulumi.Context, args ListAssetStreamingLocatorsOutputArgs, opts ...pulumi.InvokeOption) ListAssetStreamingLocatorsResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (ListAssetStreamingLocatorsResult, error) {
args := v.(ListAssetStreamingLocatorsArgs)
r, err := ListAssetStreamingLocators(ctx, &args, opts...)
var s ListAssetStreamingLocatorsResult
if r != nil {
s = *r
}
return s, err
}).(ListAssetStreamingLocatorsResultOutput)
}
type ListAssetStreamingLocatorsOutputArgs struct {
// The Media Services account name.
AccountName pulumi.StringInput `pulumi:"accountName"`
// The Asset name.
AssetName pulumi.StringInput `pulumi:"assetName"`
// The name of the resource group within the Azure subscription.
ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}
func (ListAssetStreamingLocatorsOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ListAssetStreamingLocatorsArgs)(nil)).Elem()
}
// The Streaming Locators associated with this Asset.
type ListAssetStreamingLocatorsResultOutput struct{ *pulumi.OutputState }
func (ListAssetStreamingLocatorsResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ListAssetStreamingLocatorsResult)(nil)).Elem()
}
func (o ListAssetStreamingLocatorsResultOutput) ToListAssetStreamingLocatorsResultOutput() ListAssetStreamingLocatorsResultOutput {
return o
}
func (o ListAssetStreamingLocatorsResultOutput) ToListAssetStreamingLocatorsResultOutputWithContext(ctx context.Context) ListAssetStreamingLocatorsResultOutput {
return o
}
// The list of Streaming Locators.
func (o ListAssetStreamingLocatorsResultOutput) StreamingLocators() AssetStreamingLocatorResponseArrayOutput {
return o.ApplyT(func(v ListAssetStreamingLocatorsResult) []AssetStreamingLocatorResponse { return v.StreamingLocators }).(AssetStreamingLocatorResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(ListAssetStreamingLocatorsResultOutput{})
}