From 98c634079026cfb302fee2f1479aeec3c59fa033 Mon Sep 17 00:00:00 2001 From: Matt Siwiec Date: Thu, 28 Mar 2024 14:11:16 -0600 Subject: [PATCH] remove query for all load balancer pools (#342) Signed-off-by: Matt Siwiec --- go.sum | 8 + internal/ent/schema/pool.go | 1 - internal/graphapi/ent.resolvers.go | 13 - internal/graphapi/gen_server.go | 797 ++++++++++------- internal/graphapi/owner.resolvers.go | 5 +- internal/graphclient/gen_client.go | 15 +- internal/graphclient/schema/schema.graphql | 967 +++++++++++++++------ schema.graphql | 967 +++++++++++++++------ schema/ent.graphql | 638 ++++++++++---- 9 files changed, 2365 insertions(+), 1046 deletions(-) diff --git a/go.sum b/go.sum index 4f9936731..b551264f7 100644 --- a/go.sum +++ b/go.sum @@ -69,6 +69,7 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7 github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/cpuguy83/dockercfg v0.3.1 h1:/FpZ+JaygUR/lZP2NlFI2DVfrOEMAIKP5wWEJdoYe9E= github.com/cpuguy83/dockercfg v0.3.1/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= +github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= @@ -351,6 +352,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= +github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= @@ -420,6 +423,9 @@ github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFA github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/urfave/cli v1.22.12 h1:igJgVw1JdKH+trcLWLeLwZjU9fEfPesQ+9/e4MQ44S8= +github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= +github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= @@ -440,6 +446,8 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= github.com/ydb-platform/ydb-go-genproto v0.0.0-20231012155159-f85a672542fd h1:dzWP1Lu+A40W883dK/Mr3xyDSM/2MggS8GtHT0qgAnE= github.com/ydb-platform/ydb-go-genproto v0.0.0-20231012155159-f85a672542fd/go.mod h1:Er+FePu1dNUieD+XTMDduGpQuCPssK5Q4BjF+IIXJ3I= github.com/ydb-platform/ydb-go-sdk/v3 v3.54.2 h1:E0yUuuX7UmPxXm92+yQCjMveLFO3zfvYFIJVuAqsVRA= diff --git a/internal/ent/schema/pool.go b/internal/ent/schema/pool.go index fd0d06527..1896abf3a 100644 --- a/internal/ent/schema/pool.go +++ b/internal/ent/schema/pool.go @@ -87,7 +87,6 @@ func (Pool) Annotations() []schema.Annotation { entgql.Type("LoadBalancerPool"), prefixIDDirective(PoolPrefix), entgql.RelayConnection(), - entgql.QueryField(), entgql.Mutations(entgql.MutationCreate(), entgql.MutationUpdate()), } } diff --git a/internal/graphapi/ent.resolvers.go b/internal/graphapi/ent.resolvers.go index 8d60b124d..21e98e446 100644 --- a/internal/graphapi/ent.resolvers.go +++ b/internal/graphapi/ent.resolvers.go @@ -4,19 +4,6 @@ package graphapi // will be copied through when generating and any unknown code will be moved to the end. // Code generated by github.com/99designs/gqlgen version v0.17.38 -import ( - "context" - - "entgo.io/contrib/entgql" - "go.infratographer.com/load-balancer-api/internal/ent/generated" - "go.infratographer.com/x/gidx" -) - -// LoadBalancerPools is the resolver for the loadBalancerPools field. -func (r *queryResolver) LoadBalancerPools(ctx context.Context, after *entgql.Cursor[gidx.PrefixedID], first *int, before *entgql.Cursor[gidx.PrefixedID], last *int, orderBy *generated.LoadBalancerPoolOrder, where *generated.LoadBalancerPoolWhereInput) (*generated.LoadBalancerPoolConnection, error) { - return r.client.Pool.Query().Paginate(ctx, after, first, before, last, generated.WithLoadBalancerPoolOrder(orderBy), generated.WithLoadBalancerPoolFilter(where.Filter)) -} - // LoadBalancer returns LoadBalancerResolver implementation. func (r *Resolver) LoadBalancer() LoadBalancerResolver { return &loadBalancerResolver{r} } diff --git a/internal/graphapi/gen_server.go b/internal/graphapi/gen_server.go index 4875ad1ba..717bd1588 100644 --- a/internal/graphapi/gen_server.go +++ b/internal/graphapi/gen_server.go @@ -291,7 +291,6 @@ type ComplexityRoot struct { LoadBalancer func(childComplexity int, id gidx.PrefixedID) int LoadBalancerHistory func(childComplexity int, id gidx.PrefixedID) int LoadBalancerPool func(childComplexity int, id gidx.PrefixedID) int - LoadBalancerPools func(childComplexity int, after *entgql.Cursor[gidx.PrefixedID], first *int, before *entgql.Cursor[gidx.PrefixedID], last *int, orderBy *generated.LoadBalancerPoolOrder, where *generated.LoadBalancerPoolWhereInput) int LoadBalancerPort func(childComplexity int, id gidx.PrefixedID) int LoadBalancerProvider func(childComplexity int, id gidx.PrefixedID) int __resolve__service func(childComplexity int) int @@ -350,7 +349,6 @@ type MutationResolver interface { LoadBalancerProviderDelete(ctx context.Context, id gidx.PrefixedID) (*LoadBalancerProviderDeletePayload, error) } type QueryResolver interface { - LoadBalancerPools(ctx context.Context, after *entgql.Cursor[gidx.PrefixedID], first *int, before *entgql.Cursor[gidx.PrefixedID], last *int, orderBy *generated.LoadBalancerPoolOrder, where *generated.LoadBalancerPoolWhereInput) (*generated.LoadBalancerPoolConnection, error) LoadBalancer(ctx context.Context, id gidx.PrefixedID) (*generated.LoadBalancer, error) LoadBalancerHistory(ctx context.Context, id gidx.PrefixedID) (*generated.LoadBalancer, error) LoadBalancerPool(ctx context.Context, id gidx.PrefixedID) (*generated.Pool, error) @@ -1447,18 +1445,6 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.LoadBalancerPool(childComplexity, args["id"].(gidx.PrefixedID)), true - case "Query.loadBalancerPools": - if e.complexity.Query.LoadBalancerPools == nil { - break - } - - args, err := ec.field_Query_loadBalancerPools_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.LoadBalancerPools(childComplexity, args["after"].(*entgql.Cursor[gidx.PrefixedID]), args["first"].(*int), args["before"].(*entgql.Cursor[gidx.PrefixedID]), args["last"].(*int), args["orderBy"].(*generated.LoadBalancerPoolOrder), args["where"].(*generated.LoadBalancerPoolWhereInput)), true - case "Query.loadBalancerPort": if e.complexity.Query.LoadBalancerPort == nil { break @@ -1679,13 +1665,21 @@ func (ec *executionContext) introspectType(name string) (*introspection.Type, er var sources = []*ast.Source{ {Name: "../../schema/ent.graphql", Input: `directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION -"""Input information to create a load balancer.""" +""" +Input information to create a load balancer. +""" input CreateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! - """The ID for the location of this load balancer.""" + """ + The ID for the location of this load balancer. + """ locationID: ID! portIDs: [ID!] providerID: ID! @@ -1723,11 +1717,17 @@ input CreateLoadBalancerPortInput { poolIDs: [ID!] loadBalancerID: ID! } -"""Input information to create a load balancer provider.""" +""" +Input information to create a load balancer provider. +""" input CreateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! } """ @@ -1735,10 +1735,14 @@ Define a Relay Cursor type: https://relay.dev/graphql/connections.htm#sec-Cursor """ scalar Cursor -"""A valid JSON string.""" +""" +A valid JSON string. +""" scalar JSON type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "id") @prefixedID(prefix: "loadbal") { - """The ID for the load balancer.""" + """ + The ID for the load balancer. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -1746,54 +1750,92 @@ type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "i updatedBy: String deletedAt: Time deletedBy: String - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! ports( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPorts returned from the connection.""" + """ + Ordering options for LoadBalancerPorts returned from the connection. + """ orderBy: LoadBalancerPortOrder - """Filtering options for LoadBalancerPorts returned from the connection.""" + """ + Filtering options for LoadBalancerPorts returned from the connection. + """ where: LoadBalancerPortWhereInput ): LoadBalancerPortConnection! - """The load balancer provider for the load balancer.""" + """ + The load balancer provider for the load balancer. + """ loadBalancerProvider: LoadBalancerProvider! @goField(name: "Provider", forceResolver: false) } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancer - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancer connections""" +""" +Ordering options for LoadBalancer connections +""" input LoadBalancerOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancers.""" + """ + The field by which to order LoadBalancers. + """ field: LoadBalancerOrderField! } -"""Properties by which LoadBalancer connections can be ordered.""" +""" +Properties by which LoadBalancer connections can be ordered. +""" enum LoadBalancerOrderField { ID CREATED_AT @@ -1821,30 +1863,52 @@ type LoadBalancerOrigin implements Node @key(fields: "id") @prefixedID(prefix: " poolID: ID! pool: LoadBalancerPool! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerOriginConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerOriginEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerOriginEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerOrigin - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerOrigin connections""" +""" +Ordering options for LoadBalancerOrigin connections +""" input LoadBalancerOriginOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerOrigins.""" + """ + The field by which to order LoadBalancerOrigins. + """ field: LoadBalancerOriginOrderField! } -"""Properties by which LoadBalancerOrigin connections can be ordered.""" +""" +Properties by which LoadBalancerOrigin connections can be ordered. +""" enum LoadBalancerOriginOrderField { CREATED_AT UPDATED_AT @@ -1866,7 +1930,9 @@ input LoadBalancerOriginWhereInput { not: LoadBalancerOriginWhereInput and: [LoadBalancerOriginWhereInput!] or: [LoadBalancerOriginWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -1875,7 +1941,9 @@ input LoadBalancerOriginWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -1884,7 +1952,9 @@ input LoadBalancerOriginWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -1893,7 +1963,9 @@ input LoadBalancerOriginWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -1904,7 +1976,9 @@ input LoadBalancerOriginWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -1920,7 +1994,9 @@ input LoadBalancerOriginWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -1936,7 +2012,9 @@ input LoadBalancerOriginWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -1952,7 +2030,9 @@ input LoadBalancerOriginWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -1966,7 +2046,9 @@ input LoadBalancerOriginWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """weight field predicates""" + """ + weight field predicates + """ weight: Int weightNEQ: Int weightIn: [Int!] @@ -1975,7 +2057,9 @@ input LoadBalancerOriginWhereInput { weightGTE: Int weightLT: Int weightLTE: Int - """target field predicates""" + """ + target field predicates + """ target: String targetNEQ: String targetIn: [String!] @@ -1989,7 +2073,9 @@ input LoadBalancerOriginWhereInput { targetHasSuffix: String targetEqualFold: String targetContainsFold: String - """port_number field predicates""" + """ + port_number field predicates + """ portNumber: Int portNumberNEQ: Int portNumberIn: [Int!] @@ -1998,10 +2084,14 @@ input LoadBalancerOriginWhereInput { portNumberGTE: Int portNumberLT: Int portNumberLTE: Int - """active field predicates""" + """ + active field predicates + """ active: Boolean activeNEQ: Boolean - """pool edge predicates""" + """ + pool edge predicates + """ hasPool: Boolean hasPoolWith: [LoadBalancerPoolWhereInput!] } @@ -2018,49 +2108,83 @@ type LoadBalancerPool implements Node @key(fields: "id") @prefixedID(prefix: "lo ownerID: ID! ports: [LoadBalancerPort!] origins( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerOrigins returned from the connection.""" + """ + Ordering options for LoadBalancerOrigins returned from the connection. + """ orderBy: LoadBalancerOriginOrder - """Filtering options for LoadBalancerOrigins returned from the connection.""" + """ + Filtering options for LoadBalancerOrigins returned from the connection. + """ where: LoadBalancerOriginWhereInput ): LoadBalancerOriginConnection! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPoolConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPoolEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPoolEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPool - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPool connections""" +""" +Ordering options for LoadBalancerPool connections +""" input LoadBalancerPoolOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPools.""" + """ + The field by which to order LoadBalancerPools. + """ field: LoadBalancerPoolOrderField! } -"""Properties by which LoadBalancerPool connections can be ordered.""" +""" +Properties by which LoadBalancerPool connections can be ordered. +""" enum LoadBalancerPoolOrderField { CREATED_AT UPDATED_AT @@ -2071,7 +2195,9 @@ enum LoadBalancerPoolOrderField { name protocol } -"""LoadBalancerPoolProtocol is enum for the field protocol""" +""" +LoadBalancerPoolProtocol is enum for the field protocol +""" enum LoadBalancerPoolProtocol @goModel(model: "go.infratographer.com/load-balancer-api/internal/ent/generated/pool.Protocol") { tcp udp @@ -2084,7 +2210,9 @@ input LoadBalancerPoolWhereInput { not: LoadBalancerPoolWhereInput and: [LoadBalancerPoolWhereInput!] or: [LoadBalancerPoolWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -2093,7 +2221,9 @@ input LoadBalancerPoolWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -2102,7 +2232,9 @@ input LoadBalancerPoolWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -2111,7 +2243,9 @@ input LoadBalancerPoolWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -2127,7 +2261,9 @@ input LoadBalancerPoolWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -2143,7 +2279,9 @@ input LoadBalancerPoolWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -2154,7 +2292,9 @@ input LoadBalancerPoolWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -2170,7 +2310,9 @@ input LoadBalancerPoolWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -2184,15 +2326,21 @@ input LoadBalancerPoolWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """protocol field predicates""" + """ + protocol field predicates + """ protocol: LoadBalancerPoolProtocol protocolNEQ: LoadBalancerPoolProtocol protocolIn: [LoadBalancerPoolProtocol!] protocolNotIn: [LoadBalancerPoolProtocol!] - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """origins edge predicates""" + """ + origins edge predicates + """ hasOrigins: Boolean hasOriginsWith: [LoadBalancerOriginWhereInput!] } @@ -2210,30 +2358,52 @@ type LoadBalancerPort implements Node @key(fields: "id") @prefixedID(prefix: "lo pools: [LoadBalancerPool!] loadBalancer: LoadBalancer! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPortConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPortEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPortEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPort - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPort connections""" +""" +Ordering options for LoadBalancerPort connections +""" input LoadBalancerPortOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPorts.""" + """ + The field by which to order LoadBalancerPorts. + """ field: LoadBalancerPortOrderField! } -"""Properties by which LoadBalancerPort connections can be ordered.""" +""" +Properties by which LoadBalancerPort connections can be ordered. +""" enum LoadBalancerPortOrderField { CREATED_AT UPDATED_AT @@ -2252,7 +2422,9 @@ input LoadBalancerPortWhereInput { not: LoadBalancerPortWhereInput and: [LoadBalancerPortWhereInput!] or: [LoadBalancerPortWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -2261,7 +2433,9 @@ input LoadBalancerPortWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -2270,7 +2444,9 @@ input LoadBalancerPortWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -2279,7 +2455,9 @@ input LoadBalancerPortWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -2290,7 +2468,9 @@ input LoadBalancerPortWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -2306,7 +2486,9 @@ input LoadBalancerPortWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -2322,7 +2504,9 @@ input LoadBalancerPortWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -2338,7 +2522,9 @@ input LoadBalancerPortWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """number field predicates""" + """ + number field predicates + """ number: Int numberNEQ: Int numberIn: [Int!] @@ -2347,7 +2533,9 @@ input LoadBalancerPortWhereInput { numberGTE: Int numberLT: Int numberLTE: Int - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -2363,15 +2551,21 @@ input LoadBalancerPortWhereInput { nameNotNil: Boolean nameEqualFold: String nameContainsFold: String - """pools edge predicates""" + """ + pools edge predicates + """ hasPools: Boolean hasPoolsWith: [LoadBalancerPoolWhereInput!] - """load_balancer edge predicates""" + """ + load_balancer edge predicates + """ hasLoadBalancer: Boolean hasLoadBalancerWith: [LoadBalancerWhereInput!] } type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: "loadpvd") @goModel(model: "go.infratographer.com/load-balancer-api/internal/ent/generated.Provider") { - """The ID for the load balancer provider.""" + """ + The ID for the load balancer provider. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -2379,52 +2573,88 @@ type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: deletedBy: String createdBy: String updatedBy: String - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerProviderConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerProviderEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerProviderEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerProvider - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerProvider connections""" +""" +Ordering options for LoadBalancerProvider connections +""" input LoadBalancerProviderOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerProviders.""" + """ + The field by which to order LoadBalancerProviders. + """ field: LoadBalancerProviderOrderField! } -"""Properties by which LoadBalancerProvider connections can be ordered.""" +""" +Properties by which LoadBalancerProvider connections can be ordered. +""" enum LoadBalancerProviderOrderField { ID CREATED_AT @@ -2444,7 +2674,9 @@ input LoadBalancerProviderWhereInput { not: LoadBalancerProviderWhereInput and: [LoadBalancerProviderWhereInput!] or: [LoadBalancerProviderWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -2453,7 +2685,9 @@ input LoadBalancerProviderWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -2462,7 +2696,9 @@ input LoadBalancerProviderWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -2471,7 +2707,9 @@ input LoadBalancerProviderWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -2482,7 +2720,9 @@ input LoadBalancerProviderWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -2498,7 +2738,9 @@ input LoadBalancerProviderWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -2514,7 +2756,9 @@ input LoadBalancerProviderWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -2530,7 +2774,9 @@ input LoadBalancerProviderWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -2544,7 +2790,9 @@ input LoadBalancerProviderWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """load_balancers edge predicates""" + """ + load_balancers edge predicates + """ hasLoadBalancers: Boolean hasLoadBalancersWith: [LoadBalancerWhereInput!] } @@ -2556,7 +2804,9 @@ input LoadBalancerWhereInput { not: LoadBalancerWhereInput and: [LoadBalancerWhereInput!] or: [LoadBalancerWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -2565,7 +2815,9 @@ input LoadBalancerWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -2574,7 +2826,9 @@ input LoadBalancerWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -2583,7 +2837,9 @@ input LoadBalancerWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -2599,7 +2855,9 @@ input LoadBalancerWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -2615,7 +2873,9 @@ input LoadBalancerWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -2626,7 +2886,9 @@ input LoadBalancerWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -2642,7 +2904,9 @@ input LoadBalancerWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -2656,10 +2920,14 @@ input LoadBalancerWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """provider edge predicates""" + """ + provider edge predicates + """ hasProvider: Boolean hasProviderWith: [LoadBalancerProviderWhereInput!] } @@ -2668,14 +2936,22 @@ An object with an ID. Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) """ interface Node { - """The id of the object.""" + """ + The id of the object. + """ id: ID! } -"""Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument.""" +""" +Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument. +""" enum OrderDirection { - """Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument.""" + """ + Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument. + """ ASC - """Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument.""" + """ + Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument. + """ DESC } """ @@ -2683,41 +2959,35 @@ Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo """ type PageInfo @shareable { - """When paginating forwards, are there more items?""" + """ + When paginating forwards, are there more items? + """ hasNextPage: Boolean! - """When paginating backwards, are there more items?""" + """ + When paginating backwards, are there more items? + """ hasPreviousPage: Boolean! - """When paginating backwards, the cursor to continue.""" + """ + When paginating backwards, the cursor to continue. + """ startCursor: Cursor - """When paginating forwards, the cursor to continue.""" + """ + When paginating forwards, the cursor to continue. + """ endCursor: Cursor } -type Query { - loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" - after: Cursor - - """Returns the first _n_ elements from the list.""" - first: Int - - """Returns the elements in the list that come before the specified cursor.""" - before: Cursor - - """Returns the last _n_ elements from the list.""" - last: Int - - """Ordering options for LoadBalancerPools returned from the connection.""" - orderBy: LoadBalancerPoolOrder - - """Filtering options for LoadBalancerPools returned from the connection.""" - where: LoadBalancerPoolWhereInput - ): LoadBalancerPoolConnection! -} -"""The builtin Time type""" +type Query +""" +The builtin Time type +""" scalar Time -"""Input information to update a load balancer.""" +""" +Input information to update a load balancer. +""" input UpdateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String addPortIDs: [ID!] removePortIDs: [ID!] @@ -2760,9 +3030,13 @@ input UpdateLoadBalancerPortInput { removePoolIDs: [ID!] clearPools: Boolean } -"""Input information to update a load balancer provider.""" +""" +Input information to update a load balancer provider. +""" input UpdateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String } `, BuiltIn: false}, @@ -3996,66 +4270,6 @@ func (ec *executionContext) field_Query_loadBalancerPool_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Query_loadBalancerPools_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *entgql.Cursor[gidx.PrefixedID] - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg0, err = ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - if err != nil { - return nil, err - } - } - args["after"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["first"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["first"] = arg1 - var arg2 *entgql.Cursor[gidx.PrefixedID] - if tmp, ok := rawArgs["before"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - arg2, err = ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - if err != nil { - return nil, err - } - } - args["before"] = arg2 - var arg3 *int - if tmp, ok := rawArgs["last"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - arg3, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["last"] = arg3 - var arg4 *generated.LoadBalancerPoolOrder - if tmp, ok := rawArgs["orderBy"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - arg4, err = ec.unmarshalOLoadBalancerPoolOrder2ᚖgoᚗinfratographerᚗcomᚋloadᚑbalancerᚑapiᚋinternalᚋentᚋgeneratedᚐLoadBalancerPoolOrder(ctx, tmp) - if err != nil { - return nil, err - } - } - args["orderBy"] = arg4 - var arg5 *generated.LoadBalancerPoolWhereInput - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg5, err = ec.unmarshalOLoadBalancerPoolWhereInput2ᚖgoᚗinfratographerᚗcomᚋloadᚑbalancerᚑapiᚋinternalᚋentᚋgeneratedᚐLoadBalancerPoolWhereInput(ctx, tmp) - if err != nil { - return nil, err - } - } - args["where"] = arg5 - return args, nil -} - func (ec *executionContext) field_Query_loadBalancerPort_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} @@ -11055,69 +11269,6 @@ func (ec *executionContext) fieldContext_PageInfo_endCursor(ctx context.Context, return fc, nil } -func (ec *executionContext) _Query_loadBalancerPools(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_loadBalancerPools(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().LoadBalancerPools(rctx, fc.Args["after"].(*entgql.Cursor[gidx.PrefixedID]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[gidx.PrefixedID]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.LoadBalancerPoolOrder), fc.Args["where"].(*generated.LoadBalancerPoolWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.LoadBalancerPoolConnection) - fc.Result = res - return ec.marshalNLoadBalancerPoolConnection2ᚖgoᚗinfratographerᚗcomᚋloadᚑbalancerᚑapiᚋinternalᚋentᚋgeneratedᚐLoadBalancerPoolConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_loadBalancerPools(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_LoadBalancerPoolConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_LoadBalancerPoolConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_LoadBalancerPoolConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type LoadBalancerPoolConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_loadBalancerPools_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - func (ec *executionContext) _Query_loadBalancer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { fc, err := ec.fieldContext_Query_loadBalancer(ctx, field) if err != nil { @@ -21960,28 +22111,6 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr switch field.Name { case "__typename": out.Values[i] = graphql.MarshalString("Query") - case "loadBalancerPools": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_loadBalancerPools(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "loadBalancer": field := field diff --git a/internal/graphapi/owner.resolvers.go b/internal/graphapi/owner.resolvers.go index a472f2654..9e22dafd9 100644 --- a/internal/graphapi/owner.resolvers.go +++ b/internal/graphapi/owner.resolvers.go @@ -9,13 +9,12 @@ import ( "fmt" "entgo.io/contrib/entgql" - "go.infratographer.com/permissions-api/pkg/permissions" - "go.infratographer.com/x/gidx" - "go.infratographer.com/load-balancer-api/internal/ent/generated" "go.infratographer.com/load-balancer-api/internal/ent/generated/loadbalancer" "go.infratographer.com/load-balancer-api/internal/ent/generated/pool" _ "go.infratographer.com/load-balancer-api/internal/ent/generated/runtime" + "go.infratographer.com/permissions-api/pkg/permissions" + "go.infratographer.com/x/gidx" ) // Owner is the resolver for the owner field. diff --git a/internal/graphclient/gen_client.go b/internal/graphclient/gen_client.go index edf987233..ea4b153ca 100644 --- a/internal/graphclient/gen_client.go +++ b/internal/graphclient/gen_client.go @@ -45,14 +45,13 @@ func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOp } type Query struct { - LoadBalancerPools LoadBalancerPoolConnection "json:\"loadBalancerPools\" graphql:\"loadBalancerPools\"" - LoadBalancer LoadBalancer "json:\"loadBalancer\" graphql:\"loadBalancer\"" - LoadBalancerHistory LoadBalancer "json:\"loadBalancerHistory\" graphql:\"loadBalancerHistory\"" - LoadBalancerPool LoadBalancerPool "json:\"loadBalancerPool\" graphql:\"loadBalancerPool\"" - LoadBalancerPort LoadBalancerPort "json:\"loadBalancerPort\" graphql:\"loadBalancerPort\"" - LoadBalancerProvider LoadBalancerProvider "json:\"loadBalancerProvider\" graphql:\"loadBalancerProvider\"" - Entities []Entity "json:\"_entities\" graphql:\"_entities\"" - Service Service "json:\"_service\" graphql:\"_service\"" + LoadBalancer LoadBalancer "json:\"loadBalancer\" graphql:\"loadBalancer\"" + LoadBalancerHistory LoadBalancer "json:\"loadBalancerHistory\" graphql:\"loadBalancerHistory\"" + LoadBalancerPool LoadBalancerPool "json:\"loadBalancerPool\" graphql:\"loadBalancerPool\"" + LoadBalancerPort LoadBalancerPort "json:\"loadBalancerPort\" graphql:\"loadBalancerPort\"" + LoadBalancerProvider LoadBalancerProvider "json:\"loadBalancerProvider\" graphql:\"loadBalancerProvider\"" + Entities []Entity "json:\"_entities\" graphql:\"_entities\"" + Service Service "json:\"_service\" graphql:\"_service\"" } type Mutation struct { LoadBalancerOriginCreate LoadBalancerOriginCreatePayload "json:\"loadBalancerOriginCreate\" graphql:\"loadBalancerOriginCreate\"" diff --git a/internal/graphclient/schema/schema.graphql b/internal/graphclient/schema/schema.graphql index f0c1d5d9c..9d25d2fd2 100644 --- a/internal/graphclient/schema/schema.graphql +++ b/internal/graphclient/schema/schema.graphql @@ -11,13 +11,21 @@ directive @provides(fields: FieldSet!) on FIELD_DEFINITION directive @requires(fields: FieldSet!) on FIELD_DEFINITION directive @shareable repeatable on FIELD_DEFINITION | OBJECT directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION -"""Input information to create a load balancer.""" +""" +Input information to create a load balancer. +""" input CreateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! - """The ID for the location of this load balancer.""" + """ + The ID for the location of this load balancer. + """ locationID: ID! portIDs: [ID!] providerID: ID! @@ -55,11 +63,17 @@ input CreateLoadBalancerPortInput { poolIDs: [ID!] loadBalancerID: ID! } -"""Input information to create a load balancer provider.""" +""" +Input information to create a load balancer provider. +""" input CreateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! } """ @@ -71,10 +85,14 @@ scalar FieldSet interface IPAddressable { id: ID! } -"""A valid JSON string.""" +""" +A valid JSON string. +""" scalar JSON type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "id") @prefixedID(prefix: "loadbal") { - """The ID for the load balancer.""" + """ + The ID for the load balancer. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -82,68 +100,118 @@ type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "i updatedBy: String deletedAt: Time deletedBy: String - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! ports( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPorts returned from the connection.""" + """ + Ordering options for LoadBalancerPorts returned from the connection. + """ orderBy: LoadBalancerPortOrder - """Filtering options for LoadBalancerPorts returned from the connection.""" + """ + Filtering options for LoadBalancerPorts returned from the connection. + """ where: LoadBalancerPortWhereInput ): LoadBalancerPortConnection! - """The load balancer provider for the load balancer.""" + """ + The load balancer provider for the load balancer. + """ loadBalancerProvider: LoadBalancerProvider! - """The location of the load balancer.""" + """ + The location of the load balancer. + """ location: Location! - """The owner of the load balancer.""" + """ + The owner of the load balancer. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerCreate""" +""" +Return response from loadBalancerCreate +""" type LoadBalancerCreatePayload { - """The created load balancer.""" + """ + The created load balancer. + """ loadBalancer: LoadBalancer! } -"""Return response from loadBalancerDelete""" +""" +Return response from loadBalancerDelete +""" type LoadBalancerDeletePayload { - """The ID of the deleted load balancer.""" + """ + The ID of the deleted load balancer. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancer - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancer connections""" +""" +Ordering options for LoadBalancer connections +""" input LoadBalancerOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancers.""" + """ + The field by which to order LoadBalancers. + """ field: LoadBalancerOrderField! } -"""Properties by which LoadBalancer connections can be ordered.""" +""" +Properties by which LoadBalancer connections can be ordered. +""" enum LoadBalancerOrderField { ID CREATED_AT @@ -171,40 +239,70 @@ type LoadBalancerOrigin implements Node @key(fields: "id") @prefixedID(prefix: " poolID: ID! pool: LoadBalancerPool! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerOriginConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerOriginEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerOriginCreate""" +""" +Return response from loadBalancerOriginCreate +""" type LoadBalancerOriginCreatePayload { - """The created pool origin.""" + """ + The created pool origin. + """ loadBalancerOrigin: LoadBalancerOrigin! } -"""Return response from loadBalancerOriginDelete""" +""" +Return response from loadBalancerOriginDelete +""" type LoadBalancerOriginDeletePayload { - """The deleted pool origin.""" + """ + The deleted pool origin. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerOriginEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerOrigin - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerOrigin connections""" +""" +Ordering options for LoadBalancerOrigin connections +""" input LoadBalancerOriginOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerOrigins.""" + """ + The field by which to order LoadBalancerOrigins. + """ field: LoadBalancerOriginOrderField! } -"""Properties by which LoadBalancerOrigin connections can be ordered.""" +""" +Properties by which LoadBalancerOrigin connections can be ordered. +""" enum LoadBalancerOriginOrderField { CREATED_AT UPDATED_AT @@ -218,9 +316,13 @@ enum LoadBalancerOriginOrderField { number active } -"""Return response from loadBalancerOriginUpdate""" +""" +Return response from loadBalancerOriginUpdate +""" type LoadBalancerOriginUpdatePayload { - """The updated pool origin.""" + """ + The updated pool origin. + """ loadBalancerOrigin: LoadBalancerOrigin! } """ @@ -231,7 +333,9 @@ input LoadBalancerOriginWhereInput { not: LoadBalancerOriginWhereInput and: [LoadBalancerOriginWhereInput!] or: [LoadBalancerOriginWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -240,7 +344,9 @@ input LoadBalancerOriginWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -249,7 +355,9 @@ input LoadBalancerOriginWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -258,7 +366,9 @@ input LoadBalancerOriginWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -269,7 +379,9 @@ input LoadBalancerOriginWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -285,7 +397,9 @@ input LoadBalancerOriginWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -301,7 +415,9 @@ input LoadBalancerOriginWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -317,7 +433,9 @@ input LoadBalancerOriginWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -331,7 +449,9 @@ input LoadBalancerOriginWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """weight field predicates""" + """ + weight field predicates + """ weight: Int weightNEQ: Int weightIn: [Int!] @@ -340,7 +460,9 @@ input LoadBalancerOriginWhereInput { weightGTE: Int weightLT: Int weightLTE: Int - """target field predicates""" + """ + target field predicates + """ target: String targetNEQ: String targetIn: [String!] @@ -354,7 +476,9 @@ input LoadBalancerOriginWhereInput { targetHasSuffix: String targetEqualFold: String targetContainsFold: String - """port_number field predicates""" + """ + port_number field predicates + """ portNumber: Int portNumberNEQ: Int portNumberIn: [Int!] @@ -363,10 +487,14 @@ input LoadBalancerOriginWhereInput { portNumberGTE: Int portNumberLT: Int portNumberLTE: Int - """active field predicates""" + """ + active field predicates + """ active: Boolean activeNEQ: Boolean - """pool edge predicates""" + """ + pool edge predicates + """ hasPool: Boolean hasPoolWith: [LoadBalancerPoolWhereInput!] } @@ -383,61 +511,105 @@ type LoadBalancerPool implements Node @key(fields: "id") @prefixedID(prefix: "lo ownerID: ID! ports: [LoadBalancerPort!] origins( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerOrigins returned from the connection.""" + """ + Ordering options for LoadBalancerOrigins returned from the connection. + """ orderBy: LoadBalancerOriginOrder - """Filtering options for LoadBalancerOrigins returned from the connection.""" + """ + Filtering options for LoadBalancerOrigins returned from the connection. + """ where: LoadBalancerOriginWhereInput ): LoadBalancerOriginConnection! - """The owner of the load balancer pool.""" + """ + The owner of the load balancer pool. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPoolConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPoolEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from LoadBalancerPoolCreate""" +""" +Return response from LoadBalancerPoolCreate +""" type LoadBalancerPoolCreatePayload { - """The created pool.""" + """ + The created pool. + """ loadBalancerPool: LoadBalancerPool! } -"""Return response from LoadBalancerPoolDelete""" +""" +Return response from LoadBalancerPoolDelete +""" type LoadBalancerPoolDeletePayload { - """The ID of the deleted pool.""" + """ + The ID of the deleted pool. + """ deletedID: ID } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPoolEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPool - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPool connections""" +""" +Ordering options for LoadBalancerPool connections +""" input LoadBalancerPoolOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPools.""" + """ + The field by which to order LoadBalancerPools. + """ field: LoadBalancerPoolOrderField! } -"""Properties by which LoadBalancerPool connections can be ordered.""" +""" +Properties by which LoadBalancerPool connections can be ordered. +""" enum LoadBalancerPoolOrderField { CREATED_AT UPDATED_AT @@ -448,14 +620,20 @@ enum LoadBalancerPoolOrderField { name protocol } -"""LoadBalancerPoolProtocol is enum for the field protocol""" +""" +LoadBalancerPoolProtocol is enum for the field protocol +""" enum LoadBalancerPoolProtocol { tcp udp } -"""Return response from LoadBalancerPoolUpdate""" +""" +Return response from LoadBalancerPoolUpdate +""" type LoadBalancerPoolUpdatePayload { - """The updated pool.""" + """ + The updated pool. + """ loadBalancerPool: LoadBalancerPool! } """ @@ -466,7 +644,9 @@ input LoadBalancerPoolWhereInput { not: LoadBalancerPoolWhereInput and: [LoadBalancerPoolWhereInput!] or: [LoadBalancerPoolWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -475,7 +655,9 @@ input LoadBalancerPoolWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -484,7 +666,9 @@ input LoadBalancerPoolWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -493,7 +677,9 @@ input LoadBalancerPoolWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -509,7 +695,9 @@ input LoadBalancerPoolWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -525,7 +713,9 @@ input LoadBalancerPoolWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -536,7 +726,9 @@ input LoadBalancerPoolWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -552,7 +744,9 @@ input LoadBalancerPoolWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -566,15 +760,21 @@ input LoadBalancerPoolWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """protocol field predicates""" + """ + protocol field predicates + """ protocol: LoadBalancerPoolProtocol protocolNEQ: LoadBalancerPoolProtocol protocolIn: [LoadBalancerPoolProtocol!] protocolNotIn: [LoadBalancerPoolProtocol!] - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """origins edge predicates""" + """ + origins edge predicates + """ hasOrigins: Boolean hasOriginsWith: [LoadBalancerOriginWhereInput!] } @@ -592,40 +792,70 @@ type LoadBalancerPort implements Node @key(fields: "id") @prefixedID(prefix: "lo pools: [LoadBalancerPool!] loadBalancer: LoadBalancer! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPortConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPortEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerPortCreate""" +""" +Return response from loadBalancerPortCreate +""" type LoadBalancerPortCreatePayload { - """The created load balancer port.""" + """ + The created load balancer port. + """ loadBalancerPort: LoadBalancerPort! } -"""Return response from loadBalancerPortDelete""" +""" +Return response from loadBalancerPortDelete +""" type LoadBalancerPortDeletePayload { - """The ID of the deleted load balancer port.""" + """ + The ID of the deleted load balancer port. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPortEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPort - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPort connections""" +""" +Ordering options for LoadBalancerPort connections +""" input LoadBalancerPortOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPorts.""" + """ + The field by which to order LoadBalancerPorts. + """ field: LoadBalancerPortOrderField! } -"""Properties by which LoadBalancerPort connections can be ordered.""" +""" +Properties by which LoadBalancerPort connections can be ordered. +""" enum LoadBalancerPortOrderField { CREATED_AT UPDATED_AT @@ -636,9 +866,13 @@ enum LoadBalancerPortOrderField { number name } -"""Return response from loadBalancerPortUpdate""" +""" +Return response from loadBalancerPortUpdate +""" type LoadBalancerPortUpdatePayload { - """The updated load balancer port.""" + """ + The updated load balancer port. + """ loadBalancerPort: LoadBalancerPort! } """ @@ -649,7 +883,9 @@ input LoadBalancerPortWhereInput { not: LoadBalancerPortWhereInput and: [LoadBalancerPortWhereInput!] or: [LoadBalancerPortWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -658,7 +894,9 @@ input LoadBalancerPortWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -667,7 +905,9 @@ input LoadBalancerPortWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -676,7 +916,9 @@ input LoadBalancerPortWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -687,7 +929,9 @@ input LoadBalancerPortWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -703,7 +947,9 @@ input LoadBalancerPortWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -719,7 +965,9 @@ input LoadBalancerPortWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -735,7 +983,9 @@ input LoadBalancerPortWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """number field predicates""" + """ + number field predicates + """ number: Int numberNEQ: Int numberIn: [Int!] @@ -744,7 +994,9 @@ input LoadBalancerPortWhereInput { numberGTE: Int numberLT: Int numberLTE: Int - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -760,15 +1012,21 @@ input LoadBalancerPortWhereInput { nameNotNil: Boolean nameEqualFold: String nameContainsFold: String - """pools edge predicates""" + """ + pools edge predicates + """ hasPools: Boolean hasPoolsWith: [LoadBalancerPoolWhereInput!] - """load_balancer edge predicates""" + """ + load_balancer edge predicates + """ hasLoadBalancer: Boolean hasLoadBalancerWith: [LoadBalancerWhereInput!] } type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: "loadpvd") { - """The ID for the load balancer provider.""" + """ + The ID for the load balancer provider. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -776,64 +1034,110 @@ type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: deletedBy: String createdBy: String updatedBy: String - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! - """The owner of the load balancer provider.""" + """ + The owner of the load balancer provider. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerProviderConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerProviderEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerProviderCreate""" +""" +Return response from loadBalancerProviderCreate +""" type LoadBalancerProviderCreatePayload { - """The created load balancer provider.""" + """ + The created load balancer provider. + """ loadBalancerProvider: LoadBalancerProvider! } -"""Return response from loadBalancerProviderDelete""" +""" +Return response from loadBalancerProviderDelete +""" type LoadBalancerProviderDeletePayload { - """The ID of the deleted load balancer provider.""" + """ + The ID of the deleted load balancer provider. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerProviderEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerProvider - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerProvider connections""" +""" +Ordering options for LoadBalancerProvider connections +""" input LoadBalancerProviderOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerProviders.""" + """ + The field by which to order LoadBalancerProviders. + """ field: LoadBalancerProviderOrderField! } -"""Properties by which LoadBalancerProvider connections can be ordered.""" +""" +Properties by which LoadBalancerProvider connections can be ordered. +""" enum LoadBalancerProviderOrderField { ID CREATED_AT @@ -845,9 +1149,13 @@ enum LoadBalancerProviderOrderField { NAME OWNER } -"""Return response from loadBalancerProviderUpdate""" +""" +Return response from loadBalancerProviderUpdate +""" type LoadBalancerProviderUpdatePayload { - """The updated load balancer provider.""" + """ + The updated load balancer provider. + """ loadBalancerProvider: LoadBalancerProvider! } """ @@ -858,7 +1166,9 @@ input LoadBalancerProviderWhereInput { not: LoadBalancerProviderWhereInput and: [LoadBalancerProviderWhereInput!] or: [LoadBalancerProviderWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -867,7 +1177,9 @@ input LoadBalancerProviderWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -876,7 +1188,9 @@ input LoadBalancerProviderWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -885,7 +1199,9 @@ input LoadBalancerProviderWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -896,7 +1212,9 @@ input LoadBalancerProviderWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -912,7 +1230,9 @@ input LoadBalancerProviderWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -928,7 +1248,9 @@ input LoadBalancerProviderWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -944,7 +1266,9 @@ input LoadBalancerProviderWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -958,13 +1282,19 @@ input LoadBalancerProviderWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """load_balancers edge predicates""" + """ + load_balancers edge predicates + """ hasLoadBalancers: Boolean hasLoadBalancersWith: [LoadBalancerWhereInput!] } -"""Return response from loadBalancerUpdate""" +""" +Return response from loadBalancerUpdate +""" type LoadBalancerUpdatePayload { - """The updated load balancer.""" + """ + The updated load balancer. + """ loadBalancer: LoadBalancer! } """ @@ -975,7 +1305,9 @@ input LoadBalancerWhereInput { not: LoadBalancerWhereInput and: [LoadBalancerWhereInput!] or: [LoadBalancerWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -984,7 +1316,9 @@ input LoadBalancerWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -993,7 +1327,9 @@ input LoadBalancerWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -1002,7 +1338,9 @@ input LoadBalancerWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -1018,7 +1356,9 @@ input LoadBalancerWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -1034,7 +1374,9 @@ input LoadBalancerWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -1045,7 +1387,9 @@ input LoadBalancerWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -1061,7 +1405,9 @@ input LoadBalancerWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -1075,32 +1421,48 @@ input LoadBalancerWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """provider edge predicates""" + """ + provider edge predicates + """ hasProvider: Boolean hasProviderWith: [LoadBalancerProviderWhereInput!] } type Location @key(fields: "id") { id: ID! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! } @@ -1108,35 +1470,65 @@ interface MetadataNode { id: ID! } type Mutation { - """Create a loadbalancer pool origin""" + """ + Create a loadbalancer pool origin + """ loadBalancerOriginCreate(input: CreateLoadBalancerOriginInput!): LoadBalancerOriginCreatePayload! - """Update a loadbalancer pool origin""" + """ + Update a loadbalancer pool origin + """ loadBalancerOriginUpdate(id: ID!, input: UpdateLoadBalancerOriginInput!): LoadBalancerOriginUpdatePayload! - """Delete a loadbalancer pool origin""" + """ + Delete a loadbalancer pool origin + """ loadBalancerOriginDelete(id: ID!): LoadBalancerOriginDeletePayload! - """Create a load balancer.""" + """ + Create a load balancer. + """ loadBalancerCreate(input: CreateLoadBalancerInput!): LoadBalancerCreatePayload! - """Update a load balancer.""" + """ + Update a load balancer. + """ loadBalancerUpdate(id: ID!, input: UpdateLoadBalancerInput!): LoadBalancerUpdatePayload! - """Delete a load balancer.""" + """ + Delete a load balancer. + """ loadBalancerDelete(id: ID!): LoadBalancerDeletePayload! - """Create a pool.""" + """ + Create a pool. + """ loadBalancerPoolCreate(input: CreateLoadBalancerPoolInput!): LoadBalancerPoolCreatePayload! - """Update a pool.""" + """ + Update a pool. + """ loadBalancerPoolUpdate(id: ID!, input: UpdateLoadBalancerPoolInput!): LoadBalancerPoolUpdatePayload! - """Delete a pool.""" + """ + Delete a pool. + """ loadBalancerPoolDelete(id: ID!): LoadBalancerPoolDeletePayload! - """Create a load balancer port.""" + """ + Create a load balancer port. + """ loadBalancerPortCreate(input: CreateLoadBalancerPortInput!): LoadBalancerPortCreatePayload! - """Update a load balancer port.""" + """ + Update a load balancer port. + """ loadBalancerPortUpdate(id: ID!, input: UpdateLoadBalancerPortInput!): LoadBalancerPortUpdatePayload! - """Delete a load balancer port""" + """ + Delete a load balancer port + """ loadBalancerPortDelete(id: ID!): LoadBalancerPortDeletePayload! - """Create a load balancer provider.""" + """ + Create a load balancer provider. + """ loadBalancerProviderCreate(input: CreateLoadBalancerProviderInput!): LoadBalancerProviderCreatePayload! - """Update a load balancer provider.""" + """ + Update a load balancer provider. + """ loadBalancerProviderUpdate(id: ID!, input: UpdateLoadBalancerProviderInput!): LoadBalancerProviderUpdatePayload! - """Delete a load balancer provider.""" + """ + Delete a load balancer provider. + """ loadBalancerProviderDelete(id: ID!): LoadBalancerProviderDeletePayload! } """ @@ -1144,14 +1536,22 @@ An object with an ID. Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) """ interface Node { - """The id of the object.""" + """ + The id of the object. + """ id: ID! } -"""Possible directions in which to order a list of items when provided an `orderBy` argument.""" +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" enum OrderDirection { - """Specifies an ascending order for a given `orderBy` argument.""" + """ + Specifies an ascending order for a given `orderBy` argument. + """ ASC - """Specifies a descending order for a given `orderBy` argument.""" + """ + Specifies a descending order for a given `orderBy` argument. + """ DESC } """ @@ -1159,58 +1559,67 @@ Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo """ type PageInfo @shareable { - """When paginating forwards, are there more items?""" + """ + When paginating forwards, are there more items? + """ hasNextPage: Boolean! - """When paginating backwards, are there more items?""" + """ + When paginating backwards, are there more items? + """ hasPreviousPage: Boolean! - """When paginating backwards, the cursor to continue.""" + """ + When paginating backwards, the cursor to continue. + """ startCursor: Cursor - """When paginating forwards, the cursor to continue.""" + """ + When paginating forwards, the cursor to continue. + """ endCursor: Cursor } type Query { - loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" - after: Cursor - - """Returns the first _n_ elements from the list.""" - first: Int - - """Returns the elements in the list that come before the specified cursor.""" - before: Cursor - - """Returns the last _n_ elements from the list.""" - last: Int - - """Ordering options for LoadBalancerPools returned from the connection.""" - orderBy: LoadBalancerPoolOrder - - """Filtering options for LoadBalancerPools returned from the connection.""" - where: LoadBalancerPoolWhereInput - ): LoadBalancerPoolConnection! - """Lookup a load balancer by ID.""" + """ + Lookup a load balancer by ID. + """ loadBalancer( - """The load balancer ID.""" + """ + The load balancer ID. + """ id: ID! ): LoadBalancer! - """Lookup a load balancer by ID.""" + """ + Lookup a load balancer by ID. + """ loadBalancerHistory( - """The load balancer ID.""" + """ + The load balancer ID. + """ id: ID! ): LoadBalancer! - """Lookup a pool by ID.""" + """ + Lookup a pool by ID. + """ loadBalancerPool( - """The pool ID.""" + """ + The pool ID. + """ id: ID! ): LoadBalancerPool! - """Lookup a port by ID.""" + """ + Lookup a port by ID. + """ loadBalancerPort( - """The port ID.""" + """ + The port ID. + """ id: ID! ): LoadBalancerPort! - """Lookup a load balancer provider by ID.""" + """ + Lookup a load balancer provider by ID. + """ loadBalancerProvider( - """The load balancer provider ID.""" + """ + The load balancer provider ID. + """ id: ID! ): LoadBalancerProvider! _entities(representations: [_Any!]!): [_Entity]! @@ -1219,68 +1628,110 @@ type Query { type ResourceOwner @interfaceObject @key(fields: "id") { id: ID! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPools returned from the connection.""" + """ + Ordering options for LoadBalancerPools returned from the connection. + """ orderBy: LoadBalancerPoolOrder - """Filtering options for LoadBalancerPools returned from the connection.""" + """ + Filtering options for LoadBalancerPools returned from the connection. + """ where: LoadBalancerPoolWhereInput ): LoadBalancerPoolConnection! loadBalancersProviders( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerProviders returned from the connection.""" + """ + Ordering options for LoadBalancerProviders returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancerProviders returned from the connection.""" + """ + Filtering options for LoadBalancerProviders returned from the connection. + """ where: LoadBalancerProviderWhereInput ): LoadBalancerProviderConnection! } -"""The builtin Time type""" +""" +The builtin Time type +""" scalar Time -"""Input information to update a load balancer.""" +""" +Input information to update a load balancer. +""" input UpdateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String addPortIDs: [ID!] removePortIDs: [ID!] @@ -1323,9 +1774,13 @@ input UpdateLoadBalancerPortInput { removePoolIDs: [ID!] clearPools: Boolean } -"""Input information to update a load balancer provider.""" +""" +Input information to update a load balancer provider. +""" input UpdateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String } scalar _Any diff --git a/schema.graphql b/schema.graphql index dd589d43f..67c904161 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,11 +1,19 @@ directive @prefixedID(prefix: String!) on OBJECT -"""Input information to create a load balancer.""" +""" +Input information to create a load balancer. +""" input CreateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! - """The ID for the location of this load balancer.""" + """ + The ID for the location of this load balancer. + """ locationID: ID! portIDs: [ID!] providerID: ID! @@ -43,11 +51,17 @@ input CreateLoadBalancerPortInput { poolIDs: [ID!] loadBalancerID: ID! } -"""Input information to create a load balancer provider.""" +""" +Input information to create a load balancer provider. +""" input CreateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! } """ @@ -58,10 +72,14 @@ scalar Cursor interface IPAddressable { id: ID! } -"""A valid JSON string.""" +""" +A valid JSON string. +""" scalar JSON type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "id") @prefixedID(prefix: "loadbal") { - """The ID for the load balancer.""" + """ + The ID for the load balancer. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -69,68 +87,118 @@ type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "i updatedBy: String deletedAt: Time deletedBy: String - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! ports( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPorts returned from the connection.""" + """ + Ordering options for LoadBalancerPorts returned from the connection. + """ orderBy: LoadBalancerPortOrder - """Filtering options for LoadBalancerPorts returned from the connection.""" + """ + Filtering options for LoadBalancerPorts returned from the connection. + """ where: LoadBalancerPortWhereInput ): LoadBalancerPortConnection! - """The load balancer provider for the load balancer.""" + """ + The load balancer provider for the load balancer. + """ loadBalancerProvider: LoadBalancerProvider! - """The location of the load balancer.""" + """ + The location of the load balancer. + """ location: Location! - """The owner of the load balancer.""" + """ + The owner of the load balancer. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerCreate""" +""" +Return response from loadBalancerCreate +""" type LoadBalancerCreatePayload { - """The created load balancer.""" + """ + The created load balancer. + """ loadBalancer: LoadBalancer! } -"""Return response from loadBalancerDelete""" +""" +Return response from loadBalancerDelete +""" type LoadBalancerDeletePayload { - """The ID of the deleted load balancer.""" + """ + The ID of the deleted load balancer. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancer - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancer connections""" +""" +Ordering options for LoadBalancer connections +""" input LoadBalancerOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancers.""" + """ + The field by which to order LoadBalancers. + """ field: LoadBalancerOrderField! } -"""Properties by which LoadBalancer connections can be ordered.""" +""" +Properties by which LoadBalancer connections can be ordered. +""" enum LoadBalancerOrderField { ID CREATED_AT @@ -158,40 +226,70 @@ type LoadBalancerOrigin implements Node @key(fields: "id") @prefixedID(prefix: " poolID: ID! pool: LoadBalancerPool! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerOriginConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerOriginEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerOriginCreate""" +""" +Return response from loadBalancerOriginCreate +""" type LoadBalancerOriginCreatePayload { - """The created pool origin.""" + """ + The created pool origin. + """ loadBalancerOrigin: LoadBalancerOrigin! } -"""Return response from loadBalancerOriginDelete""" +""" +Return response from loadBalancerOriginDelete +""" type LoadBalancerOriginDeletePayload { - """The deleted pool origin.""" + """ + The deleted pool origin. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerOriginEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerOrigin - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerOrigin connections""" +""" +Ordering options for LoadBalancerOrigin connections +""" input LoadBalancerOriginOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerOrigins.""" + """ + The field by which to order LoadBalancerOrigins. + """ field: LoadBalancerOriginOrderField! } -"""Properties by which LoadBalancerOrigin connections can be ordered.""" +""" +Properties by which LoadBalancerOrigin connections can be ordered. +""" enum LoadBalancerOriginOrderField { CREATED_AT UPDATED_AT @@ -205,9 +303,13 @@ enum LoadBalancerOriginOrderField { number active } -"""Return response from loadBalancerOriginUpdate""" +""" +Return response from loadBalancerOriginUpdate +""" type LoadBalancerOriginUpdatePayload { - """The updated pool origin.""" + """ + The updated pool origin. + """ loadBalancerOrigin: LoadBalancerOrigin! } """ @@ -218,7 +320,9 @@ input LoadBalancerOriginWhereInput { not: LoadBalancerOriginWhereInput and: [LoadBalancerOriginWhereInput!] or: [LoadBalancerOriginWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -227,7 +331,9 @@ input LoadBalancerOriginWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -236,7 +342,9 @@ input LoadBalancerOriginWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -245,7 +353,9 @@ input LoadBalancerOriginWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -256,7 +366,9 @@ input LoadBalancerOriginWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -272,7 +384,9 @@ input LoadBalancerOriginWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -288,7 +402,9 @@ input LoadBalancerOriginWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -304,7 +420,9 @@ input LoadBalancerOriginWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -318,7 +436,9 @@ input LoadBalancerOriginWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """weight field predicates""" + """ + weight field predicates + """ weight: Int weightNEQ: Int weightIn: [Int!] @@ -327,7 +447,9 @@ input LoadBalancerOriginWhereInput { weightGTE: Int weightLT: Int weightLTE: Int - """target field predicates""" + """ + target field predicates + """ target: String targetNEQ: String targetIn: [String!] @@ -341,7 +463,9 @@ input LoadBalancerOriginWhereInput { targetHasSuffix: String targetEqualFold: String targetContainsFold: String - """port_number field predicates""" + """ + port_number field predicates + """ portNumber: Int portNumberNEQ: Int portNumberIn: [Int!] @@ -350,10 +474,14 @@ input LoadBalancerOriginWhereInput { portNumberGTE: Int portNumberLT: Int portNumberLTE: Int - """active field predicates""" + """ + active field predicates + """ active: Boolean activeNEQ: Boolean - """pool edge predicates""" + """ + pool edge predicates + """ hasPool: Boolean hasPoolWith: [LoadBalancerPoolWhereInput!] } @@ -370,61 +498,105 @@ type LoadBalancerPool implements Node @key(fields: "id") @prefixedID(prefix: "lo ownerID: ID! ports: [LoadBalancerPort!] origins( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerOrigins returned from the connection.""" + """ + Ordering options for LoadBalancerOrigins returned from the connection. + """ orderBy: LoadBalancerOriginOrder - """Filtering options for LoadBalancerOrigins returned from the connection.""" + """ + Filtering options for LoadBalancerOrigins returned from the connection. + """ where: LoadBalancerOriginWhereInput ): LoadBalancerOriginConnection! - """The owner of the load balancer pool.""" + """ + The owner of the load balancer pool. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPoolConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPoolEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from LoadBalancerPoolCreate""" +""" +Return response from LoadBalancerPoolCreate +""" type LoadBalancerPoolCreatePayload { - """The created pool.""" + """ + The created pool. + """ loadBalancerPool: LoadBalancerPool! } -"""Return response from LoadBalancerPoolDelete""" +""" +Return response from LoadBalancerPoolDelete +""" type LoadBalancerPoolDeletePayload { - """The ID of the deleted pool.""" + """ + The ID of the deleted pool. + """ deletedID: ID } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPoolEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPool - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPool connections""" +""" +Ordering options for LoadBalancerPool connections +""" input LoadBalancerPoolOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPools.""" + """ + The field by which to order LoadBalancerPools. + """ field: LoadBalancerPoolOrderField! } -"""Properties by which LoadBalancerPool connections can be ordered.""" +""" +Properties by which LoadBalancerPool connections can be ordered. +""" enum LoadBalancerPoolOrderField { CREATED_AT UPDATED_AT @@ -435,14 +607,20 @@ enum LoadBalancerPoolOrderField { name protocol } -"""LoadBalancerPoolProtocol is enum for the field protocol""" +""" +LoadBalancerPoolProtocol is enum for the field protocol +""" enum LoadBalancerPoolProtocol { tcp udp } -"""Return response from LoadBalancerPoolUpdate""" +""" +Return response from LoadBalancerPoolUpdate +""" type LoadBalancerPoolUpdatePayload { - """The updated pool.""" + """ + The updated pool. + """ loadBalancerPool: LoadBalancerPool! } """ @@ -453,7 +631,9 @@ input LoadBalancerPoolWhereInput { not: LoadBalancerPoolWhereInput and: [LoadBalancerPoolWhereInput!] or: [LoadBalancerPoolWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -462,7 +642,9 @@ input LoadBalancerPoolWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -471,7 +653,9 @@ input LoadBalancerPoolWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -480,7 +664,9 @@ input LoadBalancerPoolWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -496,7 +682,9 @@ input LoadBalancerPoolWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -512,7 +700,9 @@ input LoadBalancerPoolWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -523,7 +713,9 @@ input LoadBalancerPoolWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -539,7 +731,9 @@ input LoadBalancerPoolWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -553,15 +747,21 @@ input LoadBalancerPoolWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """protocol field predicates""" + """ + protocol field predicates + """ protocol: LoadBalancerPoolProtocol protocolNEQ: LoadBalancerPoolProtocol protocolIn: [LoadBalancerPoolProtocol!] protocolNotIn: [LoadBalancerPoolProtocol!] - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """origins edge predicates""" + """ + origins edge predicates + """ hasOrigins: Boolean hasOriginsWith: [LoadBalancerOriginWhereInput!] } @@ -579,40 +779,70 @@ type LoadBalancerPort implements Node @key(fields: "id") @prefixedID(prefix: "lo pools: [LoadBalancerPool!] loadBalancer: LoadBalancer! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPortConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPortEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerPortCreate""" +""" +Return response from loadBalancerPortCreate +""" type LoadBalancerPortCreatePayload { - """The created load balancer port.""" + """ + The created load balancer port. + """ loadBalancerPort: LoadBalancerPort! } -"""Return response from loadBalancerPortDelete""" +""" +Return response from loadBalancerPortDelete +""" type LoadBalancerPortDeletePayload { - """The ID of the deleted load balancer port.""" + """ + The ID of the deleted load balancer port. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPortEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPort - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPort connections""" +""" +Ordering options for LoadBalancerPort connections +""" input LoadBalancerPortOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPorts.""" + """ + The field by which to order LoadBalancerPorts. + """ field: LoadBalancerPortOrderField! } -"""Properties by which LoadBalancerPort connections can be ordered.""" +""" +Properties by which LoadBalancerPort connections can be ordered. +""" enum LoadBalancerPortOrderField { CREATED_AT UPDATED_AT @@ -623,9 +853,13 @@ enum LoadBalancerPortOrderField { number name } -"""Return response from loadBalancerPortUpdate""" +""" +Return response from loadBalancerPortUpdate +""" type LoadBalancerPortUpdatePayload { - """The updated load balancer port.""" + """ + The updated load balancer port. + """ loadBalancerPort: LoadBalancerPort! } """ @@ -636,7 +870,9 @@ input LoadBalancerPortWhereInput { not: LoadBalancerPortWhereInput and: [LoadBalancerPortWhereInput!] or: [LoadBalancerPortWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -645,7 +881,9 @@ input LoadBalancerPortWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -654,7 +892,9 @@ input LoadBalancerPortWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -663,7 +903,9 @@ input LoadBalancerPortWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -674,7 +916,9 @@ input LoadBalancerPortWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -690,7 +934,9 @@ input LoadBalancerPortWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -706,7 +952,9 @@ input LoadBalancerPortWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -722,7 +970,9 @@ input LoadBalancerPortWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """number field predicates""" + """ + number field predicates + """ number: Int numberNEQ: Int numberIn: [Int!] @@ -731,7 +981,9 @@ input LoadBalancerPortWhereInput { numberGTE: Int numberLT: Int numberLTE: Int - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -747,15 +999,21 @@ input LoadBalancerPortWhereInput { nameNotNil: Boolean nameEqualFold: String nameContainsFold: String - """pools edge predicates""" + """ + pools edge predicates + """ hasPools: Boolean hasPoolsWith: [LoadBalancerPoolWhereInput!] - """load_balancer edge predicates""" + """ + load_balancer edge predicates + """ hasLoadBalancer: Boolean hasLoadBalancerWith: [LoadBalancerWhereInput!] } type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: "loadpvd") { - """The ID for the load balancer provider.""" + """ + The ID for the load balancer provider. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -763,64 +1021,110 @@ type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: deletedBy: String createdBy: String updatedBy: String - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! - """The owner of the load balancer provider.""" + """ + The owner of the load balancer provider. + """ owner: ResourceOwner! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerProviderConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerProviderEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""Return response from loadBalancerProviderCreate""" +""" +Return response from loadBalancerProviderCreate +""" type LoadBalancerProviderCreatePayload { - """The created load balancer provider.""" + """ + The created load balancer provider. + """ loadBalancerProvider: LoadBalancerProvider! } -"""Return response from loadBalancerProviderDelete""" +""" +Return response from loadBalancerProviderDelete +""" type LoadBalancerProviderDeletePayload { - """The ID of the deleted load balancer provider.""" + """ + The ID of the deleted load balancer provider. + """ deletedID: ID! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerProviderEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerProvider - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerProvider connections""" +""" +Ordering options for LoadBalancerProvider connections +""" input LoadBalancerProviderOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerProviders.""" + """ + The field by which to order LoadBalancerProviders. + """ field: LoadBalancerProviderOrderField! } -"""Properties by which LoadBalancerProvider connections can be ordered.""" +""" +Properties by which LoadBalancerProvider connections can be ordered. +""" enum LoadBalancerProviderOrderField { ID CREATED_AT @@ -832,9 +1136,13 @@ enum LoadBalancerProviderOrderField { NAME OWNER } -"""Return response from loadBalancerProviderUpdate""" +""" +Return response from loadBalancerProviderUpdate +""" type LoadBalancerProviderUpdatePayload { - """The updated load balancer provider.""" + """ + The updated load balancer provider. + """ loadBalancerProvider: LoadBalancerProvider! } """ @@ -845,7 +1153,9 @@ input LoadBalancerProviderWhereInput { not: LoadBalancerProviderWhereInput and: [LoadBalancerProviderWhereInput!] or: [LoadBalancerProviderWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -854,7 +1164,9 @@ input LoadBalancerProviderWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -863,7 +1175,9 @@ input LoadBalancerProviderWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -872,7 +1186,9 @@ input LoadBalancerProviderWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -883,7 +1199,9 @@ input LoadBalancerProviderWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -899,7 +1217,9 @@ input LoadBalancerProviderWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -915,7 +1235,9 @@ input LoadBalancerProviderWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -931,7 +1253,9 @@ input LoadBalancerProviderWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -945,13 +1269,19 @@ input LoadBalancerProviderWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """load_balancers edge predicates""" + """ + load_balancers edge predicates + """ hasLoadBalancers: Boolean hasLoadBalancersWith: [LoadBalancerWhereInput!] } -"""Return response from loadBalancerUpdate""" +""" +Return response from loadBalancerUpdate +""" type LoadBalancerUpdatePayload { - """The updated load balancer.""" + """ + The updated load balancer. + """ loadBalancer: LoadBalancer! } """ @@ -962,7 +1292,9 @@ input LoadBalancerWhereInput { not: LoadBalancerWhereInput and: [LoadBalancerWhereInput!] or: [LoadBalancerWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -971,7 +1303,9 @@ input LoadBalancerWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -980,7 +1314,9 @@ input LoadBalancerWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -989,7 +1325,9 @@ input LoadBalancerWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -1005,7 +1343,9 @@ input LoadBalancerWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -1021,7 +1361,9 @@ input LoadBalancerWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -1032,7 +1374,9 @@ input LoadBalancerWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -1048,7 +1392,9 @@ input LoadBalancerWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -1062,32 +1408,48 @@ input LoadBalancerWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """provider edge predicates""" + """ + provider edge predicates + """ hasProvider: Boolean hasProviderWith: [LoadBalancerProviderWhereInput!] } type Location @key(fields: "id") { id: ID! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! } @@ -1095,35 +1457,65 @@ interface MetadataNode { id: ID! } type Mutation { - """Create a loadbalancer pool origin""" + """ + Create a loadbalancer pool origin + """ loadBalancerOriginCreate(input: CreateLoadBalancerOriginInput!): LoadBalancerOriginCreatePayload! - """Update a loadbalancer pool origin""" + """ + Update a loadbalancer pool origin + """ loadBalancerOriginUpdate(id: ID!, input: UpdateLoadBalancerOriginInput!): LoadBalancerOriginUpdatePayload! - """Delete a loadbalancer pool origin""" + """ + Delete a loadbalancer pool origin + """ loadBalancerOriginDelete(id: ID!): LoadBalancerOriginDeletePayload! - """Create a load balancer.""" + """ + Create a load balancer. + """ loadBalancerCreate(input: CreateLoadBalancerInput!): LoadBalancerCreatePayload! - """Update a load balancer.""" + """ + Update a load balancer. + """ loadBalancerUpdate(id: ID!, input: UpdateLoadBalancerInput!): LoadBalancerUpdatePayload! - """Delete a load balancer.""" + """ + Delete a load balancer. + """ loadBalancerDelete(id: ID!): LoadBalancerDeletePayload! - """Create a pool.""" + """ + Create a pool. + """ loadBalancerPoolCreate(input: CreateLoadBalancerPoolInput!): LoadBalancerPoolCreatePayload! - """Update a pool.""" + """ + Update a pool. + """ loadBalancerPoolUpdate(id: ID!, input: UpdateLoadBalancerPoolInput!): LoadBalancerPoolUpdatePayload! - """Delete a pool.""" + """ + Delete a pool. + """ loadBalancerPoolDelete(id: ID!): LoadBalancerPoolDeletePayload! - """Create a load balancer port.""" + """ + Create a load balancer port. + """ loadBalancerPortCreate(input: CreateLoadBalancerPortInput!): LoadBalancerPortCreatePayload! - """Update a load balancer port.""" + """ + Update a load balancer port. + """ loadBalancerPortUpdate(id: ID!, input: UpdateLoadBalancerPortInput!): LoadBalancerPortUpdatePayload! - """Delete a load balancer port""" + """ + Delete a load balancer port + """ loadBalancerPortDelete(id: ID!): LoadBalancerPortDeletePayload! - """Create a load balancer provider.""" + """ + Create a load balancer provider. + """ loadBalancerProviderCreate(input: CreateLoadBalancerProviderInput!): LoadBalancerProviderCreatePayload! - """Update a load balancer provider.""" + """ + Update a load balancer provider. + """ loadBalancerProviderUpdate(id: ID!, input: UpdateLoadBalancerProviderInput!): LoadBalancerProviderUpdatePayload! - """Delete a load balancer provider.""" + """ + Delete a load balancer provider. + """ loadBalancerProviderDelete(id: ID!): LoadBalancerProviderDeletePayload! } """ @@ -1131,14 +1523,22 @@ An object with an ID. Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) """ interface Node { - """The id of the object.""" + """ + The id of the object. + """ id: ID! } -"""Possible directions in which to order a list of items when provided an `orderBy` argument.""" +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" enum OrderDirection { - """Specifies an ascending order for a given `orderBy` argument.""" + """ + Specifies an ascending order for a given `orderBy` argument. + """ ASC - """Specifies a descending order for a given `orderBy` argument.""" + """ + Specifies a descending order for a given `orderBy` argument. + """ DESC } """ @@ -1146,58 +1546,67 @@ Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo """ type PageInfo @shareable { - """When paginating forwards, are there more items?""" + """ + When paginating forwards, are there more items? + """ hasNextPage: Boolean! - """When paginating backwards, are there more items?""" + """ + When paginating backwards, are there more items? + """ hasPreviousPage: Boolean! - """When paginating backwards, the cursor to continue.""" + """ + When paginating backwards, the cursor to continue. + """ startCursor: Cursor - """When paginating forwards, the cursor to continue.""" + """ + When paginating forwards, the cursor to continue. + """ endCursor: Cursor } type Query { - loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" - after: Cursor - - """Returns the first _n_ elements from the list.""" - first: Int - - """Returns the elements in the list that come before the specified cursor.""" - before: Cursor - - """Returns the last _n_ elements from the list.""" - last: Int - - """Ordering options for LoadBalancerPools returned from the connection.""" - orderBy: LoadBalancerPoolOrder - - """Filtering options for LoadBalancerPools returned from the connection.""" - where: LoadBalancerPoolWhereInput - ): LoadBalancerPoolConnection! - """Lookup a load balancer by ID.""" + """ + Lookup a load balancer by ID. + """ loadBalancer( - """The load balancer ID.""" + """ + The load balancer ID. + """ id: ID! ): LoadBalancer! - """Lookup a load balancer by ID.""" + """ + Lookup a load balancer by ID. + """ loadBalancerHistory( - """The load balancer ID.""" + """ + The load balancer ID. + """ id: ID! ): LoadBalancer! - """Lookup a pool by ID.""" + """ + Lookup a pool by ID. + """ loadBalancerPool( - """The pool ID.""" + """ + The pool ID. + """ id: ID! ): LoadBalancerPool! - """Lookup a port by ID.""" + """ + Lookup a port by ID. + """ loadBalancerPort( - """The port ID.""" + """ + The port ID. + """ id: ID! ): LoadBalancerPort! - """Lookup a load balancer provider by ID.""" + """ + Lookup a load balancer provider by ID. + """ loadBalancerProvider( - """The load balancer provider ID.""" + """ + The load balancer provider ID. + """ id: ID! ): LoadBalancerProvider! _entities(representations: [_Any!]!): [_Entity]! @@ -1206,68 +1615,110 @@ type Query { type ResourceOwner @interfaceObject @key(fields: "id") { id: ID! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPools returned from the connection.""" + """ + Ordering options for LoadBalancerPools returned from the connection. + """ orderBy: LoadBalancerPoolOrder - """Filtering options for LoadBalancerPools returned from the connection.""" + """ + Filtering options for LoadBalancerPools returned from the connection. + """ where: LoadBalancerPoolWhereInput ): LoadBalancerPoolConnection! loadBalancersProviders( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerProviders returned from the connection.""" + """ + Ordering options for LoadBalancerProviders returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancerProviders returned from the connection.""" + """ + Filtering options for LoadBalancerProviders returned from the connection. + """ where: LoadBalancerProviderWhereInput ): LoadBalancerProviderConnection! } -"""The builtin Time type""" +""" +The builtin Time type +""" scalar Time -"""Input information to update a load balancer.""" +""" +Input information to update a load balancer. +""" input UpdateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String addPortIDs: [ID!] removePortIDs: [ID!] @@ -1310,9 +1761,13 @@ input UpdateLoadBalancerPortInput { removePoolIDs: [ID!] clearPools: Boolean } -"""Input information to update a load balancer provider.""" +""" +Input information to update a load balancer provider. +""" input UpdateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String } scalar _Any diff --git a/schema/ent.graphql b/schema/ent.graphql index 677f4dab5..d13db19a9 100644 --- a/schema/ent.graphql +++ b/schema/ent.graphql @@ -1,12 +1,20 @@ directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION -"""Input information to create a load balancer.""" +""" +Input information to create a load balancer. +""" input CreateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! - """The ID for the location of this load balancer.""" + """ + The ID for the location of this load balancer. + """ locationID: ID! portIDs: [ID!] providerID: ID! @@ -44,11 +52,17 @@ input CreateLoadBalancerPortInput { poolIDs: [ID!] loadBalancerID: ID! } -"""Input information to create a load balancer provider.""" +""" +Input information to create a load balancer provider. +""" input CreateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! - """The ID for the owner for this load balancer.""" + """ + The ID for the owner for this load balancer. + """ ownerID: ID! } """ @@ -56,10 +70,14 @@ Define a Relay Cursor type: https://relay.dev/graphql/connections.htm#sec-Cursor """ scalar Cursor -"""A valid JSON string.""" +""" +A valid JSON string. +""" scalar JSON type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "id") @prefixedID(prefix: "loadbal") { - """The ID for the load balancer.""" + """ + The ID for the load balancer. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -67,54 +85,92 @@ type LoadBalancer implements Node & IPAddressable & MetadataNode @key(fields: "i updatedBy: String deletedAt: Time deletedBy: String - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String! ports( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerPorts returned from the connection.""" + """ + Ordering options for LoadBalancerPorts returned from the connection. + """ orderBy: LoadBalancerPortOrder - """Filtering options for LoadBalancerPorts returned from the connection.""" + """ + Filtering options for LoadBalancerPorts returned from the connection. + """ where: LoadBalancerPortWhereInput ): LoadBalancerPortConnection! - """The load balancer provider for the load balancer.""" + """ + The load balancer provider for the load balancer. + """ loadBalancerProvider: LoadBalancerProvider! @goField(name: "Provider", forceResolver: false) } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancer - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancer connections""" +""" +Ordering options for LoadBalancer connections +""" input LoadBalancerOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancers.""" + """ + The field by which to order LoadBalancers. + """ field: LoadBalancerOrderField! } -"""Properties by which LoadBalancer connections can be ordered.""" +""" +Properties by which LoadBalancer connections can be ordered. +""" enum LoadBalancerOrderField { ID CREATED_AT @@ -142,30 +198,52 @@ type LoadBalancerOrigin implements Node @key(fields: "id") @prefixedID(prefix: " poolID: ID! pool: LoadBalancerPool! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerOriginConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerOriginEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerOriginEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerOrigin - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerOrigin connections""" +""" +Ordering options for LoadBalancerOrigin connections +""" input LoadBalancerOriginOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerOrigins.""" + """ + The field by which to order LoadBalancerOrigins. + """ field: LoadBalancerOriginOrderField! } -"""Properties by which LoadBalancerOrigin connections can be ordered.""" +""" +Properties by which LoadBalancerOrigin connections can be ordered. +""" enum LoadBalancerOriginOrderField { CREATED_AT UPDATED_AT @@ -187,7 +265,9 @@ input LoadBalancerOriginWhereInput { not: LoadBalancerOriginWhereInput and: [LoadBalancerOriginWhereInput!] or: [LoadBalancerOriginWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -196,7 +276,9 @@ input LoadBalancerOriginWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -205,7 +287,9 @@ input LoadBalancerOriginWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -214,7 +298,9 @@ input LoadBalancerOriginWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -225,7 +311,9 @@ input LoadBalancerOriginWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -241,7 +329,9 @@ input LoadBalancerOriginWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -257,7 +347,9 @@ input LoadBalancerOriginWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -273,7 +365,9 @@ input LoadBalancerOriginWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -287,7 +381,9 @@ input LoadBalancerOriginWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """weight field predicates""" + """ + weight field predicates + """ weight: Int weightNEQ: Int weightIn: [Int!] @@ -296,7 +392,9 @@ input LoadBalancerOriginWhereInput { weightGTE: Int weightLT: Int weightLTE: Int - """target field predicates""" + """ + target field predicates + """ target: String targetNEQ: String targetIn: [String!] @@ -310,7 +408,9 @@ input LoadBalancerOriginWhereInput { targetHasSuffix: String targetEqualFold: String targetContainsFold: String - """port_number field predicates""" + """ + port_number field predicates + """ portNumber: Int portNumberNEQ: Int portNumberIn: [Int!] @@ -319,10 +419,14 @@ input LoadBalancerOriginWhereInput { portNumberGTE: Int portNumberLT: Int portNumberLTE: Int - """active field predicates""" + """ + active field predicates + """ active: Boolean activeNEQ: Boolean - """pool edge predicates""" + """ + pool edge predicates + """ hasPool: Boolean hasPoolWith: [LoadBalancerPoolWhereInput!] } @@ -339,49 +443,83 @@ type LoadBalancerPool implements Node @key(fields: "id") @prefixedID(prefix: "lo ownerID: ID! ports: [LoadBalancerPort!] origins( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancerOrigins returned from the connection.""" + """ + Ordering options for LoadBalancerOrigins returned from the connection. + """ orderBy: LoadBalancerOriginOrder - """Filtering options for LoadBalancerOrigins returned from the connection.""" + """ + Filtering options for LoadBalancerOrigins returned from the connection. + """ where: LoadBalancerOriginWhereInput ): LoadBalancerOriginConnection! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPoolConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPoolEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPoolEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPool - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPool connections""" +""" +Ordering options for LoadBalancerPool connections +""" input LoadBalancerPoolOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPools.""" + """ + The field by which to order LoadBalancerPools. + """ field: LoadBalancerPoolOrderField! } -"""Properties by which LoadBalancerPool connections can be ordered.""" +""" +Properties by which LoadBalancerPool connections can be ordered. +""" enum LoadBalancerPoolOrderField { CREATED_AT UPDATED_AT @@ -392,7 +530,9 @@ enum LoadBalancerPoolOrderField { name protocol } -"""LoadBalancerPoolProtocol is enum for the field protocol""" +""" +LoadBalancerPoolProtocol is enum for the field protocol +""" enum LoadBalancerPoolProtocol @goModel(model: "go.infratographer.com/load-balancer-api/internal/ent/generated/pool.Protocol") { tcp udp @@ -405,7 +545,9 @@ input LoadBalancerPoolWhereInput { not: LoadBalancerPoolWhereInput and: [LoadBalancerPoolWhereInput!] or: [LoadBalancerPoolWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -414,7 +556,9 @@ input LoadBalancerPoolWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -423,7 +567,9 @@ input LoadBalancerPoolWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -432,7 +578,9 @@ input LoadBalancerPoolWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -448,7 +596,9 @@ input LoadBalancerPoolWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -464,7 +614,9 @@ input LoadBalancerPoolWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -475,7 +627,9 @@ input LoadBalancerPoolWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -491,7 +645,9 @@ input LoadBalancerPoolWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -505,15 +661,21 @@ input LoadBalancerPoolWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """protocol field predicates""" + """ + protocol field predicates + """ protocol: LoadBalancerPoolProtocol protocolNEQ: LoadBalancerPoolProtocol protocolIn: [LoadBalancerPoolProtocol!] protocolNotIn: [LoadBalancerPoolProtocol!] - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """origins edge predicates""" + """ + origins edge predicates + """ hasOrigins: Boolean hasOriginsWith: [LoadBalancerOriginWhereInput!] } @@ -531,30 +693,52 @@ type LoadBalancerPort implements Node @key(fields: "id") @prefixedID(prefix: "lo pools: [LoadBalancerPool!] loadBalancer: LoadBalancer! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerPortConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerPortEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerPortEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerPort - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerPort connections""" +""" +Ordering options for LoadBalancerPort connections +""" input LoadBalancerPortOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerPorts.""" + """ + The field by which to order LoadBalancerPorts. + """ field: LoadBalancerPortOrderField! } -"""Properties by which LoadBalancerPort connections can be ordered.""" +""" +Properties by which LoadBalancerPort connections can be ordered. +""" enum LoadBalancerPortOrderField { CREATED_AT UPDATED_AT @@ -573,7 +757,9 @@ input LoadBalancerPortWhereInput { not: LoadBalancerPortWhereInput and: [LoadBalancerPortWhereInput!] or: [LoadBalancerPortWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -582,7 +768,9 @@ input LoadBalancerPortWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -591,7 +779,9 @@ input LoadBalancerPortWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -600,7 +790,9 @@ input LoadBalancerPortWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -611,7 +803,9 @@ input LoadBalancerPortWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -627,7 +821,9 @@ input LoadBalancerPortWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -643,7 +839,9 @@ input LoadBalancerPortWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -659,7 +857,9 @@ input LoadBalancerPortWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """number field predicates""" + """ + number field predicates + """ number: Int numberNEQ: Int numberIn: [Int!] @@ -668,7 +868,9 @@ input LoadBalancerPortWhereInput { numberGTE: Int numberLT: Int numberLTE: Int - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -684,15 +886,21 @@ input LoadBalancerPortWhereInput { nameNotNil: Boolean nameEqualFold: String nameContainsFold: String - """pools edge predicates""" + """ + pools edge predicates + """ hasPools: Boolean hasPoolsWith: [LoadBalancerPoolWhereInput!] - """load_balancer edge predicates""" + """ + load_balancer edge predicates + """ hasLoadBalancer: Boolean hasLoadBalancerWith: [LoadBalancerWhereInput!] } type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: "loadpvd") @goModel(model: "go.infratographer.com/load-balancer-api/internal/ent/generated.Provider") { - """The ID for the load balancer provider.""" + """ + The ID for the load balancer provider. + """ id: ID! createdAt: Time! updatedAt: Time! @@ -700,52 +908,88 @@ type LoadBalancerProvider implements Node @key(fields: "id") @prefixedID(prefix: deletedBy: String createdBy: String updatedBy: String - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String! loadBalancers( - """Returns the elements in the list that come after the specified cursor.""" + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor - """Returns the first _n_ elements from the list.""" + """ + Returns the first _n_ elements from the list. + """ first: Int - """Returns the elements in the list that come before the specified cursor.""" + """ + Returns the elements in the list that come before the specified cursor. + """ before: Cursor - """Returns the last _n_ elements from the list.""" + """ + Returns the last _n_ elements from the list. + """ last: Int - """Ordering options for LoadBalancers returned from the connection.""" + """ + Ordering options for LoadBalancers returned from the connection. + """ orderBy: LoadBalancerOrder - """Filtering options for LoadBalancers returned from the connection.""" + """ + Filtering options for LoadBalancers returned from the connection. + """ where: LoadBalancerWhereInput ): LoadBalancerConnection! } -"""A connection to a list of items.""" +""" +A connection to a list of items. +""" type LoadBalancerProviderConnection { - """A list of edges.""" + """ + A list of edges. + """ edges: [LoadBalancerProviderEdge] - """Information to aid in pagination.""" + """ + Information to aid in pagination. + """ pageInfo: PageInfo! - """Identifies the total count of items in the connection.""" + """ + Identifies the total count of items in the connection. + """ totalCount: Int! } -"""An edge in a connection.""" +""" +An edge in a connection. +""" type LoadBalancerProviderEdge { - """The item at the end of the edge.""" + """ + The item at the end of the edge. + """ node: LoadBalancerProvider - """A cursor for use in pagination.""" + """ + A cursor for use in pagination. + """ cursor: Cursor! } -"""Ordering options for LoadBalancerProvider connections""" +""" +Ordering options for LoadBalancerProvider connections +""" input LoadBalancerProviderOrder { - """The ordering direction.""" + """ + The ordering direction. + """ direction: OrderDirection! = ASC - """The field by which to order LoadBalancerProviders.""" + """ + The field by which to order LoadBalancerProviders. + """ field: LoadBalancerProviderOrderField! } -"""Properties by which LoadBalancerProvider connections can be ordered.""" +""" +Properties by which LoadBalancerProvider connections can be ordered. +""" enum LoadBalancerProviderOrderField { ID CREATED_AT @@ -765,7 +1009,9 @@ input LoadBalancerProviderWhereInput { not: LoadBalancerProviderWhereInput and: [LoadBalancerProviderWhereInput!] or: [LoadBalancerProviderWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -774,7 +1020,9 @@ input LoadBalancerProviderWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -783,7 +1031,9 @@ input LoadBalancerProviderWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -792,7 +1042,9 @@ input LoadBalancerProviderWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -803,7 +1055,9 @@ input LoadBalancerProviderWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -819,7 +1073,9 @@ input LoadBalancerProviderWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -835,7 +1091,9 @@ input LoadBalancerProviderWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -851,7 +1109,9 @@ input LoadBalancerProviderWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -865,7 +1125,9 @@ input LoadBalancerProviderWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """load_balancers edge predicates""" + """ + load_balancers edge predicates + """ hasLoadBalancers: Boolean hasLoadBalancersWith: [LoadBalancerWhereInput!] } @@ -877,7 +1139,9 @@ input LoadBalancerWhereInput { not: LoadBalancerWhereInput and: [LoadBalancerWhereInput!] or: [LoadBalancerWhereInput!] - """id field predicates""" + """ + id field predicates + """ id: ID idNEQ: ID idIn: [ID!] @@ -886,7 +1150,9 @@ input LoadBalancerWhereInput { idGTE: ID idLT: ID idLTE: ID - """created_at field predicates""" + """ + created_at field predicates + """ createdAt: Time createdAtNEQ: Time createdAtIn: [Time!] @@ -895,7 +1161,9 @@ input LoadBalancerWhereInput { createdAtGTE: Time createdAtLT: Time createdAtLTE: Time - """updated_at field predicates""" + """ + updated_at field predicates + """ updatedAt: Time updatedAtNEQ: Time updatedAtIn: [Time!] @@ -904,7 +1172,9 @@ input LoadBalancerWhereInput { updatedAtGTE: Time updatedAtLT: Time updatedAtLTE: Time - """created_by field predicates""" + """ + created_by field predicates + """ createdBy: String createdByNEQ: String createdByIn: [String!] @@ -920,7 +1190,9 @@ input LoadBalancerWhereInput { createdByNotNil: Boolean createdByEqualFold: String createdByContainsFold: String - """updated_by field predicates""" + """ + updated_by field predicates + """ updatedBy: String updatedByNEQ: String updatedByIn: [String!] @@ -936,7 +1208,9 @@ input LoadBalancerWhereInput { updatedByNotNil: Boolean updatedByEqualFold: String updatedByContainsFold: String - """deleted_at field predicates""" + """ + deleted_at field predicates + """ deletedAt: Time deletedAtNEQ: Time deletedAtIn: [Time!] @@ -947,7 +1221,9 @@ input LoadBalancerWhereInput { deletedAtLTE: Time deletedAtIsNil: Boolean deletedAtNotNil: Boolean - """deleted_by field predicates""" + """ + deleted_by field predicates + """ deletedBy: String deletedByNEQ: String deletedByIn: [String!] @@ -963,7 +1239,9 @@ input LoadBalancerWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String - """name field predicates""" + """ + name field predicates + """ name: String nameNEQ: String nameIn: [String!] @@ -977,10 +1255,14 @@ input LoadBalancerWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String - """ports edge predicates""" + """ + ports edge predicates + """ hasPorts: Boolean hasPortsWith: [LoadBalancerPortWhereInput!] - """provider edge predicates""" + """ + provider edge predicates + """ hasProvider: Boolean hasProviderWith: [LoadBalancerProviderWhereInput!] } @@ -989,14 +1271,22 @@ An object with an ID. Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) """ interface Node { - """The id of the object.""" + """ + The id of the object. + """ id: ID! } -"""Possible directions in which to order a list of items when provided an `orderBy` argument.""" +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" enum OrderDirection { - """Specifies an ascending order for a given `orderBy` argument.""" + """ + Specifies an ascending order for a given `orderBy` argument. + """ ASC - """Specifies a descending order for a given `orderBy` argument.""" + """ + Specifies a descending order for a given `orderBy` argument. + """ DESC } """ @@ -1004,41 +1294,35 @@ Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo """ type PageInfo @shareable { - """When paginating forwards, are there more items?""" + """ + When paginating forwards, are there more items? + """ hasNextPage: Boolean! - """When paginating backwards, are there more items?""" + """ + When paginating backwards, are there more items? + """ hasPreviousPage: Boolean! - """When paginating backwards, the cursor to continue.""" + """ + When paginating backwards, the cursor to continue. + """ startCursor: Cursor - """When paginating forwards, the cursor to continue.""" + """ + When paginating forwards, the cursor to continue. + """ endCursor: Cursor } -type Query { - loadBalancerPools( - """Returns the elements in the list that come after the specified cursor.""" - after: Cursor - - """Returns the first _n_ elements from the list.""" - first: Int - - """Returns the elements in the list that come before the specified cursor.""" - before: Cursor - - """Returns the last _n_ elements from the list.""" - last: Int - - """Ordering options for LoadBalancerPools returned from the connection.""" - orderBy: LoadBalancerPoolOrder - - """Filtering options for LoadBalancerPools returned from the connection.""" - where: LoadBalancerPoolWhereInput - ): LoadBalancerPoolConnection! -} -"""The builtin Time type""" +type Query +""" +The builtin Time type +""" scalar Time -"""Input information to update a load balancer.""" +""" +Input information to update a load balancer. +""" input UpdateLoadBalancerInput { - """The name of the load balancer.""" + """ + The name of the load balancer. + """ name: String addPortIDs: [ID!] removePortIDs: [ID!] @@ -1081,8 +1365,12 @@ input UpdateLoadBalancerPortInput { removePoolIDs: [ID!] clearPools: Boolean } -"""Input information to update a load balancer provider.""" +""" +Input information to update a load balancer provider. +""" input UpdateLoadBalancerProviderInput { - """The name of the load balancer provider.""" + """ + The name of the load balancer provider. + """ name: String }