github.com/cloudwan/edgelq-sdk@v1.15.4/devices/proto/v1/ztp_provision_hardware_custom.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.devices.v1;
     4  
     5  import "edgelq-sdk/common/api/attestation.proto";
     6  import "edgelq-sdk/common/api/credentials.proto";
     7  
     8  option go_package = "github.com/cloudwan/edgelq-sdk/devices/client/v1/ztp_provision_hardware;ztp_provision_hardware_client";
     9  option java_multiple_files = false;
    10  option java_outer_classname = "ZtpProvisionHardwareCustomProto";
    11  option java_package = "com.ntt.devices.pb.v1";
    12  
    13  // Request message for method
    14  // [ProvisionHardware][ntt.devices.v1.ProvisionHardware]
    15  message ProvisionHardwareRequest {
    16    oneof msg {
    17      ProvisioningTarget provisioning_target = 1;
    18  
    19      ntt.api.DeviceIdentity identify = 2;
    20  
    21      ntt.api.IdentityChallengeResponse challenge_response = 3;
    22    }
    23  
    24    // ProvisioningTarget is used to know the correct region to route the request
    25    message ProvisioningTarget {
    26      // one of provisioning_policy_name or device_name is required
    27      string provisioning_policy_name = 1;
    28  
    29      string device_name = 2;
    30    }
    31  }
    32  
    33  // Response message for method
    34  // [ProvisionHardware][ntt.devices.v1.ProvisionHardware]
    35  message ProvisionHardwareResponse {
    36    oneof msg {
    37      ntt.api.IdentityChallenge identity_challenge = 1;
    38  
    39      ProvisioningResponse provisioning_response = 2;
    40    }
    41  
    42    // One of provisioning service_account and policy name or
    43    // device service_account and device name will be returned.
    44    message ProvisioningResponse {
    45      ntt.api.ServiceAccount service_account = 1;
    46  
    47      string provisioning_policy_name = 2;
    48  
    49      string device_name = 3;
    50    }
    51  }