/
getTypeProvider.go
148 lines (123 loc) · 8.32 KB
/
getTypeProvider.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
143
144
145
146
147
148
// 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 alpha
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets information about a specific type provider.
func LookupTypeProvider(ctx *pulumi.Context, args *LookupTypeProviderArgs, opts ...pulumi.InvokeOption) (*LookupTypeProviderResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupTypeProviderResult
err := ctx.Invoke("google-native:deploymentmanager/alpha:getTypeProvider", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupTypeProviderArgs struct {
Project *string `pulumi:"project"`
TypeProvider string `pulumi:"typeProvider"`
}
type LookupTypeProviderResult struct {
// Allows resource handling overrides for specific collections
CollectionOverrides []CollectionOverrideResponse `pulumi:"collectionOverrides"`
// Credential used when interacting with this type.
Credential CredentialResponse `pulumi:"credential"`
// List of up to 2 custom certificate authority roots to use for TLS authentication when making calls on behalf of this type provider. If set, TLS authentication will exclusively use these roots instead of relying on publicly trusted certificate authorities when validating TLS certificate authenticity. The certificates must be in base64-encoded PEM format. The maximum size of each certificate must not exceed 10KB.
CustomCertificateAuthorityRoots []string `pulumi:"customCertificateAuthorityRoots"`
// An optional textual description of the resource; provided by the client when the resource is created.
Description string `pulumi:"description"`
// Descriptor Url for the this type provider.
DescriptorUrl string `pulumi:"descriptorUrl"`
// Creation timestamp in RFC3339 text format.
InsertTime string `pulumi:"insertTime"`
// Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`
Labels []TypeProviderLabelEntryResponse `pulumi:"labels"`
// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Name string `pulumi:"name"`
// The Operation that most recently ran, or is currently running, on this type provider.
Operation OperationResponse `pulumi:"operation"`
// Options to apply when handling any resources in this service.
Options OptionsResponse `pulumi:"options"`
// Self link for the type provider.
SelfLink string `pulumi:"selfLink"`
}
func LookupTypeProviderOutput(ctx *pulumi.Context, args LookupTypeProviderOutputArgs, opts ...pulumi.InvokeOption) LookupTypeProviderResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupTypeProviderResult, error) {
args := v.(LookupTypeProviderArgs)
r, err := LookupTypeProvider(ctx, &args, opts...)
var s LookupTypeProviderResult
if r != nil {
s = *r
}
return s, err
}).(LookupTypeProviderResultOutput)
}
type LookupTypeProviderOutputArgs struct {
Project pulumi.StringPtrInput `pulumi:"project"`
TypeProvider pulumi.StringInput `pulumi:"typeProvider"`
}
func (LookupTypeProviderOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupTypeProviderArgs)(nil)).Elem()
}
type LookupTypeProviderResultOutput struct{ *pulumi.OutputState }
func (LookupTypeProviderResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupTypeProviderResult)(nil)).Elem()
}
func (o LookupTypeProviderResultOutput) ToLookupTypeProviderResultOutput() LookupTypeProviderResultOutput {
return o
}
func (o LookupTypeProviderResultOutput) ToLookupTypeProviderResultOutputWithContext(ctx context.Context) LookupTypeProviderResultOutput {
return o
}
// Allows resource handling overrides for specific collections
func (o LookupTypeProviderResultOutput) CollectionOverrides() CollectionOverrideResponseArrayOutput {
return o.ApplyT(func(v LookupTypeProviderResult) []CollectionOverrideResponse { return v.CollectionOverrides }).(CollectionOverrideResponseArrayOutput)
}
// Credential used when interacting with this type.
func (o LookupTypeProviderResultOutput) Credential() CredentialResponseOutput {
return o.ApplyT(func(v LookupTypeProviderResult) CredentialResponse { return v.Credential }).(CredentialResponseOutput)
}
// List of up to 2 custom certificate authority roots to use for TLS authentication when making calls on behalf of this type provider. If set, TLS authentication will exclusively use these roots instead of relying on publicly trusted certificate authorities when validating TLS certificate authenticity. The certificates must be in base64-encoded PEM format. The maximum size of each certificate must not exceed 10KB.
func (o LookupTypeProviderResultOutput) CustomCertificateAuthorityRoots() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupTypeProviderResult) []string { return v.CustomCertificateAuthorityRoots }).(pulumi.StringArrayOutput)
}
// An optional textual description of the resource; provided by the client when the resource is created.
func (o LookupTypeProviderResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupTypeProviderResult) string { return v.Description }).(pulumi.StringOutput)
}
// Descriptor Url for the this type provider.
func (o LookupTypeProviderResultOutput) DescriptorUrl() pulumi.StringOutput {
return o.ApplyT(func(v LookupTypeProviderResult) string { return v.DescriptorUrl }).(pulumi.StringOutput)
}
// Creation timestamp in RFC3339 text format.
func (o LookupTypeProviderResultOutput) InsertTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupTypeProviderResult) string { return v.InsertTime }).(pulumi.StringOutput)
}
// Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`
func (o LookupTypeProviderResultOutput) Labels() TypeProviderLabelEntryResponseArrayOutput {
return o.ApplyT(func(v LookupTypeProviderResult) []TypeProviderLabelEntryResponse { return v.Labels }).(TypeProviderLabelEntryResponseArrayOutput)
}
// Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
func (o LookupTypeProviderResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupTypeProviderResult) string { return v.Name }).(pulumi.StringOutput)
}
// The Operation that most recently ran, or is currently running, on this type provider.
func (o LookupTypeProviderResultOutput) Operation() OperationResponseOutput {
return o.ApplyT(func(v LookupTypeProviderResult) OperationResponse { return v.Operation }).(OperationResponseOutput)
}
// Options to apply when handling any resources in this service.
func (o LookupTypeProviderResultOutput) Options() OptionsResponseOutput {
return o.ApplyT(func(v LookupTypeProviderResult) OptionsResponse { return v.Options }).(OptionsResponseOutput)
}
// Self link for the type provider.
func (o LookupTypeProviderResultOutput) SelfLink() pulumi.StringOutput {
return o.ApplyT(func(v LookupTypeProviderResult) string { return v.SelfLink }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupTypeProviderResultOutput{})
}