github.com/cloudwan/edgelq-sdk@v1.15.4/devices/proto/v1alpha2/device_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.devices.v1alpha2; 4 5 import "edgelq-sdk/common/api/credentials.proto"; 6 import "edgelq-sdk/devices/proto/v1alpha2/device.proto"; 7 import "edgelq-sdk/devices/proto/v1alpha2/device_change.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/devices/client/v1alpha2/device;device_client"; 10 option java_multiple_files = false; 11 option java_outer_classname = "DeviceCustomProto"; 12 option java_package = "com.ntt.devices.pb.v1alpha2"; 13 14 // Request message for method 15 // [ProvisionServiceAccountToDevice][ntt.devices.v1alpha2.ProvisionServiceAccountToDevice] 16 message ProvisionServiceAccountToDeviceRequest { 17 // Name of Device to provision service account. 18 // This method automatically generates a service account and a key for the 19 // device and assign the key to .Spec.ServiceAccount 20 string name = 1; 21 22 // external public key to use for service account for this device. 23 // If not present, a keypair will be generated by the server. 24 string external_pubkey = 2; 25 } 26 27 // Response message for method 28 // [ProvisionServiceAccountToDevice][ntt.devices.v1alpha2.ProvisionServiceAccountToDevice] 29 message ProvisionServiceAccountToDeviceResponse { 30 // The service account generated by the endpoint. Save the private key 31 // included. 32 ntt.api.ServiceAccount service_account = 1; 33 } 34 35 // Request message for method 36 // [RemoveServiceAccountFromDevice][ntt.devices.v1alpha2.RemoveServiceAccountFromDevice] 37 message RemoveServiceAccountFromDeviceRequest { 38 // Name of the Device to remove its service account 39 // The service account and the key will be automatically deleted as well when 40 // they have been generated automatically by `ProvisionServiceAccountToDevice` 41 // action. Otherwise, the service account will be kept intact. The device will 42 // lost the access to the resources in the project. 43 string name = 1; 44 } 45 46 // Response message for method 47 // [RemoveServiceAccountFromDevice][ntt.devices.v1alpha2.RemoveServiceAccountFromDevice] 48 message RemoveServiceAccountFromDeviceResponse {}