/
getNotebookRuntimeTemplate.go
188 lines (159 loc) · 10.4 KB
/
getNotebookRuntimeTemplate.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
// 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 v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets a NotebookRuntimeTemplate.
func LookupNotebookRuntimeTemplate(ctx *pulumi.Context, args *LookupNotebookRuntimeTemplateArgs, opts ...pulumi.InvokeOption) (*LookupNotebookRuntimeTemplateResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNotebookRuntimeTemplateResult
err := ctx.Invoke("google-native:aiplatform/v1:getNotebookRuntimeTemplate", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupNotebookRuntimeTemplateArgs struct {
Location string `pulumi:"location"`
NotebookRuntimeTemplateId string `pulumi:"notebookRuntimeTemplateId"`
Project *string `pulumi:"project"`
}
type LookupNotebookRuntimeTemplateResult struct {
// Timestamp when this NotebookRuntimeTemplate was created.
CreateTime string `pulumi:"createTime"`
// Optional. The specification of persistent disk attached to the runtime as data disk storage.
DataPersistentDiskSpec GoogleCloudAiplatformV1PersistentDiskSpecResponse `pulumi:"dataPersistentDiskSpec"`
// The description of the NotebookRuntimeTemplate.
Description string `pulumi:"description"`
// The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters.
DisplayName string `pulumi:"displayName"`
// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
Etag string `pulumi:"etag"`
// EUC configuration of the NotebookRuntimeTemplate.
EucConfig GoogleCloudAiplatformV1NotebookEucConfigResponse `pulumi:"eucConfig"`
// The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled.
IdleShutdownConfig GoogleCloudAiplatformV1NotebookIdleShutdownConfigResponse `pulumi:"idleShutdownConfig"`
// The default template to use if not specified.
IsDefault bool `pulumi:"isDefault"`
// The labels with user-defined metadata to organize the NotebookRuntimeTemplates. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
Labels map[string]string `pulumi:"labels"`
// Optional. Immutable. The specification of a single machine for the template.
MachineSpec GoogleCloudAiplatformV1MachineSpecResponse `pulumi:"machineSpec"`
// The resource name of the NotebookRuntimeTemplate.
Name string `pulumi:"name"`
// Optional. Network spec.
NetworkSpec GoogleCloudAiplatformV1NetworkSpecResponse `pulumi:"networkSpec"`
// Optional. Immutable. The type of the notebook runtime template.
NotebookRuntimeType string `pulumi:"notebookRuntimeType"`
// The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
ServiceAccount string `pulumi:"serviceAccount"`
// Timestamp when this NotebookRuntimeTemplate was most recently updated.
UpdateTime string `pulumi:"updateTime"`
}
func LookupNotebookRuntimeTemplateOutput(ctx *pulumi.Context, args LookupNotebookRuntimeTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupNotebookRuntimeTemplateResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupNotebookRuntimeTemplateResult, error) {
args := v.(LookupNotebookRuntimeTemplateArgs)
r, err := LookupNotebookRuntimeTemplate(ctx, &args, opts...)
var s LookupNotebookRuntimeTemplateResult
if r != nil {
s = *r
}
return s, err
}).(LookupNotebookRuntimeTemplateResultOutput)
}
type LookupNotebookRuntimeTemplateOutputArgs struct {
Location pulumi.StringInput `pulumi:"location"`
NotebookRuntimeTemplateId pulumi.StringInput `pulumi:"notebookRuntimeTemplateId"`
Project pulumi.StringPtrInput `pulumi:"project"`
}
func (LookupNotebookRuntimeTemplateOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNotebookRuntimeTemplateArgs)(nil)).Elem()
}
type LookupNotebookRuntimeTemplateResultOutput struct{ *pulumi.OutputState }
func (LookupNotebookRuntimeTemplateResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNotebookRuntimeTemplateResult)(nil)).Elem()
}
func (o LookupNotebookRuntimeTemplateResultOutput) ToLookupNotebookRuntimeTemplateResultOutput() LookupNotebookRuntimeTemplateResultOutput {
return o
}
func (o LookupNotebookRuntimeTemplateResultOutput) ToLookupNotebookRuntimeTemplateResultOutputWithContext(ctx context.Context) LookupNotebookRuntimeTemplateResultOutput {
return o
}
// Timestamp when this NotebookRuntimeTemplate was created.
func (o LookupNotebookRuntimeTemplateResultOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.CreateTime }).(pulumi.StringOutput)
}
// Optional. The specification of persistent disk attached to the runtime as data disk storage.
func (o LookupNotebookRuntimeTemplateResultOutput) DataPersistentDiskSpec() GoogleCloudAiplatformV1PersistentDiskSpecResponseOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) GoogleCloudAiplatformV1PersistentDiskSpecResponse {
return v.DataPersistentDiskSpec
}).(GoogleCloudAiplatformV1PersistentDiskSpecResponseOutput)
}
// The description of the NotebookRuntimeTemplate.
func (o LookupNotebookRuntimeTemplateResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.Description }).(pulumi.StringOutput)
}
// The display name of the NotebookRuntimeTemplate. The name can be up to 128 characters long and can consist of any UTF-8 characters.
func (o LookupNotebookRuntimeTemplateResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
func (o LookupNotebookRuntimeTemplateResultOutput) Etag() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.Etag }).(pulumi.StringOutput)
}
// EUC configuration of the NotebookRuntimeTemplate.
func (o LookupNotebookRuntimeTemplateResultOutput) EucConfig() GoogleCloudAiplatformV1NotebookEucConfigResponseOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) GoogleCloudAiplatformV1NotebookEucConfigResponse {
return v.EucConfig
}).(GoogleCloudAiplatformV1NotebookEucConfigResponseOutput)
}
// The idle shutdown configuration of NotebookRuntimeTemplate. This config will only be set when idle shutdown is enabled.
func (o LookupNotebookRuntimeTemplateResultOutput) IdleShutdownConfig() GoogleCloudAiplatformV1NotebookIdleShutdownConfigResponseOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) GoogleCloudAiplatformV1NotebookIdleShutdownConfigResponse {
return v.IdleShutdownConfig
}).(GoogleCloudAiplatformV1NotebookIdleShutdownConfigResponseOutput)
}
// The default template to use if not specified.
func (o LookupNotebookRuntimeTemplateResultOutput) IsDefault() pulumi.BoolOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) bool { return v.IsDefault }).(pulumi.BoolOutput)
}
// The labels with user-defined metadata to organize the NotebookRuntimeTemplates. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
func (o LookupNotebookRuntimeTemplateResultOutput) Labels() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput)
}
// Optional. Immutable. The specification of a single machine for the template.
func (o LookupNotebookRuntimeTemplateResultOutput) MachineSpec() GoogleCloudAiplatformV1MachineSpecResponseOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) GoogleCloudAiplatformV1MachineSpecResponse {
return v.MachineSpec
}).(GoogleCloudAiplatformV1MachineSpecResponseOutput)
}
// The resource name of the NotebookRuntimeTemplate.
func (o LookupNotebookRuntimeTemplateResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.Name }).(pulumi.StringOutput)
}
// Optional. Network spec.
func (o LookupNotebookRuntimeTemplateResultOutput) NetworkSpec() GoogleCloudAiplatformV1NetworkSpecResponseOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) GoogleCloudAiplatformV1NetworkSpecResponse {
return v.NetworkSpec
}).(GoogleCloudAiplatformV1NetworkSpecResponseOutput)
}
// Optional. Immutable. The type of the notebook runtime template.
func (o LookupNotebookRuntimeTemplateResultOutput) NotebookRuntimeType() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.NotebookRuntimeType }).(pulumi.StringOutput)
}
// The service account that the runtime workload runs as. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the [Compute Engine default service account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
func (o LookupNotebookRuntimeTemplateResultOutput) ServiceAccount() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.ServiceAccount }).(pulumi.StringOutput)
}
// Timestamp when this NotebookRuntimeTemplate was most recently updated.
func (o LookupNotebookRuntimeTemplateResultOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupNotebookRuntimeTemplateResult) string { return v.UpdateTime }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNotebookRuntimeTemplateResultOutput{})
}