/
objectStorageObject.go
481 lines (421 loc) · 24.1 KB
/
objectStorageObject.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
// *** 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 linode
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Provides a Linode Object Storage Object resource. This can be used to create, modify, and delete Linodes Object Storage Objects for Buckets.
//
// ## Example Usage
// ### Uploading plaintext to a bucket
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-linode/sdk/v2/go/linode"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := linode.NewObjectStorageObject(ctx, "object", &linode.ObjectStorageObjectArgs{
// Bucket: pulumi.String("my-bucket"),
// Cluster: pulumi.String("us-east-1"),
// Key: pulumi.String("my-object"),
// SecretKey: pulumi.Any(linode_object_storage_key.My_key.Secret_key),
// AccessKey: pulumi.Any(linode_object_storage_key.My_key.Access_key),
// Content: pulumi.String("This is the content of the Object..."),
// ContentType: pulumi.String("text/plain"),
// ContentLanguage: pulumi.String("en"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
type ObjectStorageObject struct {
pulumi.CustomResourceState
// The access key to authenticate with.
AccessKey pulumi.StringOutput `pulumi:"accessKey"`
// The canned ACL to apply. Can be one of `private`, `public-read`, `authenticated-read`, `public-read-write`, and `custom` (defaults to `private`).
Acl pulumi.StringPtrOutput `pulumi:"acl"`
// The name of the bucket to put the object in.
Bucket pulumi.StringOutput `pulumi:"bucket"`
// Specifies caching behavior along the request/reply chain Read [w3c cacheControl](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) for further details.
CacheControl pulumi.StringPtrOutput `pulumi:"cacheControl"`
// The cluster the bucket is in.
Cluster pulumi.StringOutput `pulumi:"cluster"`
// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
Content pulumi.StringPtrOutput `pulumi:"content"`
// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the `gzipbase64` function with small text strings. For larger objects, use `source` to stream the content from a disk file.
ContentBase64 pulumi.StringPtrOutput `pulumi:"contentBase64"`
// Specifies presentational information for the object. Read [w3c contentDisposition](http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) for further information.
ContentDisposition pulumi.StringPtrOutput `pulumi:"contentDisposition"`
// Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read [w3c content encoding](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) for further information.
ContentEncoding pulumi.StringPtrOutput `pulumi:"contentEncoding"`
// The language the content is in e.g. en-US or en-GB.
ContentLanguage pulumi.StringPtrOutput `pulumi:"contentLanguage"`
// A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
ContentType pulumi.StringOutput `pulumi:"contentType"`
Etag pulumi.StringOutput `pulumi:"etag"`
// Allow the object to be deleted regardless of any legal hold or object lock (defaults to `false`).
ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"`
// They name of the object once it is in the bucket.
Key pulumi.StringOutput `pulumi:"key"`
// A map of keys/values to provision metadata.
Metadata pulumi.StringMapOutput `pulumi:"metadata"`
// The secret key to authenitcate with.
SecretKey pulumi.StringOutput `pulumi:"secretKey"`
// The path to a file that will be read and uploaded as raw bytes for the object content. The path must either be relative to the root module or absolute.
Source pulumi.StringPtrOutput `pulumi:"source"`
// A unique version ID value for the object.
VersionId pulumi.StringOutput `pulumi:"versionId"`
// Specifies a target URL for website redirect.
WebsiteRedirect pulumi.StringPtrOutput `pulumi:"websiteRedirect"`
}
// NewObjectStorageObject registers a new resource with the given unique name, arguments, and options.
func NewObjectStorageObject(ctx *pulumi.Context,
name string, args *ObjectStorageObjectArgs, opts ...pulumi.ResourceOption) (*ObjectStorageObject, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AccessKey == nil {
return nil, errors.New("invalid value for required argument 'AccessKey'")
}
if args.Bucket == nil {
return nil, errors.New("invalid value for required argument 'Bucket'")
}
if args.Cluster == nil {
return nil, errors.New("invalid value for required argument 'Cluster'")
}
if args.Key == nil {
return nil, errors.New("invalid value for required argument 'Key'")
}
if args.SecretKey == nil {
return nil, errors.New("invalid value for required argument 'SecretKey'")
}
var resource ObjectStorageObject
err := ctx.RegisterResource("linode:index/objectStorageObject:ObjectStorageObject", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetObjectStorageObject gets an existing ObjectStorageObject resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetObjectStorageObject(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ObjectStorageObjectState, opts ...pulumi.ResourceOption) (*ObjectStorageObject, error) {
var resource ObjectStorageObject
err := ctx.ReadResource("linode:index/objectStorageObject:ObjectStorageObject", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ObjectStorageObject resources.
type objectStorageObjectState struct {
// The access key to authenticate with.
AccessKey *string `pulumi:"accessKey"`
// The canned ACL to apply. Can be one of `private`, `public-read`, `authenticated-read`, `public-read-write`, and `custom` (defaults to `private`).
Acl *string `pulumi:"acl"`
// The name of the bucket to put the object in.
Bucket *string `pulumi:"bucket"`
// Specifies caching behavior along the request/reply chain Read [w3c cacheControl](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) for further details.
CacheControl *string `pulumi:"cacheControl"`
// The cluster the bucket is in.
Cluster *string `pulumi:"cluster"`
// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
Content *string `pulumi:"content"`
// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the `gzipbase64` function with small text strings. For larger objects, use `source` to stream the content from a disk file.
ContentBase64 *string `pulumi:"contentBase64"`
// Specifies presentational information for the object. Read [w3c contentDisposition](http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) for further information.
ContentDisposition *string `pulumi:"contentDisposition"`
// Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read [w3c content encoding](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) for further information.
ContentEncoding *string `pulumi:"contentEncoding"`
// The language the content is in e.g. en-US or en-GB.
ContentLanguage *string `pulumi:"contentLanguage"`
// A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
ContentType *string `pulumi:"contentType"`
Etag *string `pulumi:"etag"`
// Allow the object to be deleted regardless of any legal hold or object lock (defaults to `false`).
ForceDestroy *bool `pulumi:"forceDestroy"`
// They name of the object once it is in the bucket.
Key *string `pulumi:"key"`
// A map of keys/values to provision metadata.
Metadata map[string]string `pulumi:"metadata"`
// The secret key to authenitcate with.
SecretKey *string `pulumi:"secretKey"`
// The path to a file that will be read and uploaded as raw bytes for the object content. The path must either be relative to the root module or absolute.
Source *string `pulumi:"source"`
// A unique version ID value for the object.
VersionId *string `pulumi:"versionId"`
// Specifies a target URL for website redirect.
WebsiteRedirect *string `pulumi:"websiteRedirect"`
}
type ObjectStorageObjectState struct {
// The access key to authenticate with.
AccessKey pulumi.StringPtrInput
// The canned ACL to apply. Can be one of `private`, `public-read`, `authenticated-read`, `public-read-write`, and `custom` (defaults to `private`).
Acl pulumi.StringPtrInput
// The name of the bucket to put the object in.
Bucket pulumi.StringPtrInput
// Specifies caching behavior along the request/reply chain Read [w3c cacheControl](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) for further details.
CacheControl pulumi.StringPtrInput
// The cluster the bucket is in.
Cluster pulumi.StringPtrInput
// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
Content pulumi.StringPtrInput
// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the `gzipbase64` function with small text strings. For larger objects, use `source` to stream the content from a disk file.
ContentBase64 pulumi.StringPtrInput
// Specifies presentational information for the object. Read [w3c contentDisposition](http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) for further information.
ContentDisposition pulumi.StringPtrInput
// Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read [w3c content encoding](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) for further information.
ContentEncoding pulumi.StringPtrInput
// The language the content is in e.g. en-US or en-GB.
ContentLanguage pulumi.StringPtrInput
// A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
ContentType pulumi.StringPtrInput
Etag pulumi.StringPtrInput
// Allow the object to be deleted regardless of any legal hold or object lock (defaults to `false`).
ForceDestroy pulumi.BoolPtrInput
// They name of the object once it is in the bucket.
Key pulumi.StringPtrInput
// A map of keys/values to provision metadata.
Metadata pulumi.StringMapInput
// The secret key to authenitcate with.
SecretKey pulumi.StringPtrInput
// The path to a file that will be read and uploaded as raw bytes for the object content. The path must either be relative to the root module or absolute.
Source pulumi.StringPtrInput
// A unique version ID value for the object.
VersionId pulumi.StringPtrInput
// Specifies a target URL for website redirect.
WebsiteRedirect pulumi.StringPtrInput
}
func (ObjectStorageObjectState) ElementType() reflect.Type {
return reflect.TypeOf((*objectStorageObjectState)(nil)).Elem()
}
type objectStorageObjectArgs struct {
// The access key to authenticate with.
AccessKey string `pulumi:"accessKey"`
// The canned ACL to apply. Can be one of `private`, `public-read`, `authenticated-read`, `public-read-write`, and `custom` (defaults to `private`).
Acl *string `pulumi:"acl"`
// The name of the bucket to put the object in.
Bucket string `pulumi:"bucket"`
// Specifies caching behavior along the request/reply chain Read [w3c cacheControl](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) for further details.
CacheControl *string `pulumi:"cacheControl"`
// The cluster the bucket is in.
Cluster string `pulumi:"cluster"`
// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
Content *string `pulumi:"content"`
// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the `gzipbase64` function with small text strings. For larger objects, use `source` to stream the content from a disk file.
ContentBase64 *string `pulumi:"contentBase64"`
// Specifies presentational information for the object. Read [w3c contentDisposition](http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) for further information.
ContentDisposition *string `pulumi:"contentDisposition"`
// Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read [w3c content encoding](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) for further information.
ContentEncoding *string `pulumi:"contentEncoding"`
// The language the content is in e.g. en-US or en-GB.
ContentLanguage *string `pulumi:"contentLanguage"`
// A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
ContentType *string `pulumi:"contentType"`
Etag *string `pulumi:"etag"`
// Allow the object to be deleted regardless of any legal hold or object lock (defaults to `false`).
ForceDestroy *bool `pulumi:"forceDestroy"`
// They name of the object once it is in the bucket.
Key string `pulumi:"key"`
// A map of keys/values to provision metadata.
Metadata map[string]string `pulumi:"metadata"`
// The secret key to authenitcate with.
SecretKey string `pulumi:"secretKey"`
// The path to a file that will be read and uploaded as raw bytes for the object content. The path must either be relative to the root module or absolute.
Source *string `pulumi:"source"`
// Specifies a target URL for website redirect.
WebsiteRedirect *string `pulumi:"websiteRedirect"`
}
// The set of arguments for constructing a ObjectStorageObject resource.
type ObjectStorageObjectArgs struct {
// The access key to authenticate with.
AccessKey pulumi.StringInput
// The canned ACL to apply. Can be one of `private`, `public-read`, `authenticated-read`, `public-read-write`, and `custom` (defaults to `private`).
Acl pulumi.StringPtrInput
// The name of the bucket to put the object in.
Bucket pulumi.StringInput
// Specifies caching behavior along the request/reply chain Read [w3c cacheControl](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) for further details.
CacheControl pulumi.StringPtrInput
// The cluster the bucket is in.
Cluster pulumi.StringInput
// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
Content pulumi.StringPtrInput
// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for small content such as the result of the `gzipbase64` function with small text strings. For larger objects, use `source` to stream the content from a disk file.
ContentBase64 pulumi.StringPtrInput
// Specifies presentational information for the object. Read [w3c contentDisposition](http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) for further information.
ContentDisposition pulumi.StringPtrInput
// Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read [w3c content encoding](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) for further information.
ContentEncoding pulumi.StringPtrInput
// The language the content is in e.g. en-US or en-GB.
ContentLanguage pulumi.StringPtrInput
// A standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
ContentType pulumi.StringPtrInput
Etag pulumi.StringPtrInput
// Allow the object to be deleted regardless of any legal hold or object lock (defaults to `false`).
ForceDestroy pulumi.BoolPtrInput
// They name of the object once it is in the bucket.
Key pulumi.StringInput
// A map of keys/values to provision metadata.
Metadata pulumi.StringMapInput
// The secret key to authenitcate with.
SecretKey pulumi.StringInput
// The path to a file that will be read and uploaded as raw bytes for the object content. The path must either be relative to the root module or absolute.
Source pulumi.StringPtrInput
// Specifies a target URL for website redirect.
WebsiteRedirect pulumi.StringPtrInput
}
func (ObjectStorageObjectArgs) ElementType() reflect.Type {
return reflect.TypeOf((*objectStorageObjectArgs)(nil)).Elem()
}
type ObjectStorageObjectInput interface {
pulumi.Input
ToObjectStorageObjectOutput() ObjectStorageObjectOutput
ToObjectStorageObjectOutputWithContext(ctx context.Context) ObjectStorageObjectOutput
}
func (*ObjectStorageObject) ElementType() reflect.Type {
return reflect.TypeOf((*ObjectStorageObject)(nil))
}
func (i *ObjectStorageObject) ToObjectStorageObjectOutput() ObjectStorageObjectOutput {
return i.ToObjectStorageObjectOutputWithContext(context.Background())
}
func (i *ObjectStorageObject) ToObjectStorageObjectOutputWithContext(ctx context.Context) ObjectStorageObjectOutput {
return pulumi.ToOutputWithContext(ctx, i).(ObjectStorageObjectOutput)
}
func (i *ObjectStorageObject) ToObjectStorageObjectPtrOutput() ObjectStorageObjectPtrOutput {
return i.ToObjectStorageObjectPtrOutputWithContext(context.Background())
}
func (i *ObjectStorageObject) ToObjectStorageObjectPtrOutputWithContext(ctx context.Context) ObjectStorageObjectPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ObjectStorageObjectPtrOutput)
}
type ObjectStorageObjectPtrInput interface {
pulumi.Input
ToObjectStorageObjectPtrOutput() ObjectStorageObjectPtrOutput
ToObjectStorageObjectPtrOutputWithContext(ctx context.Context) ObjectStorageObjectPtrOutput
}
type objectStorageObjectPtrType ObjectStorageObjectArgs
func (*objectStorageObjectPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ObjectStorageObject)(nil))
}
func (i *objectStorageObjectPtrType) ToObjectStorageObjectPtrOutput() ObjectStorageObjectPtrOutput {
return i.ToObjectStorageObjectPtrOutputWithContext(context.Background())
}
func (i *objectStorageObjectPtrType) ToObjectStorageObjectPtrOutputWithContext(ctx context.Context) ObjectStorageObjectPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ObjectStorageObjectPtrOutput)
}
// ObjectStorageObjectArrayInput is an input type that accepts ObjectStorageObjectArray and ObjectStorageObjectArrayOutput values.
// You can construct a concrete instance of `ObjectStorageObjectArrayInput` via:
//
// ObjectStorageObjectArray{ ObjectStorageObjectArgs{...} }
type ObjectStorageObjectArrayInput interface {
pulumi.Input
ToObjectStorageObjectArrayOutput() ObjectStorageObjectArrayOutput
ToObjectStorageObjectArrayOutputWithContext(context.Context) ObjectStorageObjectArrayOutput
}
type ObjectStorageObjectArray []ObjectStorageObjectInput
func (ObjectStorageObjectArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*ObjectStorageObject)(nil))
}
func (i ObjectStorageObjectArray) ToObjectStorageObjectArrayOutput() ObjectStorageObjectArrayOutput {
return i.ToObjectStorageObjectArrayOutputWithContext(context.Background())
}
func (i ObjectStorageObjectArray) ToObjectStorageObjectArrayOutputWithContext(ctx context.Context) ObjectStorageObjectArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ObjectStorageObjectArrayOutput)
}
// ObjectStorageObjectMapInput is an input type that accepts ObjectStorageObjectMap and ObjectStorageObjectMapOutput values.
// You can construct a concrete instance of `ObjectStorageObjectMapInput` via:
//
// ObjectStorageObjectMap{ "key": ObjectStorageObjectArgs{...} }
type ObjectStorageObjectMapInput interface {
pulumi.Input
ToObjectStorageObjectMapOutput() ObjectStorageObjectMapOutput
ToObjectStorageObjectMapOutputWithContext(context.Context) ObjectStorageObjectMapOutput
}
type ObjectStorageObjectMap map[string]ObjectStorageObjectInput
func (ObjectStorageObjectMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*ObjectStorageObject)(nil))
}
func (i ObjectStorageObjectMap) ToObjectStorageObjectMapOutput() ObjectStorageObjectMapOutput {
return i.ToObjectStorageObjectMapOutputWithContext(context.Background())
}
func (i ObjectStorageObjectMap) ToObjectStorageObjectMapOutputWithContext(ctx context.Context) ObjectStorageObjectMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ObjectStorageObjectMapOutput)
}
type ObjectStorageObjectOutput struct {
*pulumi.OutputState
}
func (ObjectStorageObjectOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ObjectStorageObject)(nil))
}
func (o ObjectStorageObjectOutput) ToObjectStorageObjectOutput() ObjectStorageObjectOutput {
return o
}
func (o ObjectStorageObjectOutput) ToObjectStorageObjectOutputWithContext(ctx context.Context) ObjectStorageObjectOutput {
return o
}
func (o ObjectStorageObjectOutput) ToObjectStorageObjectPtrOutput() ObjectStorageObjectPtrOutput {
return o.ToObjectStorageObjectPtrOutputWithContext(context.Background())
}
func (o ObjectStorageObjectOutput) ToObjectStorageObjectPtrOutputWithContext(ctx context.Context) ObjectStorageObjectPtrOutput {
return o.ApplyT(func(v ObjectStorageObject) *ObjectStorageObject {
return &v
}).(ObjectStorageObjectPtrOutput)
}
type ObjectStorageObjectPtrOutput struct {
*pulumi.OutputState
}
func (ObjectStorageObjectPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ObjectStorageObject)(nil))
}
func (o ObjectStorageObjectPtrOutput) ToObjectStorageObjectPtrOutput() ObjectStorageObjectPtrOutput {
return o
}
func (o ObjectStorageObjectPtrOutput) ToObjectStorageObjectPtrOutputWithContext(ctx context.Context) ObjectStorageObjectPtrOutput {
return o
}
type ObjectStorageObjectArrayOutput struct{ *pulumi.OutputState }
func (ObjectStorageObjectArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ObjectStorageObject)(nil))
}
func (o ObjectStorageObjectArrayOutput) ToObjectStorageObjectArrayOutput() ObjectStorageObjectArrayOutput {
return o
}
func (o ObjectStorageObjectArrayOutput) ToObjectStorageObjectArrayOutputWithContext(ctx context.Context) ObjectStorageObjectArrayOutput {
return o
}
func (o ObjectStorageObjectArrayOutput) Index(i pulumi.IntInput) ObjectStorageObjectOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ObjectStorageObject {
return vs[0].([]ObjectStorageObject)[vs[1].(int)]
}).(ObjectStorageObjectOutput)
}
type ObjectStorageObjectMapOutput struct{ *pulumi.OutputState }
func (ObjectStorageObjectMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]ObjectStorageObject)(nil))
}
func (o ObjectStorageObjectMapOutput) ToObjectStorageObjectMapOutput() ObjectStorageObjectMapOutput {
return o
}
func (o ObjectStorageObjectMapOutput) ToObjectStorageObjectMapOutputWithContext(ctx context.Context) ObjectStorageObjectMapOutput {
return o
}
func (o ObjectStorageObjectMapOutput) MapIndex(k pulumi.StringInput) ObjectStorageObjectOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) ObjectStorageObject {
return vs[0].(map[string]ObjectStorageObject)[vs[1].(string)]
}).(ObjectStorageObjectOutput)
}
func init() {
pulumi.RegisterOutputType(ObjectStorageObjectOutput{})
pulumi.RegisterOutputType(ObjectStorageObjectPtrOutput{})
pulumi.RegisterOutputType(ObjectStorageObjectArrayOutput{})
pulumi.RegisterOutputType(ObjectStorageObjectMapOutput{})
}