@@ -31,13 +31,24 @@ async:
31
31
full_url : ' https://{{location}}-aiplatform.googleapis.com/v1/{{op_id}}'
32
32
custom_code :
33
33
encoder : ' templates/terraform/encoders/colab_runtime.go.tmpl'
34
+ post_create : ' templates/terraform/post_create/colab_runtime.go.tmpl'
35
+ custom_update : ' templates/terraform/custom_update/colab_runtime.go.tmpl'
36
+ constants : ' templates/terraform/constants/colab_runtime.go.tmpl'
34
37
examples :
35
38
- name : ' colab_runtime_basic'
36
39
primary_resource_id : ' runtime'
37
40
primary_resource_name : ' fmt.Sprintf("tf-test-colab-runtime%s", context["random_suffix"])'
38
41
region_override : ' us-central1'
39
42
vars :
40
43
runtime_name : ' colab-runtime'
44
+ - name : ' colab_runtime_stopped'
45
+ primary_resource_id : ' runtime'
46
+ primary_resource_name : ' fmt.Sprintf("tf-test-colab-runtime%s", context["random_suffix"])'
47
+ region_override : ' us-central1'
48
+ vars :
49
+ runtime_name : ' colab-runtime'
50
+ ignore_read_extra :
51
+ - ' desired_state'
41
52
- name : ' colab_runtime_full'
42
53
primary_resource_id : ' runtime'
43
54
primary_resource_name : ' fmt.Sprintf("tf-test-colab-runtime%s", context["random_suffix"])'
@@ -47,16 +58,31 @@ examples:
47
58
key_name : ' my-crypto-key'
48
59
test_vars_overrides :
49
60
key_name : ' acctest.BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
61
+ ignore_read_extra :
62
+ - ' desired_state'
63
+ - ' auto_upgrade'
64
+ virtual_fields :
65
+ - name : ' desired_state'
66
+ description : |
67
+ Desired state of the Colab Runtime. Set this field to `RUNNING` to start the runtime, and `STOPPED` to stop it.
68
+ type : String
69
+ default_value : " RUNNING"
70
+ - name : ' auto_upgrade'
71
+ description : |
72
+ Triggers an upgrade anytime the runtime is started if it is upgradable.
73
+ type : Boolean
50
74
parameters :
51
75
- name : ' location'
52
76
type : String
53
77
required : true
54
78
url_param_only : true
55
79
description : ' The location for the resource: https://cloud.google.com/colab/docs/locations'
80
+ immutable : true
56
81
- name : ' name'
57
82
type : String
58
83
url_param_only : true
59
84
description : ' The resource name of the Runtime'
85
+ immutable : true
60
86
properties :
61
87
- name : notebookRuntimeTemplateRef
62
88
type : NestedObject
@@ -65,18 +91,42 @@ properties:
65
91
properties :
66
92
- name : ' notebookRuntimeTemplate'
67
93
type : String
94
+ immutable : true
68
95
required : true
69
96
description : ' The resource name of the NotebookRuntimeTemplate based on which a NotebookRuntime will be created.'
70
97
diff_suppress_func : ' tpgresource.ProjectNumberDiffSuppress'
71
98
- name : ' runtimeUser'
72
99
type : String
73
100
required : true
101
+ immutable : true
74
102
description : ' The user email of the NotebookRuntime.'
75
103
- name : ' displayName'
76
104
type : String
105
+ immutable : true
77
106
description :
78
107
Required. The display name of the Runtime.
79
108
required : true
80
109
- name : description
81
110
type : String
111
+ immutable : true
82
112
description : ' The description of the Runtime.'
113
+ - name : state
114
+ type : String
115
+ description : |
116
+ Output only. The state of the runtime.
117
+ output : true
118
+ - name : isUpgradable
119
+ type : Boolean
120
+ description : |
121
+ Output only. Checks if the NotebookRuntime is upgradable.
122
+ output : true
123
+ - name : expirationTime
124
+ type : String
125
+ description : |
126
+ Output only. Timestamp when this NotebookRuntime will be expired.
127
+ output : true
128
+ - name : notebookRuntimeType
129
+ type : String
130
+ description : |
131
+ Output only. The type of the notebook runtime.
132
+ output : true
0 commit comments