1package resourcegraph 2 3// Copyright (c) Microsoft and contributors. All rights reserved. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// 14// See the License for the specific language governing permissions and 15// limitations under the License. 16// 17// Code generated by Microsoft (R) AutoRest Code Generator. 18// Changes may cause incorrect behavior and will be lost if the code is regenerated. 19 20// ColumnDataType enumerates the values for column data type. 21type ColumnDataType string 22 23const ( 24 // Boolean ... 25 Boolean ColumnDataType = "boolean" 26 // Integer ... 27 Integer ColumnDataType = "integer" 28 // Number ... 29 Number ColumnDataType = "number" 30 // Object ... 31 Object ColumnDataType = "object" 32 // String ... 33 String ColumnDataType = "string" 34) 35 36// PossibleColumnDataTypeValues returns an array of possible values for the ColumnDataType const type. 37func PossibleColumnDataTypeValues() []ColumnDataType { 38 return []ColumnDataType{Boolean, Integer, Number, Object, String} 39} 40 41// FacetSortOrder enumerates the values for facet sort order. 42type FacetSortOrder string 43 44const ( 45 // Asc ... 46 Asc FacetSortOrder = "asc" 47 // Desc ... 48 Desc FacetSortOrder = "desc" 49) 50 51// PossibleFacetSortOrderValues returns an array of possible values for the FacetSortOrder const type. 52func PossibleFacetSortOrderValues() []FacetSortOrder { 53 return []FacetSortOrder{Asc, Desc} 54} 55 56// ResultFormat enumerates the values for result format. 57type ResultFormat string 58 59const ( 60 // ResultFormatObjectArray ... 61 ResultFormatObjectArray ResultFormat = "objectArray" 62 // ResultFormatTable ... 63 ResultFormatTable ResultFormat = "table" 64) 65 66// PossibleResultFormatValues returns an array of possible values for the ResultFormat const type. 67func PossibleResultFormatValues() []ResultFormat { 68 return []ResultFormat{ResultFormatObjectArray, ResultFormatTable} 69} 70 71// ResultTruncated enumerates the values for result truncated. 72type ResultTruncated string 73 74const ( 75 // False ... 76 False ResultTruncated = "false" 77 // True ... 78 True ResultTruncated = "true" 79) 80 81// PossibleResultTruncatedValues returns an array of possible values for the ResultTruncated const type. 82func PossibleResultTruncatedValues() []ResultTruncated { 83 return []ResultTruncated{False, True} 84} 85 86// ResultType enumerates the values for result type. 87type ResultType string 88 89const ( 90 // ResultTypeFacet ... 91 ResultTypeFacet ResultType = "Facet" 92 // ResultTypeFacetError ... 93 ResultTypeFacetError ResultType = "FacetError" 94 // ResultTypeFacetResult ... 95 ResultTypeFacetResult ResultType = "FacetResult" 96) 97 98// PossibleResultTypeValues returns an array of possible values for the ResultType const type. 99func PossibleResultTypeValues() []ResultType { 100 return []ResultType{ResultTypeFacet, ResultTypeFacetError, ResultTypeFacetResult} 101} 102