Skip to content

Commit aeb84bb

Browse files
Google APIscopybara-github
authored andcommitted
feat: add adaptation modifiers and storage pools to MigratingVM target defaults
feat: add adaptation modifiers and guest OS features to ImageImport target details docs: A comment for method `CancelImageImportJob` in service `VmMigration` is changed docs: A comment for message `DataDiskImageImport` is changed PiperOrigin-RevId: 832917413
1 parent 0eeb1be commit aeb84bb

File tree

1 file changed

+57
-3
lines changed

1 file changed

+57
-3
lines changed

google/cloud/vmmigration/v1/vmmigration.proto

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ service VmMigration {
703703
option (google.api.method_signature) = "name";
704704
}
705705

706-
// Initiates the cancellation of a running clone job.
706+
// Initiates the cancellation of a running ImageImportJob.
707707
rpc CancelImageImportJob(CancelImageImportJobRequest)
708708
returns (google.longrunning.Operation) {
709709
option (google.api.http) = {
@@ -3023,6 +3023,11 @@ message ComputeEngineTargetDefaults {
30233023
// convert the virtual machine from using the existing boot option to another.
30243024
BootConversion boot_conversion = 20 [(google.api.field_behavior) = OPTIONAL];
30253025

3026+
// Optional. AdaptationModifiers are the set of modifiers used during OS
3027+
// adaptation.
3028+
repeated AdaptationModifier adaptation_modifiers = 23
3029+
[(google.api.field_behavior) = OPTIONAL];
3030+
30263031
// Optional. Additional replica zones of the target regional disks.
30273032
// If this list is not empty a regional disk will be created. The first
30283033
// supported zone would be the one stated in the
@@ -3034,6 +3039,24 @@ message ComputeEngineTargetDefaults {
30343039
// zonal disk will be created in the same zone the VM is created.
30353040
repeated string disk_replica_zones = 24
30363041
[(google.api.field_behavior) = OPTIONAL];
3042+
3043+
// Optional. If specified this will be the storage pool in which the disk is
3044+
// created. This is the full path of the storage pool resource, for example:
3045+
// "projects/my-project/zones/us-central1-a/storagePools/my-storage-pool".
3046+
// The storage pool must be in the same project and zone as the target disks.
3047+
// The storage pool's type must match the disk type.
3048+
string storage_pool = 25 [(google.api.field_behavior) = OPTIONAL];
3049+
}
3050+
3051+
// AdaptationModifier a modifier to be used for configuration of the OS
3052+
// adaptation process.
3053+
message AdaptationModifier {
3054+
// Optional. The modifier name.
3055+
string modifier = 3 [(google.api.field_behavior) = OPTIONAL];
3056+
3057+
// Optional. The value of the modifier.
3058+
// The actual value depends on the modifier and can also be empty.
3059+
string value = 2 [(google.api.field_behavior) = OPTIONAL];
30373060
}
30383061

30393062
// ComputeEngineTargetDetails is a collection of details for creating a VM in a
@@ -3109,6 +3132,11 @@ message ComputeEngineTargetDetails {
31093132
// convert the virtual machine from using the existing boot option to another.
31103133
BootConversion boot_conversion = 20 [(google.api.field_behavior) = OPTIONAL];
31113134

3135+
// Optional. Modifiers to be used as configuration of the OS adaptation
3136+
// process.
3137+
repeated AdaptationModifier adaptation_modifiers = 23
3138+
[(google.api.field_behavior) = OPTIONAL];
3139+
31123140
// Optional. Additional replica zones of the target regional disks.
31133141
// If this list is not empty a regional disk will be created. The first
31143142
// supported zone would be the one stated in the
@@ -3120,6 +3148,14 @@ message ComputeEngineTargetDetails {
31203148
// zonal disk will be created in the same zone the VM is created.
31213149
repeated string disk_replica_zones = 24
31223150
[(google.api.field_behavior) = OPTIONAL];
3151+
3152+
// Optional. The storage pool used for the VM disks.
3153+
// If specified this will be the storage pool in which the disk is created.
3154+
// This is the full path of the storage pool resource, for example:
3155+
// "projects/my-project/zones/us-central1-a/storagePools/my-storage-pool".
3156+
// The storage pool must be in the same project and zone as the target disks.
3157+
// The storage pool's type must match the disk type.
3158+
string storage_pool = 25 [(google.api.field_behavior) = OPTIONAL];
31233159
}
31243160

31253161
// NetworkInterface represents a NIC of a VM.
@@ -4844,10 +4880,28 @@ message ImageImportOsAdaptationParameters {
48444880
// image from using the existing boot option to another.
48454881
// The size of the boot disk might be increased to allow the conversion
48464882
BootConversion boot_conversion = 3 [(google.api.field_behavior) = OPTIONAL];
4883+
4884+
// Optional. Modifiers to be used as configuration of the OS adaptation
4885+
// process.
4886+
repeated AdaptationModifier adaptation_modifiers = 4
4887+
[(google.api.field_behavior) = OPTIONAL];
48474888
}
48484889

4849-
// Mentions that the image import is not using OS adaptation process.
4850-
message DataDiskImageImport {}
4890+
// Used when the image import is not using OS adaptation process.
4891+
message DataDiskImageImport {
4892+
// Optional. A list of guest OS features to apply to the imported image. These
4893+
// features are flags that are used by Compute Engine to enable certain
4894+
// capabilities for virtual machine instances that are created from the image.
4895+
//
4896+
// This field does not change the OS of the image; it only marks the image
4897+
// with the specified features. The user must ensure that the OS is
4898+
// compatible with the features.
4899+
//
4900+
// For a list of available features, see
4901+
// https://cloud.google.com/compute/docs/images/create-custom#guest-os-features.
4902+
repeated string guest_os_features = 1
4903+
[(google.api.field_behavior) = OPTIONAL];
4904+
}
48514905

48524906
// Mentions that the machine image import is not using OS adaptation process.
48534907
message SkipOsAdaptation {}

0 commit comments

Comments
 (0)