generated from pulumi/pulumi-tf-provider-boilerplate
/
getNotebookSession.go
221 lines (191 loc) · 11.6 KB
/
getNotebookSession.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
// 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 datascience
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides details about a specific Notebook Session resource in Oracle Cloud Infrastructure Data Science service.
//
// Gets the specified notebook session's information.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := DataScience.GetNotebookSession(ctx, &datascience.GetNotebookSessionArgs{
// NotebookSessionId: testNotebookSessionOciDatascienceNotebookSession.Id,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func LookupNotebookSession(ctx *pulumi.Context, args *LookupNotebookSessionArgs, opts ...pulumi.InvokeOption) (*LookupNotebookSessionResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNotebookSessionResult
err := ctx.Invoke("oci:DataScience/getNotebookSession:getNotebookSession", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNotebookSession.
type LookupNotebookSessionArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session.
NotebookSessionId string `pulumi:"notebookSessionId"`
}
// A collection of values returned by getNotebookSession.
type LookupNotebookSessionResult struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session's compartment.
CompartmentId string `pulumi:"compartmentId"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the notebook session.
CreatedBy string `pulumi:"createdBy"`
// 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 user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: `My NotebookSession`
DisplayName string `pulumi:"displayName"`
// 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"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session.
Id string `pulumi:"id"`
// Details about the state of the notebook session.
LifecycleDetails string `pulumi:"lifecycleDetails"`
// Details for the notebook session configuration.
NotebookSessionConfigDetails []GetNotebookSessionNotebookSessionConfigDetail `pulumi:"notebookSessionConfigDetails"`
// Details for the notebook session configuration.
NotebookSessionConfigurationDetails []GetNotebookSessionNotebookSessionConfigurationDetail `pulumi:"notebookSessionConfigurationDetails"`
NotebookSessionId string `pulumi:"notebookSessionId"`
// Notebook Session runtime configuration details.
NotebookSessionRuntimeConfigDetails []GetNotebookSessionNotebookSessionRuntimeConfigDetail `pulumi:"notebookSessionRuntimeConfigDetails"`
// Collection of NotebookSessionStorageMountConfigurationDetails.
NotebookSessionStorageMountConfigurationDetailsLists []GetNotebookSessionNotebookSessionStorageMountConfigurationDetailsList `pulumi:"notebookSessionStorageMountConfigurationDetailsLists"`
// The URL to interact with the notebook session.
NotebookSessionUrl string `pulumi:"notebookSessionUrl"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project associated with the notebook session.
ProjectId string `pulumi:"projectId"`
// The state of the notebook session.
State string `pulumi:"state"`
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
TimeCreated string `pulumi:"timeCreated"`
}
func LookupNotebookSessionOutput(ctx *pulumi.Context, args LookupNotebookSessionOutputArgs, opts ...pulumi.InvokeOption) LookupNotebookSessionResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupNotebookSessionResult, error) {
args := v.(LookupNotebookSessionArgs)
r, err := LookupNotebookSession(ctx, &args, opts...)
var s LookupNotebookSessionResult
if r != nil {
s = *r
}
return s, err
}).(LookupNotebookSessionResultOutput)
}
// A collection of arguments for invoking getNotebookSession.
type LookupNotebookSessionOutputArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session.
NotebookSessionId pulumi.StringInput `pulumi:"notebookSessionId"`
}
func (LookupNotebookSessionOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNotebookSessionArgs)(nil)).Elem()
}
// A collection of values returned by getNotebookSession.
type LookupNotebookSessionResultOutput struct{ *pulumi.OutputState }
func (LookupNotebookSessionResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNotebookSessionResult)(nil)).Elem()
}
func (o LookupNotebookSessionResultOutput) ToLookupNotebookSessionResultOutput() LookupNotebookSessionResultOutput {
return o
}
func (o LookupNotebookSessionResultOutput) ToLookupNotebookSessionResultOutputWithContext(ctx context.Context) LookupNotebookSessionResultOutput {
return o
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session's compartment.
func (o LookupNotebookSessionResultOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.CompartmentId }).(pulumi.StringOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the notebook session.
func (o LookupNotebookSessionResultOutput) CreatedBy() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.CreatedBy }).(pulumi.StringOutput)
}
// 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 LookupNotebookSessionResultOutput) DefinedTags() pulumi.MapOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput)
}
// A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: `My NotebookSession`
func (o LookupNotebookSessionResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// 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 LookupNotebookSessionResultOutput) FreeformTags() pulumi.MapOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the notebook session.
func (o LookupNotebookSessionResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.Id }).(pulumi.StringOutput)
}
// Details about the state of the notebook session.
func (o LookupNotebookSessionResultOutput) LifecycleDetails() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.LifecycleDetails }).(pulumi.StringOutput)
}
// Details for the notebook session configuration.
func (o LookupNotebookSessionResultOutput) NotebookSessionConfigDetails() GetNotebookSessionNotebookSessionConfigDetailArrayOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) []GetNotebookSessionNotebookSessionConfigDetail {
return v.NotebookSessionConfigDetails
}).(GetNotebookSessionNotebookSessionConfigDetailArrayOutput)
}
// Details for the notebook session configuration.
func (o LookupNotebookSessionResultOutput) NotebookSessionConfigurationDetails() GetNotebookSessionNotebookSessionConfigurationDetailArrayOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) []GetNotebookSessionNotebookSessionConfigurationDetail {
return v.NotebookSessionConfigurationDetails
}).(GetNotebookSessionNotebookSessionConfigurationDetailArrayOutput)
}
func (o LookupNotebookSessionResultOutput) NotebookSessionId() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.NotebookSessionId }).(pulumi.StringOutput)
}
// Notebook Session runtime configuration details.
func (o LookupNotebookSessionResultOutput) NotebookSessionRuntimeConfigDetails() GetNotebookSessionNotebookSessionRuntimeConfigDetailArrayOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) []GetNotebookSessionNotebookSessionRuntimeConfigDetail {
return v.NotebookSessionRuntimeConfigDetails
}).(GetNotebookSessionNotebookSessionRuntimeConfigDetailArrayOutput)
}
// Collection of NotebookSessionStorageMountConfigurationDetails.
func (o LookupNotebookSessionResultOutput) NotebookSessionStorageMountConfigurationDetailsLists() GetNotebookSessionNotebookSessionStorageMountConfigurationDetailsListArrayOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) []GetNotebookSessionNotebookSessionStorageMountConfigurationDetailsList {
return v.NotebookSessionStorageMountConfigurationDetailsLists
}).(GetNotebookSessionNotebookSessionStorageMountConfigurationDetailsListArrayOutput)
}
// The URL to interact with the notebook session.
func (o LookupNotebookSessionResultOutput) NotebookSessionUrl() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.NotebookSessionUrl }).(pulumi.StringOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project associated with the notebook session.
func (o LookupNotebookSessionResultOutput) ProjectId() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.ProjectId }).(pulumi.StringOutput)
}
// The state of the notebook session.
func (o LookupNotebookSessionResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.State }).(pulumi.StringOutput)
}
// The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z
func (o LookupNotebookSessionResultOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookSessionResult) string { return v.TimeCreated }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNotebookSessionResultOutput{})
}