mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
405 lines
15 KiB
405 lines
15 KiB
// Code generated by ent, DO NOT EDIT. |
|
|
|
package devicerequest |
|
|
|
import ( |
|
"time" |
|
|
|
"entgo.io/ent/dialect/sql" |
|
"github.com/dexidp/dex/storage/ent/db/predicate" |
|
) |
|
|
|
// ID filters vertices based on their ID field. |
|
func ID(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDEQ applies the EQ predicate on the ID field. |
|
func IDEQ(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDNEQ applies the NEQ predicate on the ID field. |
|
func IDNEQ(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldID, id)) |
|
} |
|
|
|
// IDIn applies the In predicate on the ID field. |
|
func IDIn(ids ...int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldID, ids...)) |
|
} |
|
|
|
// IDNotIn applies the NotIn predicate on the ID field. |
|
func IDNotIn(ids ...int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldID, ids...)) |
|
} |
|
|
|
// IDGT applies the GT predicate on the ID field. |
|
func IDGT(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldID, id)) |
|
} |
|
|
|
// IDGTE applies the GTE predicate on the ID field. |
|
func IDGTE(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldID, id)) |
|
} |
|
|
|
// IDLT applies the LT predicate on the ID field. |
|
func IDLT(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldID, id)) |
|
} |
|
|
|
// IDLTE applies the LTE predicate on the ID field. |
|
func IDLTE(id int) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldID, id)) |
|
} |
|
|
|
// UserCode applies equality check predicate on the "user_code" field. It's identical to UserCodeEQ. |
|
func UserCode(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldUserCode, v)) |
|
} |
|
|
|
// DeviceCode applies equality check predicate on the "device_code" field. It's identical to DeviceCodeEQ. |
|
func DeviceCode(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldDeviceCode, v)) |
|
} |
|
|
|
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ. |
|
func ClientID(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldClientID, v)) |
|
} |
|
|
|
// ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ. |
|
func ClientSecret(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldClientSecret, v)) |
|
} |
|
|
|
// Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ. |
|
func Expiry(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldExpiry, v)) |
|
} |
|
|
|
// UserCodeEQ applies the EQ predicate on the "user_code" field. |
|
func UserCodeEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeNEQ applies the NEQ predicate on the "user_code" field. |
|
func UserCodeNEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeIn applies the In predicate on the "user_code" field. |
|
func UserCodeIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldUserCode, vs...)) |
|
} |
|
|
|
// UserCodeNotIn applies the NotIn predicate on the "user_code" field. |
|
func UserCodeNotIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldUserCode, vs...)) |
|
} |
|
|
|
// UserCodeGT applies the GT predicate on the "user_code" field. |
|
func UserCodeGT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeGTE applies the GTE predicate on the "user_code" field. |
|
func UserCodeGTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeLT applies the LT predicate on the "user_code" field. |
|
func UserCodeLT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeLTE applies the LTE predicate on the "user_code" field. |
|
func UserCodeLTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeContains applies the Contains predicate on the "user_code" field. |
|
func UserCodeContains(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContains(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeHasPrefix applies the HasPrefix predicate on the "user_code" field. |
|
func UserCodeHasPrefix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasPrefix(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeHasSuffix applies the HasSuffix predicate on the "user_code" field. |
|
func UserCodeHasSuffix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasSuffix(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeEqualFold applies the EqualFold predicate on the "user_code" field. |
|
func UserCodeEqualFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEqualFold(FieldUserCode, v)) |
|
} |
|
|
|
// UserCodeContainsFold applies the ContainsFold predicate on the "user_code" field. |
|
func UserCodeContainsFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContainsFold(FieldUserCode, v)) |
|
} |
|
|
|
// DeviceCodeEQ applies the EQ predicate on the "device_code" field. |
|
func DeviceCodeEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeNEQ applies the NEQ predicate on the "device_code" field. |
|
func DeviceCodeNEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeIn applies the In predicate on the "device_code" field. |
|
func DeviceCodeIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldDeviceCode, vs...)) |
|
} |
|
|
|
// DeviceCodeNotIn applies the NotIn predicate on the "device_code" field. |
|
func DeviceCodeNotIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldDeviceCode, vs...)) |
|
} |
|
|
|
// DeviceCodeGT applies the GT predicate on the "device_code" field. |
|
func DeviceCodeGT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeGTE applies the GTE predicate on the "device_code" field. |
|
func DeviceCodeGTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeLT applies the LT predicate on the "device_code" field. |
|
func DeviceCodeLT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeLTE applies the LTE predicate on the "device_code" field. |
|
func DeviceCodeLTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeContains applies the Contains predicate on the "device_code" field. |
|
func DeviceCodeContains(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContains(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeHasPrefix applies the HasPrefix predicate on the "device_code" field. |
|
func DeviceCodeHasPrefix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasPrefix(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeHasSuffix applies the HasSuffix predicate on the "device_code" field. |
|
func DeviceCodeHasSuffix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasSuffix(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeEqualFold applies the EqualFold predicate on the "device_code" field. |
|
func DeviceCodeEqualFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEqualFold(FieldDeviceCode, v)) |
|
} |
|
|
|
// DeviceCodeContainsFold applies the ContainsFold predicate on the "device_code" field. |
|
func DeviceCodeContainsFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContainsFold(FieldDeviceCode, v)) |
|
} |
|
|
|
// ClientIDEQ applies the EQ predicate on the "client_id" field. |
|
func ClientIDEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDNEQ applies the NEQ predicate on the "client_id" field. |
|
func ClientIDNEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDIn applies the In predicate on the "client_id" field. |
|
func ClientIDIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldClientID, vs...)) |
|
} |
|
|
|
// ClientIDNotIn applies the NotIn predicate on the "client_id" field. |
|
func ClientIDNotIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldClientID, vs...)) |
|
} |
|
|
|
// ClientIDGT applies the GT predicate on the "client_id" field. |
|
func ClientIDGT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDGTE applies the GTE predicate on the "client_id" field. |
|
func ClientIDGTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDLT applies the LT predicate on the "client_id" field. |
|
func ClientIDLT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDLTE applies the LTE predicate on the "client_id" field. |
|
func ClientIDLTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDContains applies the Contains predicate on the "client_id" field. |
|
func ClientIDContains(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContains(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field. |
|
func ClientIDHasPrefix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasPrefix(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field. |
|
func ClientIDHasSuffix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasSuffix(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDEqualFold applies the EqualFold predicate on the "client_id" field. |
|
func ClientIDEqualFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEqualFold(FieldClientID, v)) |
|
} |
|
|
|
// ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field. |
|
func ClientIDContainsFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContainsFold(FieldClientID, v)) |
|
} |
|
|
|
// ClientSecretEQ applies the EQ predicate on the "client_secret" field. |
|
func ClientSecretEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretNEQ applies the NEQ predicate on the "client_secret" field. |
|
func ClientSecretNEQ(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretIn applies the In predicate on the "client_secret" field. |
|
func ClientSecretIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldClientSecret, vs...)) |
|
} |
|
|
|
// ClientSecretNotIn applies the NotIn predicate on the "client_secret" field. |
|
func ClientSecretNotIn(vs ...string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldClientSecret, vs...)) |
|
} |
|
|
|
// ClientSecretGT applies the GT predicate on the "client_secret" field. |
|
func ClientSecretGT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretGTE applies the GTE predicate on the "client_secret" field. |
|
func ClientSecretGTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretLT applies the LT predicate on the "client_secret" field. |
|
func ClientSecretLT(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretLTE applies the LTE predicate on the "client_secret" field. |
|
func ClientSecretLTE(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretContains applies the Contains predicate on the "client_secret" field. |
|
func ClientSecretContains(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContains(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field. |
|
func ClientSecretHasPrefix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasPrefix(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field. |
|
func ClientSecretHasSuffix(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldHasSuffix(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field. |
|
func ClientSecretEqualFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEqualFold(FieldClientSecret, v)) |
|
} |
|
|
|
// ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field. |
|
func ClientSecretContainsFold(v string) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldContainsFold(FieldClientSecret, v)) |
|
} |
|
|
|
// ScopesIsNil applies the IsNil predicate on the "scopes" field. |
|
func ScopesIsNil() predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIsNull(FieldScopes)) |
|
} |
|
|
|
// ScopesNotNil applies the NotNil predicate on the "scopes" field. |
|
func ScopesNotNil() predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotNull(FieldScopes)) |
|
} |
|
|
|
// ExpiryEQ applies the EQ predicate on the "expiry" field. |
|
func ExpiryEQ(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldEQ(FieldExpiry, v)) |
|
} |
|
|
|
// ExpiryNEQ applies the NEQ predicate on the "expiry" field. |
|
func ExpiryNEQ(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNEQ(FieldExpiry, v)) |
|
} |
|
|
|
// ExpiryIn applies the In predicate on the "expiry" field. |
|
func ExpiryIn(vs ...time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldIn(FieldExpiry, vs...)) |
|
} |
|
|
|
// ExpiryNotIn applies the NotIn predicate on the "expiry" field. |
|
func ExpiryNotIn(vs ...time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldNotIn(FieldExpiry, vs...)) |
|
} |
|
|
|
// ExpiryGT applies the GT predicate on the "expiry" field. |
|
func ExpiryGT(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGT(FieldExpiry, v)) |
|
} |
|
|
|
// ExpiryGTE applies the GTE predicate on the "expiry" field. |
|
func ExpiryGTE(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldGTE(FieldExpiry, v)) |
|
} |
|
|
|
// ExpiryLT applies the LT predicate on the "expiry" field. |
|
func ExpiryLT(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLT(FieldExpiry, v)) |
|
} |
|
|
|
// ExpiryLTE applies the LTE predicate on the "expiry" field. |
|
func ExpiryLTE(v time.Time) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.FieldLTE(FieldExpiry, v)) |
|
} |
|
|
|
// And groups predicates with the AND operator between them. |
|
func And(predicates ...predicate.DeviceRequest) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.AndPredicates(predicates...)) |
|
} |
|
|
|
// Or groups predicates with the OR operator between them. |
|
func Or(predicates ...predicate.DeviceRequest) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.OrPredicates(predicates...)) |
|
} |
|
|
|
// Not applies the not operator on the given predicate. |
|
func Not(p predicate.DeviceRequest) predicate.DeviceRequest { |
|
return predicate.DeviceRequest(sql.NotPredicates(p)) |
|
}
|
|
|