constants.go raw

   1  //go:build go1.18
   2  // +build go1.18
   3  
   4  // Copyright (c) Microsoft Corporation. All rights reserved.
   5  // Licensed under the MIT License. See License.txt in the project root for license information.
   6  // Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
   7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
   8  
   9  package armresourcegraph
  10  
  11  const (
  12  	moduleName    = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph"
  13  	moduleVersion = "v0.9.0"
  14  )
  15  
  16  // AuthorizationScopeFilter - Defines what level of authorization resources should be returned based on the which subscriptions
  17  // and management groups are passed as scopes.
  18  type AuthorizationScopeFilter string
  19  
  20  const (
  21  	AuthorizationScopeFilterAtScopeAboveAndBelow AuthorizationScopeFilter = "AtScopeAboveAndBelow"
  22  	AuthorizationScopeFilterAtScopeAndAbove      AuthorizationScopeFilter = "AtScopeAndAbove"
  23  	AuthorizationScopeFilterAtScopeAndBelow      AuthorizationScopeFilter = "AtScopeAndBelow"
  24  	AuthorizationScopeFilterAtScopeExact         AuthorizationScopeFilter = "AtScopeExact"
  25  )
  26  
  27  // PossibleAuthorizationScopeFilterValues returns the possible values for the AuthorizationScopeFilter const type.
  28  func PossibleAuthorizationScopeFilterValues() []AuthorizationScopeFilter {
  29  	return []AuthorizationScopeFilter{
  30  		AuthorizationScopeFilterAtScopeAboveAndBelow,
  31  		AuthorizationScopeFilterAtScopeAndAbove,
  32  		AuthorizationScopeFilterAtScopeAndBelow,
  33  		AuthorizationScopeFilterAtScopeExact,
  34  	}
  35  }
  36  
  37  // ColumnDataType - Data type of a column in a table.
  38  type ColumnDataType string
  39  
  40  const (
  41  	ColumnDataTypeBoolean  ColumnDataType = "boolean"
  42  	ColumnDataTypeDatetime ColumnDataType = "datetime"
  43  	ColumnDataTypeInteger  ColumnDataType = "integer"
  44  	ColumnDataTypeNumber   ColumnDataType = "number"
  45  	ColumnDataTypeObject   ColumnDataType = "object"
  46  	ColumnDataTypeString   ColumnDataType = "string"
  47  )
  48  
  49  // PossibleColumnDataTypeValues returns the possible values for the ColumnDataType const type.
  50  func PossibleColumnDataTypeValues() []ColumnDataType {
  51  	return []ColumnDataType{
  52  		ColumnDataTypeBoolean,
  53  		ColumnDataTypeDatetime,
  54  		ColumnDataTypeInteger,
  55  		ColumnDataTypeNumber,
  56  		ColumnDataTypeObject,
  57  		ColumnDataTypeString,
  58  	}
  59  }
  60  
  61  // FacetSortOrder - The sorting order by the selected column (count by default).
  62  type FacetSortOrder string
  63  
  64  const (
  65  	FacetSortOrderAsc  FacetSortOrder = "asc"
  66  	FacetSortOrderDesc FacetSortOrder = "desc"
  67  )
  68  
  69  // PossibleFacetSortOrderValues returns the possible values for the FacetSortOrder const type.
  70  func PossibleFacetSortOrderValues() []FacetSortOrder {
  71  	return []FacetSortOrder{
  72  		FacetSortOrderAsc,
  73  		FacetSortOrderDesc,
  74  	}
  75  }
  76  
  77  // ResultFormat - Defines in which format query result returned.
  78  type ResultFormat string
  79  
  80  const (
  81  	ResultFormatObjectArray ResultFormat = "objectArray"
  82  	ResultFormatTable       ResultFormat = "table"
  83  )
  84  
  85  // PossibleResultFormatValues returns the possible values for the ResultFormat const type.
  86  func PossibleResultFormatValues() []ResultFormat {
  87  	return []ResultFormat{
  88  		ResultFormatObjectArray,
  89  		ResultFormatTable,
  90  	}
  91  }
  92  
  93  // ResultTruncated - Indicates whether the query results are truncated.
  94  type ResultTruncated string
  95  
  96  const (
  97  	ResultTruncatedFalse ResultTruncated = "false"
  98  	ResultTruncatedTrue  ResultTruncated = "true"
  99  )
 100  
 101  // PossibleResultTruncatedValues returns the possible values for the ResultTruncated const type.
 102  func PossibleResultTruncatedValues() []ResultTruncated {
 103  	return []ResultTruncated{
 104  		ResultTruncatedFalse,
 105  		ResultTruncatedTrue,
 106  	}
 107  }
 108