Merge remote-tracking branch 'upstream/master' into advisory-fix-1
Signed-off-by: Bob Callaway <bcallaway@google.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package authrequest
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package authrequest
|
||||
|
||||
@@ -33,12 +33,6 @@ func IDNEQ(id string) predicate.AuthRequest {
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...string) predicate.AuthRequest {
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(ids) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
v := make([]interface{}, len(ids))
|
||||
for i := range v {
|
||||
v[i] = ids[i]
|
||||
@@ -50,12 +44,6 @@ func IDIn(ids ...string) predicate.AuthRequest {
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...string) predicate.AuthRequest {
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(ids) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
v := make([]interface{}, len(ids))
|
||||
for i := range v {
|
||||
v[i] = ids[i]
|
||||
@@ -232,12 +220,6 @@ func ClientIDIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldClientID), v...))
|
||||
})
|
||||
}
|
||||
@@ -249,12 +231,6 @@ func ClientIDNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldClientID), v...))
|
||||
})
|
||||
}
|
||||
@@ -371,12 +347,6 @@ func RedirectURIIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldRedirectURI), v...))
|
||||
})
|
||||
}
|
||||
@@ -388,12 +358,6 @@ func RedirectURINotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldRedirectURI), v...))
|
||||
})
|
||||
}
|
||||
@@ -482,12 +446,6 @@ func NonceIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldNonce), v...))
|
||||
})
|
||||
}
|
||||
@@ -499,12 +457,6 @@ func NonceNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldNonce), v...))
|
||||
})
|
||||
}
|
||||
@@ -593,12 +545,6 @@ func StateIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldState), v...))
|
||||
})
|
||||
}
|
||||
@@ -610,12 +556,6 @@ func StateNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldState), v...))
|
||||
})
|
||||
}
|
||||
@@ -732,12 +672,6 @@ func ClaimsUserIDIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldClaimsUserID), v...))
|
||||
})
|
||||
}
|
||||
@@ -749,12 +683,6 @@ func ClaimsUserIDNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldClaimsUserID), v...))
|
||||
})
|
||||
}
|
||||
@@ -843,12 +771,6 @@ func ClaimsUsernameIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldClaimsUsername), v...))
|
||||
})
|
||||
}
|
||||
@@ -860,12 +782,6 @@ func ClaimsUsernameNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldClaimsUsername), v...))
|
||||
})
|
||||
}
|
||||
@@ -954,12 +870,6 @@ func ClaimsEmailIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldClaimsEmail), v...))
|
||||
})
|
||||
}
|
||||
@@ -971,12 +881,6 @@ func ClaimsEmailNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldClaimsEmail), v...))
|
||||
})
|
||||
}
|
||||
@@ -1093,12 +997,6 @@ func ClaimsPreferredUsernameIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldClaimsPreferredUsername), v...))
|
||||
})
|
||||
}
|
||||
@@ -1110,12 +1008,6 @@ func ClaimsPreferredUsernameNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldClaimsPreferredUsername), v...))
|
||||
})
|
||||
}
|
||||
@@ -1204,12 +1096,6 @@ func ConnectorIDIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldConnectorID), v...))
|
||||
})
|
||||
}
|
||||
@@ -1221,12 +1107,6 @@ func ConnectorIDNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldConnectorID), v...))
|
||||
})
|
||||
}
|
||||
@@ -1315,12 +1195,6 @@ func ConnectorDataIn(vs ...[]byte) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldConnectorData), v...))
|
||||
})
|
||||
}
|
||||
@@ -1332,12 +1206,6 @@ func ConnectorDataNotIn(vs ...[]byte) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldConnectorData), v...))
|
||||
})
|
||||
}
|
||||
@@ -1405,12 +1273,6 @@ func ExpiryIn(vs ...time.Time) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldExpiry), v...))
|
||||
})
|
||||
}
|
||||
@@ -1422,12 +1284,6 @@ func ExpiryNotIn(vs ...time.Time) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldExpiry), v...))
|
||||
})
|
||||
}
|
||||
@@ -1481,12 +1337,6 @@ func CodeChallengeIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldCodeChallenge), v...))
|
||||
})
|
||||
}
|
||||
@@ -1498,12 +1348,6 @@ func CodeChallengeNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldCodeChallenge), v...))
|
||||
})
|
||||
}
|
||||
@@ -1592,12 +1436,6 @@ func CodeChallengeMethodIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.In(s.C(FieldCodeChallengeMethod), v...))
|
||||
})
|
||||
}
|
||||
@@ -1609,12 +1447,6 @@ func CodeChallengeMethodNotIn(vs ...string) predicate.AuthRequest {
|
||||
v[i] = vs[i]
|
||||
}
|
||||
return predicate.AuthRequest(func(s *sql.Selector) {
|
||||
// if not arguments were provided, append the FALSE constants,
|
||||
// since we can't apply "IN ()". This will make this predicate falsy.
|
||||
if len(v) == 0 {
|
||||
s.Where(sql.False())
|
||||
return
|
||||
}
|
||||
s.Where(sql.NotIn(s.C(FieldCodeChallengeMethod), v...))
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user