forked from pulumi/pulumi-azure-native-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
listBillingAccountInvoiceSectionsByCreateSubscriptionPermission.go
94 lines (78 loc) · 4.81 KB
/
listBillingAccountInvoiceSectionsByCreateSubscriptionPermission.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 billing
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure-native-sdk/v2/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
// Azure REST API version: 2020-05-01.
//
// Other available API versions: 2019-10-01-preview.
func ListBillingAccountInvoiceSectionsByCreateSubscriptionPermission(ctx *pulumi.Context, args *ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionArgs, opts ...pulumi.InvokeOption) (*ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult, error) {
opts = utilities.PkgInvokeDefaultOpts(opts)
var rv ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult
err := ctx.Invoke("azure-native:billing:listBillingAccountInvoiceSectionsByCreateSubscriptionPermission", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionArgs struct {
// The ID that uniquely identifies a billing account.
BillingAccountName string `pulumi:"billingAccountName"`
}
// The list of invoice section properties with create subscription permission.
type ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult struct {
// The link (url) to the next page of results.
NextLink string `pulumi:"nextLink"`
// The list of invoice section properties with create subscription permission.
Value []InvoiceSectionWithCreateSubPermissionResponse `pulumi:"value"`
}
func ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionOutput(ctx *pulumi.Context, args ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionOutputArgs, opts ...pulumi.InvokeOption) ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult, error) {
args := v.(ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionArgs)
r, err := ListBillingAccountInvoiceSectionsByCreateSubscriptionPermission(ctx, &args, opts...)
var s ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult
if r != nil {
s = *r
}
return s, err
}).(ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput)
}
type ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionOutputArgs struct {
// The ID that uniquely identifies a billing account.
BillingAccountName pulumi.StringInput `pulumi:"billingAccountName"`
}
func (ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionArgs)(nil)).Elem()
}
// The list of invoice section properties with create subscription permission.
type ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput struct{ *pulumi.OutputState }
func (ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult)(nil)).Elem()
}
func (o ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput) ToListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput() ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput {
return o
}
func (o ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput) ToListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutputWithContext(ctx context.Context) ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput {
return o
}
// The link (url) to the next page of results.
func (o ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput) NextLink() pulumi.StringOutput {
return o.ApplyT(func(v ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult) string {
return v.NextLink
}).(pulumi.StringOutput)
}
// The list of invoice section properties with create subscription permission.
func (o ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput) Value() InvoiceSectionWithCreateSubPermissionResponseArrayOutput {
return o.ApplyT(func(v ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResult) []InvoiceSectionWithCreateSubPermissionResponse {
return v.Value
}).(InvoiceSectionWithCreateSubPermissionResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(ListBillingAccountInvoiceSectionsByCreateSubscriptionPermissionResultOutput{})
}