dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/dtos/deviceprofilebasicinfo.go (about)

     1  //
     2  // Copyright (C) 2022 IOTech Ltd
     3  //
     4  // SPDX-License-Identifier: Apache-2.0
     5  
     6  package dtos
     7  
     8  type DeviceProfileBasicInfo struct {
     9  	Id           string   `json:"id" validate:"omitempty,uuid"`
    10  	Name         string   `json:"name" yaml:"name" validate:"required,edgex-dto-none-empty-string"`
    11  	Manufacturer string   `json:"manufacturer" yaml:"manufacturer"`
    12  	Description  string   `json:"description" yaml:"description"`
    13  	Model        string   `json:"model" yaml:"model"`
    14  	Labels       []string `json:"labels" yaml:"labels,flow"`
    15  }
    16  
    17  type UpdateDeviceProfileBasicInfo struct {
    18  	Id           *string  `json:"id" validate:"required_without=Name,edgex-dto-uuid"`
    19  	Name         *string  `json:"name" validate:"required_without=Id,edgex-dto-none-empty-string"`
    20  	Manufacturer *string  `json:"manufacturer"`
    21  	Description  *string  `json:"description"`
    22  	Model        *string  `json:"model"`
    23  	Labels       []string `json:"labels"`
    24  }