/
getWebApp.go
142 lines (119 loc) · 4.99 KB
/
getWebApp.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package firebase
import (
"context"
"reflect"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
// A Google Cloud Firebase web application instance
func LookupWebApp(ctx *pulumi.Context, args *LookupWebAppArgs, opts ...pulumi.InvokeOption) (*LookupWebAppResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupWebAppResult
err := ctx.Invoke("gcp:firebase/getWebApp:getWebApp", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getWebApp.
type LookupWebAppArgs struct {
// The appIp of name of the Firebase webApp.
//
// ***
AppId string `pulumi:"appId"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `pulumi:"project"`
}
// A collection of values returned by getWebApp.
type LookupWebAppResult struct {
ApiKeyId string `pulumi:"apiKeyId"`
// Immutable. The globally unique, Firebase-assigned identifier of the App.
// This identifier should be treated as an opaque token, as the data format is not specified.
AppId string `pulumi:"appId"`
AppUrls []string `pulumi:"appUrls"`
DeletionPolicy string `pulumi:"deletionPolicy"`
DisplayName string `pulumi:"displayName"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The fully qualified resource name of the App, for example:
// projects/projectId/webApps/appId
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
}
func LookupWebAppOutput(ctx *pulumi.Context, args LookupWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupWebAppResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupWebAppResult, error) {
args := v.(LookupWebAppArgs)
r, err := LookupWebApp(ctx, &args, opts...)
var s LookupWebAppResult
if r != nil {
s = *r
}
return s, err
}).(LookupWebAppResultOutput)
}
// A collection of arguments for invoking getWebApp.
type LookupWebAppOutputArgs struct {
// The appIp of name of the Firebase webApp.
//
// ***
AppId pulumi.StringInput `pulumi:"appId"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project pulumi.StringPtrInput `pulumi:"project"`
}
func (LookupWebAppOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupWebAppArgs)(nil)).Elem()
}
// A collection of values returned by getWebApp.
type LookupWebAppResultOutput struct{ *pulumi.OutputState }
func (LookupWebAppResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupWebAppResult)(nil)).Elem()
}
func (o LookupWebAppResultOutput) ToLookupWebAppResultOutput() LookupWebAppResultOutput {
return o
}
func (o LookupWebAppResultOutput) ToLookupWebAppResultOutputWithContext(ctx context.Context) LookupWebAppResultOutput {
return o
}
func (o LookupWebAppResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupWebAppResult] {
return pulumix.Output[LookupWebAppResult]{
OutputState: o.OutputState,
}
}
func (o LookupWebAppResultOutput) ApiKeyId() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.ApiKeyId }).(pulumi.StringOutput)
}
// Immutable. The globally unique, Firebase-assigned identifier of the App.
// This identifier should be treated as an opaque token, as the data format is not specified.
func (o LookupWebAppResultOutput) AppId() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.AppId }).(pulumi.StringOutput)
}
func (o LookupWebAppResultOutput) AppUrls() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupWebAppResult) []string { return v.AppUrls }).(pulumi.StringArrayOutput)
}
func (o LookupWebAppResultOutput) DeletionPolicy() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.DeletionPolicy }).(pulumi.StringOutput)
}
func (o LookupWebAppResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupWebAppResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.Id }).(pulumi.StringOutput)
}
// The fully qualified resource name of the App, for example:
// projects/projectId/webApps/appId
func (o LookupWebAppResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupWebAppResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupWebAppResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupWebAppResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupWebAppResultOutput{})
}