...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.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  import (
    10  	"encoding/json"
    11  	"github.com/Azure/go-autorest/autorest"
    12  	"github.com/Azure/go-autorest/autorest/date"
    13  	"github.com/gofrs/uuid"
    14  )
    15  
    16  // The package's fully qualified name.
    17  const fqdn = "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v3.1/customvision/training"
    18  
    19  // Bool ...
    20  type Bool struct {
    21  	autorest.Response `json:"-"`
    22  	Value             *bool `json:"value,omitempty"`
    23  }
    24  
    25  // BoundingBox bounding box that defines a region of an image.
    26  type BoundingBox struct {
    27  	// Left - Coordinate of the left boundary.
    28  	Left *float64 `json:"left,omitempty"`
    29  	// Top - Coordinate of the top boundary.
    30  	Top *float64 `json:"top,omitempty"`
    31  	// Width - Width.
    32  	Width *float64 `json:"width,omitempty"`
    33  	// Height - Height.
    34  	Height *float64 `json:"height,omitempty"`
    35  }
    36  
    37  // CustomVisionError ...
    38  type CustomVisionError struct {
    39  	// Code - The error code. Possible values include: 'NoError', 'BadRequest', 'BadRequestExceededBatchSize', 'BadRequestNotSupported', 'BadRequestInvalidIds', 'BadRequestProjectName', 'BadRequestProjectNameNotUnique', 'BadRequestProjectDescription', 'BadRequestProjectUnknownDomain', 'BadRequestProjectUnknownClassification', 'BadRequestProjectUnsupportedDomainTypeChange', 'BadRequestProjectUnsupportedExportPlatform', 'BadRequestProjectImagePreprocessingSettings', 'BadRequestIterationName', 'BadRequestIterationNameNotUnique', 'BadRequestIterationDescription', 'BadRequestIterationIsNotTrained', 'BadRequestWorkspaceCannotBeModified', 'BadRequestWorkspaceNotDeletable', 'BadRequestTagName', 'BadRequestTagNameNotUnique', 'BadRequestTagDescription', 'BadRequestTagType', 'BadRequestMultipleNegativeTag', 'BadRequestImageTags', 'BadRequestImageRegions', 'BadRequestNegativeAndRegularTagOnSameImage', 'BadRequestRequiredParamIsNull', 'BadRequestIterationIsPublished', 'BadRequestInvalidPublishName', 'BadRequestInvalidPublishTarget', 'BadRequestUnpublishFailed', 'BadRequestIterationNotPublished', 'BadRequestSubscriptionAPI', 'BadRequestExceedProjectLimit', 'BadRequestExceedIterationPerProjectLimit', 'BadRequestExceedTagPerProjectLimit', 'BadRequestExceedTagPerImageLimit', 'BadRequestExceededQuota', 'BadRequestCannotMigrateProjectWithName', 'BadRequestNotLimitedTrial', 'BadRequestImageBatch', 'BadRequestImageStream', 'BadRequestImageURL', 'BadRequestImageFormat', 'BadRequestImageSizeBytes', 'BadRequestImageExceededCount', 'BadRequestTrainingNotNeeded', 'BadRequestTrainingNotNeededButTrainingPipelineUpdated', 'BadRequestTrainingValidationFailed', 'BadRequestClassificationTrainingValidationFailed', 'BadRequestMultiClassClassificationTrainingValidationFailed', 'BadRequestMultiLabelClassificationTrainingValidationFailed', 'BadRequestDetectionTrainingValidationFailed', 'BadRequestTrainingAlreadyInProgress', 'BadRequestDetectionTrainingNotAllowNegativeTag', 'BadRequestInvalidEmailAddress', 'BadRequestDomainNotSupportedForAdvancedTraining', 'BadRequestExportPlatformNotSupportedForAdvancedTraining', 'BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining', 'BadRequestExportValidationFailed', 'BadRequestExportAlreadyInProgress', 'BadRequestPredictionIdsMissing', 'BadRequestPredictionIdsExceededCount', 'BadRequestPredictionTagsExceededCount', 'BadRequestPredictionResultsExceededCount', 'BadRequestPredictionInvalidApplicationName', 'BadRequestPredictionInvalidQueryParameters', 'BadRequestInvalid', 'UnsupportedMediaType', 'Forbidden', 'ForbiddenUser', 'ForbiddenUserResource', 'ForbiddenUserSignupDisabled', 'ForbiddenUserSignupAllowanceExceeded', 'ForbiddenUserDoesNotExist', 'ForbiddenUserDisabled', 'ForbiddenUserInsufficientCapability', 'ForbiddenDRModeEnabled', 'ForbiddenInvalid', 'NotFound', 'NotFoundProject', 'NotFoundProjectDefaultIteration', 'NotFoundIteration', 'NotFoundIterationPerformance', 'NotFoundTag', 'NotFoundImage', 'NotFoundDomain', 'NotFoundApimSubscription', 'NotFoundInvalid', 'Conflict', 'ConflictInvalid', 'ErrorUnknown', 'ErrorProjectInvalidWorkspace', 'ErrorProjectInvalidPipelineConfiguration', 'ErrorProjectInvalidDomain', 'ErrorProjectTrainingRequestFailed', 'ErrorProjectExportRequestFailed', 'ErrorFeaturizationServiceUnavailable', 'ErrorFeaturizationQueueTimeout', 'ErrorFeaturizationInvalidFeaturizer', 'ErrorFeaturizationAugmentationUnavailable', 'ErrorFeaturizationUnrecognizedJob', 'ErrorFeaturizationAugmentationError', 'ErrorExporterInvalidPlatform', 'ErrorExporterInvalidFeaturizer', 'ErrorExporterInvalidClassifier', 'ErrorPredictionServiceUnavailable', 'ErrorPredictionModelNotFound', 'ErrorPredictionModelNotCached', 'ErrorPrediction', 'ErrorPredictionStorage', 'ErrorRegionProposal', 'ErrorInvalid'
    40  	Code CustomVisionErrorCodes `json:"code,omitempty"`
    41  	// Message - A message explaining the error reported by the service.
    42  	Message *string `json:"message,omitempty"`
    43  }
    44  
    45  // Domain ...
    46  type Domain struct {
    47  	autorest.Response `json:"-"`
    48  	// ID - READ-ONLY
    49  	ID *uuid.UUID `json:"id,omitempty"`
    50  	// Name - READ-ONLY
    51  	Name *string `json:"name,omitempty"`
    52  	// Type - READ-ONLY; Possible values include: 'Classification', 'ObjectDetection'
    53  	Type DomainType `json:"type,omitempty"`
    54  	// Exportable - READ-ONLY
    55  	Exportable *bool `json:"exportable,omitempty"`
    56  	// Enabled - READ-ONLY
    57  	Enabled *bool `json:"enabled,omitempty"`
    58  }
    59  
    60  // MarshalJSON is the custom marshaler for Domain.
    61  func (d Domain) MarshalJSON() ([]byte, error) {
    62  	objectMap := make(map[string]interface{})
    63  	return json.Marshal(objectMap)
    64  }
    65  
    66  // Export ...
    67  type Export struct {
    68  	autorest.Response `json:"-"`
    69  	// Platform - READ-ONLY; Platform of the export. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK'
    70  	Platform ExportPlatform `json:"platform,omitempty"`
    71  	// Status - READ-ONLY; Status of the export. Possible values include: 'Exporting', 'Failed', 'Done'
    72  	Status ExportStatus `json:"status,omitempty"`
    73  	// DownloadURI - READ-ONLY; URI used to download the model.
    74  	DownloadURI *string `json:"downloadUri,omitempty"`
    75  	// Flavor - READ-ONLY; Flavor of the export. Possible values include: 'Linux', 'Windows', 'ONNX10', 'ONNX12', 'ARM', 'TensorFlowNormal', 'TensorFlowLite'
    76  	Flavor ExportFlavor `json:"flavor,omitempty"`
    77  	// NewerVersionAvailable - READ-ONLY; Indicates an updated version of the export package is available and should be re-exported for the latest changes.
    78  	NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"`
    79  }
    80  
    81  // MarshalJSON is the custom marshaler for Export.
    82  func (e Export) MarshalJSON() ([]byte, error) {
    83  	objectMap := make(map[string]interface{})
    84  	return json.Marshal(objectMap)
    85  }
    86  
    87  // Image image model to be sent as JSON.
    88  type Image struct {
    89  	// ID - READ-ONLY; Id of the image.
    90  	ID *uuid.UUID `json:"id,omitempty"`
    91  	// Created - READ-ONLY; Date the image was created.
    92  	Created *date.Time `json:"created,omitempty"`
    93  	// Width - READ-ONLY; Width of the image.
    94  	Width *int32 `json:"width,omitempty"`
    95  	// Height - READ-ONLY; Height of the image.
    96  	Height *int32 `json:"height,omitempty"`
    97  	// ResizedImageURI - READ-ONLY; The URI to the (resized) image used for training.
    98  	ResizedImageURI *string `json:"resizedImageUri,omitempty"`
    99  	// ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original image.
   100  	ThumbnailURI *string `json:"thumbnailUri,omitempty"`
   101  	// OriginalImageURI - READ-ONLY; The URI to the original uploaded image.
   102  	OriginalImageURI *string `json:"originalImageUri,omitempty"`
   103  	// Tags - READ-ONLY; Tags associated with this image.
   104  	Tags *[]ImageTag `json:"tags,omitempty"`
   105  	// Regions - READ-ONLY; Regions associated with this image.
   106  	Regions *[]ImageRegion `json:"regions,omitempty"`
   107  }
   108  
   109  // MarshalJSON is the custom marshaler for Image.
   110  func (i Image) MarshalJSON() ([]byte, error) {
   111  	objectMap := make(map[string]interface{})
   112  	return json.Marshal(objectMap)
   113  }
   114  
   115  // ImageCreateResult ...
   116  type ImageCreateResult struct {
   117  	// SourceURL - READ-ONLY; Source URL of the image.
   118  	SourceURL *string `json:"sourceUrl,omitempty"`
   119  	// Status - READ-ONLY; Status of the image creation. Possible values include: 'ImageCreateStatusOK', 'ImageCreateStatusOKDuplicate', 'ImageCreateStatusErrorSource', 'ImageCreateStatusErrorImageFormat', 'ImageCreateStatusErrorImageSize', 'ImageCreateStatusErrorStorage', 'ImageCreateStatusErrorLimitExceed', 'ImageCreateStatusErrorTagLimitExceed', 'ImageCreateStatusErrorRegionLimitExceed', 'ImageCreateStatusErrorUnknown', 'ImageCreateStatusErrorNegativeAndRegularTagOnSameImage'
   120  	Status ImageCreateStatus `json:"status,omitempty"`
   121  	// Image - READ-ONLY; The image.
   122  	Image *Image `json:"image,omitempty"`
   123  }
   124  
   125  // MarshalJSON is the custom marshaler for ImageCreateResult.
   126  func (icr ImageCreateResult) MarshalJSON() ([]byte, error) {
   127  	objectMap := make(map[string]interface{})
   128  	return json.Marshal(objectMap)
   129  }
   130  
   131  // ImageCreateSummary ...
   132  type ImageCreateSummary struct {
   133  	autorest.Response `json:"-"`
   134  	// IsBatchSuccessful - READ-ONLY; True if all of the images in the batch were created successfully, otherwise false.
   135  	IsBatchSuccessful *bool `json:"isBatchSuccessful,omitempty"`
   136  	// Images - READ-ONLY; List of the image creation results.
   137  	Images *[]ImageCreateResult `json:"images,omitempty"`
   138  }
   139  
   140  // MarshalJSON is the custom marshaler for ImageCreateSummary.
   141  func (ics ImageCreateSummary) MarshalJSON() ([]byte, error) {
   142  	objectMap := make(map[string]interface{})
   143  	return json.Marshal(objectMap)
   144  }
   145  
   146  // ImageFileCreateBatch ...
   147  type ImageFileCreateBatch struct {
   148  	Images *[]ImageFileCreateEntry `json:"images,omitempty"`
   149  	TagIds *[]uuid.UUID            `json:"tagIds,omitempty"`
   150  }
   151  
   152  // ImageFileCreateEntry ...
   153  type ImageFileCreateEntry struct {
   154  	Name     *string      `json:"name,omitempty"`
   155  	Contents *[]byte      `json:"contents,omitempty"`
   156  	TagIds   *[]uuid.UUID `json:"tagIds,omitempty"`
   157  	Regions  *[]Region    `json:"regions,omitempty"`
   158  }
   159  
   160  // ImageIDCreateBatch ...
   161  type ImageIDCreateBatch struct {
   162  	Images *[]ImageIDCreateEntry `json:"images,omitempty"`
   163  	TagIds *[]uuid.UUID          `json:"tagIds,omitempty"`
   164  }
   165  
   166  // ImageIDCreateEntry ...
   167  type ImageIDCreateEntry struct {
   168  	// ID - Id of the image.
   169  	ID      *uuid.UUID   `json:"id,omitempty"`
   170  	TagIds  *[]uuid.UUID `json:"tagIds,omitempty"`
   171  	Regions *[]Region    `json:"regions,omitempty"`
   172  }
   173  
   174  // ImagePerformance image performance model.
   175  type ImagePerformance struct {
   176  	// Predictions - READ-ONLY
   177  	Predictions *[]Prediction `json:"predictions,omitempty"`
   178  	// ID - READ-ONLY
   179  	ID *uuid.UUID `json:"id,omitempty"`
   180  	// Created - READ-ONLY
   181  	Created *date.Time `json:"created,omitempty"`
   182  	// Width - READ-ONLY
   183  	Width *int32 `json:"width,omitempty"`
   184  	// Height - READ-ONLY
   185  	Height *int32 `json:"height,omitempty"`
   186  	// ImageURI - READ-ONLY
   187  	ImageURI *string `json:"imageUri,omitempty"`
   188  	// ThumbnailURI - READ-ONLY
   189  	ThumbnailURI *string `json:"thumbnailUri,omitempty"`
   190  	// Tags - READ-ONLY
   191  	Tags *[]ImageTag `json:"tags,omitempty"`
   192  	// Regions - READ-ONLY
   193  	Regions *[]ImageRegion `json:"regions,omitempty"`
   194  }
   195  
   196  // MarshalJSON is the custom marshaler for ImagePerformance.
   197  func (IP ImagePerformance) MarshalJSON() ([]byte, error) {
   198  	objectMap := make(map[string]interface{})
   199  	return json.Marshal(objectMap)
   200  }
   201  
   202  // ImagePrediction result of an image prediction request.
   203  type ImagePrediction struct {
   204  	autorest.Response `json:"-"`
   205  	// ID - READ-ONLY; Prediction Id.
   206  	ID *uuid.UUID `json:"id,omitempty"`
   207  	// Project - READ-ONLY; Project Id.
   208  	Project *uuid.UUID `json:"project,omitempty"`
   209  	// Iteration - READ-ONLY; Iteration Id.
   210  	Iteration *uuid.UUID `json:"iteration,omitempty"`
   211  	// Created - READ-ONLY; Date this prediction was created.
   212  	Created *date.Time `json:"created,omitempty"`
   213  	// Predictions - READ-ONLY; List of predictions.
   214  	Predictions *[]Prediction `json:"predictions,omitempty"`
   215  }
   216  
   217  // MarshalJSON is the custom marshaler for ImagePrediction.
   218  func (IP ImagePrediction) MarshalJSON() ([]byte, error) {
   219  	objectMap := make(map[string]interface{})
   220  	return json.Marshal(objectMap)
   221  }
   222  
   223  // ImageProcessingSettings represents image preprocessing settings used by image augmentation.
   224  type ImageProcessingSettings struct {
   225  	// AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used.
   226  	// Augmentation will be uniformly distributed among enabled transforms.
   227  	AugmentationMethods map[string]*bool `json:"augmentationMethods"`
   228  }
   229  
   230  // MarshalJSON is the custom marshaler for ImageProcessingSettings.
   231  func (ips ImageProcessingSettings) MarshalJSON() ([]byte, error) {
   232  	objectMap := make(map[string]interface{})
   233  	if ips.AugmentationMethods != nil {
   234  		objectMap["augmentationMethods"] = ips.AugmentationMethods
   235  	}
   236  	return json.Marshal(objectMap)
   237  }
   238  
   239  // ImageRegion ...
   240  type ImageRegion struct {
   241  	// RegionID - READ-ONLY
   242  	RegionID *uuid.UUID `json:"regionId,omitempty"`
   243  	// TagName - READ-ONLY
   244  	TagName *string `json:"tagName,omitempty"`
   245  	// Created - READ-ONLY
   246  	Created *date.Time `json:"created,omitempty"`
   247  	// TagID - Id of the tag associated with this region.
   248  	TagID *uuid.UUID `json:"tagId,omitempty"`
   249  	// Left - Coordinate of the left boundary.
   250  	Left *float64 `json:"left,omitempty"`
   251  	// Top - Coordinate of the top boundary.
   252  	Top *float64 `json:"top,omitempty"`
   253  	// Width - Width.
   254  	Width *float64 `json:"width,omitempty"`
   255  	// Height - Height.
   256  	Height *float64 `json:"height,omitempty"`
   257  }
   258  
   259  // MarshalJSON is the custom marshaler for ImageRegion.
   260  func (ir ImageRegion) MarshalJSON() ([]byte, error) {
   261  	objectMap := make(map[string]interface{})
   262  	if ir.TagID != nil {
   263  		objectMap["tagId"] = ir.TagID
   264  	}
   265  	if ir.Left != nil {
   266  		objectMap["left"] = ir.Left
   267  	}
   268  	if ir.Top != nil {
   269  		objectMap["top"] = ir.Top
   270  	}
   271  	if ir.Width != nil {
   272  		objectMap["width"] = ir.Width
   273  	}
   274  	if ir.Height != nil {
   275  		objectMap["height"] = ir.Height
   276  	}
   277  	return json.Marshal(objectMap)
   278  }
   279  
   280  // ImageRegionCreateBatch batch of image region information to create.
   281  type ImageRegionCreateBatch struct {
   282  	Regions *[]ImageRegionCreateEntry `json:"regions,omitempty"`
   283  }
   284  
   285  // ImageRegionCreateEntry entry associating a region to an image.
   286  type ImageRegionCreateEntry struct {
   287  	// ImageID - Id of the image.
   288  	ImageID *uuid.UUID `json:"imageId,omitempty"`
   289  	// TagID - Id of the tag associated with this region.
   290  	TagID *uuid.UUID `json:"tagId,omitempty"`
   291  	// Left - Coordinate of the left boundary.
   292  	Left *float64 `json:"left,omitempty"`
   293  	// Top - Coordinate of the top boundary.
   294  	Top *float64 `json:"top,omitempty"`
   295  	// Width - Width.
   296  	Width *float64 `json:"width,omitempty"`
   297  	// Height - Height.
   298  	Height *float64 `json:"height,omitempty"`
   299  }
   300  
   301  // ImageRegionCreateResult ...
   302  type ImageRegionCreateResult struct {
   303  	// ImageID - READ-ONLY
   304  	ImageID *uuid.UUID `json:"imageId,omitempty"`
   305  	// RegionID - READ-ONLY
   306  	RegionID *uuid.UUID `json:"regionId,omitempty"`
   307  	// TagName - READ-ONLY
   308  	TagName *string `json:"tagName,omitempty"`
   309  	// Created - READ-ONLY
   310  	Created *date.Time `json:"created,omitempty"`
   311  	// TagID - Id of the tag associated with this region.
   312  	TagID *uuid.UUID `json:"tagId,omitempty"`
   313  	// Left - Coordinate of the left boundary.
   314  	Left *float64 `json:"left,omitempty"`
   315  	// Top - Coordinate of the top boundary.
   316  	Top *float64 `json:"top,omitempty"`
   317  	// Width - Width.
   318  	Width *float64 `json:"width,omitempty"`
   319  	// Height - Height.
   320  	Height *float64 `json:"height,omitempty"`
   321  }
   322  
   323  // MarshalJSON is the custom marshaler for ImageRegionCreateResult.
   324  func (ircr ImageRegionCreateResult) MarshalJSON() ([]byte, error) {
   325  	objectMap := make(map[string]interface{})
   326  	if ircr.TagID != nil {
   327  		objectMap["tagId"] = ircr.TagID
   328  	}
   329  	if ircr.Left != nil {
   330  		objectMap["left"] = ircr.Left
   331  	}
   332  	if ircr.Top != nil {
   333  		objectMap["top"] = ircr.Top
   334  	}
   335  	if ircr.Width != nil {
   336  		objectMap["width"] = ircr.Width
   337  	}
   338  	if ircr.Height != nil {
   339  		objectMap["height"] = ircr.Height
   340  	}
   341  	return json.Marshal(objectMap)
   342  }
   343  
   344  // ImageRegionCreateSummary ...
   345  type ImageRegionCreateSummary struct {
   346  	autorest.Response `json:"-"`
   347  	Created           *[]ImageRegionCreateResult `json:"created,omitempty"`
   348  	Duplicated        *[]ImageRegionCreateEntry  `json:"duplicated,omitempty"`
   349  	Exceeded          *[]ImageRegionCreateEntry  `json:"exceeded,omitempty"`
   350  }
   351  
   352  // ImageRegionProposal ...
   353  type ImageRegionProposal struct {
   354  	autorest.Response `json:"-"`
   355  	// ProjectID - READ-ONLY
   356  	ProjectID *uuid.UUID `json:"projectId,omitempty"`
   357  	// ImageID - READ-ONLY
   358  	ImageID *uuid.UUID `json:"imageId,omitempty"`
   359  	// Proposals - READ-ONLY
   360  	Proposals *[]RegionProposal `json:"proposals,omitempty"`
   361  }
   362  
   363  // MarshalJSON is the custom marshaler for ImageRegionProposal.
   364  func (irp ImageRegionProposal) MarshalJSON() ([]byte, error) {
   365  	objectMap := make(map[string]interface{})
   366  	return json.Marshal(objectMap)
   367  }
   368  
   369  // ImageTag ...
   370  type ImageTag struct {
   371  	// TagID - READ-ONLY
   372  	TagID *uuid.UUID `json:"tagId,omitempty"`
   373  	// TagName - READ-ONLY
   374  	TagName *string `json:"tagName,omitempty"`
   375  	// Created - READ-ONLY
   376  	Created *date.Time `json:"created,omitempty"`
   377  }
   378  
   379  // MarshalJSON is the custom marshaler for ImageTag.
   380  func (it ImageTag) MarshalJSON() ([]byte, error) {
   381  	objectMap := make(map[string]interface{})
   382  	return json.Marshal(objectMap)
   383  }
   384  
   385  // ImageTagCreateBatch batch of image tags.
   386  type ImageTagCreateBatch struct {
   387  	// Tags - Image Tag entries to include in this batch.
   388  	Tags *[]ImageTagCreateEntry `json:"tags,omitempty"`
   389  }
   390  
   391  // ImageTagCreateEntry entry associating a tag to an image.
   392  type ImageTagCreateEntry struct {
   393  	// ImageID - Id of the image.
   394  	ImageID *uuid.UUID `json:"imageId,omitempty"`
   395  	// TagID - Id of the tag.
   396  	TagID *uuid.UUID `json:"tagId,omitempty"`
   397  }
   398  
   399  // ImageTagCreateSummary ...
   400  type ImageTagCreateSummary struct {
   401  	autorest.Response `json:"-"`
   402  	Created           *[]ImageTagCreateEntry `json:"created,omitempty"`
   403  	Duplicated        *[]ImageTagCreateEntry `json:"duplicated,omitempty"`
   404  	Exceeded          *[]ImageTagCreateEntry `json:"exceeded,omitempty"`
   405  }
   406  
   407  // ImageURL image url.
   408  type ImageURL struct {
   409  	// URL - Url of the image.
   410  	URL *string `json:"url,omitempty"`
   411  }
   412  
   413  // ImageURLCreateBatch ...
   414  type ImageURLCreateBatch struct {
   415  	Images *[]ImageURLCreateEntry `json:"images,omitempty"`
   416  	TagIds *[]uuid.UUID           `json:"tagIds,omitempty"`
   417  }
   418  
   419  // ImageURLCreateEntry ...
   420  type ImageURLCreateEntry struct {
   421  	// URL - Url of the image.
   422  	URL     *string      `json:"url,omitempty"`
   423  	TagIds  *[]uuid.UUID `json:"tagIds,omitempty"`
   424  	Regions *[]Region    `json:"regions,omitempty"`
   425  }
   426  
   427  // Int32 ...
   428  type Int32 struct {
   429  	autorest.Response `json:"-"`
   430  	Value             *int32 `json:"value,omitempty"`
   431  }
   432  
   433  // Iteration iteration model to be sent over JSON.
   434  type Iteration struct {
   435  	autorest.Response `json:"-"`
   436  	// ID - READ-ONLY; Gets the id of the iteration.
   437  	ID *uuid.UUID `json:"id,omitempty"`
   438  	// Name - Gets or sets the name of the iteration.
   439  	Name *string `json:"name,omitempty"`
   440  	// Status - READ-ONLY; Gets the current iteration status.
   441  	Status *string `json:"status,omitempty"`
   442  	// Created - READ-ONLY; Gets the time this iteration was completed.
   443  	Created *date.Time `json:"created,omitempty"`
   444  	// LastModified - READ-ONLY; Gets the time this iteration was last modified.
   445  	LastModified *date.Time `json:"lastModified,omitempty"`
   446  	// TrainedAt - READ-ONLY; Gets the time this iteration was last modified.
   447  	TrainedAt *date.Time `json:"trainedAt,omitempty"`
   448  	// ProjectID - READ-ONLY; Gets the project id of the iteration.
   449  	ProjectID *uuid.UUID `json:"projectId,omitempty"`
   450  	// Exportable - READ-ONLY; Whether the iteration can be exported to another format for download.
   451  	Exportable *bool `json:"exportable,omitempty"`
   452  	// ExportableTo - READ-ONLY; A set of platforms this iteration can export to.
   453  	ExportableTo *[]string `json:"exportableTo,omitempty"`
   454  	// DomainID - READ-ONLY; Get or sets a guid of the domain the iteration has been trained on.
   455  	DomainID *uuid.UUID `json:"domainId,omitempty"`
   456  	// ClassificationType - READ-ONLY; Gets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel'
   457  	ClassificationType Classifier `json:"classificationType,omitempty"`
   458  	// TrainingType - READ-ONLY; Gets the training type of the iteration. Possible values include: 'TypeRegular', 'TypeAdvanced'
   459  	TrainingType Type `json:"trainingType,omitempty"`
   460  	// ReservedBudgetInHours - READ-ONLY; Gets the reserved advanced training budget for the iteration.
   461  	ReservedBudgetInHours *int32 `json:"reservedBudgetInHours,omitempty"`
   462  	// TrainingTimeInMinutes - READ-ONLY; Gets the training time for the iteration.
   463  	TrainingTimeInMinutes *int32 `json:"trainingTimeInMinutes,omitempty"`
   464  	// PublishName - READ-ONLY; Name of the published model.
   465  	PublishName *string `json:"publishName,omitempty"`
   466  	// OriginalPublishResourceID - READ-ONLY; Resource Provider Id this iteration was originally published to.
   467  	OriginalPublishResourceID *string `json:"originalPublishResourceId,omitempty"`
   468  }
   469  
   470  // MarshalJSON is the custom marshaler for Iteration.
   471  func (i Iteration) MarshalJSON() ([]byte, error) {
   472  	objectMap := make(map[string]interface{})
   473  	if i.Name != nil {
   474  		objectMap["name"] = i.Name
   475  	}
   476  	return json.Marshal(objectMap)
   477  }
   478  
   479  // IterationPerformance represents the detailed performance data for a trained iteration.
   480  type IterationPerformance struct {
   481  	autorest.Response `json:"-"`
   482  	// PerTagPerformance - READ-ONLY; Gets the per-tag performance details for this iteration.
   483  	PerTagPerformance *[]TagPerformance `json:"perTagPerformance,omitempty"`
   484  	// Precision - READ-ONLY; Gets the precision.
   485  	Precision *float64 `json:"precision,omitempty"`
   486  	// PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision.
   487  	PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"`
   488  	// Recall - READ-ONLY; Gets the recall.
   489  	Recall *float64 `json:"recall,omitempty"`
   490  	// RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall.
   491  	RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"`
   492  	// AveragePrecision - READ-ONLY; Gets the average precision when applicable.
   493  	AveragePrecision *float64 `json:"averagePrecision,omitempty"`
   494  }
   495  
   496  // MarshalJSON is the custom marshaler for IterationPerformance.
   497  func (IP IterationPerformance) MarshalJSON() ([]byte, error) {
   498  	objectMap := make(map[string]interface{})
   499  	return json.Marshal(objectMap)
   500  }
   501  
   502  // ListDomain ...
   503  type ListDomain struct {
   504  	autorest.Response `json:"-"`
   505  	Value             *[]Domain `json:"value,omitempty"`
   506  }
   507  
   508  // ListExport ...
   509  type ListExport struct {
   510  	autorest.Response `json:"-"`
   511  	Value             *[]Export `json:"value,omitempty"`
   512  }
   513  
   514  // ListImage ...
   515  type ListImage struct {
   516  	autorest.Response `json:"-"`
   517  	Value             *[]Image `json:"value,omitempty"`
   518  }
   519  
   520  // ListImagePerformance ...
   521  type ListImagePerformance struct {
   522  	autorest.Response `json:"-"`
   523  	Value             *[]ImagePerformance `json:"value,omitempty"`
   524  }
   525  
   526  // ListIteration ...
   527  type ListIteration struct {
   528  	autorest.Response `json:"-"`
   529  	Value             *[]Iteration `json:"value,omitempty"`
   530  }
   531  
   532  // ListProject ...
   533  type ListProject struct {
   534  	autorest.Response `json:"-"`
   535  	Value             *[]Project `json:"value,omitempty"`
   536  }
   537  
   538  // ListSuggestedTagAndRegion ...
   539  type ListSuggestedTagAndRegion struct {
   540  	autorest.Response `json:"-"`
   541  	Value             *[]SuggestedTagAndRegion `json:"value,omitempty"`
   542  }
   543  
   544  // ListTag ...
   545  type ListTag struct {
   546  	autorest.Response `json:"-"`
   547  	Value             *[]Tag `json:"value,omitempty"`
   548  }
   549  
   550  // Prediction prediction result.
   551  type Prediction struct {
   552  	// Probability - READ-ONLY; Probability of the tag.
   553  	Probability *float64 `json:"probability,omitempty"`
   554  	// TagID - READ-ONLY; Id of the predicted tag.
   555  	TagID *uuid.UUID `json:"tagId,omitempty"`
   556  	// TagName - READ-ONLY; Name of the predicted tag.
   557  	TagName *string `json:"tagName,omitempty"`
   558  	// BoundingBox - READ-ONLY; Bounding box of the prediction.
   559  	BoundingBox *BoundingBox `json:"boundingBox,omitempty"`
   560  }
   561  
   562  // MarshalJSON is the custom marshaler for Prediction.
   563  func (p Prediction) MarshalJSON() ([]byte, error) {
   564  	objectMap := make(map[string]interface{})
   565  	return json.Marshal(objectMap)
   566  }
   567  
   568  // PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint.
   569  type PredictionQueryResult struct {
   570  	autorest.Response `json:"-"`
   571  	// Token - Prediction Query Token.
   572  	Token *PredictionQueryToken `json:"token,omitempty"`
   573  	// Results - READ-ONLY; Result of an prediction request.
   574  	Results *[]StoredImagePrediction `json:"results,omitempty"`
   575  }
   576  
   577  // MarshalJSON is the custom marshaler for PredictionQueryResult.
   578  func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error) {
   579  	objectMap := make(map[string]interface{})
   580  	if pqr.Token != nil {
   581  		objectMap["token"] = pqr.Token
   582  	}
   583  	return json.Marshal(objectMap)
   584  }
   585  
   586  // PredictionQueryTag ...
   587  type PredictionQueryTag struct {
   588  	ID           *uuid.UUID `json:"id,omitempty"`
   589  	MinThreshold *float64   `json:"minThreshold,omitempty"`
   590  	MaxThreshold *float64   `json:"maxThreshold,omitempty"`
   591  }
   592  
   593  // PredictionQueryToken ...
   594  type PredictionQueryToken struct {
   595  	Session      *string `json:"session,omitempty"`
   596  	Continuation *string `json:"continuation,omitempty"`
   597  	MaxCount     *int32  `json:"maxCount,omitempty"`
   598  	// OrderBy - Possible values include: 'Newest', 'Oldest', 'Suggested'
   599  	OrderBy     OrderBy               `json:"orderBy,omitempty"`
   600  	Tags        *[]PredictionQueryTag `json:"tags,omitempty"`
   601  	IterationID *uuid.UUID            `json:"iterationId,omitempty"`
   602  	StartTime   *date.Time            `json:"startTime,omitempty"`
   603  	EndTime     *date.Time            `json:"endTime,omitempty"`
   604  	Application *string               `json:"application,omitempty"`
   605  }
   606  
   607  // Project represents a project.
   608  type Project struct {
   609  	autorest.Response `json:"-"`
   610  	// ID - READ-ONLY; Gets the project id.
   611  	ID *uuid.UUID `json:"id,omitempty"`
   612  	// Name - Gets or sets the name of the project.
   613  	Name *string `json:"name,omitempty"`
   614  	// Description - Gets or sets the description of the project.
   615  	Description *string `json:"description,omitempty"`
   616  	// Settings - Gets or sets the project settings.
   617  	Settings *ProjectSettings `json:"settings,omitempty"`
   618  	// Created - READ-ONLY; Gets the date this project was created.
   619  	Created *date.Time `json:"created,omitempty"`
   620  	// LastModified - READ-ONLY; Gets the date this project was last modified.
   621  	LastModified *date.Time `json:"lastModified,omitempty"`
   622  	// ThumbnailURI - READ-ONLY; Gets the thumbnail url representing the image.
   623  	ThumbnailURI *string `json:"thumbnailUri,omitempty"`
   624  	// DrModeEnabled - READ-ONLY; Gets if the Disaster Recovery (DR) mode is on, indicating the project is temporarily read-only.
   625  	DrModeEnabled *bool `json:"drModeEnabled,omitempty"`
   626  }
   627  
   628  // MarshalJSON is the custom marshaler for Project.
   629  func (p Project) MarshalJSON() ([]byte, error) {
   630  	objectMap := make(map[string]interface{})
   631  	if p.Name != nil {
   632  		objectMap["name"] = p.Name
   633  	}
   634  	if p.Description != nil {
   635  		objectMap["description"] = p.Description
   636  	}
   637  	if p.Settings != nil {
   638  		objectMap["settings"] = p.Settings
   639  	}
   640  	return json.Marshal(objectMap)
   641  }
   642  
   643  // ProjectSettings represents settings associated with a project.
   644  type ProjectSettings struct {
   645  	// DomainID - Gets or sets the id of the Domain to use with this project.
   646  	DomainID *uuid.UUID `json:"domainId,omitempty"`
   647  	// ClassificationType - Gets or sets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel'
   648  	ClassificationType Classifier `json:"classificationType,omitempty"`
   649  	// TargetExportPlatforms - A list of ExportPlatform that the trained model should be able to support.
   650  	TargetExportPlatforms *[]string `json:"targetExportPlatforms,omitempty"`
   651  	// UseNegativeSet - READ-ONLY; Indicates if negative set is being used.
   652  	UseNegativeSet *bool `json:"useNegativeSet,omitempty"`
   653  	// DetectionParameters - READ-ONLY; Detection parameters in use, if any.
   654  	DetectionParameters *string `json:"detectionParameters,omitempty"`
   655  	// ImageProcessingSettings - Gets or sets image preprocessing settings.
   656  	ImageProcessingSettings *ImageProcessingSettings `json:"imageProcessingSettings,omitempty"`
   657  }
   658  
   659  // MarshalJSON is the custom marshaler for ProjectSettings.
   660  func (ps ProjectSettings) MarshalJSON() ([]byte, error) {
   661  	objectMap := make(map[string]interface{})
   662  	if ps.DomainID != nil {
   663  		objectMap["domainId"] = ps.DomainID
   664  	}
   665  	if ps.ClassificationType != "" {
   666  		objectMap["classificationType"] = ps.ClassificationType
   667  	}
   668  	if ps.TargetExportPlatforms != nil {
   669  		objectMap["targetExportPlatforms"] = ps.TargetExportPlatforms
   670  	}
   671  	if ps.ImageProcessingSettings != nil {
   672  		objectMap["imageProcessingSettings"] = ps.ImageProcessingSettings
   673  	}
   674  	return json.Marshal(objectMap)
   675  }
   676  
   677  // Region ...
   678  type Region struct {
   679  	// TagID - Id of the tag associated with this region.
   680  	TagID *uuid.UUID `json:"tagId,omitempty"`
   681  	// Left - Coordinate of the left boundary.
   682  	Left *float64 `json:"left,omitempty"`
   683  	// Top - Coordinate of the top boundary.
   684  	Top *float64 `json:"top,omitempty"`
   685  	// Width - Width.
   686  	Width *float64 `json:"width,omitempty"`
   687  	// Height - Height.
   688  	Height *float64 `json:"height,omitempty"`
   689  }
   690  
   691  // RegionProposal ...
   692  type RegionProposal struct {
   693  	// Confidence - READ-ONLY
   694  	Confidence *float64 `json:"confidence,omitempty"`
   695  	// BoundingBox - READ-ONLY
   696  	BoundingBox *BoundingBox `json:"boundingBox,omitempty"`
   697  }
   698  
   699  // MarshalJSON is the custom marshaler for RegionProposal.
   700  func (rp RegionProposal) MarshalJSON() ([]byte, error) {
   701  	objectMap := make(map[string]interface{})
   702  	return json.Marshal(objectMap)
   703  }
   704  
   705  // SetInt32 ...
   706  type SetInt32 struct {
   707  	autorest.Response `json:"-"`
   708  	Value             map[string]*int32 `json:"value"`
   709  }
   710  
   711  // MarshalJSON is the custom marshaler for SetInt32.
   712  func (si3 SetInt32) MarshalJSON() ([]byte, error) {
   713  	objectMap := make(map[string]interface{})
   714  	if si3.Value != nil {
   715  		objectMap["value"] = si3.Value
   716  	}
   717  	return json.Marshal(objectMap)
   718  }
   719  
   720  // StoredImagePrediction result of an image prediction request.
   721  type StoredImagePrediction struct {
   722  	// ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image.
   723  	ResizedImageURI *string `json:"resizedImageUri,omitempty"`
   724  	// ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image.
   725  	ThumbnailURI *string `json:"thumbnailUri,omitempty"`
   726  	// OriginalImageURI - READ-ONLY; The URI to the original prediction image.
   727  	OriginalImageURI *string `json:"originalImageUri,omitempty"`
   728  	// Domain - READ-ONLY; Domain used for the prediction.
   729  	Domain *uuid.UUID `json:"domain,omitempty"`
   730  	// ID - READ-ONLY; Prediction Id.
   731  	ID *uuid.UUID `json:"id,omitempty"`
   732  	// Project - READ-ONLY; Project Id.
   733  	Project *uuid.UUID `json:"project,omitempty"`
   734  	// Iteration - READ-ONLY; Iteration Id.
   735  	Iteration *uuid.UUID `json:"iteration,omitempty"`
   736  	// Created - READ-ONLY; Date this prediction was created.
   737  	Created *date.Time `json:"created,omitempty"`
   738  	// Predictions - READ-ONLY; List of predictions.
   739  	Predictions *[]Prediction `json:"predictions,omitempty"`
   740  }
   741  
   742  // MarshalJSON is the custom marshaler for StoredImagePrediction.
   743  func (sip StoredImagePrediction) MarshalJSON() ([]byte, error) {
   744  	objectMap := make(map[string]interface{})
   745  	return json.Marshal(objectMap)
   746  }
   747  
   748  // StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image.
   749  type StoredSuggestedTagAndRegion struct {
   750  	// Width - READ-ONLY; Width of the resized image.
   751  	Width *int32 `json:"width,omitempty"`
   752  	// Height - READ-ONLY; Height of the resized image.
   753  	Height *int32 `json:"height,omitempty"`
   754  	// ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image.
   755  	ResizedImageURI *string `json:"resizedImageUri,omitempty"`
   756  	// ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image.
   757  	ThumbnailURI *string `json:"thumbnailUri,omitempty"`
   758  	// OriginalImageURI - READ-ONLY; The URI to the original prediction image.
   759  	OriginalImageURI *string `json:"originalImageUri,omitempty"`
   760  	// Domain - READ-ONLY; Domain used for the prediction.
   761  	Domain *uuid.UUID `json:"domain,omitempty"`
   762  	// ID - READ-ONLY; Prediction Id.
   763  	ID *uuid.UUID `json:"id,omitempty"`
   764  	// Project - READ-ONLY; Project Id.
   765  	Project *uuid.UUID `json:"project,omitempty"`
   766  	// Iteration - READ-ONLY; Iteration Id.
   767  	Iteration *uuid.UUID `json:"iteration,omitempty"`
   768  	// Created - READ-ONLY; Date this prediction was created.
   769  	Created *date.Time `json:"created,omitempty"`
   770  	// Predictions - READ-ONLY; List of predictions.
   771  	Predictions *[]Prediction `json:"predictions,omitempty"`
   772  	// PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image.
   773  	PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"`
   774  }
   775  
   776  // MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion.
   777  func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error) {
   778  	objectMap := make(map[string]interface{})
   779  	return json.Marshal(objectMap)
   780  }
   781  
   782  // SuggestedTagAndRegion result of a suggested tags and regions request.
   783  type SuggestedTagAndRegion struct {
   784  	// ID - READ-ONLY; Prediction Id.
   785  	ID *uuid.UUID `json:"id,omitempty"`
   786  	// Project - READ-ONLY; Project Id.
   787  	Project *uuid.UUID `json:"project,omitempty"`
   788  	// Iteration - READ-ONLY; Iteration Id.
   789  	Iteration *uuid.UUID `json:"iteration,omitempty"`
   790  	// Created - READ-ONLY; Date this prediction was created.
   791  	Created *date.Time `json:"created,omitempty"`
   792  	// Predictions - READ-ONLY; List of predictions.
   793  	Predictions *[]Prediction `json:"predictions,omitempty"`
   794  	// PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image.
   795  	PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"`
   796  }
   797  
   798  // MarshalJSON is the custom marshaler for SuggestedTagAndRegion.
   799  func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error) {
   800  	objectMap := make(map[string]interface{})
   801  	return json.Marshal(objectMap)
   802  }
   803  
   804  // SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids
   805  // for the next query.
   806  type SuggestedTagAndRegionQuery struct {
   807  	autorest.Response `json:"-"`
   808  	// Token - Contains properties we need to fetch suggested tags for.
   809  	Token *SuggestedTagAndRegionQueryToken `json:"token,omitempty"`
   810  	// Results - READ-ONLY; Result of a suggested tags and regions request of the untagged image.
   811  	Results *[]StoredSuggestedTagAndRegion `json:"results,omitempty"`
   812  }
   813  
   814  // MarshalJSON is the custom marshaler for SuggestedTagAndRegionQuery.
   815  func (starq SuggestedTagAndRegionQuery) MarshalJSON() ([]byte, error) {
   816  	objectMap := make(map[string]interface{})
   817  	if starq.Token != nil {
   818  		objectMap["token"] = starq.Token
   819  	}
   820  	return json.Marshal(objectMap)
   821  }
   822  
   823  // SuggestedTagAndRegionQueryToken contains properties we need to fetch suggested tags for. For the first
   824  // call, Session and continuation set to null.
   825  // Then on subsequent calls, uses the session/continuation from the previous SuggestedTagAndRegionQuery
   826  // result to fetch additional results.
   827  type SuggestedTagAndRegionQueryToken struct {
   828  	// TagIds - Existing TagIds in project to filter suggested tags on.
   829  	TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
   830  	// Threshold - Confidence threshold to filter suggested tags on.
   831  	Threshold *float64 `json:"threshold,omitempty"`
   832  	// Session - SessionId for database query. Initially set to null but later used to paginate.
   833  	Session *string `json:"session,omitempty"`
   834  	// Continuation - Continuation Id for database pagination. Initially null but later used to paginate.
   835  	Continuation *string `json:"continuation,omitempty"`
   836  	// MaxCount - Maximum number of results you want to be returned in the response.
   837  	MaxCount *int32 `json:"maxCount,omitempty"`
   838  	// SortBy - OrderBy. Ordering mechanism for your results. Possible values include: 'UncertaintyAscending', 'UncertaintyDescending'
   839  	SortBy SortBy `json:"sortBy,omitempty"`
   840  }
   841  
   842  // Tag represents a Tag.
   843  type Tag struct {
   844  	autorest.Response `json:"-"`
   845  	// ID - READ-ONLY; Gets the Tag ID.
   846  	ID *uuid.UUID `json:"id,omitempty"`
   847  	// Name - Gets or sets the name of the tag.
   848  	Name *string `json:"name,omitempty"`
   849  	// Description - Gets or sets the description of the tag.
   850  	Description *string `json:"description,omitempty"`
   851  	// Type - Gets or sets the type of the tag. Possible values include: 'Regular', 'Negative'
   852  	Type TagType `json:"type,omitempty"`
   853  	// ImageCount - READ-ONLY; Gets the number of images with this tag.
   854  	ImageCount *int32 `json:"imageCount,omitempty"`
   855  }
   856  
   857  // MarshalJSON is the custom marshaler for Tag.
   858  func (t Tag) MarshalJSON() ([]byte, error) {
   859  	objectMap := make(map[string]interface{})
   860  	if t.Name != nil {
   861  		objectMap["name"] = t.Name
   862  	}
   863  	if t.Description != nil {
   864  		objectMap["description"] = t.Description
   865  	}
   866  	if t.Type != "" {
   867  		objectMap["type"] = t.Type
   868  	}
   869  	return json.Marshal(objectMap)
   870  }
   871  
   872  // TagFilter model that query for counting of images whose suggested tags match given tags and their
   873  // probability are greater than or equal to the given threshold.
   874  type TagFilter struct {
   875  	// TagIds - Existing TagIds in project to get suggested tags count for.
   876  	TagIds *[]uuid.UUID `json:"tagIds,omitempty"`
   877  	// Threshold - Confidence threshold to filter suggested tags on.
   878  	Threshold *float64 `json:"threshold,omitempty"`
   879  }
   880  
   881  // TagPerformance represents performance data for a particular tag in a trained iteration.
   882  type TagPerformance struct {
   883  	// ID - READ-ONLY
   884  	ID *uuid.UUID `json:"id,omitempty"`
   885  	// Name - READ-ONLY
   886  	Name *string `json:"name,omitempty"`
   887  	// Precision - READ-ONLY; Gets the precision.
   888  	Precision *float64 `json:"precision,omitempty"`
   889  	// PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision.
   890  	PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"`
   891  	// Recall - READ-ONLY; Gets the recall.
   892  	Recall *float64 `json:"recall,omitempty"`
   893  	// RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall.
   894  	RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"`
   895  	// AveragePrecision - READ-ONLY; Gets the average precision when applicable.
   896  	AveragePrecision *float64 `json:"averagePrecision,omitempty"`
   897  }
   898  
   899  // MarshalJSON is the custom marshaler for TagPerformance.
   900  func (tp TagPerformance) MarshalJSON() ([]byte, error) {
   901  	objectMap := make(map[string]interface{})
   902  	return json.Marshal(objectMap)
   903  }
   904  

View as plain text