...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.2/customvision/training/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.2/customvision/training

     1  package training
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // DomainType enumerates the values for domain type.
    10  type DomainType string
    11  
    12  const (
    13  	// Classification ...
    14  	Classification DomainType = "Classification"
    15  	// ObjectDetection ...
    16  	ObjectDetection DomainType = "ObjectDetection"
    17  )
    18  
    19  // PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
    20  func PossibleDomainTypeValues() []DomainType {
    21  	return []DomainType{Classification, ObjectDetection}
    22  }
    23  
    24  // ExportFlavor enumerates the values for export flavor.
    25  type ExportFlavor string
    26  
    27  const (
    28  	// Linux ...
    29  	Linux ExportFlavor = "Linux"
    30  	// Windows ...
    31  	Windows ExportFlavor = "Windows"
    32  )
    33  
    34  // PossibleExportFlavorValues returns an array of possible values for the ExportFlavor const type.
    35  func PossibleExportFlavorValues() []ExportFlavor {
    36  	return []ExportFlavor{Linux, Windows}
    37  }
    38  
    39  // ExportPlatform enumerates the values for export platform.
    40  type ExportPlatform string
    41  
    42  const (
    43  	// CoreML ...
    44  	CoreML ExportPlatform = "CoreML"
    45  	// DockerFile ...
    46  	DockerFile ExportPlatform = "DockerFile"
    47  	// ONNX ...
    48  	ONNX ExportPlatform = "ONNX"
    49  	// TensorFlow ...
    50  	TensorFlow ExportPlatform = "TensorFlow"
    51  )
    52  
    53  // PossibleExportPlatformValues returns an array of possible values for the ExportPlatform const type.
    54  func PossibleExportPlatformValues() []ExportPlatform {
    55  	return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow}
    56  }
    57  
    58  // ExportStatusModel enumerates the values for export status model.
    59  type ExportStatusModel string
    60  
    61  const (
    62  	// Done ...
    63  	Done ExportStatusModel = "Done"
    64  	// Exporting ...
    65  	Exporting ExportStatusModel = "Exporting"
    66  	// Failed ...
    67  	Failed ExportStatusModel = "Failed"
    68  )
    69  
    70  // PossibleExportStatusModelValues returns an array of possible values for the ExportStatusModel const type.
    71  func PossibleExportStatusModelValues() []ExportStatusModel {
    72  	return []ExportStatusModel{Done, Exporting, Failed}
    73  }
    74  
    75  // ImageUploadStatus enumerates the values for image upload status.
    76  type ImageUploadStatus string
    77  
    78  const (
    79  	// ErrorImageFormat ...
    80  	ErrorImageFormat ImageUploadStatus = "ErrorImageFormat"
    81  	// ErrorImageSize ...
    82  	ErrorImageSize ImageUploadStatus = "ErrorImageSize"
    83  	// ErrorLimitExceed ...
    84  	ErrorLimitExceed ImageUploadStatus = "ErrorLimitExceed"
    85  	// ErrorRegionLimitExceed ...
    86  	ErrorRegionLimitExceed ImageUploadStatus = "ErrorRegionLimitExceed"
    87  	// ErrorSource ...
    88  	ErrorSource ImageUploadStatus = "ErrorSource"
    89  	// ErrorStorage ...
    90  	ErrorStorage ImageUploadStatus = "ErrorStorage"
    91  	// ErrorTagLimitExceed ...
    92  	ErrorTagLimitExceed ImageUploadStatus = "ErrorTagLimitExceed"
    93  	// ErrorUnknown ...
    94  	ErrorUnknown ImageUploadStatus = "ErrorUnknown"
    95  	// OK ...
    96  	OK ImageUploadStatus = "OK"
    97  	// OKDuplicate ...
    98  	OKDuplicate ImageUploadStatus = "OKDuplicate"
    99  )
   100  
   101  // PossibleImageUploadStatusValues returns an array of possible values for the ImageUploadStatus const type.
   102  func PossibleImageUploadStatusValues() []ImageUploadStatus {
   103  	return []ImageUploadStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
   104  }
   105  
   106  // OrderBy enumerates the values for order by.
   107  type OrderBy string
   108  
   109  const (
   110  	// Newest ...
   111  	Newest OrderBy = "Newest"
   112  	// Oldest ...
   113  	Oldest OrderBy = "Oldest"
   114  	// Suggested ...
   115  	Suggested OrderBy = "Suggested"
   116  )
   117  
   118  // PossibleOrderByValues returns an array of possible values for the OrderBy const type.
   119  func PossibleOrderByValues() []OrderBy {
   120  	return []OrderBy{Newest, Oldest, Suggested}
   121  }
   122  

View as plain text