github.com/cloudwan/edgelq-sdk@v1.15.4/devices/proto/v1alpha2/customized_image.proto (about) 1 syntax = "proto3"; 2 3 package ntt.devices.v1alpha2; 4 5 import "edgelq-sdk/iam/proto/v1alpha2/common.proto"; 6 import "google/api/field_behavior.proto"; 7 import "google/api/resource.proto"; 8 import "goten-sdk/types/meta.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/devices/resources/v1alpha2/customized_image;customized_image"; 11 option java_multiple_files = true; 12 option java_outer_classname = "CustomizedImageProto"; 13 option java_package = "com.ntt.devices.pb.v1alpha2"; 14 15 // CustomizedImage Resource 16 message CustomizedImage { 17 option (google.api.resource) = { 18 type : "devices.edgelq.com/CustomizedImage" 19 pattern : "projects/{project}/regions/{region}/customizedImages/" 20 "{customized_image}" 21 }; 22 23 // Name of CustomizedImage 24 // When creating a new instance, this field is optional and if not provided, 25 // it will be generated automatically. Last ID segment must conform to the 26 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 27 string name = 1; 28 29 // Metadata of CustomizedImage 30 goten.types.Meta metadata = 2; 31 32 Spec spec = 3; 33 34 Status status = 4; 35 36 message Spec { 37 string version = 1 [ (google.api.field_behavior) = REQUIRED ]; 38 39 string device_type = 2 [ (google.api.field_behavior) = REQUIRED ]; 40 41 string provisioning_policy = 3; 42 43 bool install_ai_accelerator = 4; 44 45 string password = 5; 46 47 bool encryption = 6; 48 49 string encryption_password = 7; 50 51 string disk_mapping = 8; 52 53 string network_agent = 9; 54 55 string ntp = 10; 56 57 string http_proxy = 11; 58 59 string https_proxy = 12; 60 61 string no_proxy = 13; 62 } 63 64 message Status { 65 // State of the image. 66 State state = 1 [ (google.api.field_behavior) = REQUIRED ]; 67 68 // Error log when state is ERROR. 69 string log = 2; 70 71 // TODO hide this from client 72 string file = 5; 73 74 enum State { 75 // Initial state 76 STATE_UNSPECIFIED = 0; 77 78 // Backend is processing the customization request. 79 IN_PROGRESS = 1; 80 81 // There was an error processing the customization request. Check the 82 // parameters and try again. 83 ERROR = 2; 84 85 // The customized image is ready to download. 86 READY = 3; 87 } 88 } 89 }