...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.1/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  // Classifier enumerates the values for classifier.
    10  type Classifier string
    11  
    12  const (
    13  	// Multiclass ...
    14  	Multiclass Classifier = "Multiclass"
    15  	// Multilabel ...
    16  	Multilabel Classifier = "Multilabel"
    17  )
    18  
    19  // PossibleClassifierValues returns an array of possible values for the Classifier const type.
    20  func PossibleClassifierValues() []Classifier {
    21  	return []Classifier{Multiclass, Multilabel}
    22  }
    23  
    24  // DomainType enumerates the values for domain type.
    25  type DomainType string
    26  
    27  const (
    28  	// Classification ...
    29  	Classification DomainType = "Classification"
    30  	// ObjectDetection ...
    31  	ObjectDetection DomainType = "ObjectDetection"
    32  )
    33  
    34  // PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
    35  func PossibleDomainTypeValues() []DomainType {
    36  	return []DomainType{Classification, ObjectDetection}
    37  }
    38  
    39  // ExportFlavor enumerates the values for export flavor.
    40  type ExportFlavor string
    41  
    42  const (
    43  	// Linux ...
    44  	Linux ExportFlavor = "Linux"
    45  	// Windows ...
    46  	Windows ExportFlavor = "Windows"
    47  )
    48  
    49  // PossibleExportFlavorValues returns an array of possible values for the ExportFlavor const type.
    50  func PossibleExportFlavorValues() []ExportFlavor {
    51  	return []ExportFlavor{Linux, Windows}
    52  }
    53  
    54  // ExportPlatform enumerates the values for export platform.
    55  type ExportPlatform string
    56  
    57  const (
    58  	// CoreML ...
    59  	CoreML ExportPlatform = "CoreML"
    60  	// DockerFile ...
    61  	DockerFile ExportPlatform = "DockerFile"
    62  	// ONNX ...
    63  	ONNX ExportPlatform = "ONNX"
    64  	// TensorFlow ...
    65  	TensorFlow ExportPlatform = "TensorFlow"
    66  )
    67  
    68  // PossibleExportPlatformValues returns an array of possible values for the ExportPlatform const type.
    69  func PossibleExportPlatformValues() []ExportPlatform {
    70  	return []ExportPlatform{CoreML, DockerFile, ONNX, TensorFlow}
    71  }
    72  
    73  // ExportStatusModel enumerates the values for export status model.
    74  type ExportStatusModel string
    75  
    76  const (
    77  	// Done ...
    78  	Done ExportStatusModel = "Done"
    79  	// Exporting ...
    80  	Exporting ExportStatusModel = "Exporting"
    81  	// Failed ...
    82  	Failed ExportStatusModel = "Failed"
    83  )
    84  
    85  // PossibleExportStatusModelValues returns an array of possible values for the ExportStatusModel const type.
    86  func PossibleExportStatusModelValues() []ExportStatusModel {
    87  	return []ExportStatusModel{Done, Exporting, Failed}
    88  }
    89  
    90  // ImageUploadStatus enumerates the values for image upload status.
    91  type ImageUploadStatus string
    92  
    93  const (
    94  	// ErrorImageFormat ...
    95  	ErrorImageFormat ImageUploadStatus = "ErrorImageFormat"
    96  	// ErrorImageSize ...
    97  	ErrorImageSize ImageUploadStatus = "ErrorImageSize"
    98  	// ErrorLimitExceed ...
    99  	ErrorLimitExceed ImageUploadStatus = "ErrorLimitExceed"
   100  	// ErrorRegionLimitExceed ...
   101  	ErrorRegionLimitExceed ImageUploadStatus = "ErrorRegionLimitExceed"
   102  	// ErrorSource ...
   103  	ErrorSource ImageUploadStatus = "ErrorSource"
   104  	// ErrorStorage ...
   105  	ErrorStorage ImageUploadStatus = "ErrorStorage"
   106  	// ErrorTagLimitExceed ...
   107  	ErrorTagLimitExceed ImageUploadStatus = "ErrorTagLimitExceed"
   108  	// ErrorUnknown ...
   109  	ErrorUnknown ImageUploadStatus = "ErrorUnknown"
   110  	// OK ...
   111  	OK ImageUploadStatus = "OK"
   112  	// OKDuplicate ...
   113  	OKDuplicate ImageUploadStatus = "OKDuplicate"
   114  )
   115  
   116  // PossibleImageUploadStatusValues returns an array of possible values for the ImageUploadStatus const type.
   117  func PossibleImageUploadStatusValues() []ImageUploadStatus {
   118  	return []ImageUploadStatus{ErrorImageFormat, ErrorImageSize, ErrorLimitExceed, ErrorRegionLimitExceed, ErrorSource, ErrorStorage, ErrorTagLimitExceed, ErrorUnknown, OK, OKDuplicate}
   119  }
   120  
   121  // OrderBy enumerates the values for order by.
   122  type OrderBy string
   123  
   124  const (
   125  	// Newest ...
   126  	Newest OrderBy = "Newest"
   127  	// Oldest ...
   128  	Oldest OrderBy = "Oldest"
   129  	// Suggested ...
   130  	Suggested OrderBy = "Suggested"
   131  )
   132  
   133  // PossibleOrderByValues returns an array of possible values for the OrderBy const type.
   134  func PossibleOrderByValues() []OrderBy {
   135  	return []OrderBy{Newest, Oldest, Suggested}
   136  }
   137  

View as plain text