@@ -76,6 +76,12 @@ class GceInstance extends \Google\Collection
7676 * @var bool
7777 */
7878 public $ enableNestedVirtualization ;
79+ /**
80+ * Optional. Custom metadata to apply to Compute Engine instances.
81+ *
82+ * @var string[]
83+ */
84+ public $ instanceMetadata ;
7985 /**
8086 * Optional. The type of machine to use for VM instances—for example,
8187 * `"e2-standard-4"`. For more information about machine types that Cloud
@@ -137,9 +143,9 @@ class GceInstance extends \Google\Collection
137143 * script, the service account must have [Permission to access the bucket and
138144 * script file in Cloud Storage](https://cloud.google.com/storage/docs/access-
139145 * control/iam-permissions). Otherwise, the script must be publicly
140- * accessible. Note that the service regularly updates the OS version used,
141- * and it is the responsibility of the user to ensure the script stays
142- * compatible with the OS version.
146+ * accessible. Note that the service regularly updates the OS version of the
147+ * host VM, and it is the responsibility of the user to ensure the script
148+ * stays compatible with the OS version.
143149 *
144150 * @var string
145151 */
@@ -308,6 +314,22 @@ public function getEnableNestedVirtualization()
308314 {
309315 return $ this ->enableNestedVirtualization ;
310316 }
317+ /**
318+ * Optional. Custom metadata to apply to Compute Engine instances.
319+ *
320+ * @param string[] $instanceMetadata
321+ */
322+ public function setInstanceMetadata ($ instanceMetadata )
323+ {
324+ $ this ->instanceMetadata = $ instanceMetadata ;
325+ }
326+ /**
327+ * @return string[]
328+ */
329+ public function getInstanceMetadata ()
330+ {
331+ return $ this ->instanceMetadata ;
332+ }
311333 /**
312334 * Optional. The type of machine to use for VM instances—for example,
313335 * `"e2-standard-4"`. For more information about machine types that Cloud
@@ -433,9 +455,9 @@ public function getShieldedInstanceConfig()
433455 * script, the service account must have [Permission to access the bucket and
434456 * script file in Cloud Storage](https://cloud.google.com/storage/docs/access-
435457 * control/iam-permissions). Otherwise, the script must be publicly
436- * accessible. Note that the service regularly updates the OS version used,
437- * and it is the responsibility of the user to ensure the script stays
438- * compatible with the OS version.
458+ * accessible. Note that the service regularly updates the OS version of the
459+ * host VM, and it is the responsibility of the user to ensure the script
460+ * stays compatible with the OS version.
439461 *
440462 * @param string $startupScriptUri
441463 */
0 commit comments