github.com/akamai/AkamaiOPEN-edgegrid-golang@v1.2.2/api-endpoints-v2/parameters.go (about)

     1  package apiendpoints
     2  
     3  type Parameters struct {
     4  	APIChildParameters      []*Parameters             `json:"apiChildParameters"`
     5  	APIParameterID          int                       `json:"apiParameterId"`
     6  	APIParameterRequired    bool                      `json:"apiParameterRequired"`
     7  	APIParameterName        string                    `json:"apiParameterName"`
     8  	APIParameterLocation    APIParameterLocationValue `json:"apiParameterLocation"`
     9  	APIParameterType        APIParameterTypeValue     `json:"apiParameterType"`
    10  	APIParameterNotes       *string                   `json:"apiParameterNotes"`
    11  	APIParamLogicID         int                       `json:"apiParamLogicId"`
    12  	Array                   bool                      `json:"array"`
    13  	APIParameterRestriction struct {
    14  		RangeRestriction struct {
    15  			RangeMin int `json:"rangeMin"`
    16  			RangeMax int `json:"rangeMax"`
    17  		} `json:"rangeRestriction"`
    18  	} `json:"apiParameterRestriction"`
    19  }
    20  
    21  type APIParameterLocationValue string
    22  type APIParameterTypeValue string
    23  
    24  const (
    25  	APIParameterLocationHeader APIParameterLocationValue = "header"
    26  	APIParameterLocationCookie APIParameterLocationValue = "cookie"
    27  	APIParameterLocationQuery  APIParameterLocationValue = "query"
    28  	APIParameterLocationBody   APIParameterLocationValue = "body"
    29  
    30  	APIParameterTypeString  APIParameterTypeValue = "string"
    31  	APIParameterTypeInteger APIParameterTypeValue = "integer"
    32  	APIParameterTypeNumber  APIParameterTypeValue = "number"
    33  	APIParameterTypeBoolean APIParameterTypeValue = "boolean"
    34  	APIParameterTypeJson    APIParameterTypeValue = "json/xml"
    35  	APIParameterTypeXml     APIParameterTypeValue = "json/xml"
    36  )