/
getProject.go
67 lines (62 loc) · 1.94 KB
/
getProject.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package aiven
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
func LookupProject(ctx *pulumi.Context, args *GetProjectArgs) (*GetProjectResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["accountId"] = args.AccountId
inputs["billingAddress"] = args.BillingAddress
inputs["billingEmails"] = args.BillingEmails
inputs["caCert"] = args.CaCert
inputs["cardId"] = args.CardId
inputs["copyFromProject"] = args.CopyFromProject
inputs["countryCode"] = args.CountryCode
inputs["project"] = args.Project
inputs["technicalEmails"] = args.TechnicalEmails
}
outputs, err := ctx.Invoke("aiven:index/getProject:getProject", inputs)
if err != nil {
return nil, err
}
return &GetProjectResult{
AccountId: outputs["accountId"],
BillingAddress: outputs["billingAddress"],
BillingEmails: outputs["billingEmails"],
CaCert: outputs["caCert"],
CardId: outputs["cardId"],
CopyFromProject: outputs["copyFromProject"],
CountryCode: outputs["countryCode"],
Project: outputs["project"],
TechnicalEmails: outputs["technicalEmails"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getProject.
type GetProjectArgs struct {
AccountId interface{}
BillingAddress interface{}
BillingEmails interface{}
CaCert interface{}
CardId interface{}
CopyFromProject interface{}
CountryCode interface{}
Project interface{}
TechnicalEmails interface{}
}
// A collection of values returned by getProject.
type GetProjectResult struct {
AccountId interface{}
BillingAddress interface{}
BillingEmails interface{}
CaCert interface{}
CardId interface{}
CopyFromProject interface{}
CountryCode interface{}
Project interface{}
TechnicalEmails interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}