diff --git a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_computeinstances.compute.cnrm.cloud.google.com.yaml b/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_computeinstances.compute.cnrm.cloud.google.com.yaml index 49c9ae630e..1f931b929f 100644 --- a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_computeinstances.compute.cnrm.cloud.google.com.yaml +++ b/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_computeinstances.compute.cnrm.cloud.google.com.yaml @@ -272,6 +272,8 @@ spec: description: Immutable. The size of the image in gigabytes. type: integer sourceImageRef: + description: Immutable. The image from which to initialize + this disk. oneOf: - not: required: @@ -335,6 +337,7 @@ spec: or "READ_WRITE". type: string sourceDiskRef: + description: Immutable. The source disk used to create this disk. oneOf: - not: required: diff --git a/config/servicemappings/compute.yaml b/config/servicemappings/compute.yaml index 5369f69f7a..43bb889e92 100644 --- a/config/servicemappings/compute.yaml +++ b/config/servicemappings/compute.yaml @@ -830,6 +830,8 @@ spec: targetField: self_link - key: sourceDiskRef tfField: boot_disk.source + description: |- + Immutable. The source disk used to create this disk. gvk: kind: ComputeDisk version: v1beta1 @@ -837,6 +839,8 @@ spec: targetField: self_link - key: sourceImageRef # prefix with "source" as that's how it is in the underlying API tfField: boot_disk.initialize_params.image + description: |- + Immutable. The image from which to initialize this disk. gvk: kind: ComputeImage version: v1beta1 @@ -933,6 +937,8 @@ spec: targetField: self_link - key: sourceDiskRef tfField: boot_disk.source + description: |- + Immutable. The source disk used to create this disk. gvk: kind: ComputeDisk version: v1beta1 @@ -940,6 +946,8 @@ spec: targetField: self_link - key: sourceImageRef # prefix with "source" as that's how it is in the underlying API tfField: boot_disk.initialize_params.image + description: |- + Immutable. The image from which to initialize this disk. gvk: kind: ComputeImage version: v1beta1 diff --git a/pkg/clients/generated/apis/compute/v1beta1/computeinstance_types.go b/pkg/clients/generated/apis/compute/v1beta1/computeinstance_types.go index b30b3b5ec7..344301ddd8 100644 --- a/pkg/clients/generated/apis/compute/v1beta1/computeinstance_types.go +++ b/pkg/clients/generated/apis/compute/v1beta1/computeinstance_types.go @@ -122,6 +122,7 @@ type InstanceBootDisk struct { // +optional Mode *string `json:"mode,omitempty"` + /* Immutable. The source disk used to create this disk. */ // +optional SourceDiskRef *v1alpha1.ResourceRef `json:"sourceDiskRef,omitempty"` } @@ -158,6 +159,7 @@ type InstanceInitializeParams struct { // +optional Size *int `json:"size,omitempty"` + /* Immutable. The image from which to initialize this disk. */ // +optional SourceImageRef *v1alpha1.ResourceRef `json:"sourceImageRef,omitempty"` diff --git a/scripts/generate-google3-docs/resource-reference/generated/resource-docs/compute/computeinstance.md b/scripts/generate-google3-docs/resource-reference/generated/resource-docs/compute/computeinstance.md index 7e1f2d4b9a..c5a40db9fe 100644 --- a/scripts/generate-google3-docs/resource-reference/generated/resource-docs/compute/computeinstance.md +++ b/scripts/generate-google3-docs/resource-reference/generated/resource-docs/compute/computeinstance.md @@ -626,7 +626,7 @@ zone: string

object

-

{% verbatim %}{% endverbatim %}

+

{% verbatim %}Immutable. The image from which to initialize this disk.{% endverbatim %}

@@ -726,7 +726,7 @@ zone: string

object

-

{% verbatim %}{% endverbatim %}

+

{% verbatim %}Immutable. The source disk used to create this disk.{% endverbatim %}