generated from pulumi/pulumi-tf-provider-boilerplate
/
workspaceApplication.go
628 lines (557 loc) · 33.9 KB
/
workspaceApplication.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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
// 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 dataintegration
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource provides the Workspace Application resource in Oracle Cloud Infrastructure Data Integration service.
//
// Creates an application.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/DataIntegration"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := DataIntegration.NewWorkspaceApplication(ctx, "test_workspace_application", &DataIntegration.WorkspaceApplicationArgs{
// Identifier: pulumi.Any(workspaceApplicationIdentifier),
// Name: pulumi.Any(workspaceApplicationName),
// WorkspaceId: pulumi.Any(testWorkspace.Id),
// ModelType: pulumi.Any(workspaceApplicationModelType),
// DefinedTags: pulumi.Map{
// "foo-namespace.bar-key": pulumi.Any("value"),
// },
// Description: pulumi.Any(workspaceApplicationDescription),
// DisplayName: pulumi.Any(workspaceApplicationDisplayName),
// FreeformTags: pulumi.Map{
// "bar-key": pulumi.Any("value"),
// },
// Key: pulumi.Any(workspaceApplicationKey),
// ModelVersion: pulumi.Any(workspaceApplicationModelVersion),
// ObjectStatus: pulumi.Any(workspaceApplicationObjectStatus),
// RegistryMetadata: &dataintegration.WorkspaceApplicationRegistryMetadataArgs{
// AggregatorKey: pulumi.Any(workspaceApplicationRegistryMetadataAggregatorKey),
// IsFavorite: pulumi.Any(workspaceApplicationRegistryMetadataIsFavorite),
// Key: pulumi.Any(workspaceApplicationRegistryMetadataKey),
// Labels: pulumi.Any(workspaceApplicationRegistryMetadataLabels),
// RegistryVersion: pulumi.Any(workspaceApplicationRegistryMetadataRegistryVersion),
// },
// SourceApplicationInfo: &dataintegration.WorkspaceApplicationSourceApplicationInfoArgs{
// ApplicationKey: pulumi.Any(workspaceApplicationSourceApplicationInfoApplicationKey),
// CopyType: pulumi.Any(workspaceApplicationSourceApplicationInfoCopyType),
// WorkspaceId: pulumi.Any(testWorkspace.Id),
// },
// State: pulumi.Any(workspaceApplicationState),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// WorkspaceApplications can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:DataIntegration/workspaceApplication:WorkspaceApplication test_workspace_application "workspaces/{workspaceId}/applications/{applicationKey}"
// ```
type WorkspaceApplication struct {
pulumi.CustomResourceState
// The source application version of the application.
ApplicationVersion pulumi.IntOutput `pulumi:"applicationVersion"`
// OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapOutput `pulumi:"definedTags"`
// A list of dependent objects in this patch.
DependentObjectMetadatas WorkspaceApplicationDependentObjectMetadataArrayOutput `pulumi:"dependentObjectMetadatas"`
// (Updatable) Detailed description for the object.
Description pulumi.StringOutput `pulumi:"description"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapOutput `pulumi:"freeformTags"`
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
Identifier pulumi.StringOutput `pulumi:"identifier"`
// The identifying key for the object.
Key pulumi.StringOutput `pulumi:"key"`
// A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.
KeyMap pulumi.MapOutput `pulumi:"keyMap"`
// A summary type containing information about the object including its key, name and when/who created/updated it.
Metadatas WorkspaceApplicationMetadataArrayOutput `pulumi:"metadatas"`
// (Updatable) The type of the application.
ModelType pulumi.StringOutput `pulumi:"modelType"`
// (Updatable) The object's model version.
ModelVersion pulumi.StringOutput `pulumi:"modelVersion"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
Name pulumi.StringOutput `pulumi:"name"`
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
ObjectStatus pulumi.IntOutput `pulumi:"objectStatus"`
// The object version.
ObjectVersion pulumi.IntOutput `pulumi:"objectVersion"`
// A reference to the object's parent.
ParentReves WorkspaceApplicationParentRefArrayOutput `pulumi:"parentReves"`
// A list of objects that are published or unpublished in this patch.
PublishedObjectMetadatas WorkspaceApplicationPublishedObjectMetadataArrayOutput `pulumi:"publishedObjectMetadatas"`
// Information about the object and its parent.
RegistryMetadata WorkspaceApplicationRegistryMetadataOutput `pulumi:"registryMetadata"`
// The information about the application.
SourceApplicationInfo WorkspaceApplicationSourceApplicationInfoOutput `pulumi:"sourceApplicationInfo"`
// (Updatable) The current state of the workspace.
State pulumi.StringOutput `pulumi:"state"`
// The date and time the application was created, in the timestamp format defined by RFC3339.
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// The date and time the application was patched, in the timestamp format defined by RFC3339.
TimePatched pulumi.StringOutput `pulumi:"timePatched"`
// The date and time the application was updated, in the timestamp format defined by RFC3339. example: 2019-08-25T21:10:29.41Z
TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}
// NewWorkspaceApplication registers a new resource with the given unique name, arguments, and options.
func NewWorkspaceApplication(ctx *pulumi.Context,
name string, args *WorkspaceApplicationArgs, opts ...pulumi.ResourceOption) (*WorkspaceApplication, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Identifier == nil {
return nil, errors.New("invalid value for required argument 'Identifier'")
}
if args.ModelType == nil {
return nil, errors.New("invalid value for required argument 'ModelType'")
}
if args.WorkspaceId == nil {
return nil, errors.New("invalid value for required argument 'WorkspaceId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource WorkspaceApplication
err := ctx.RegisterResource("oci:DataIntegration/workspaceApplication:WorkspaceApplication", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetWorkspaceApplication gets an existing WorkspaceApplication 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 GetWorkspaceApplication(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *WorkspaceApplicationState, opts ...pulumi.ResourceOption) (*WorkspaceApplication, error) {
var resource WorkspaceApplication
err := ctx.ReadResource("oci:DataIntegration/workspaceApplication:WorkspaceApplication", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering WorkspaceApplication resources.
type workspaceApplicationState struct {
// The source application version of the application.
ApplicationVersion *int `pulumi:"applicationVersion"`
// OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// A list of dependent objects in this patch.
DependentObjectMetadatas []WorkspaceApplicationDependentObjectMetadata `pulumi:"dependentObjectMetadatas"`
// (Updatable) Detailed description for the object.
Description *string `pulumi:"description"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
Identifier *string `pulumi:"identifier"`
// The identifying key for the object.
Key *string `pulumi:"key"`
// A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.
KeyMap map[string]interface{} `pulumi:"keyMap"`
// A summary type containing information about the object including its key, name and when/who created/updated it.
Metadatas []WorkspaceApplicationMetadata `pulumi:"metadatas"`
// (Updatable) The type of the application.
ModelType *string `pulumi:"modelType"`
// (Updatable) The object's model version.
ModelVersion *string `pulumi:"modelVersion"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
Name *string `pulumi:"name"`
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
ObjectStatus *int `pulumi:"objectStatus"`
// The object version.
ObjectVersion *int `pulumi:"objectVersion"`
// A reference to the object's parent.
ParentReves []WorkspaceApplicationParentRef `pulumi:"parentReves"`
// A list of objects that are published or unpublished in this patch.
PublishedObjectMetadatas []WorkspaceApplicationPublishedObjectMetadata `pulumi:"publishedObjectMetadatas"`
// Information about the object and its parent.
RegistryMetadata *WorkspaceApplicationRegistryMetadata `pulumi:"registryMetadata"`
// The information about the application.
SourceApplicationInfo *WorkspaceApplicationSourceApplicationInfo `pulumi:"sourceApplicationInfo"`
// (Updatable) The current state of the workspace.
State *string `pulumi:"state"`
// The date and time the application was created, in the timestamp format defined by RFC3339.
TimeCreated *string `pulumi:"timeCreated"`
// The date and time the application was patched, in the timestamp format defined by RFC3339.
TimePatched *string `pulumi:"timePatched"`
// The date and time the application was updated, in the timestamp format defined by RFC3339. example: 2019-08-25T21:10:29.41Z
TimeUpdated *string `pulumi:"timeUpdated"`
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WorkspaceId *string `pulumi:"workspaceId"`
}
type WorkspaceApplicationState struct {
// The source application version of the application.
ApplicationVersion pulumi.IntPtrInput
// OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.
CompartmentId pulumi.StringPtrInput
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
// A list of dependent objects in this patch.
DependentObjectMetadatas WorkspaceApplicationDependentObjectMetadataArrayInput
// (Updatable) Detailed description for the object.
Description pulumi.StringPtrInput
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
DisplayName pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
Identifier pulumi.StringPtrInput
// The identifying key for the object.
Key pulumi.StringPtrInput
// A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.
KeyMap pulumi.MapInput
// A summary type containing information about the object including its key, name and when/who created/updated it.
Metadatas WorkspaceApplicationMetadataArrayInput
// (Updatable) The type of the application.
ModelType pulumi.StringPtrInput
// (Updatable) The object's model version.
ModelVersion pulumi.StringPtrInput
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
Name pulumi.StringPtrInput
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
ObjectStatus pulumi.IntPtrInput
// The object version.
ObjectVersion pulumi.IntPtrInput
// A reference to the object's parent.
ParentReves WorkspaceApplicationParentRefArrayInput
// A list of objects that are published or unpublished in this patch.
PublishedObjectMetadatas WorkspaceApplicationPublishedObjectMetadataArrayInput
// Information about the object and its parent.
RegistryMetadata WorkspaceApplicationRegistryMetadataPtrInput
// The information about the application.
SourceApplicationInfo WorkspaceApplicationSourceApplicationInfoPtrInput
// (Updatable) The current state of the workspace.
State pulumi.StringPtrInput
// The date and time the application was created, in the timestamp format defined by RFC3339.
TimeCreated pulumi.StringPtrInput
// The date and time the application was patched, in the timestamp format defined by RFC3339.
TimePatched pulumi.StringPtrInput
// The date and time the application was updated, in the timestamp format defined by RFC3339. example: 2019-08-25T21:10:29.41Z
TimeUpdated pulumi.StringPtrInput
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WorkspaceId pulumi.StringPtrInput
}
func (WorkspaceApplicationState) ElementType() reflect.Type {
return reflect.TypeOf((*workspaceApplicationState)(nil)).Elem()
}
type workspaceApplicationArgs struct {
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags map[string]interface{} `pulumi:"definedTags"`
// (Updatable) Detailed description for the object.
Description *string `pulumi:"description"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
DisplayName *string `pulumi:"displayName"`
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags map[string]interface{} `pulumi:"freeformTags"`
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
Identifier string `pulumi:"identifier"`
// The identifying key for the object.
Key *string `pulumi:"key"`
// (Updatable) The type of the application.
ModelType string `pulumi:"modelType"`
// (Updatable) The object's model version.
ModelVersion *string `pulumi:"modelVersion"`
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
Name *string `pulumi:"name"`
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
ObjectStatus *int `pulumi:"objectStatus"`
// Information about the object and its parent.
RegistryMetadata *WorkspaceApplicationRegistryMetadata `pulumi:"registryMetadata"`
// The information about the application.
SourceApplicationInfo *WorkspaceApplicationSourceApplicationInfo `pulumi:"sourceApplicationInfo"`
// (Updatable) The current state of the workspace.
State *string `pulumi:"state"`
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WorkspaceId string `pulumi:"workspaceId"`
}
// The set of arguments for constructing a WorkspaceApplication resource.
type WorkspaceApplicationArgs struct {
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
DefinedTags pulumi.MapInput
// (Updatable) Detailed description for the object.
Description pulumi.StringPtrInput
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
DisplayName pulumi.StringPtrInput
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
FreeformTags pulumi.MapInput
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
Identifier pulumi.StringInput
// The identifying key for the object.
Key pulumi.StringPtrInput
// (Updatable) The type of the application.
ModelType pulumi.StringInput
// (Updatable) The object's model version.
ModelVersion pulumi.StringPtrInput
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
Name pulumi.StringPtrInput
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
ObjectStatus pulumi.IntPtrInput
// Information about the object and its parent.
RegistryMetadata WorkspaceApplicationRegistryMetadataPtrInput
// The information about the application.
SourceApplicationInfo WorkspaceApplicationSourceApplicationInfoPtrInput
// (Updatable) The current state of the workspace.
State pulumi.StringPtrInput
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
WorkspaceId pulumi.StringInput
}
func (WorkspaceApplicationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*workspaceApplicationArgs)(nil)).Elem()
}
type WorkspaceApplicationInput interface {
pulumi.Input
ToWorkspaceApplicationOutput() WorkspaceApplicationOutput
ToWorkspaceApplicationOutputWithContext(ctx context.Context) WorkspaceApplicationOutput
}
func (*WorkspaceApplication) ElementType() reflect.Type {
return reflect.TypeOf((**WorkspaceApplication)(nil)).Elem()
}
func (i *WorkspaceApplication) ToWorkspaceApplicationOutput() WorkspaceApplicationOutput {
return i.ToWorkspaceApplicationOutputWithContext(context.Background())
}
func (i *WorkspaceApplication) ToWorkspaceApplicationOutputWithContext(ctx context.Context) WorkspaceApplicationOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceApplicationOutput)
}
// WorkspaceApplicationArrayInput is an input type that accepts WorkspaceApplicationArray and WorkspaceApplicationArrayOutput values.
// You can construct a concrete instance of `WorkspaceApplicationArrayInput` via:
//
// WorkspaceApplicationArray{ WorkspaceApplicationArgs{...} }
type WorkspaceApplicationArrayInput interface {
pulumi.Input
ToWorkspaceApplicationArrayOutput() WorkspaceApplicationArrayOutput
ToWorkspaceApplicationArrayOutputWithContext(context.Context) WorkspaceApplicationArrayOutput
}
type WorkspaceApplicationArray []WorkspaceApplicationInput
func (WorkspaceApplicationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*WorkspaceApplication)(nil)).Elem()
}
func (i WorkspaceApplicationArray) ToWorkspaceApplicationArrayOutput() WorkspaceApplicationArrayOutput {
return i.ToWorkspaceApplicationArrayOutputWithContext(context.Background())
}
func (i WorkspaceApplicationArray) ToWorkspaceApplicationArrayOutputWithContext(ctx context.Context) WorkspaceApplicationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceApplicationArrayOutput)
}
// WorkspaceApplicationMapInput is an input type that accepts WorkspaceApplicationMap and WorkspaceApplicationMapOutput values.
// You can construct a concrete instance of `WorkspaceApplicationMapInput` via:
//
// WorkspaceApplicationMap{ "key": WorkspaceApplicationArgs{...} }
type WorkspaceApplicationMapInput interface {
pulumi.Input
ToWorkspaceApplicationMapOutput() WorkspaceApplicationMapOutput
ToWorkspaceApplicationMapOutputWithContext(context.Context) WorkspaceApplicationMapOutput
}
type WorkspaceApplicationMap map[string]WorkspaceApplicationInput
func (WorkspaceApplicationMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*WorkspaceApplication)(nil)).Elem()
}
func (i WorkspaceApplicationMap) ToWorkspaceApplicationMapOutput() WorkspaceApplicationMapOutput {
return i.ToWorkspaceApplicationMapOutputWithContext(context.Background())
}
func (i WorkspaceApplicationMap) ToWorkspaceApplicationMapOutputWithContext(ctx context.Context) WorkspaceApplicationMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceApplicationMapOutput)
}
type WorkspaceApplicationOutput struct{ *pulumi.OutputState }
func (WorkspaceApplicationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**WorkspaceApplication)(nil)).Elem()
}
func (o WorkspaceApplicationOutput) ToWorkspaceApplicationOutput() WorkspaceApplicationOutput {
return o
}
func (o WorkspaceApplicationOutput) ToWorkspaceApplicationOutputWithContext(ctx context.Context) WorkspaceApplicationOutput {
return o
}
// The source application version of the application.
func (o WorkspaceApplicationOutput) ApplicationVersion() pulumi.IntOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.IntOutput { return v.ApplicationVersion }).(pulumi.IntOutput)
}
// OCID of the compartment that this resource belongs to. Defaults to compartment of the Workspace.
func (o WorkspaceApplicationOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
func (o WorkspaceApplicationOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput)
}
// A list of dependent objects in this patch.
func (o WorkspaceApplicationOutput) DependentObjectMetadatas() WorkspaceApplicationDependentObjectMetadataArrayOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationDependentObjectMetadataArrayOutput {
return v.DependentObjectMetadatas
}).(WorkspaceApplicationDependentObjectMetadataArrayOutput)
}
// (Updatable) Detailed description for the object.
func (o WorkspaceApplicationOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
func (o WorkspaceApplicationOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
func (o WorkspaceApplicationOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput)
}
// (Updatable) Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
func (o WorkspaceApplicationOutput) Identifier() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.Identifier }).(pulumi.StringOutput)
}
// The identifying key for the object.
func (o WorkspaceApplicationOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput)
}
// A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.
func (o WorkspaceApplicationOutput) KeyMap() pulumi.MapOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.MapOutput { return v.KeyMap }).(pulumi.MapOutput)
}
// A summary type containing information about the object including its key, name and when/who created/updated it.
func (o WorkspaceApplicationOutput) Metadatas() WorkspaceApplicationMetadataArrayOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationMetadataArrayOutput { return v.Metadatas }).(WorkspaceApplicationMetadataArrayOutput)
}
// (Updatable) The type of the application.
func (o WorkspaceApplicationOutput) ModelType() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.ModelType }).(pulumi.StringOutput)
}
// (Updatable) The object's model version.
func (o WorkspaceApplicationOutput) ModelVersion() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.ModelVersion }).(pulumi.StringOutput)
}
// (Updatable) Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
func (o WorkspaceApplicationOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// (Updatable) The status of an object that can be set to value 1 for shallow references across objects, other values reserved.
func (o WorkspaceApplicationOutput) ObjectStatus() pulumi.IntOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.IntOutput { return v.ObjectStatus }).(pulumi.IntOutput)
}
// The object version.
func (o WorkspaceApplicationOutput) ObjectVersion() pulumi.IntOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.IntOutput { return v.ObjectVersion }).(pulumi.IntOutput)
}
// A reference to the object's parent.
func (o WorkspaceApplicationOutput) ParentReves() WorkspaceApplicationParentRefArrayOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationParentRefArrayOutput { return v.ParentReves }).(WorkspaceApplicationParentRefArrayOutput)
}
// A list of objects that are published or unpublished in this patch.
func (o WorkspaceApplicationOutput) PublishedObjectMetadatas() WorkspaceApplicationPublishedObjectMetadataArrayOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationPublishedObjectMetadataArrayOutput {
return v.PublishedObjectMetadatas
}).(WorkspaceApplicationPublishedObjectMetadataArrayOutput)
}
// Information about the object and its parent.
func (o WorkspaceApplicationOutput) RegistryMetadata() WorkspaceApplicationRegistryMetadataOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationRegistryMetadataOutput { return v.RegistryMetadata }).(WorkspaceApplicationRegistryMetadataOutput)
}
// The information about the application.
func (o WorkspaceApplicationOutput) SourceApplicationInfo() WorkspaceApplicationSourceApplicationInfoOutput {
return o.ApplyT(func(v *WorkspaceApplication) WorkspaceApplicationSourceApplicationInfoOutput {
return v.SourceApplicationInfo
}).(WorkspaceApplicationSourceApplicationInfoOutput)
}
// (Updatable) The current state of the workspace.
func (o WorkspaceApplicationOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The date and time the application was created, in the timestamp format defined by RFC3339.
func (o WorkspaceApplicationOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// The date and time the application was patched, in the timestamp format defined by RFC3339.
func (o WorkspaceApplicationOutput) TimePatched() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.TimePatched }).(pulumi.StringOutput)
}
// The date and time the application was updated, in the timestamp format defined by RFC3339. example: 2019-08-25T21:10:29.41Z
func (o WorkspaceApplicationOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.TimeUpdated }).(pulumi.StringOutput)
}
// The workspace ID.
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o WorkspaceApplicationOutput) WorkspaceId() pulumi.StringOutput {
return o.ApplyT(func(v *WorkspaceApplication) pulumi.StringOutput { return v.WorkspaceId }).(pulumi.StringOutput)
}
type WorkspaceApplicationArrayOutput struct{ *pulumi.OutputState }
func (WorkspaceApplicationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*WorkspaceApplication)(nil)).Elem()
}
func (o WorkspaceApplicationArrayOutput) ToWorkspaceApplicationArrayOutput() WorkspaceApplicationArrayOutput {
return o
}
func (o WorkspaceApplicationArrayOutput) ToWorkspaceApplicationArrayOutputWithContext(ctx context.Context) WorkspaceApplicationArrayOutput {
return o
}
func (o WorkspaceApplicationArrayOutput) Index(i pulumi.IntInput) WorkspaceApplicationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *WorkspaceApplication {
return vs[0].([]*WorkspaceApplication)[vs[1].(int)]
}).(WorkspaceApplicationOutput)
}
type WorkspaceApplicationMapOutput struct{ *pulumi.OutputState }
func (WorkspaceApplicationMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*WorkspaceApplication)(nil)).Elem()
}
func (o WorkspaceApplicationMapOutput) ToWorkspaceApplicationMapOutput() WorkspaceApplicationMapOutput {
return o
}
func (o WorkspaceApplicationMapOutput) ToWorkspaceApplicationMapOutputWithContext(ctx context.Context) WorkspaceApplicationMapOutput {
return o
}
func (o WorkspaceApplicationMapOutput) MapIndex(k pulumi.StringInput) WorkspaceApplicationOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *WorkspaceApplication {
return vs[0].(map[string]*WorkspaceApplication)[vs[1].(string)]
}).(WorkspaceApplicationOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceApplicationInput)(nil)).Elem(), &WorkspaceApplication{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceApplicationArrayInput)(nil)).Elem(), WorkspaceApplicationArray{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceApplicationMapInput)(nil)).Elem(), WorkspaceApplicationMap{})
pulumi.RegisterOutputType(WorkspaceApplicationOutput{})
pulumi.RegisterOutputType(WorkspaceApplicationArrayOutput{})
pulumi.RegisterOutputType(WorkspaceApplicationMapOutput{})
}