github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/apiguard/tykgen/model_session_state.go (about)

     1  /*
     2   * Tyk Gateway API
     3   *
     4   * The Tyk Gateway API is the primary means for integrating your application with the Tyk API Gateway system. This API is very small, and has no granular permissions system. It is intended to be used purely for internal automation and integration.  **Warning: Under no circumstances should outside parties be granted access to this API.**  The Tyk Gateway API is capable of:  * Managing session objects (key generation) * Managing and listing policies * Managing and listing API Definitions (only when not using the Dashboard) * Hot reloads / reloading a cluster configuration * OAuth client creation (only when not using the Dashboard)   In order to use the Gateway API, you'll need to set the `secret` parameter in your tyk.conf file.  The shared secret you set should then be sent along as a header with each Gateway API Request in order for it to be successful:  ``` x-tyk-authorization: <your-secret> ``` <br/> <b>The Tyk Gateway API is subsumed by the Tyk Dashboard API in Pro installations.</b>
     5   *
     6   * API version: 5.5.0
     7   * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
     8   */
     9  package swagger
    10  
    11  // There's a data structure that's based on this and it's used for Protocol Buffer support, make sure to update \"coprocess/proto/coprocess_session_state.proto\" and generate the bindings using: cd coprocess/proto && ./update_bindings.sh
    12  type SessionState struct {
    13  	Tags []string `json:"tags,omitempty"`
    14  	AccessRights map[string]AccessDefinition `json:"access_rights,omitempty"`
    15  	Alias string `json:"alias,omitempty"`
    16  	Allowance float64 `json:"allowance,omitempty"`
    17  	ApplyPolicies []string `json:"apply_policies,omitempty"`
    18  	ApplyPolicyId string `json:"apply_policy_id,omitempty"`
    19  	BasicAuthData *SessionStateBasicAuthData `json:"basic_auth_data,omitempty"`
    20  	Certificate string `json:"certificate,omitempty"`
    21  	DataExpires int64 `json:"data_expires,omitempty"`
    22  	EnableDetailRecording bool `json:"enable_detail_recording,omitempty"`
    23  	Expires int64 `json:"expires,omitempty"`
    24  	HmacEnabled bool `json:"hmac_enabled,omitempty"`
    25  	HmacString string `json:"hmac_string,omitempty"`
    26  	IdExtractorDeadline int64 `json:"id_extractor_deadline,omitempty"`
    27  	IsInactive bool `json:"is_inactive,omitempty"`
    28  	JwtData *SessionStateJwtData `json:"jwt_data,omitempty"`
    29  	LastCheck int64 `json:"last_check,omitempty"`
    30  	LastUpdated string `json:"last_updated,omitempty"`
    31  	MetaData map[string]interface{} `json:"meta_data,omitempty"`
    32  	Monitor *SessionStateMonitor `json:"monitor,omitempty"`
    33  	OauthClientId string `json:"oauth_client_id,omitempty"`
    34  	OauthKeys map[string]string `json:"oauth_keys,omitempty"`
    35  	OrgId string `json:"org_id,omitempty"`
    36  	Per float64 `json:"per,omitempty"`
    37  	QuotaMax int64 `json:"quota_max,omitempty"`
    38  	QuotaRemaining int64 `json:"quota_remaining,omitempty"`
    39  	QuotaRenewalRate int64 `json:"quota_renewal_rate,omitempty"`
    40  	QuotaRenews int64 `json:"quota_renews,omitempty"`
    41  	Rate float64 `json:"rate,omitempty"`
    42  	SessionLifetime int64 `json:"session_lifetime,omitempty"`
    43  	Smoothing *RateLimitSmoothing `json:"smoothing,omitempty"`
    44  	ThrottleInterval float64 `json:"throttle_interval,omitempty"`
    45  	ThrottleRetryLimit int64 `json:"throttle_retry_limit,omitempty"`
    46  }