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// ResultKind enumerates the values for result kind. 57type ResultKind string 58 59const ( 60 // Basic ... 61 Basic ResultKind = "basic" 62) 63 64// PossibleResultKindValues returns an array of possible values for the ResultKind const type. 65func PossibleResultKindValues() []ResultKind { 66 return []ResultKind{Basic} 67} 68 69// ResultTruncated enumerates the values for result truncated. 70type ResultTruncated string 71 72const ( 73 // False ... 74 False ResultTruncated = "false" 75 // True ... 76 True ResultTruncated = "true" 77) 78 79// PossibleResultTruncatedValues returns an array of possible values for the ResultTruncated const type. 80func PossibleResultTruncatedValues() []ResultTruncated { 81 return []ResultTruncated{False, True} 82} 83 84// ResultType enumerates the values for result type. 85type ResultType string 86 87const ( 88 // ResultTypeFacet ... 89 ResultTypeFacet ResultType = "Facet" 90 // ResultTypeFacetError ... 91 ResultTypeFacetError ResultType = "FacetError" 92 // ResultTypeFacetResult ... 93 ResultTypeFacetResult ResultType = "FacetResult" 94) 95 96// PossibleResultTypeValues returns an array of possible values for the ResultType const type. 97func PossibleResultTypeValues() []ResultType { 98 return []ResultType{ResultTypeFacet, ResultTypeFacetError, ResultTypeFacetResult} 99} 100