From bd143760d893bc02865b681fbda3399ff1c95500 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:02:02 +0000 Subject: [PATCH] build(deps): Bump github.com/Khan/genqlient from 0.5.0 to 0.6.0 (#67) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ben Drucker --- client/meta/genqlient.generated.go | 3053 ++++++++++------- go.mod | 4 +- go.sum | 46 +- .../Khan/genqlient/graphql/client.go | 42 +- .../github.com/Khan/genqlient/graphql/util.go | 16 +- .../x/tools/go/types/objectpath/objectpath.go | 762 ++++ .../x/tools/internal/gcimporter/gcimporter.go | 12 + .../x/tools/internal/gcimporter/iexport.go | 8 +- .../x/tools/internal/gcimporter/iimport.go | 34 +- .../tools/internal/gcimporter/ureader_yes.go | 41 +- .../internal/tokeninternal/tokeninternal.go | 92 + .../x/tools/internal/typeparams/common.go | 1 - .../x/tools/internal/typesinternal/types.go | 9 + vendor/modules.txt | 7 +- 14 files changed, 2691 insertions(+), 1436 deletions(-) create mode 100644 vendor/golang.org/x/tools/go/types/objectpath/objectpath.go diff --git a/client/meta/genqlient.generated.go b/client/meta/genqlient.generated.go index 6927d76b..15bb0a85 100644 --- a/client/meta/genqlient.generated.go +++ b/client/meta/genqlient.generated.go @@ -2198,7 +2198,7 @@ func (v *Filedrop) UnmarshalJSON(b []byte) error { src, dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal Filedrop.Endpoint: %w", err) + "unable to unmarshal Filedrop.Endpoint: %w", err) } } } @@ -2253,7 +2253,7 @@ func (v *Filedrop) __premarshalJSON() (*__premarshalFiledrop, error) { &src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal Filedrop.Endpoint: %w", err) + "unable to marshal Filedrop.Endpoint: %w", err) } } return &retval, nil @@ -2295,7 +2295,7 @@ func (v *FiledropConfig) UnmarshalJSON(b []byte) error { src, dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal FiledropConfig.Provider: %w", err) + "unable to unmarshal FiledropConfig.Provider: %w", err) } } } @@ -2326,7 +2326,7 @@ func (v *FiledropConfig) __premarshalJSON() (*__premarshalFiledropConfig, error) &src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal FiledropConfig.Provider: %w", err) + "unable to marshal FiledropConfig.Provider: %w", err) } } return &retval, nil @@ -3006,7 +3006,7 @@ func (v *Monitor) UnmarshalJSON(b []byte) error { src, dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal Monitor.Rule: %w", err) + "unable to unmarshal Monitor.Rule: %w", err) } } } @@ -3078,7 +3078,7 @@ func (v *Monitor) __premarshalJSON() (*__premarshalMonitor, error) { &src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal Monitor.Rule: %w", err) + "unable to marshal Monitor.Rule: %w", err) } } retval.NotificationSpec = v.NotificationSpec @@ -3661,12 +3661,12 @@ func (v *MonitorQueryMultiStageQuery) GetStages() []*StageQuery { return v.Stage // MonitorRule includes the requested fields of the GraphQL interface MonitorRule. // // MonitorRule is implemented by the following types: -// MonitorRuleMonitorRuleThreshold -// MonitorRuleMonitorRuleLog // MonitorRuleMonitorRuleChange -// MonitorRuleMonitorRuleFacet // MonitorRuleMonitorRuleCount +// MonitorRuleMonitorRuleFacet +// MonitorRuleMonitorRuleLog // MonitorRuleMonitorRulePromote +// MonitorRuleMonitorRuleThreshold type MonitorRule interface { implementsGraphQLInterfaceMonitorRule() // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). @@ -3677,12 +3677,12 @@ type MonitorRule interface { GetGroupByGroups() []MonitorRuleGroupByGroupsMonitorGroupInfo } -func (v *MonitorRuleMonitorRuleThreshold) implementsGraphQLInterfaceMonitorRule() {} -func (v *MonitorRuleMonitorRuleLog) implementsGraphQLInterfaceMonitorRule() {} func (v *MonitorRuleMonitorRuleChange) implementsGraphQLInterfaceMonitorRule() {} -func (v *MonitorRuleMonitorRuleFacet) implementsGraphQLInterfaceMonitorRule() {} func (v *MonitorRuleMonitorRuleCount) implementsGraphQLInterfaceMonitorRule() {} +func (v *MonitorRuleMonitorRuleFacet) implementsGraphQLInterfaceMonitorRule() {} +func (v *MonitorRuleMonitorRuleLog) implementsGraphQLInterfaceMonitorRule() {} func (v *MonitorRuleMonitorRulePromote) implementsGraphQLInterfaceMonitorRule() {} +func (v *MonitorRuleMonitorRuleThreshold) implementsGraphQLInterfaceMonitorRule() {} func __unmarshalMonitorRule(b []byte, v *MonitorRule) error { if string(b) == "null" { @@ -3698,24 +3698,24 @@ func __unmarshalMonitorRule(b []byte, v *MonitorRule) error { } switch tn.TypeName { - case "MonitorRuleThreshold": - *v = new(MonitorRuleMonitorRuleThreshold) - return json.Unmarshal(b, *v) - case "MonitorRuleLog": - *v = new(MonitorRuleMonitorRuleLog) - return json.Unmarshal(b, *v) case "MonitorRuleChange": *v = new(MonitorRuleMonitorRuleChange) return json.Unmarshal(b, *v) + case "MonitorRuleCount": + *v = new(MonitorRuleMonitorRuleCount) + return json.Unmarshal(b, *v) case "MonitorRuleFacet": *v = new(MonitorRuleMonitorRuleFacet) return json.Unmarshal(b, *v) - case "MonitorRuleCount": - *v = new(MonitorRuleMonitorRuleCount) + case "MonitorRuleLog": + *v = new(MonitorRuleMonitorRuleLog) return json.Unmarshal(b, *v) case "MonitorRulePromote": *v = new(MonitorRuleMonitorRulePromote) return json.Unmarshal(b, *v) + case "MonitorRuleThreshold": + *v = new(MonitorRuleMonitorRuleThreshold) + return json.Unmarshal(b, *v) case "": return fmt.Errorf( "response was missing MonitorRule.__typename") @@ -3729,28 +3729,20 @@ func __marshalMonitorRule(v *MonitorRule) ([]byte, error) { var typename string switch v := (*v).(type) { - case *MonitorRuleMonitorRuleThreshold: - typename = "MonitorRuleThreshold" - - result := struct { - TypeName string `json:"__typename"` - *MonitorRuleMonitorRuleThreshold - }{typename, v} - return json.Marshal(result) - case *MonitorRuleMonitorRuleLog: - typename = "MonitorRuleLog" + case *MonitorRuleMonitorRuleChange: + typename = "MonitorRuleChange" result := struct { TypeName string `json:"__typename"` - *MonitorRuleMonitorRuleLog + *MonitorRuleMonitorRuleChange }{typename, v} return json.Marshal(result) - case *MonitorRuleMonitorRuleChange: - typename = "MonitorRuleChange" + case *MonitorRuleMonitorRuleCount: + typename = "MonitorRuleCount" result := struct { TypeName string `json:"__typename"` - *MonitorRuleMonitorRuleChange + *MonitorRuleMonitorRuleCount }{typename, v} return json.Marshal(result) case *MonitorRuleMonitorRuleFacet: @@ -3761,12 +3753,12 @@ func __marshalMonitorRule(v *MonitorRule) ([]byte, error) { *MonitorRuleMonitorRuleFacet }{typename, v} return json.Marshal(result) - case *MonitorRuleMonitorRuleCount: - typename = "MonitorRuleCount" + case *MonitorRuleMonitorRuleLog: + typename = "MonitorRuleLog" result := struct { TypeName string `json:"__typename"` - *MonitorRuleMonitorRuleCount + *MonitorRuleMonitorRuleLog }{typename, v} return json.Marshal(result) case *MonitorRuleMonitorRulePromote: @@ -3777,6 +3769,14 @@ func __marshalMonitorRule(v *MonitorRule) ([]byte, error) { *MonitorRuleMonitorRulePromote }{typename, v} return json.Marshal(result) + case *MonitorRuleMonitorRuleThreshold: + typename = "MonitorRuleThreshold" + + result := struct { + TypeName string `json:"__typename"` + *MonitorRuleMonitorRuleThreshold + }{typename, v} + return json.Marshal(result) case nil: return []byte("null"), nil default: @@ -4456,7 +4456,7 @@ func (v *Poller) UnmarshalJSON(b []byte) error { src, dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal Poller.Config: %w", err) + "unable to unmarshal Poller.Config: %w", err) } } } @@ -4505,7 +4505,7 @@ func (v *Poller) __premarshalJSON() (*__premarshalPoller, error) { &src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal Poller.Config: %w", err) + "unable to marshal Poller.Config: %w", err) } } return &retval, nil @@ -4525,11 +4525,11 @@ func (v *PollerChunkInput) GetSize() *types.Int64Scalar { return v.Size } // PollerConfig includes the requested fields of the GraphQL interface PollerConfig. // // PollerConfig is implemented by the following types: -// PollerConfigPollerPubSubConfig -// PollerConfigPollerHTTPConfig +// PollerConfigPollerConfluentCloudConfig // PollerConfigPollerGCPMonitoringConfig +// PollerConfigPollerHTTPConfig // PollerConfigPollerMongoDBAtlasConfig -// PollerConfigPollerConfluentCloudConfig +// PollerConfigPollerPubSubConfig type PollerConfig interface { implementsGraphQLInterfacePollerConfig() // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). @@ -4546,11 +4546,11 @@ type PollerConfig interface { GetChunk() *PollerConfigChunkPollerChunkConfig } -func (v *PollerConfigPollerPubSubConfig) implementsGraphQLInterfacePollerConfig() {} -func (v *PollerConfigPollerHTTPConfig) implementsGraphQLInterfacePollerConfig() {} +func (v *PollerConfigPollerConfluentCloudConfig) implementsGraphQLInterfacePollerConfig() {} func (v *PollerConfigPollerGCPMonitoringConfig) implementsGraphQLInterfacePollerConfig() {} +func (v *PollerConfigPollerHTTPConfig) implementsGraphQLInterfacePollerConfig() {} func (v *PollerConfigPollerMongoDBAtlasConfig) implementsGraphQLInterfacePollerConfig() {} -func (v *PollerConfigPollerConfluentCloudConfig) implementsGraphQLInterfacePollerConfig() {} +func (v *PollerConfigPollerPubSubConfig) implementsGraphQLInterfacePollerConfig() {} func __unmarshalPollerConfig(b []byte, v *PollerConfig) error { if string(b) == "null" { @@ -4566,20 +4566,20 @@ func __unmarshalPollerConfig(b []byte, v *PollerConfig) error { } switch tn.TypeName { - case "PollerPubSubConfig": - *v = new(PollerConfigPollerPubSubConfig) - return json.Unmarshal(b, *v) - case "PollerHTTPConfig": - *v = new(PollerConfigPollerHTTPConfig) + case "PollerConfluentCloudConfig": + *v = new(PollerConfigPollerConfluentCloudConfig) return json.Unmarshal(b, *v) case "PollerGCPMonitoringConfig": *v = new(PollerConfigPollerGCPMonitoringConfig) return json.Unmarshal(b, *v) + case "PollerHTTPConfig": + *v = new(PollerConfigPollerHTTPConfig) + return json.Unmarshal(b, *v) case "PollerMongoDBAtlasConfig": *v = new(PollerConfigPollerMongoDBAtlasConfig) return json.Unmarshal(b, *v) - case "PollerConfluentCloudConfig": - *v = new(PollerConfigPollerConfluentCloudConfig) + case "PollerPubSubConfig": + *v = new(PollerConfigPollerPubSubConfig) return json.Unmarshal(b, *v) case "": return fmt.Errorf( @@ -4594,28 +4594,28 @@ func __marshalPollerConfig(v *PollerConfig) ([]byte, error) { var typename string switch v := (*v).(type) { - case *PollerConfigPollerPubSubConfig: - typename = "PollerPubSubConfig" + case *PollerConfigPollerConfluentCloudConfig: + typename = "PollerConfluentCloudConfig" result := struct { TypeName string `json:"__typename"` - *PollerConfigPollerPubSubConfig + *PollerConfigPollerConfluentCloudConfig }{typename, v} return json.Marshal(result) - case *PollerConfigPollerHTTPConfig: - typename = "PollerHTTPConfig" + case *PollerConfigPollerGCPMonitoringConfig: + typename = "PollerGCPMonitoringConfig" result := struct { TypeName string `json:"__typename"` - *PollerConfigPollerHTTPConfig + *PollerConfigPollerGCPMonitoringConfig }{typename, v} return json.Marshal(result) - case *PollerConfigPollerGCPMonitoringConfig: - typename = "PollerGCPMonitoringConfig" + case *PollerConfigPollerHTTPConfig: + typename = "PollerHTTPConfig" result := struct { TypeName string `json:"__typename"` - *PollerConfigPollerGCPMonitoringConfig + *PollerConfigPollerHTTPConfig }{typename, v} return json.Marshal(result) case *PollerConfigPollerMongoDBAtlasConfig: @@ -4626,12 +4626,12 @@ func __marshalPollerConfig(v *PollerConfig) ([]byte, error) { *PollerConfigPollerMongoDBAtlasConfig }{typename, v} return json.Marshal(result) - case *PollerConfigPollerConfluentCloudConfig: - typename = "PollerConfluentCloudConfig" + case *PollerConfigPollerPubSubConfig: + typename = "PollerPubSubConfig" result := struct { TypeName string `json:"__typename"` - *PollerConfigPollerConfluentCloudConfig + *PollerConfigPollerPubSubConfig }{typename, v} return json.Marshal(result) case nil: @@ -7964,7 +7964,7 @@ func (v *createChannelActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal createChannelActionResponse.ChannelAction: %w", err) + "unable to unmarshal createChannelActionResponse.ChannelAction: %w", err) } } } @@ -7996,7 +7996,7 @@ func (v *createChannelActionResponse) __premarshalJSON() (*__premarshalcreateCha src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal createChannelActionResponse.ChannelAction: %w", err) + "unable to marshal createChannelActionResponse.ChannelAction: %w", err) } } } @@ -8130,7 +8130,7 @@ func (v *createMonitorActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal createMonitorActionResponse.MonitorAction: %w", err) + "unable to unmarshal createMonitorActionResponse.MonitorAction: %w", err) } } } @@ -8162,7 +8162,7 @@ func (v *createMonitorActionResponse) __premarshalJSON() (*__premarshalcreateMon src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal createMonitorActionResponse.MonitorAction: %w", err) + "unable to marshal createMonitorActionResponse.MonitorAction: %w", err) } } } @@ -8586,7 +8586,7 @@ func (v *getChannelActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal getChannelActionResponse.ChannelAction: %w", err) + "unable to unmarshal getChannelActionResponse.ChannelAction: %w", err) } } } @@ -8618,7 +8618,7 @@ func (v *getChannelActionResponse) __premarshalJSON() (*__premarshalgetChannelAc src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal getChannelActionResponse.ChannelAction: %w", err) + "unable to marshal getChannelActionResponse.ChannelAction: %w", err) } } } @@ -8803,7 +8803,7 @@ func (v *getMonitorActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal getMonitorActionResponse.MonitorAction: %w", err) + "unable to unmarshal getMonitorActionResponse.MonitorAction: %w", err) } } } @@ -8835,7 +8835,7 @@ func (v *getMonitorActionResponse) __premarshalJSON() (*__premarshalgetMonitorAc src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal getMonitorActionResponse.MonitorAction: %w", err) + "unable to marshal getMonitorActionResponse.MonitorAction: %w", err) } } } @@ -9270,7 +9270,7 @@ func (v *updateChannelActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal updateChannelActionResponse.ChannelAction: %w", err) + "unable to unmarshal updateChannelActionResponse.ChannelAction: %w", err) } } } @@ -9302,7 +9302,7 @@ func (v *updateChannelActionResponse) __premarshalJSON() (*__premarshalupdateCha src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal updateChannelActionResponse.ChannelAction: %w", err) + "unable to marshal updateChannelActionResponse.ChannelAction: %w", err) } } } @@ -9434,7 +9434,7 @@ func (v *updateMonitorActionResponse) UnmarshalJSON(b []byte) error { src, *dst) if err != nil { return fmt.Errorf( - "Unable to unmarshal updateMonitorActionResponse.MonitorAction: %w", err) + "unable to unmarshal updateMonitorActionResponse.MonitorAction: %w", err) } } } @@ -9466,7 +9466,7 @@ func (v *updateMonitorActionResponse) __premarshalJSON() (*__premarshalupdateMon src) if err != nil { return nil, fmt.Errorf( - "Unable to marshal updateMonitorActionResponse.MonitorAction: %w", err) + "unable to marshal updateMonitorActionResponse.MonitorAction: %w", err) } } } @@ -9554,14 +9554,8 @@ type updateWorkspaceResponse struct { // GetWorkspace returns updateWorkspaceResponse.Workspace, and is useful for accessing the field via an interface. func (v *updateWorkspaceResponse) GetWorkspace() *Workspace { return v.Workspace } -func clearDefaultDashboard( - ctx context.Context, - client graphql.Client, - dsid string, -) (*clearDefaultDashboardResponse, error) { - req := &graphql.Request{ - OpName: "clearDefaultDashboard", - Query: ` +// The query or mutation executed by clearDefaultDashboard. +const clearDefaultDashboard_Operation = ` mutation clearDefaultDashboard ($dsid: ObjectId!) { resultStatus: clearDefaultDashboard(dsid: $dsid) { ... ResultStatus @@ -9572,7 +9566,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func clearDefaultDashboard( + ctx context.Context, + client graphql.Client, + dsid string, +) (*clearDefaultDashboardResponse, error) { + req := &graphql.Request{ + OpName: "clearDefaultDashboard", + Query: clearDefaultDashboard_Operation, Variables: &__clearDefaultDashboardInput{ Dsid: dsid, }, @@ -9591,15 +9594,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func createApp( - ctx context.Context, - client graphql.Client, - workspaceId string, - config AppInput, -) (*createAppResponse, error) { - req := &graphql.Request{ - OpName: "createApp", - Query: ` +// The query or mutation executed by createApp. +const createApp_Operation = ` mutation createApp ($workspaceId: ObjectId!, $config: AppInput!) { app: createApp(workspaceId: $workspaceId, app: $config) { ... App @@ -9622,7 +9618,17 @@ fragment App on App { } outputs } -`, +` + +func createApp( + ctx context.Context, + client graphql.Client, + workspaceId string, + config AppInput, +) (*createAppResponse, error) { + req := &graphql.Request{ + OpName: "createApp", + Query: createApp_Operation, Variables: &__createAppInput{ WorkspaceId: workspaceId, Config: config, @@ -9642,14 +9648,8 @@ fragment App on App { return &data, err } -func createAppDataSource( - ctx context.Context, - client graphql.Client, - config AppDataSourceInput, -) (*createAppDataSourceResponse, error) { - req := &graphql.Request{ - OpName: "createAppDataSource", - Query: ` +// The query or mutation executed by createAppDataSource. +const createAppDataSource_Operation = ` mutation createAppDataSource ($config: AppDataSourceInput!) { appdatasource: createAppDataSource(source: $config) { ... AppDataSource @@ -9665,7 +9665,16 @@ fragment AppDataSource on AppDataSource { sourceUrl instructions } -`, +` + +func createAppDataSource( + ctx context.Context, + client graphql.Client, + config AppDataSourceInput, +) (*createAppDataSourceResponse, error) { + req := &graphql.Request{ + OpName: "createAppDataSource", + Query: createAppDataSource_Operation, Variables: &__createAppDataSourceInput{ Config: config, }, @@ -9684,16 +9693,8 @@ fragment AppDataSource on AppDataSource { return &data, err } -func createBoard( - ctx context.Context, - client graphql.Client, - datasetId string, - boardType BoardType, - board BoardInput, -) (*createBoardResponse, error) { - req := &graphql.Request{ - OpName: "createBoard", - Query: ` +// The query or mutation executed by createBoard. +const createBoard_Operation = ` mutation createBoard ($datasetId: ObjectId!, $boardType: BoardType!, $board: BoardInput!) { board: createBoard(datasetId: $datasetId, type: $boardType, board: $board) { ... Board @@ -9707,7 +9708,18 @@ fragment Board on Board { boardJson: board source } -`, +` + +func createBoard( + ctx context.Context, + client graphql.Client, + datasetId string, + boardType BoardType, + board BoardInput, +) (*createBoardResponse, error) { + req := &graphql.Request{ + OpName: "createBoard", + Query: createBoard_Operation, Variables: &__createBoardInput{ DatasetId: datasetId, BoardType: boardType, @@ -9728,15 +9740,8 @@ fragment Board on Board { return &data, err } -func createChannel( - ctx context.Context, - client graphql.Client, - workspaceId string, - channel ChannelInput, -) (*createChannelResponse, error) { - req := &graphql.Request{ - OpName: "createChannel", - Query: ` +// The query or mutation executed by createChannel. +const createChannel_Operation = ` mutation createChannel ($workspaceId: ObjectId!, $channel: ChannelInput!) { channel: createChannel(workspaceId: $workspaceId, channel: $channel) { ... Channel @@ -9752,7 +9757,17 @@ fragment Channel on Channel { id } } -`, +` + +func createChannel( + ctx context.Context, + client graphql.Client, + workspaceId string, + channel ChannelInput, +) (*createChannelResponse, error) { + req := &graphql.Request{ + OpName: "createChannel", + Query: createChannel_Operation, Variables: &__createChannelInput{ WorkspaceId: workspaceId, Channel: channel, @@ -9772,15 +9787,8 @@ fragment Channel on Channel { return &data, err } -func createChannelAction( - ctx context.Context, - client graphql.Client, - workspaceId string, - action ActionInput, -) (*createChannelActionResponse, error) { - req := &graphql.Request{ - OpName: "createChannelAction", - Query: ` +// The query or mutation executed by createChannelAction. +const createChannelAction_Operation = ` mutation createChannelAction ($workspaceId: ObjectId!, $action: ActionInput!) { channelAction: createChannelAction(workspaceId: $workspaceId, action: $action) { __typename @@ -9815,7 +9823,17 @@ fragment ChannelAction on ChannelAction { isHtml } } -`, +` + +func createChannelAction( + ctx context.Context, + client graphql.Client, + workspaceId string, + action ActionInput, +) (*createChannelActionResponse, error) { + req := &graphql.Request{ + OpName: "createChannelAction", + Query: createChannelAction_Operation, Variables: &__createChannelActionInput{ WorkspaceId: workspaceId, Action: action, @@ -9835,14 +9853,8 @@ fragment ChannelAction on ChannelAction { return &data, err } -func createDashboardLink( - ctx context.Context, - client graphql.Client, - input DashboardLinkInput, -) (*createDashboardLinkResponse, error) { - req := &graphql.Request{ - OpName: "createDashboardLink", - Query: ` +// The query or mutation executed by createDashboardLink. +const createDashboardLink_Operation = ` mutation createDashboardLink ($input: DashboardLinkInput!) { dashboardLink: createDashboardLink(link: $input) { ... DashboardLink @@ -9860,7 +9872,16 @@ fragment DashboardLink on DashboardLink { fromCard linkLabel } -`, +` + +func createDashboardLink( + ctx context.Context, + client graphql.Client, + input DashboardLinkInput, +) (*createDashboardLinkResponse, error) { + req := &graphql.Request{ + OpName: "createDashboardLink", + Query: createDashboardLink_Operation, Variables: &__createDashboardLinkInput{ Input: input, }, @@ -9879,17 +9900,8 @@ fragment DashboardLink on DashboardLink { return &data, err } -func createDatasetOutboundShare( - ctx context.Context, - client graphql.Client, - workspaceId string, - datasetID string, - outboundShareID string, - input DatasetOutboundShareInput, -) (*createDatasetOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "createDatasetOutboundShare", - Query: ` +// The query or mutation executed by createDatasetOutboundShare. +const createDatasetOutboundShare_Operation = ` mutation createDatasetOutboundShare ($workspaceId: ObjectId!, $datasetID: ObjectId!, $outboundShareID: ObjectId!, $input: DatasetOutboundShareInput!) { datasetOutboundShare: createDatasetOutboundShare(workspaceId: $workspaceId, datasetID: $datasetID, outboundShareID: $outboundShareID, input: $input) { ... DatasetOutboundShare @@ -9911,7 +9923,19 @@ fragment DatasetOutboundShare on DatasetOutboundShare { error } } -`, +` + +func createDatasetOutboundShare( + ctx context.Context, + client graphql.Client, + workspaceId string, + datasetID string, + outboundShareID string, + input DatasetOutboundShareInput, +) (*createDatasetOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "createDatasetOutboundShare", + Query: createDatasetOutboundShare_Operation, Variables: &__createDatasetOutboundShareInput{ WorkspaceId: workspaceId, DatasetID: datasetID, @@ -9933,15 +9957,8 @@ fragment DatasetOutboundShare on DatasetOutboundShare { return &data, err } -func createDatastream( - ctx context.Context, - client graphql.Client, - workspaceId string, - datastream DatastreamInput, -) (*createDatastreamResponse, error) { - req := &graphql.Request{ - OpName: "createDatastream", - Query: ` +// The query or mutation executed by createDatastream. +const createDatastream_Operation = ` mutation createDatastream ($workspaceId: ObjectId!, $datastream: DatastreamInput!) { datastream: createDatastream(workspaceId: $workspaceId, datastream: $datastream) { ... Datastream @@ -9955,7 +9972,17 @@ fragment Datastream on Datastream { workspaceId datasetId } -`, +` + +func createDatastream( + ctx context.Context, + client graphql.Client, + workspaceId string, + datastream DatastreamInput, +) (*createDatastreamResponse, error) { + req := &graphql.Request{ + OpName: "createDatastream", + Query: createDatastream_Operation, Variables: &__createDatastreamInput{ WorkspaceId: workspaceId, Datastream: datastream, @@ -9975,15 +10002,8 @@ fragment Datastream on Datastream { return &data, err } -func createDatastreamToken( - ctx context.Context, - client graphql.Client, - datastreamId string, - token DatastreamTokenInput, -) (*createDatastreamTokenResponse, error) { - req := &graphql.Request{ - OpName: "createDatastreamToken", - Query: ` +// The query or mutation executed by createDatastreamToken. +const createDatastreamToken_Operation = ` mutation createDatastreamToken ($datastreamId: ObjectId!, $token: DatastreamTokenInput!) { datastreamToken: createDatastreamToken(datastreamId: $datastreamId, token: $token) { ... DatastreamToken @@ -9997,7 +10017,17 @@ fragment DatastreamToken on DatastreamToken { datastreamId secret } -`, +` + +func createDatastreamToken( + ctx context.Context, + client graphql.Client, + datastreamId string, + token DatastreamTokenInput, +) (*createDatastreamTokenResponse, error) { + req := &graphql.Request{ + OpName: "createDatastreamToken", + Query: createDatastreamToken_Operation, Variables: &__createDatastreamTokenInput{ DatastreamId: datastreamId, Token: token, @@ -10017,15 +10047,8 @@ fragment DatastreamToken on DatastreamToken { return &data, err } -func createDeferredForeignKey( - ctx context.Context, - client graphql.Client, - workspaceId string, - keyInput DeferredForeignKeyInput, -) (*createDeferredForeignKeyResponse, error) { - req := &graphql.Request{ - OpName: "createDeferredForeignKey", - Query: ` +// The query or mutation executed by createDeferredForeignKey. +const createDeferredForeignKey_Operation = ` mutation createDeferredForeignKey ($workspaceId: ObjectId!, $keyInput: DeferredForeignKeyInput!) { deferredForeignKey: createDeferredForeignKey(workspaceId: $workspaceId, data: $keyInput) { ... DeferredForeignKey @@ -10051,7 +10074,17 @@ fragment DeferredForeignKey on DeferredForeignKey { errorText } } -`, +` + +func createDeferredForeignKey( + ctx context.Context, + client graphql.Client, + workspaceId string, + keyInput DeferredForeignKeyInput, +) (*createDeferredForeignKeyResponse, error) { + req := &graphql.Request{ + OpName: "createDeferredForeignKey", + Query: createDeferredForeignKey_Operation, Variables: &__createDeferredForeignKeyInput{ WorkspaceId: workspaceId, KeyInput: keyInput, @@ -10071,16 +10104,8 @@ fragment DeferredForeignKey on DeferredForeignKey { return &data, err } -func createFiledrop( - ctx context.Context, - client graphql.Client, - workspaceID string, - datastreamID string, - input FiledropInput, -) (*createFiledropResponse, error) { - req := &graphql.Request{ - OpName: "createFiledrop", - Query: ` +// The query or mutation executed by createFiledrop. +const createFiledrop_Operation = ` mutation createFiledrop ($workspaceID: ObjectId!, $datastreamID: ObjectId!, $input: FiledropInput!) { filedrop: createFiledrop(workspaceId: $workspaceID, datastreamID: $datastreamID, input: $input) { ... Filedrop @@ -10112,7 +10137,18 @@ fragment Filedrop on Filedrop { } } } -`, +` + +func createFiledrop( + ctx context.Context, + client graphql.Client, + workspaceID string, + datastreamID string, + input FiledropInput, +) (*createFiledropResponse, error) { + req := &graphql.Request{ + OpName: "createFiledrop", + Query: createFiledrop_Operation, Variables: &__createFiledropInput{ WorkspaceID: workspaceID, DatastreamID: datastreamID, @@ -10133,15 +10169,8 @@ fragment Filedrop on Filedrop { return &data, err } -func createFolder( - ctx context.Context, - client graphql.Client, - workspaceId string, - config FolderInput, -) (*createFolderResponse, error) { - req := &graphql.Request{ - OpName: "createFolder", - Query: ` +// The query or mutation executed by createFolder. +const createFolder_Operation = ` mutation createFolder ($workspaceId: ObjectId!, $config: FolderInput!) { folder: createFolder(workspaceId: $workspaceId, folder: $config) { ... Folder @@ -10154,7 +10183,17 @@ fragment Folder on Folder { description workspaceId } -`, +` + +func createFolder( + ctx context.Context, + client graphql.Client, + workspaceId string, + config FolderInput, +) (*createFolderResponse, error) { + req := &graphql.Request{ + OpName: "createFolder", + Query: createFolder_Operation, Variables: &__createFolderInput{ WorkspaceId: workspaceId, Config: config, @@ -10174,14 +10213,8 @@ fragment Folder on Folder { return &data, err } -func createLayeredSettingRecord( - ctx context.Context, - client graphql.Client, - settingRecord LayeredSettingRecordInput, -) (*createLayeredSettingRecordResponse, error) { - req := &graphql.Request{ - OpName: "createLayeredSettingRecord", - Query: ` +// The query or mutation executed by createLayeredSettingRecord. +const createLayeredSettingRecord_Operation = ` mutation createLayeredSettingRecord ($settingRecord: LayeredSettingRecordInput!) { layeredSettingRecord: createLayeredSettingRecord(settingRecord: $settingRecord) { ... LayeredSettingRecord @@ -10228,7 +10261,16 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { datastreamId userId } -`, +` + +func createLayeredSettingRecord( + ctx context.Context, + client graphql.Client, + settingRecord LayeredSettingRecordInput, +) (*createLayeredSettingRecordResponse, error) { + req := &graphql.Request{ + OpName: "createLayeredSettingRecord", + Query: createLayeredSettingRecord_Operation, Variables: &__createLayeredSettingRecordInput{ SettingRecord: settingRecord, }, @@ -10247,16 +10289,8 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { return &data, err } -// More workarounds for server-side struggles -func createMonitor( - ctx context.Context, - client graphql.Client, - workspaceId string, - monitor MonitorInput, -) (*createMonitorResponse, error) { - req := &graphql.Request{ - OpName: "createMonitor", - Query: ` +// The query or mutation executed by createMonitor. +const createMonitor_Operation = ` mutation createMonitor ($workspaceId: ObjectId!, $monitor: MonitorInput!) { monitor: createMonitor(workspaceId: $workspaceId, monitor: $monitor) { monitor { @@ -10343,7 +10377,18 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +// More workarounds for server-side struggles +func createMonitor( + ctx context.Context, + client graphql.Client, + workspaceId string, + monitor MonitorInput, +) (*createMonitorResponse, error) { + req := &graphql.Request{ + OpName: "createMonitor", + Query: createMonitor_Operation, Variables: &__createMonitorInput{ WorkspaceId: workspaceId, Monitor: monitor, @@ -10363,14 +10408,8 @@ fragment StageQuery on StageQuery { return &data, err } -func createMonitorAction( - ctx context.Context, - client graphql.Client, - monitorAction MonitorActionInput, -) (*createMonitorActionResponse, error) { - req := &graphql.Request{ - OpName: "createMonitorAction", - Query: ` +// The query or mutation executed by createMonitorAction. +const createMonitorAction_Operation = ` mutation createMonitorAction ($monitorAction: MonitorActionInput!) { monitorAction: createMonitorAction(input: $monitorAction) { __typename @@ -10403,7 +10442,16 @@ fragment MonitorAction on MonitorAction { bodyTemplate } } -`, +` + +func createMonitorAction( + ctx context.Context, + client graphql.Client, + monitorAction MonitorActionInput, +) (*createMonitorActionResponse, error) { + req := &graphql.Request{ + OpName: "createMonitorAction", + Query: createMonitorAction_Operation, Variables: &__createMonitorActionInput{ MonitorAction: monitorAction, }, @@ -10422,14 +10470,8 @@ fragment MonitorAction on MonitorAction { return &data, err } -func createMonitorActionAttachment( - ctx context.Context, - client graphql.Client, - monitorActionAttachment MonitorActionAttachmentInput, -) (*createMonitorActionAttachmentResponse, error) { - req := &graphql.Request{ - OpName: "createMonitorActionAttachment", - Query: ` +// The query or mutation executed by createMonitorActionAttachment. +const createMonitorActionAttachment_Operation = ` mutation createMonitorActionAttachment ($monitorActionAttachment: MonitorActionAttachmentInput!) { monitorActionAttachment: createMonitorActionAttachment(input: $monitorActionAttachment) { ... MonitorActionAttachment @@ -10444,7 +10486,16 @@ fragment MonitorActionAttachment on MonitorActionAttachment { iconUrl description } -`, +` + +func createMonitorActionAttachment( + ctx context.Context, + client graphql.Client, + monitorActionAttachment MonitorActionAttachmentInput, +) (*createMonitorActionAttachmentResponse, error) { + req := &graphql.Request{ + OpName: "createMonitorActionAttachment", + Query: createMonitorActionAttachment_Operation, Variables: &__createMonitorActionAttachmentInput{ MonitorActionAttachment: monitorActionAttachment, }, @@ -10463,15 +10514,8 @@ fragment MonitorActionAttachment on MonitorActionAttachment { return &data, err } -func createOrUpdateBookmark( - ctx context.Context, - client graphql.Client, - id *string, - bookmark BookmarkInput, -) (*createOrUpdateBookmarkResponse, error) { - req := &graphql.Request{ - OpName: "createOrUpdateBookmark", - Query: ` +// The query or mutation executed by createOrUpdateBookmark. +const createOrUpdateBookmark_Operation = ` mutation createOrUpdateBookmark ($id: ObjectId, $bookmark: BookmarkInput!) { bookmark: createOrUpdateBookmark(id: $id, bookmark: $bookmark) { ... Bookmark @@ -10486,7 +10530,17 @@ fragment Bookmark on Bookmark { groupId bookmarkKind } -`, +` + +func createOrUpdateBookmark( + ctx context.Context, + client graphql.Client, + id *string, + bookmark BookmarkInput, +) (*createOrUpdateBookmarkResponse, error) { + req := &graphql.Request{ + OpName: "createOrUpdateBookmark", + Query: createOrUpdateBookmark_Operation, Variables: &__createOrUpdateBookmarkInput{ Id: id, Bookmark: bookmark, @@ -10506,15 +10560,8 @@ fragment Bookmark on Bookmark { return &data, err } -func createOrUpdateBookmarkGroup( - ctx context.Context, - client graphql.Client, - id *string, - group BookmarkGroupInput, -) (*createOrUpdateBookmarkGroupResponse, error) { - req := &graphql.Request{ - OpName: "createOrUpdateBookmarkGroup", - Query: ` +// The query or mutation executed by createOrUpdateBookmarkGroup. +const createOrUpdateBookmarkGroup_Operation = ` mutation createOrUpdateBookmarkGroup ($id: ObjectId, $group: BookmarkGroupInput!) { bookmarkGroup: createOrUpdateBookmarkGroup(id: $id, group: $group) { ... BookmarkGroup @@ -10527,7 +10574,17 @@ fragment BookmarkGroup on BookmarkGroup { iconUrl workspaceId } -`, +` + +func createOrUpdateBookmarkGroup( + ctx context.Context, + client graphql.Client, + id *string, + group BookmarkGroupInput, +) (*createOrUpdateBookmarkGroupResponse, error) { + req := &graphql.Request{ + OpName: "createOrUpdateBookmarkGroup", + Query: createOrUpdateBookmarkGroup_Operation, Variables: &__createOrUpdateBookmarkGroupInput{ Id: id, Group: group, @@ -10547,15 +10604,8 @@ fragment BookmarkGroup on BookmarkGroup { return &data, err } -func createPoller( - ctx context.Context, - client graphql.Client, - workspaceId string, - poller PollerInput, -) (*createPollerResponse, error) { - req := &graphql.Request{ - OpName: "createPoller", - Query: ` +// The query or mutation executed by createPoller. +const createPoller_Operation = ` mutation createPoller ($workspaceId: ObjectId!, $poller: PollerInput!) { poller: createPoller(workspaceId: $workspaceId, poller: $poller) { ... Poller @@ -10631,7 +10681,17 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { headers params } -`, +` + +func createPoller( + ctx context.Context, + client graphql.Client, + workspaceId string, + poller PollerInput, +) (*createPollerResponse, error) { + req := &graphql.Request{ + OpName: "createPoller", + Query: createPoller_Operation, Variables: &__createPollerInput{ WorkspaceId: workspaceId, Poller: poller, @@ -10651,16 +10711,8 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { return &data, err } -// More workarounds for server-side struggles -func createPreferredPath( - ctx context.Context, - client graphql.Client, - workspaceId string, - config PreferredPathInput, -) (*createPreferredPathResponse, error) { - req := &graphql.Request{ - OpName: "createPreferredPath", - Query: ` +// The query or mutation executed by createPreferredPath. +const createPreferredPath_Operation = ` mutation createPreferredPath ($workspaceId: ObjectId!, $config: PreferredPathInput!) { preferredPathWithStatus: createPreferredPath(workspaceId: $workspaceId, path: $config) { ... PreferredPathWithStatus @@ -10687,7 +10739,18 @@ fragment PreferredPath on PreferredPath { reverseFromDataset } } -`, +` + +// More workarounds for server-side struggles +func createPreferredPath( + ctx context.Context, + client graphql.Client, + workspaceId string, + config PreferredPathInput, +) (*createPreferredPathResponse, error) { + req := &graphql.Request{ + OpName: "createPreferredPath", + Query: createPreferredPath_Operation, Variables: &__createPreferredPathInput{ WorkspaceId: workspaceId, Config: config, @@ -10707,14 +10770,8 @@ fragment PreferredPath on PreferredPath { return &data, err } -func createRbacGroup( - ctx context.Context, - client graphql.Client, - config RbacGroupInput, -) (*createRbacGroupResponse, error) { - req := &graphql.Request{ - OpName: "createRbacGroup", - Query: ` +// The query or mutation executed by createRbacGroup. +const createRbacGroup_Operation = ` mutation createRbacGroup ($config: RbacGroupInput!) { rbacGroup: createRbacGroup(input: $config) { ... RbacGroup @@ -10725,7 +10782,16 @@ fragment RbacGroup on RbacGroup { name description } -`, +` + +func createRbacGroup( + ctx context.Context, + client graphql.Client, + config RbacGroupInput, +) (*createRbacGroupResponse, error) { + req := &graphql.Request{ + OpName: "createRbacGroup", + Query: createRbacGroup_Operation, Variables: &__createRbacGroupInput{ Config: config, }, @@ -10744,14 +10810,8 @@ fragment RbacGroup on RbacGroup { return &data, err } -func createRbacGroupmember( - ctx context.Context, - client graphql.Client, - config RbacGroupmemberInput, -) (*createRbacGroupmemberResponse, error) { - req := &graphql.Request{ - OpName: "createRbacGroupmember", - Query: ` +// The query or mutation executed by createRbacGroupmember. +const createRbacGroupmember_Operation = ` mutation createRbacGroupmember ($config: RbacGroupmemberInput!) { rbacGroupmember: createRbacGroupmember(input: $config) { ... RbacGroupmember @@ -10764,7 +10824,16 @@ fragment RbacGroupmember on RbacGroupmember { memberUserId memberGroupId } -`, +` + +func createRbacGroupmember( + ctx context.Context, + client graphql.Client, + config RbacGroupmemberInput, +) (*createRbacGroupmemberResponse, error) { + req := &graphql.Request{ + OpName: "createRbacGroupmember", + Query: createRbacGroupmember_Operation, Variables: &__createRbacGroupmemberInput{ Config: config, }, @@ -10783,14 +10852,8 @@ fragment RbacGroupmember on RbacGroupmember { return &data, err } -func createRbacStatement( - ctx context.Context, - client graphql.Client, - config RbacStatementInput, -) (*createRbacStatementResponse, error) { - req := &graphql.Request{ - OpName: "createRbacStatement", - Query: ` +// The query or mutation executed by createRbacStatement. +const createRbacStatement_Operation = ` mutation createRbacStatement ($config: RbacStatementInput!) { rbacStatement: createRbacStatement(input: $config) { ... RbacStatement @@ -10815,14 +10878,23 @@ fragment RbacStatement on RbacStatement { } role } -`, - Variables: &__createRbacStatementInput{ - Config: config, - }, - } - var err error +` - var data createRbacStatementResponse +func createRbacStatement( + ctx context.Context, + client graphql.Client, + config RbacStatementInput, +) (*createRbacStatementResponse, error) { + req := &graphql.Request{ + OpName: "createRbacStatement", + Query: createRbacStatement_Operation, + Variables: &__createRbacStatementInput{ + Config: config, + }, + } + var err error + + var data createRbacStatementResponse resp := &graphql.Response{Data: &data} err = client.MakeRequest( @@ -10834,15 +10906,8 @@ fragment RbacStatement on RbacStatement { return &data, err } -func createSnowflakeOutboundShare( - ctx context.Context, - client graphql.Client, - workspaceId string, - input SnowflakeOutboundShareInput, -) (*createSnowflakeOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "createSnowflakeOutboundShare", - Query: ` +// The query or mutation executed by createSnowflakeOutboundShare. +const createSnowflakeOutboundShare_Operation = ` mutation createSnowflakeOutboundShare ($workspaceId: ObjectId!, $input: SnowflakeOutboundShareInput!) { share: createSnowflakeOutboundShare(workspaceId: $workspaceId, input: $input) { ... SnowflakeOutboundShare @@ -10862,7 +10927,17 @@ fragment SnowflakeAccount on SnowflakeAccount { organization account } -`, +` + +func createSnowflakeOutboundShare( + ctx context.Context, + client graphql.Client, + workspaceId string, + input SnowflakeOutboundShareInput, +) (*createSnowflakeOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "createSnowflakeOutboundShare", + Query: createSnowflakeOutboundShare_Operation, Variables: &__createSnowflakeOutboundShareInput{ WorkspaceId: workspaceId, Input: input, @@ -10882,14 +10957,8 @@ fragment SnowflakeAccount on SnowflakeAccount { return &data, err } -func createWorkspace( - ctx context.Context, - client graphql.Client, - config WorkspaceInput, -) (*createWorkspaceResponse, error) { - req := &graphql.Request{ - OpName: "createWorkspace", - Query: ` +// The query or mutation executed by createWorkspace. +const createWorkspace_Operation = ` mutation createWorkspace ($config: WorkspaceInput!) { workspace: createWorkspace(definition: $config) { ... Workspace @@ -10899,7 +10968,16 @@ fragment Workspace on Project { id label } -`, +` + +func createWorkspace( + ctx context.Context, + client graphql.Client, + config WorkspaceInput, +) (*createWorkspaceResponse, error) { + req := &graphql.Request{ + OpName: "createWorkspace", + Query: createWorkspace_Operation, Variables: &__createWorkspaceInput{ Config: config, }, @@ -10918,14 +10996,8 @@ fragment Workspace on Project { return &data, err } -func deleteApp( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteAppResponse, error) { - req := &graphql.Request{ - OpName: "deleteApp", - Query: ` +// The query or mutation executed by deleteApp. +const deleteApp_Operation = ` mutation deleteApp ($id: ObjectId!) { resultStatus: deleteApp(id: $id) { ... ResultStatus @@ -10936,7 +11008,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteApp( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteAppResponse, error) { + req := &graphql.Request{ + OpName: "deleteApp", + Query: deleteApp_Operation, Variables: &__deleteAppInput{ Id: id, }, @@ -10955,14 +11036,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteAppDataSource( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteAppDataSourceResponse, error) { - req := &graphql.Request{ - OpName: "deleteAppDataSource", - Query: ` +// The query or mutation executed by deleteAppDataSource. +const deleteAppDataSource_Operation = ` mutation deleteAppDataSource ($id: ObjectId!) { resultStatus: deleteAppDataSource(id: $id) { ... ResultStatus @@ -10973,7 +11048,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteAppDataSource( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteAppDataSourceResponse, error) { + req := &graphql.Request{ + OpName: "deleteAppDataSource", + Query: deleteAppDataSource_Operation, Variables: &__deleteAppDataSourceInput{ Id: id, }, @@ -10992,14 +11076,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteBoard( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteBoardResponse, error) { - req := &graphql.Request{ - OpName: "deleteBoard", - Query: ` +// The query or mutation executed by deleteBoard. +const deleteBoard_Operation = ` mutation deleteBoard ($id: ObjectId!) { resultStatus: deleteBoard(id: $id) { ... ResultStatus @@ -11010,7 +11088,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteBoard( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteBoardResponse, error) { + req := &graphql.Request{ + OpName: "deleteBoard", + Query: deleteBoard_Operation, Variables: &__deleteBoardInput{ Id: id, }, @@ -11029,14 +11116,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteBookmark( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteBookmarkResponse, error) { - req := &graphql.Request{ - OpName: "deleteBookmark", - Query: ` +// The query or mutation executed by deleteBookmark. +const deleteBookmark_Operation = ` mutation deleteBookmark ($id: ObjectId!) { resultStatus: deleteBookmark(id: $id) { ... ResultStatus @@ -11047,7 +11128,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteBookmark( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteBookmarkResponse, error) { + req := &graphql.Request{ + OpName: "deleteBookmark", + Query: deleteBookmark_Operation, Variables: &__deleteBookmarkInput{ Id: id, }, @@ -11066,14 +11156,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteBookmarkGroup( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteBookmarkGroupResponse, error) { - req := &graphql.Request{ - OpName: "deleteBookmarkGroup", - Query: ` +// The query or mutation executed by deleteBookmarkGroup. +const deleteBookmarkGroup_Operation = ` mutation deleteBookmarkGroup ($id: ObjectId!) { resultStatus: deleteBookmarkGroup(id: $id) { ... ResultStatus @@ -11084,7 +11168,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteBookmarkGroup( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteBookmarkGroupResponse, error) { + req := &graphql.Request{ + OpName: "deleteBookmarkGroup", + Query: deleteBookmarkGroup_Operation, Variables: &__deleteBookmarkGroupInput{ Id: id, }, @@ -11103,14 +11196,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteChannel( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteChannelResponse, error) { - req := &graphql.Request{ - OpName: "deleteChannel", - Query: ` +// The query or mutation executed by deleteChannel. +const deleteChannel_Operation = ` mutation deleteChannel ($id: ObjectId!) { resultStatus: deleteChannel(id: $id) { ... ResultStatus @@ -11121,7 +11208,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteChannel( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteChannelResponse, error) { + req := &graphql.Request{ + OpName: "deleteChannel", + Query: deleteChannel_Operation, Variables: &__deleteChannelInput{ Id: id, }, @@ -11140,14 +11236,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteChannelAction( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteChannelActionResponse, error) { - req := &graphql.Request{ - OpName: "deleteChannelAction", - Query: ` +// The query or mutation executed by deleteChannelAction. +const deleteChannelAction_Operation = ` mutation deleteChannelAction ($id: ObjectId!) { resultStatus: deleteChannelAction(id: $id) { ... ResultStatus @@ -11158,7 +11248,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteChannelAction( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteChannelActionResponse, error) { + req := &graphql.Request{ + OpName: "deleteChannelAction", + Query: deleteChannelAction_Operation, Variables: &__deleteChannelActionInput{ Id: id, }, @@ -11177,14 +11276,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDashboard( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDashboardResponse, error) { - req := &graphql.Request{ - OpName: "deleteDashboard", - Query: ` +// The query or mutation executed by deleteDashboard. +const deleteDashboard_Operation = ` mutation deleteDashboard ($id: ObjectId!) { resultStatus: deleteDashboard(id: $id) { ... ResultStatus @@ -11195,7 +11288,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDashboard( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDashboardResponse, error) { + req := &graphql.Request{ + OpName: "deleteDashboard", + Query: deleteDashboard_Operation, Variables: &__deleteDashboardInput{ Id: id, }, @@ -11214,14 +11316,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDashboardLink( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDashboardLinkResponse, error) { - req := &graphql.Request{ - OpName: "deleteDashboardLink", - Query: ` +// The query or mutation executed by deleteDashboardLink. +const deleteDashboardLink_Operation = ` mutation deleteDashboardLink ($id: ObjectId!) { resultStatus: deleteDashboardLink(id: $id) { ... ResultStatus @@ -11232,7 +11328,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDashboardLink( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDashboardLinkResponse, error) { + req := &graphql.Request{ + OpName: "deleteDashboardLink", + Query: deleteDashboardLink_Operation, Variables: &__deleteDashboardLinkInput{ Id: id, }, @@ -11251,15 +11356,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDataset( - ctx context.Context, - client graphql.Client, - id string, - dep *DependencyHandlingInput, -) (*deleteDatasetResponse, error) { - req := &graphql.Request{ - OpName: "deleteDataset", - Query: ` +// The query or mutation executed by deleteDataset. +const deleteDataset_Operation = ` mutation deleteDataset ($id: ObjectId!, $dep: DependencyHandlingInput) { resultStatus: deleteDataset(dsid: $id, dependencyHandling: $dep) { ... ResultStatus @@ -11270,7 +11368,17 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDataset( + ctx context.Context, + client graphql.Client, + id string, + dep *DependencyHandlingInput, +) (*deleteDatasetResponse, error) { + req := &graphql.Request{ + OpName: "deleteDataset", + Query: deleteDataset_Operation, Variables: &__deleteDatasetInput{ Id: id, Dep: dep, @@ -11290,14 +11398,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDatasetOutboundShare( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDatasetOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "deleteDatasetOutboundShare", - Query: ` +// The query or mutation executed by deleteDatasetOutboundShare. +const deleteDatasetOutboundShare_Operation = ` mutation deleteDatasetOutboundShare ($id: ObjectId!) { resultStatus: deleteDatasetOutboundShare(id: $id) { ... ResultStatus @@ -11308,7 +11410,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDatasetOutboundShare( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDatasetOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "deleteDatasetOutboundShare", + Query: deleteDatasetOutboundShare_Operation, Variables: &__deleteDatasetOutboundShareInput{ Id: id, }, @@ -11327,14 +11438,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDatastream( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDatastreamResponse, error) { - req := &graphql.Request{ - OpName: "deleteDatastream", - Query: ` +// The query or mutation executed by deleteDatastream. +const deleteDatastream_Operation = ` mutation deleteDatastream ($id: ObjectId!) { resultStatus: deleteDatastream(id: $id) { ... ResultStatus @@ -11345,7 +11450,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDatastream( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDatastreamResponse, error) { + req := &graphql.Request{ + OpName: "deleteDatastream", + Query: deleteDatastream_Operation, Variables: &__deleteDatastreamInput{ Id: id, }, @@ -11364,14 +11478,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDatastreamToken( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDatastreamTokenResponse, error) { - req := &graphql.Request{ - OpName: "deleteDatastreamToken", - Query: ` +// The query or mutation executed by deleteDatastreamToken. +const deleteDatastreamToken_Operation = ` mutation deleteDatastreamToken ($id: String!) { resultStatus: deleteDatastreamToken(id: $id) { ... ResultStatus @@ -11382,7 +11490,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDatastreamToken( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDatastreamTokenResponse, error) { + req := &graphql.Request{ + OpName: "deleteDatastreamToken", + Query: deleteDatastreamToken_Operation, Variables: &__deleteDatastreamTokenInput{ Id: id, }, @@ -11401,14 +11518,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteDeferredForeignKey( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteDeferredForeignKeyResponse, error) { - req := &graphql.Request{ - OpName: "deleteDeferredForeignKey", - Query: ` +// The query or mutation executed by deleteDeferredForeignKey. +const deleteDeferredForeignKey_Operation = ` mutation deleteDeferredForeignKey ($id: ObjectId!) { resultStatus: deleteDeferredForeignKey(id: $id) { ... ResultStatus @@ -11419,7 +11530,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteDeferredForeignKey( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteDeferredForeignKeyResponse, error) { + req := &graphql.Request{ + OpName: "deleteDeferredForeignKey", + Query: deleteDeferredForeignKey_Operation, Variables: &__deleteDeferredForeignKeyInput{ Id: id, }, @@ -11438,14 +11558,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteFiledrop( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteFiledropResponse, error) { - req := &graphql.Request{ - OpName: "deleteFiledrop", - Query: ` +// The query or mutation executed by deleteFiledrop. +const deleteFiledrop_Operation = ` mutation deleteFiledrop ($id: ObjectId!) { resultStatus: deleteFiledrop(id: $id) { ... ResultStatus @@ -11456,7 +11570,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteFiledrop( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteFiledropResponse, error) { + req := &graphql.Request{ + OpName: "deleteFiledrop", + Query: deleteFiledrop_Operation, Variables: &__deleteFiledropInput{ Id: id, }, @@ -11475,14 +11598,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteFolder( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteFolderResponse, error) { - req := &graphql.Request{ - OpName: "deleteFolder", - Query: ` +// The query or mutation executed by deleteFolder. +const deleteFolder_Operation = ` mutation deleteFolder ($id: ObjectId!) { resultStatus: deleteFolder(id: $id) { ... ResultStatus @@ -11493,7 +11610,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteFolder( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteFolderResponse, error) { + req := &graphql.Request{ + OpName: "deleteFolder", + Query: deleteFolder_Operation, Variables: &__deleteFolderInput{ Id: id, }, @@ -11512,14 +11638,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteLayeredSettingRecord( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteLayeredSettingRecordResponse, error) { - req := &graphql.Request{ - OpName: "deleteLayeredSettingRecord", - Query: ` +// The query or mutation executed by deleteLayeredSettingRecord. +const deleteLayeredSettingRecord_Operation = ` mutation deleteLayeredSettingRecord ($id: ObjectId!) { deleteLayeredSettingRecord(id: $id) { resultStatus: result { @@ -11532,7 +11652,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteLayeredSettingRecord( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteLayeredSettingRecordResponse, error) { + req := &graphql.Request{ + OpName: "deleteLayeredSettingRecord", + Query: deleteLayeredSettingRecord_Operation, Variables: &__deleteLayeredSettingRecordInput{ Id: id, }, @@ -11551,14 +11680,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteMonitor( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteMonitorResponse, error) { - req := &graphql.Request{ - OpName: "deleteMonitor", - Query: ` +// The query or mutation executed by deleteMonitor. +const deleteMonitor_Operation = ` mutation deleteMonitor ($id: ObjectId!) { resultStatus: deleteMonitor(id: $id) { ... ResultStatus @@ -11569,7 +11692,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteMonitor( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteMonitorResponse, error) { + req := &graphql.Request{ + OpName: "deleteMonitor", + Query: deleteMonitor_Operation, Variables: &__deleteMonitorInput{ Id: id, }, @@ -11588,14 +11720,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteMonitorAction( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteMonitorActionResponse, error) { - req := &graphql.Request{ - OpName: "deleteMonitorAction", - Query: ` +// The query or mutation executed by deleteMonitorAction. +const deleteMonitorAction_Operation = ` mutation deleteMonitorAction ($id: ObjectId!) { resultStatus: deleteMonitorAction(id: $id) { ... ResultStatus @@ -11606,7 +11732,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteMonitorAction( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteMonitorActionResponse, error) { + req := &graphql.Request{ + OpName: "deleteMonitorAction", + Query: deleteMonitorAction_Operation, Variables: &__deleteMonitorActionInput{ Id: id, }, @@ -11625,14 +11760,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteMonitorActionAttachment( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteMonitorActionAttachmentResponse, error) { - req := &graphql.Request{ - OpName: "deleteMonitorActionAttachment", - Query: ` +// The query or mutation executed by deleteMonitorActionAttachment. +const deleteMonitorActionAttachment_Operation = ` mutation deleteMonitorActionAttachment ($id: ObjectId!) { resultStatus: deleteMonitorActionAttachment(id: $id) { ... ResultStatus @@ -11643,7 +11772,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteMonitorActionAttachment( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteMonitorActionAttachmentResponse, error) { + req := &graphql.Request{ + OpName: "deleteMonitorActionAttachment", + Query: deleteMonitorActionAttachment_Operation, Variables: &__deleteMonitorActionAttachmentInput{ Id: id, }, @@ -11662,14 +11800,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deletePoller( - ctx context.Context, - client graphql.Client, - id string, -) (*deletePollerResponse, error) { - req := &graphql.Request{ - OpName: "deletePoller", - Query: ` +// The query or mutation executed by deletePoller. +const deletePoller_Operation = ` mutation deletePoller ($id: ObjectId!) { resultStatus: deletePoller(id: $id) { ... ResultStatus @@ -11680,7 +11812,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deletePoller( + ctx context.Context, + client graphql.Client, + id string, +) (*deletePollerResponse, error) { + req := &graphql.Request{ + OpName: "deletePoller", + Query: deletePoller_Operation, Variables: &__deletePollerInput{ Id: id, }, @@ -11699,14 +11840,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deletePreferredPath( - ctx context.Context, - client graphql.Client, - id string, -) (*deletePreferredPathResponse, error) { - req := &graphql.Request{ - OpName: "deletePreferredPath", - Query: ` +// The query or mutation executed by deletePreferredPath. +const deletePreferredPath_Operation = ` mutation deletePreferredPath ($id: ObjectId!) { resultStatus: deletePreferredPath(id: $id) { ... ResultStatus @@ -11717,7 +11852,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deletePreferredPath( + ctx context.Context, + client graphql.Client, + id string, +) (*deletePreferredPathResponse, error) { + req := &graphql.Request{ + OpName: "deletePreferredPath", + Query: deletePreferredPath_Operation, Variables: &__deletePreferredPathInput{ Id: id, }, @@ -11736,14 +11880,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteRbacGroup( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteRbacGroupResponse, error) { - req := &graphql.Request{ - OpName: "deleteRbacGroup", - Query: ` +// The query or mutation executed by deleteRbacGroup. +const deleteRbacGroup_Operation = ` mutation deleteRbacGroup ($id: ORN!) { resultStatus: deleteRbacGroup(id: $id) { ... ResultStatus @@ -11754,7 +11892,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteRbacGroup( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteRbacGroupResponse, error) { + req := &graphql.Request{ + OpName: "deleteRbacGroup", + Query: deleteRbacGroup_Operation, Variables: &__deleteRbacGroupInput{ Id: id, }, @@ -11773,14 +11920,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteRbacGroupmember( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteRbacGroupmemberResponse, error) { - req := &graphql.Request{ - OpName: "deleteRbacGroupmember", - Query: ` +// The query or mutation executed by deleteRbacGroupmember. +const deleteRbacGroupmember_Operation = ` mutation deleteRbacGroupmember ($id: ORN!) { resultStatus: deleteRbacGroupmember(id: $id) { ... ResultStatus @@ -11791,7 +11932,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteRbacGroupmember( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteRbacGroupmemberResponse, error) { + req := &graphql.Request{ + OpName: "deleteRbacGroupmember", + Query: deleteRbacGroupmember_Operation, Variables: &__deleteRbacGroupmemberInput{ Id: id, }, @@ -11810,14 +11960,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteRbacStatement( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteRbacStatementResponse, error) { - req := &graphql.Request{ - OpName: "deleteRbacStatement", - Query: ` +// The query or mutation executed by deleteRbacStatement. +const deleteRbacStatement_Operation = ` mutation deleteRbacStatement ($id: ORN!) { resultStatus: deleteRbacStatement(id: $id) { ... ResultStatus @@ -11828,7 +11972,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteRbacStatement( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteRbacStatementResponse, error) { + req := &graphql.Request{ + OpName: "deleteRbacStatement", + Query: deleteRbacStatement_Operation, Variables: &__deleteRbacStatementInput{ Id: id, }, @@ -11847,14 +12000,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteSnowflakeOutboundShare( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteSnowflakeOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "deleteSnowflakeOutboundShare", - Query: ` +// The query or mutation executed by deleteSnowflakeOutboundShare. +const deleteSnowflakeOutboundShare_Operation = ` mutation deleteSnowflakeOutboundShare ($id: ObjectId!) { resultStatus: deleteSnowflakeOutboundShare(id: $id) { ... ResultStatus @@ -11865,7 +12012,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteSnowflakeOutboundShare( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteSnowflakeOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "deleteSnowflakeOutboundShare", + Query: deleteSnowflakeOutboundShare_Operation, Variables: &__deleteSnowflakeOutboundShareInput{ Id: id, }, @@ -11884,14 +12040,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteWorksheet( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteWorksheetResponse, error) { - req := &graphql.Request{ - OpName: "deleteWorksheet", - Query: ` +// The query or mutation executed by deleteWorksheet. +const deleteWorksheet_Operation = ` mutation deleteWorksheet ($id: ObjectId!) { resultStatus: deleteWorksheet(wks: $id) { ... ResultStatus @@ -11902,7 +12052,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteWorksheet( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteWorksheetResponse, error) { + req := &graphql.Request{ + OpName: "deleteWorksheet", + Query: deleteWorksheet_Operation, Variables: &__deleteWorksheetInput{ Id: id, }, @@ -11921,14 +12080,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func deleteWorkspace( - ctx context.Context, - client graphql.Client, - id string, -) (*deleteWorkspaceResponse, error) { - req := &graphql.Request{ - OpName: "deleteWorkspace", - Query: ` +// The query or mutation executed by deleteWorkspace. +const deleteWorkspace_Operation = ` mutation deleteWorkspace ($id: ObjectId!) { resultStatus: deleteWorkspace(id: $id) { ... ResultStatus @@ -11939,7 +12092,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func deleteWorkspace( + ctx context.Context, + client graphql.Client, + id string, +) (*deleteWorkspaceResponse, error) { + req := &graphql.Request{ + OpName: "deleteWorkspace", + Query: deleteWorkspace_Operation, Variables: &__deleteWorkspaceInput{ Id: id, }, @@ -11958,14 +12120,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func getApp( - ctx context.Context, - client graphql.Client, - id string, -) (*getAppResponse, error) { - req := &graphql.Request{ - OpName: "getApp", - Query: ` +// The query or mutation executed by getApp. +const getApp_Operation = ` query getApp ($id: ObjectId!) { app(id: $id) { ... App @@ -11988,7 +12144,16 @@ fragment App on App { } outputs } -`, +` + +func getApp( + ctx context.Context, + client graphql.Client, + id string, +) (*getAppResponse, error) { + req := &graphql.Request{ + OpName: "getApp", + Query: getApp_Operation, Variables: &__getAppInput{ Id: id, }, @@ -12007,14 +12172,8 @@ fragment App on App { return &data, err } -func getAppDataSource( - ctx context.Context, - client graphql.Client, - id string, -) (*getAppDataSourceResponse, error) { - req := &graphql.Request{ - OpName: "getAppDataSource", - Query: ` +// The query or mutation executed by getAppDataSource. +const getAppDataSource_Operation = ` query getAppDataSource ($id: ObjectId!) { appdatasource: appDataSource(id: $id) { ... AppDataSource @@ -12030,7 +12189,16 @@ fragment AppDataSource on AppDataSource { sourceUrl instructions } -`, +` + +func getAppDataSource( + ctx context.Context, + client graphql.Client, + id string, +) (*getAppDataSourceResponse, error) { + req := &graphql.Request{ + OpName: "getAppDataSource", + Query: getAppDataSource_Operation, Variables: &__getAppDataSourceInput{ Id: id, }, @@ -12049,14 +12217,8 @@ fragment AppDataSource on AppDataSource { return &data, err } -func getBoard( - ctx context.Context, - client graphql.Client, - id string, -) (*getBoardResponse, error) { - req := &graphql.Request{ - OpName: "getBoard", - Query: ` +// The query or mutation executed by getBoard. +const getBoard_Operation = ` query getBoard ($id: ObjectId!) { board: getBoard(id: $id) { ... Board @@ -12070,7 +12232,16 @@ fragment Board on Board { boardJson: board source } -`, +` + +func getBoard( + ctx context.Context, + client graphql.Client, + id string, +) (*getBoardResponse, error) { + req := &graphql.Request{ + OpName: "getBoard", + Query: getBoard_Operation, Variables: &__getBoardInput{ Id: id, }, @@ -12089,14 +12260,8 @@ fragment Board on Board { return &data, err } -func getBookmark( - ctx context.Context, - client graphql.Client, - id string, -) (*getBookmarkResponse, error) { - req := &graphql.Request{ - OpName: "getBookmark", - Query: ` +// The query or mutation executed by getBookmark. +const getBookmark_Operation = ` query getBookmark ($id: ObjectId!) { bookmark(id: $id) { ... Bookmark @@ -12111,7 +12276,16 @@ fragment Bookmark on Bookmark { groupId bookmarkKind } -`, +` + +func getBookmark( + ctx context.Context, + client graphql.Client, + id string, +) (*getBookmarkResponse, error) { + req := &graphql.Request{ + OpName: "getBookmark", + Query: getBookmark_Operation, Variables: &__getBookmarkInput{ Id: id, }, @@ -12130,14 +12304,8 @@ fragment Bookmark on Bookmark { return &data, err } -func getBookmarkGroup( - ctx context.Context, - client graphql.Client, - id string, -) (*getBookmarkGroupResponse, error) { - req := &graphql.Request{ - OpName: "getBookmarkGroup", - Query: ` +// The query or mutation executed by getBookmarkGroup. +const getBookmarkGroup_Operation = ` query getBookmarkGroup ($id: ObjectId!) { bookmarkGroup(id: $id) { ... BookmarkGroup @@ -12150,7 +12318,16 @@ fragment BookmarkGroup on BookmarkGroup { iconUrl workspaceId } -`, +` + +func getBookmarkGroup( + ctx context.Context, + client graphql.Client, + id string, +) (*getBookmarkGroupResponse, error) { + req := &graphql.Request{ + OpName: "getBookmarkGroup", + Query: getBookmarkGroup_Operation, Variables: &__getBookmarkGroupInput{ Id: id, }, @@ -12169,14 +12346,8 @@ fragment BookmarkGroup on BookmarkGroup { return &data, err } -func getChannel( - ctx context.Context, - client graphql.Client, - id string, -) (*getChannelResponse, error) { - req := &graphql.Request{ - OpName: "getChannel", - Query: ` +// The query or mutation executed by getChannel. +const getChannel_Operation = ` query getChannel ($id: ObjectId!) { channel: getChannel(id: $id) { ... Channel @@ -12192,7 +12363,16 @@ fragment Channel on Channel { id } } -`, +` + +func getChannel( + ctx context.Context, + client graphql.Client, + id string, +) (*getChannelResponse, error) { + req := &graphql.Request{ + OpName: "getChannel", + Query: getChannel_Operation, Variables: &__getChannelInput{ Id: id, }, @@ -12211,14 +12391,8 @@ fragment Channel on Channel { return &data, err } -func getChannelAction( - ctx context.Context, - client graphql.Client, - id string, -) (*getChannelActionResponse, error) { - req := &graphql.Request{ - OpName: "getChannelAction", - Query: ` +// The query or mutation executed by getChannelAction. +const getChannelAction_Operation = ` query getChannelAction ($id: ObjectId!) { channelAction: getChannelAction(id: $id) { __typename @@ -12253,7 +12427,16 @@ fragment ChannelAction on ChannelAction { isHtml } } -`, +` + +func getChannelAction( + ctx context.Context, + client graphql.Client, + id string, +) (*getChannelActionResponse, error) { + req := &graphql.Request{ + OpName: "getChannelAction", + Query: getChannelAction_Operation, Variables: &__getChannelActionInput{ Id: id, }, @@ -12272,13 +12455,8 @@ fragment ChannelAction on ChannelAction { return &data, err } -func getCurrentCustomer( - ctx context.Context, - client graphql.Client, -) (*getCurrentCustomerResponse, error) { - req := &graphql.Request{ - OpName: "getCurrentCustomer", - Query: ` +// The query or mutation executed by getCurrentCustomer. +const getCurrentCustomer_Operation = ` query getCurrentCustomer { customer: currentCustomer { users { @@ -12291,7 +12469,15 @@ fragment User on User { email comment } -`, +` + +func getCurrentCustomer( + ctx context.Context, + client graphql.Client, +) (*getCurrentCustomerResponse, error) { + req := &graphql.Request{ + OpName: "getCurrentCustomer", + Query: getCurrentCustomer_Operation, } var err error @@ -12307,14 +12493,8 @@ fragment User on User { return &data, err } -func getDashboard( - ctx context.Context, - client graphql.Client, - id string, -) (*getDashboardResponse, error) { - req := &graphql.Request{ - OpName: "getDashboard", - Query: ` +// The query or mutation executed by getDashboard. +const getDashboard_Operation = ` query getDashboard ($id: ObjectId!) { dashboard(id: $id) { ... Dashboard @@ -12395,7 +12575,16 @@ fragment primitiveValueFields on PrimitiveValue { int64 string } -`, +` + +func getDashboard( + ctx context.Context, + client graphql.Client, + id string, +) (*getDashboardResponse, error) { + req := &graphql.Request{ + OpName: "getDashboard", + Query: getDashboard_Operation, Variables: &__getDashboardInput{ Id: id, }, @@ -12414,14 +12603,8 @@ fragment primitiveValueFields on PrimitiveValue { return &data, err } -func getDashboardLink( - ctx context.Context, - client graphql.Client, - id string, -) (*getDashboardLinkResponse, error) { - req := &graphql.Request{ - OpName: "getDashboardLink", - Query: ` +// The query or mutation executed by getDashboardLink. +const getDashboardLink_Operation = ` query getDashboardLink ($id: ObjectId!) { dashboardLink(id: $id) { ... DashboardLink @@ -12439,7 +12622,16 @@ fragment DashboardLink on DashboardLink { fromCard linkLabel } -`, +` + +func getDashboardLink( + ctx context.Context, + client graphql.Client, + id string, +) (*getDashboardLinkResponse, error) { + req := &graphql.Request{ + OpName: "getDashboardLink", + Query: getDashboardLink_Operation, Variables: &__getDashboardLinkInput{ Id: id, }, @@ -12458,14 +12650,8 @@ fragment DashboardLink on DashboardLink { return &data, err } -func getDataset( - ctx context.Context, - client graphql.Client, - id string, -) (*getDatasetResponse, error) { - req := &graphql.Request{ - OpName: "getDataset", - Query: ` +// The query or mutation executed by getDataset. +const getDataset_Operation = ` query getDataset ($id: ObjectId!) { dataset(id: $id) { ... Dataset @@ -12547,7 +12733,16 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func getDataset( + ctx context.Context, + client graphql.Client, + id string, +) (*getDatasetResponse, error) { + req := &graphql.Request{ + OpName: "getDataset", + Query: getDataset_Operation, Variables: &__getDatasetInput{ Id: id, }, @@ -12566,14 +12761,8 @@ fragment StageQuery on StageQuery { return &data, err } -func getDatasetOutboundShare( - ctx context.Context, - client graphql.Client, - id string, -) (*getDatasetOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "getDatasetOutboundShare", - Query: ` +// The query or mutation executed by getDatasetOutboundShare. +const getDatasetOutboundShare_Operation = ` query getDatasetOutboundShare ($id: ObjectId!) { datasetOutboundShare(id: $id) { ... DatasetOutboundShare @@ -12595,7 +12784,16 @@ fragment DatasetOutboundShare on DatasetOutboundShare { error } } -`, +` + +func getDatasetOutboundShare( + ctx context.Context, + client graphql.Client, + id string, +) (*getDatasetOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "getDatasetOutboundShare", + Query: getDatasetOutboundShare_Operation, Variables: &__getDatasetOutboundShareInput{ Id: id, }, @@ -12614,15 +12812,8 @@ fragment DatasetOutboundShare on DatasetOutboundShare { return &data, err } -func getDatasetQueryOutput( - ctx context.Context, - client graphql.Client, - query []*StageInput, - params QueryParams, -) (*getDatasetQueryOutputResponse, error) { - req := &graphql.Request{ - OpName: "getDatasetQueryOutput", - Query: ` +// The query or mutation executed by getDatasetQueryOutput. +const getDatasetQueryOutput_Operation = ` query getDatasetQueryOutput ($query: [StageInput!]!, $params: QueryParams!) { taskResult: datasetQueryOutput(query: $query, params: $params) { ... TaskResult @@ -12638,7 +12829,17 @@ fragment TaskResult on TaskResult { typedefDefinition } } -`, +` + +func getDatasetQueryOutput( + ctx context.Context, + client graphql.Client, + query []*StageInput, + params QueryParams, +) (*getDatasetQueryOutputResponse, error) { + req := &graphql.Request{ + OpName: "getDatasetQueryOutput", + Query: getDatasetQueryOutput_Operation, Variables: &__getDatasetQueryOutputInput{ Query: query, Params: params, @@ -12658,14 +12859,8 @@ fragment TaskResult on TaskResult { return &data, err } -func getDatastream( - ctx context.Context, - client graphql.Client, - id string, -) (*getDatastreamResponse, error) { - req := &graphql.Request{ - OpName: "getDatastream", - Query: ` +// The query or mutation executed by getDatastream. +const getDatastream_Operation = ` query getDatastream ($id: ObjectId!) { datastream(id: $id) { ... Datastream @@ -12679,7 +12874,16 @@ fragment Datastream on Datastream { workspaceId datasetId } -`, +` + +func getDatastream( + ctx context.Context, + client graphql.Client, + id string, +) (*getDatastreamResponse, error) { + req := &graphql.Request{ + OpName: "getDatastream", + Query: getDatastream_Operation, Variables: &__getDatastreamInput{ Id: id, }, @@ -12692,20 +12896,14 @@ fragment Datastream on Datastream { err = client.MakeRequest( ctx, req, - resp, - ) - - return &data, err -} - -func getDatastreamToken( - ctx context.Context, - client graphql.Client, - id string, -) (*getDatastreamTokenResponse, error) { - req := &graphql.Request{ - OpName: "getDatastreamToken", - Query: ` + resp, + ) + + return &data, err +} + +// The query or mutation executed by getDatastreamToken. +const getDatastreamToken_Operation = ` query getDatastreamToken ($id: String!) { datastreamToken(id: $id) { ... DatastreamToken @@ -12719,7 +12917,16 @@ fragment DatastreamToken on DatastreamToken { datastreamId secret } -`, +` + +func getDatastreamToken( + ctx context.Context, + client graphql.Client, + id string, +) (*getDatastreamTokenResponse, error) { + req := &graphql.Request{ + OpName: "getDatastreamToken", + Query: getDatastreamToken_Operation, Variables: &__getDatastreamTokenInput{ Id: id, }, @@ -12738,6 +12945,13 @@ fragment DatastreamToken on DatastreamToken { return &data, err } +// The query or mutation executed by getDefaultDashboard. +const getDefaultDashboard_Operation = ` +query getDefaultDashboard ($dsid: ObjectId!) { + defaultDashboard(dsid: $dsid) +} +` + func getDefaultDashboard( ctx context.Context, client graphql.Client, @@ -12745,11 +12959,7 @@ func getDefaultDashboard( ) (*getDefaultDashboardResponse, error) { req := &graphql.Request{ OpName: "getDefaultDashboard", - Query: ` -query getDefaultDashboard ($dsid: ObjectId!) { - defaultDashboard(dsid: $dsid) -} -`, + Query: getDefaultDashboard_Operation, Variables: &__getDefaultDashboardInput{ Dsid: dsid, }, @@ -12768,14 +12978,8 @@ query getDefaultDashboard ($dsid: ObjectId!) { return &data, err } -func getDeferredForeignKey( - ctx context.Context, - client graphql.Client, - id string, -) (*getDeferredForeignKeyResponse, error) { - req := &graphql.Request{ - OpName: "getDeferredForeignKey", - Query: ` +// The query or mutation executed by getDeferredForeignKey. +const getDeferredForeignKey_Operation = ` query getDeferredForeignKey ($id: ObjectId!) { deferredForeignKey(id: $id) { ... DeferredForeignKey @@ -12801,7 +13005,16 @@ fragment DeferredForeignKey on DeferredForeignKey { errorText } } -`, +` + +func getDeferredForeignKey( + ctx context.Context, + client graphql.Client, + id string, +) (*getDeferredForeignKeyResponse, error) { + req := &graphql.Request{ + OpName: "getDeferredForeignKey", + Query: getDeferredForeignKey_Operation, Variables: &__getDeferredForeignKeyInput{ Id: id, }, @@ -12820,14 +13033,8 @@ fragment DeferredForeignKey on DeferredForeignKey { return &data, err } -func getFiledrop( - ctx context.Context, - client graphql.Client, - id string, -) (*getFiledropResponse, error) { - req := &graphql.Request{ - OpName: "getFiledrop", - Query: ` +// The query or mutation executed by getFiledrop. +const getFiledrop_Operation = ` query getFiledrop ($id: ObjectId!) { filedrop(id: $id) { ... Filedrop @@ -12859,7 +13066,16 @@ fragment Filedrop on Filedrop { } } } -`, +` + +func getFiledrop( + ctx context.Context, + client graphql.Client, + id string, +) (*getFiledropResponse, error) { + req := &graphql.Request{ + OpName: "getFiledrop", + Query: getFiledrop_Operation, Variables: &__getFiledropInput{ Id: id, }, @@ -12878,14 +13094,8 @@ fragment Filedrop on Filedrop { return &data, err } -func getFolder( - ctx context.Context, - client graphql.Client, - id string, -) (*getFolderResponse, error) { - req := &graphql.Request{ - OpName: "getFolder", - Query: ` +// The query or mutation executed by getFolder. +const getFolder_Operation = ` query getFolder ($id: ObjectId!) { folder(id: $id) { ... Folder @@ -12898,7 +13108,16 @@ fragment Folder on Folder { description workspaceId } -`, +` + +func getFolder( + ctx context.Context, + client graphql.Client, + id string, +) (*getFolderResponse, error) { + req := &graphql.Request{ + OpName: "getFolder", + Query: getFolder_Operation, Variables: &__getFolderInput{ Id: id, }, @@ -12917,14 +13136,8 @@ fragment Folder on Folder { return &data, err } -func getLayeredSettingRecord( - ctx context.Context, - client graphql.Client, - id string, -) (*getLayeredSettingRecordResponse, error) { - req := &graphql.Request{ - OpName: "getLayeredSettingRecord", - Query: ` +// The query or mutation executed by getLayeredSettingRecord. +const getLayeredSettingRecord_Operation = ` query getLayeredSettingRecord ($id: ObjectId!) { layeredSettingRecord(id: $id) { ... LayeredSettingRecord @@ -12971,7 +13184,16 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { datastreamId userId } -`, +` + +func getLayeredSettingRecord( + ctx context.Context, + client graphql.Client, + id string, +) (*getLayeredSettingRecordResponse, error) { + req := &graphql.Request{ + OpName: "getLayeredSettingRecord", + Query: getLayeredSettingRecord_Operation, Variables: &__getLayeredSettingRecordInput{ Id: id, }, @@ -12990,14 +13212,8 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { return &data, err } -func getMonitor( - ctx context.Context, - client graphql.Client, - id string, -) (*getMonitorResponse, error) { - req := &graphql.Request{ - OpName: "getMonitor", - Query: ` +// The query or mutation executed by getMonitor. +const getMonitor_Operation = ` query getMonitor ($id: ObjectId!) { monitor(id: $id) { ... Monitor @@ -13082,7 +13298,16 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func getMonitor( + ctx context.Context, + client graphql.Client, + id string, +) (*getMonitorResponse, error) { + req := &graphql.Request{ + OpName: "getMonitor", + Query: getMonitor_Operation, Variables: &__getMonitorInput{ Id: id, }, @@ -13101,14 +13326,8 @@ fragment StageQuery on StageQuery { return &data, err } -func getMonitorAction( - ctx context.Context, - client graphql.Client, - id string, -) (*getMonitorActionResponse, error) { - req := &graphql.Request{ - OpName: "getMonitorAction", - Query: ` +// The query or mutation executed by getMonitorAction. +const getMonitorAction_Operation = ` query getMonitorAction ($id: ObjectId!) { monitorAction(id: $id) { __typename @@ -13141,7 +13360,16 @@ fragment MonitorAction on MonitorAction { bodyTemplate } } -`, +` + +func getMonitorAction( + ctx context.Context, + client graphql.Client, + id string, +) (*getMonitorActionResponse, error) { + req := &graphql.Request{ + OpName: "getMonitorAction", + Query: getMonitorAction_Operation, Variables: &__getMonitorActionInput{ Id: id, }, @@ -13160,14 +13388,8 @@ fragment MonitorAction on MonitorAction { return &data, err } -func getMonitorActionAttachment( - ctx context.Context, - client graphql.Client, - id string, -) (*getMonitorActionAttachmentResponse, error) { - req := &graphql.Request{ - OpName: "getMonitorActionAttachment", - Query: ` +// The query or mutation executed by getMonitorActionAttachment. +const getMonitorActionAttachment_Operation = ` query getMonitorActionAttachment ($id: ObjectId!) { monitorActionAttachment(id: $id) { ... MonitorActionAttachment @@ -13182,7 +13404,16 @@ fragment MonitorActionAttachment on MonitorActionAttachment { iconUrl description } -`, +` + +func getMonitorActionAttachment( + ctx context.Context, + client graphql.Client, + id string, +) (*getMonitorActionAttachmentResponse, error) { + req := &graphql.Request{ + OpName: "getMonitorActionAttachment", + Query: getMonitorActionAttachment_Operation, Variables: &__getMonitorActionAttachmentInput{ Id: id, }, @@ -13201,14 +13432,8 @@ fragment MonitorActionAttachment on MonitorActionAttachment { return &data, err } -func getPoller( - ctx context.Context, - client graphql.Client, - id string, -) (*getPollerResponse, error) { - req := &graphql.Request{ - OpName: "getPoller", - Query: ` +// The query or mutation executed by getPoller. +const getPoller_Operation = ` query getPoller ($id: ObjectId!) { poller(id: $id) { ... Poller @@ -13284,7 +13509,16 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { headers params } -`, +` + +func getPoller( + ctx context.Context, + client graphql.Client, + id string, +) (*getPollerResponse, error) { + req := &graphql.Request{ + OpName: "getPoller", + Query: getPoller_Operation, Variables: &__getPollerInput{ Id: id, }, @@ -13303,14 +13537,8 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { return &data, err } -func getPreferredPath( - ctx context.Context, - client graphql.Client, - id string, -) (*getPreferredPathResponse, error) { - req := &graphql.Request{ - OpName: "getPreferredPath", - Query: ` +// The query or mutation executed by getPreferredPath. +const getPreferredPath_Operation = ` query getPreferredPath ($id: ObjectId!) { preferredPathWithStatus: preferredPath(id: $id) { ... PreferredPathWithStatus @@ -13337,7 +13565,16 @@ fragment PreferredPath on PreferredPath { reverseFromDataset } } -`, +` + +func getPreferredPath( + ctx context.Context, + client graphql.Client, + id string, +) (*getPreferredPathResponse, error) { + req := &graphql.Request{ + OpName: "getPreferredPath", + Query: getPreferredPath_Operation, Variables: &__getPreferredPathInput{ Id: id, }, @@ -13356,13 +13593,8 @@ fragment PreferredPath on PreferredPath { return &data, err } -func getRbacDefaultGroup( - ctx context.Context, - client graphql.Client, -) (*getRbacDefaultGroupResponse, error) { - req := &graphql.Request{ - OpName: "getRbacDefaultGroup", - Query: ` +// The query or mutation executed by getRbacDefaultGroup. +const getRbacDefaultGroup_Operation = ` query getRbacDefaultGroup { rbacDefaultGroup { ... RbacGroup @@ -13373,7 +13605,15 @@ fragment RbacGroup on RbacGroup { name description } -`, +` + +func getRbacDefaultGroup( + ctx context.Context, + client graphql.Client, +) (*getRbacDefaultGroupResponse, error) { + req := &graphql.Request{ + OpName: "getRbacDefaultGroup", + Query: getRbacDefaultGroup_Operation, } var err error @@ -13389,14 +13629,8 @@ fragment RbacGroup on RbacGroup { return &data, err } -func getRbacGroup( - ctx context.Context, - client graphql.Client, - id string, -) (*getRbacGroupResponse, error) { - req := &graphql.Request{ - OpName: "getRbacGroup", - Query: ` +// The query or mutation executed by getRbacGroup. +const getRbacGroup_Operation = ` query getRbacGroup ($id: ORN!) { rbacGroup(id: $id) { ... RbacGroup @@ -13407,7 +13641,16 @@ fragment RbacGroup on RbacGroup { name description } -`, +` + +func getRbacGroup( + ctx context.Context, + client graphql.Client, + id string, +) (*getRbacGroupResponse, error) { + req := &graphql.Request{ + OpName: "getRbacGroup", + Query: getRbacGroup_Operation, Variables: &__getRbacGroupInput{ Id: id, }, @@ -13426,14 +13669,8 @@ fragment RbacGroup on RbacGroup { return &data, err } -func getRbacGroupmember( - ctx context.Context, - client graphql.Client, - id string, -) (*getRbacGroupmemberResponse, error) { - req := &graphql.Request{ - OpName: "getRbacGroupmember", - Query: ` +// The query or mutation executed by getRbacGroupmember. +const getRbacGroupmember_Operation = ` query getRbacGroupmember ($id: ORN!) { rbacGroupmember(id: $id) { ... RbacGroupmember @@ -13446,7 +13683,16 @@ fragment RbacGroupmember on RbacGroupmember { memberUserId memberGroupId } -`, +` + +func getRbacGroupmember( + ctx context.Context, + client graphql.Client, + id string, +) (*getRbacGroupmemberResponse, error) { + req := &graphql.Request{ + OpName: "getRbacGroupmember", + Query: getRbacGroupmember_Operation, Variables: &__getRbacGroupmemberInput{ Id: id, }, @@ -13465,13 +13711,8 @@ fragment RbacGroupmember on RbacGroupmember { return &data, err } -func getRbacGroups( - ctx context.Context, - client graphql.Client, -) (*getRbacGroupsResponse, error) { - req := &graphql.Request{ - OpName: "getRbacGroups", - Query: ` +// The query or mutation executed by getRbacGroups. +const getRbacGroups_Operation = ` query getRbacGroups { rbacGroups { ... RbacGroup @@ -13482,7 +13723,15 @@ fragment RbacGroup on RbacGroup { name description } -`, +` + +func getRbacGroups( + ctx context.Context, + client graphql.Client, +) (*getRbacGroupsResponse, error) { + req := &graphql.Request{ + OpName: "getRbacGroups", + Query: getRbacGroups_Operation, } var err error @@ -13498,14 +13747,8 @@ fragment RbacGroup on RbacGroup { return &data, err } -func getRbacStatement( - ctx context.Context, - client graphql.Client, - id string, -) (*getRbacStatementResponse, error) { - req := &graphql.Request{ - OpName: "getRbacStatement", - Query: ` +// The query or mutation executed by getRbacStatement. +const getRbacStatement_Operation = ` query getRbacStatement ($id: ORN!) { rbacStatement(id: $id) { ... RbacStatement @@ -13530,7 +13773,16 @@ fragment RbacStatement on RbacStatement { } role } -`, +` + +func getRbacStatement( + ctx context.Context, + client graphql.Client, + id string, +) (*getRbacStatementResponse, error) { + req := &graphql.Request{ + OpName: "getRbacStatement", + Query: getRbacStatement_Operation, Variables: &__getRbacStatementInput{ Id: id, }, @@ -13549,14 +13801,8 @@ fragment RbacStatement on RbacStatement { return &data, err } -func getSnowflakeOutboundShare( - ctx context.Context, - client graphql.Client, - id string, -) (*getSnowflakeOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "getSnowflakeOutboundShare", - Query: ` +// The query or mutation executed by getSnowflakeOutboundShare. +const getSnowflakeOutboundShare_Operation = ` query getSnowflakeOutboundShare ($id: ObjectId!) { share: snowflakeOutboundShare(id: $id) { ... SnowflakeOutboundShare @@ -13576,7 +13822,16 @@ fragment SnowflakeAccount on SnowflakeAccount { organization account } -`, +` + +func getSnowflakeOutboundShare( + ctx context.Context, + client graphql.Client, + id string, +) (*getSnowflakeOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "getSnowflakeOutboundShare", + Query: getSnowflakeOutboundShare_Operation, Variables: &__getSnowflakeOutboundShareInput{ Id: id, }, @@ -13595,15 +13850,8 @@ fragment SnowflakeAccount on SnowflakeAccount { return &data, err } -func getTerraform( - ctx context.Context, - client graphql.Client, - id string, - ty TerraformObjectType, -) (*getTerraformResponse, error) { - req := &graphql.Request{ - OpName: "getTerraform", - Query: ` +// The query or mutation executed by getTerraform. +const getTerraform_Operation = ` query getTerraform ($id: ObjectId!, $ty: TerraformObjectType!) { terraform: getTerraform(id: $id, type: $ty) { ... TerraformDefinition @@ -13615,7 +13863,17 @@ fragment TerraformDefinition on TerraformDefinition { importId importName } -`, +` + +func getTerraform( + ctx context.Context, + client graphql.Client, + id string, + ty TerraformObjectType, +) (*getTerraformResponse, error) { + req := &graphql.Request{ + OpName: "getTerraform", + Query: getTerraform_Operation, Variables: &__getTerraformInput{ Id: id, Ty: ty, @@ -13635,14 +13893,8 @@ fragment TerraformDefinition on TerraformDefinition { return &data, err } -func getUser( - ctx context.Context, - client graphql.Client, - id types.UserIdScalar, -) (*getUserResponse, error) { - req := &graphql.Request{ - OpName: "getUser", - Query: ` +// The query or mutation executed by getUser. +const getUser_Operation = ` query getUser ($id: UserId!) { user(id: $id) { ... User @@ -13653,7 +13905,16 @@ fragment User on User { email comment } -`, +` + +func getUser( + ctx context.Context, + client graphql.Client, + id types.UserIdScalar, +) (*getUserResponse, error) { + req := &graphql.Request{ + OpName: "getUser", + Query: getUser_Operation, Variables: &__getUserInput{ Id: id, }, @@ -13672,14 +13933,8 @@ fragment User on User { return &data, err } -func getWorksheet( - ctx context.Context, - client graphql.Client, - id string, -) (*getWorksheetResponse, error) { - req := &graphql.Request{ - OpName: "getWorksheet", - Query: ` +// The query or mutation executed by getWorksheet. +const getWorksheet_Operation = ` query getWorksheet ($id: ObjectId!) { worksheet(id: $id) { ... Worksheet @@ -13708,7 +13963,16 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func getWorksheet( + ctx context.Context, + client graphql.Client, + id string, +) (*getWorksheetResponse, error) { + req := &graphql.Request{ + OpName: "getWorksheet", + Query: getWorksheet_Operation, Variables: &__getWorksheetInput{ Id: id, }, @@ -13727,14 +13991,8 @@ fragment StageQuery on StageQuery { return &data, err } -func getWorkspace( - ctx context.Context, - client graphql.Client, - id string, -) (*getWorkspaceResponse, error) { - req := &graphql.Request{ - OpName: "getWorkspace", - Query: ` +// The query or mutation executed by getWorkspace. +const getWorkspace_Operation = ` query getWorkspace ($id: ObjectId!) { workspace(id: $id) { ... Workspace @@ -13744,7 +14002,16 @@ fragment Workspace on Project { id label } -`, +` + +func getWorkspace( + ctx context.Context, + client graphql.Client, + id string, +) (*getWorkspaceResponse, error) { + req := &graphql.Request{ + OpName: "getWorkspace", + Query: getWorkspace_Operation, Variables: &__getWorkspaceInput{ Id: id, }, @@ -13763,13 +14030,8 @@ fragment Workspace on Project { return &data, err } -func listDatasets( - ctx context.Context, - client graphql.Client, -) (*listDatasetsResponse, error) { - req := &graphql.Request{ - OpName: "listDatasets", - Query: ` +// The query or mutation executed by listDatasets. +const listDatasets_Operation = ` query listDatasets { datasets: projects { datasets { @@ -13853,7 +14115,15 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func listDatasets( + ctx context.Context, + client graphql.Client, +) (*listDatasetsResponse, error) { + req := &graphql.Request{ + OpName: "listDatasets", + Query: listDatasets_Operation, } var err error @@ -13869,13 +14139,8 @@ fragment StageQuery on StageQuery { return &data, err } -func listWorkspaces( - ctx context.Context, - client graphql.Client, -) (*listWorkspacesResponse, error) { - req := &graphql.Request{ - OpName: "listWorkspaces", - Query: ` +// The query or mutation executed by listWorkspaces. +const listWorkspaces_Operation = ` query listWorkspaces { workspaces: projects { ... Workspace @@ -13885,7 +14150,15 @@ fragment Workspace on Project { id label } -`, +` + +func listWorkspaces( + ctx context.Context, + client graphql.Client, +) (*listWorkspacesResponse, error) { + req := &graphql.Request{ + OpName: "listWorkspaces", + Query: listWorkspaces_Operation, } var err error @@ -13901,17 +14174,8 @@ fragment Workspace on Project { return &data, err } -// LookupApp retrieves app by name. -// TODO: this should be bound to a folderId, not a workspace. -func lookupApp( - ctx context.Context, - client graphql.Client, - workspaceId string, - name string, -) (*lookupAppResponse, error) { - req := &graphql.Request{ - OpName: "lookupApp", - Query: ` +// The query or mutation executed by lookupApp. +const lookupApp_Operation = ` query lookupApp ($workspaceId: ObjectId!, $name: String!) { apps(workspaceId: $workspaceId, name: $name) { ... App @@ -13934,7 +14198,19 @@ fragment App on App { } outputs } -`, +` + +// LookupApp retrieves app by name. +// TODO: this should be bound to a folderId, not a workspace. +func lookupApp( + ctx context.Context, + client graphql.Client, + workspaceId string, + name string, +) (*lookupAppResponse, error) { + req := &graphql.Request{ + OpName: "lookupApp", + Query: lookupApp_Operation, Variables: &__lookupAppInput{ WorkspaceId: workspaceId, Name: name, @@ -13954,15 +14230,8 @@ fragment App on App { return &data, err } -func lookupDataset( - ctx context.Context, - client graphql.Client, - workspaceId string, - name string, -) (*lookupDatasetResponse, error) { - req := &graphql.Request{ - OpName: "lookupDataset", - Query: ` +// The query or mutation executed by lookupDataset. +const lookupDataset_Operation = ` query lookupDataset ($workspaceId: ObjectId!, $name: String!) { dataset: workspace(id: $workspaceId) { dataset(label: $name) { @@ -14046,7 +14315,17 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func lookupDataset( + ctx context.Context, + client graphql.Client, + workspaceId string, + name string, +) (*lookupDatasetResponse, error) { + req := &graphql.Request{ + OpName: "lookupDataset", + Query: lookupDataset_Operation, Variables: &__lookupDatasetInput{ WorkspaceId: workspaceId, Name: name, @@ -14066,15 +14345,8 @@ fragment StageQuery on StageQuery { return &data, err } -func lookupDatastream( - ctx context.Context, - client graphql.Client, - workspaceId string, - name string, -) (*lookupDatastreamResponse, error) { - req := &graphql.Request{ - OpName: "lookupDatastream", - Query: ` +// The query or mutation executed by lookupDatastream. +const lookupDatastream_Operation = ` query lookupDatastream ($workspaceId: ObjectId!, $name: String!) { datastream: workspace(id: $workspaceId) { datastream(name: $name) { @@ -14090,7 +14362,17 @@ fragment Datastream on Datastream { workspaceId datasetId } -`, +` + +func lookupDatastream( + ctx context.Context, + client graphql.Client, + workspaceId string, + name string, +) (*lookupDatastreamResponse, error) { + req := &graphql.Request{ + OpName: "lookupDatastream", + Query: lookupDatastream_Operation, Variables: &__lookupDatastreamInput{ WorkspaceId: workspaceId, Name: name, @@ -14110,15 +14392,8 @@ fragment Datastream on Datastream { return &data, err } -func lookupFolder( - ctx context.Context, - client graphql.Client, - workspaceId string, - name string, -) (*lookupFolderResponse, error) { - req := &graphql.Request{ - OpName: "lookupFolder", - Query: ` +// The query or mutation executed by lookupFolder. +const lookupFolder_Operation = ` query lookupFolder ($workspaceId: ObjectId!, $name: String!) { folder: workspace(id: $workspaceId) { folder(name: $name) { @@ -14133,7 +14408,17 @@ fragment Folder on Folder { description workspaceId } -`, +` + +func lookupFolder( + ctx context.Context, + client graphql.Client, + workspaceId string, + name string, +) (*lookupFolderResponse, error) { + req := &graphql.Request{ + OpName: "lookupFolder", + Query: lookupFolder_Operation, Variables: &__lookupFolderInput{ WorkspaceId: workspaceId, Name: name, @@ -14153,14 +14438,8 @@ fragment Folder on Folder { return &data, err } -func lookupModuleVersions( - ctx context.Context, - client graphql.Client, - id string, -) (*lookupModuleVersionsResponse, error) { - req := &graphql.Request{ - OpName: "lookupModuleVersions", - Query: ` +// The query or mutation executed by lookupModuleVersions. +const lookupModuleVersions_Operation = ` query lookupModuleVersions ($id: String!) { moduleVersions(id: $id) { ... ModuleVersion @@ -14169,7 +14448,16 @@ query lookupModuleVersions ($id: String!) { fragment ModuleVersion on ModuleVersion { version } -`, +` + +func lookupModuleVersions( + ctx context.Context, + client graphql.Client, + id string, +) (*lookupModuleVersionsResponse, error) { + req := &graphql.Request{ + OpName: "lookupModuleVersions", + Query: lookupModuleVersions_Operation, Variables: &__lookupModuleVersionsInput{ Id: id, }, @@ -14188,15 +14476,8 @@ fragment ModuleVersion on ModuleVersion { return &data, err } -func lookupMonitor( - ctx context.Context, - client graphql.Client, - workspaceId string, - name string, -) (*lookupMonitorResponse, error) { - req := &graphql.Request{ - OpName: "lookupMonitor", - Query: ` +// The query or mutation executed by lookupMonitor. +const lookupMonitor_Operation = ` query lookupMonitor ($workspaceId: ObjectId!, $name: String!) { monitor: workspace(id: $workspaceId) { monitor(name: $name) { @@ -14283,7 +14564,17 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func lookupMonitor( + ctx context.Context, + client graphql.Client, + workspaceId string, + name string, +) (*lookupMonitorResponse, error) { + req := &graphql.Request{ + OpName: "lookupMonitor", + Query: lookupMonitor_Operation, Variables: &__lookupMonitorInput{ WorkspaceId: workspaceId, Name: name, @@ -14303,15 +14594,8 @@ fragment StageQuery on StageQuery { return &data, err } -func lookupSnowflakeOutboundShare( - ctx context.Context, - client graphql.Client, - name string, - workspaceId string, -) (*lookupSnowflakeOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "lookupSnowflakeOutboundShare", - Query: ` +// The query or mutation executed by lookupSnowflakeOutboundShare. +const lookupSnowflakeOutboundShare_Operation = ` query lookupSnowflakeOutboundShare ($name: String!, $workspaceId: ObjectId!) { shares: searchSnowflakeOutboundShare(nameExact: $name, workspaceId: $workspaceId) { results { @@ -14333,7 +14617,17 @@ fragment SnowflakeAccount on SnowflakeAccount { organization account } -`, +` + +func lookupSnowflakeOutboundShare( + ctx context.Context, + client graphql.Client, + name string, + workspaceId string, +) (*lookupSnowflakeOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "lookupSnowflakeOutboundShare", + Query: lookupSnowflakeOutboundShare_Operation, Variables: &__lookupSnowflakeOutboundShareInput{ Name: name, WorkspaceId: workspaceId, @@ -14353,14 +14647,8 @@ fragment SnowflakeAccount on SnowflakeAccount { return &data, err } -func lookupWorkspace( - ctx context.Context, - client graphql.Client, - name string, -) (*lookupWorkspaceResponse, error) { - req := &graphql.Request{ - OpName: "lookupWorkspace", - Query: ` +// The query or mutation executed by lookupWorkspace. +const lookupWorkspace_Operation = ` query lookupWorkspace ($name: String!) { workspace(label: $name) { ... Workspace @@ -14370,7 +14658,16 @@ fragment Workspace on Project { id label } -`, +` + +func lookupWorkspace( + ctx context.Context, + client graphql.Client, + name string, +) (*lookupWorkspaceResponse, error) { + req := &graphql.Request{ + OpName: "lookupWorkspace", + Query: lookupWorkspace_Operation, Variables: &__lookupWorkspaceInput{ Name: name, }, @@ -14389,14 +14686,8 @@ fragment Workspace on Project { return &data, err } -func saveDashboard( - ctx context.Context, - client graphql.Client, - dashboardInput DashboardInput, -) (*saveDashboardResponse, error) { - req := &graphql.Request{ - OpName: "saveDashboard", - Query: ` +// The query or mutation executed by saveDashboard. +const saveDashboard_Operation = ` mutation saveDashboard ($dashboardInput: DashboardInput!) { dashboard: saveDashboard(dash: $dashboardInput) { ... Dashboard @@ -14477,7 +14768,16 @@ fragment primitiveValueFields on PrimitiveValue { int64 string } -`, +` + +func saveDashboard( + ctx context.Context, + client graphql.Client, + dashboardInput DashboardInput, +) (*saveDashboardResponse, error) { + req := &graphql.Request{ + OpName: "saveDashboard", + Query: saveDashboard_Operation, Variables: &__saveDashboardInput{ DashboardInput: dashboardInput, }, @@ -14496,17 +14796,8 @@ fragment primitiveValueFields on PrimitiveValue { return &data, err } -func saveDataset( - ctx context.Context, - client graphql.Client, - workspaceId string, - dataset DatasetInput, - query MultiStageQueryInput, - dep *DependencyHandlingInput, -) (*saveDatasetResponse, error) { - req := &graphql.Request{ - OpName: "saveDataset", - Query: ` +// The query or mutation executed by saveDataset. +const saveDataset_Operation = ` mutation saveDataset ($workspaceId: ObjectId!, $dataset: DatasetInput!, $query: MultiStageQueryInput!, $dep: DependencyHandlingInput) { dataset: saveDataset(workspaceId: $workspaceId, dataset: $dataset, query: $query, dependencyHandling: $dep) { dataset { @@ -14590,7 +14881,19 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func saveDataset( + ctx context.Context, + client graphql.Client, + workspaceId string, + dataset DatasetInput, + query MultiStageQueryInput, + dep *DependencyHandlingInput, +) (*saveDatasetResponse, error) { + req := &graphql.Request{ + OpName: "saveDataset", + Query: saveDataset_Operation, Variables: &__saveDatasetInput{ WorkspaceId: workspaceId, Dataset: dataset, @@ -14612,17 +14915,8 @@ fragment StageQuery on StageQuery { return &data, err } -func saveSourceDataset( - ctx context.Context, - client graphql.Client, - workspaceId string, - datasetDefinition DatasetDefinitionInput, - sourceTable SourceTableDefinitionInput, - dep *DependencyHandlingInput, -) (*saveSourceDatasetResponse, error) { - req := &graphql.Request{ - OpName: "saveSourceDataset", - Query: ` +// The query or mutation executed by saveSourceDataset. +const saveSourceDataset_Operation = ` mutation saveSourceDataset ($workspaceId: ObjectId!, $datasetDefinition: DatasetDefinitionInput!, $sourceTable: SourceTableDefinitionInput!, $dep: DependencyHandlingInput) { dataset: saveSourceDataset(workspaceId: $workspaceId, datasetDefinition: $datasetDefinition, sourceTable: $sourceTable, dependencyHandling: $dep) { dataset { @@ -14706,7 +15000,19 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func saveSourceDataset( + ctx context.Context, + client graphql.Client, + workspaceId string, + datasetDefinition DatasetDefinitionInput, + sourceTable SourceTableDefinitionInput, + dep *DependencyHandlingInput, +) (*saveSourceDatasetResponse, error) { + req := &graphql.Request{ + OpName: "saveSourceDataset", + Query: saveSourceDataset_Operation, Variables: &__saveSourceDatasetInput{ WorkspaceId: workspaceId, DatasetDefinition: datasetDefinition, @@ -14728,14 +15034,8 @@ fragment StageQuery on StageQuery { return &data, err } -func saveWorksheet( - ctx context.Context, - client graphql.Client, - worksheetInput WorksheetInput, -) (*saveWorksheetResponse, error) { - req := &graphql.Request{ - OpName: "saveWorksheet", - Query: ` +// The query or mutation executed by saveWorksheet. +const saveWorksheet_Operation = ` mutation saveWorksheet ($worksheetInput: WorksheetInput!) { worksheet: saveWorksheet(wks: $worksheetInput) { ... Worksheet @@ -14764,7 +15064,16 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +func saveWorksheet( + ctx context.Context, + client graphql.Client, + worksheetInput WorksheetInput, +) (*saveWorksheetResponse, error) { + req := &graphql.Request{ + OpName: "saveWorksheet", + Query: saveWorksheet_Operation, Variables: &__saveWorksheetInput{ WorksheetInput: worksheetInput, }, @@ -14783,15 +15092,8 @@ fragment StageQuery on StageQuery { return &data, err } -func setChannelsForChannelAction( - ctx context.Context, - client graphql.Client, - actionId string, - channelIds []string, -) (*setChannelsForChannelActionResponse, error) { - req := &graphql.Request{ - OpName: "setChannelsForChannelAction", - Query: ` +// The query or mutation executed by setChannelsForChannelAction. +const setChannelsForChannelAction_Operation = ` mutation setChannelsForChannelAction ($actionId: ObjectId!, $channelIds: [ObjectId!]!) { resultStatus: setChannelsForChannelAction(actionId: $actionId, channelIds: $channelIds) { ... ResultStatus @@ -14802,7 +15104,17 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func setChannelsForChannelAction( + ctx context.Context, + client graphql.Client, + actionId string, + channelIds []string, +) (*setChannelsForChannelActionResponse, error) { + req := &graphql.Request{ + OpName: "setChannelsForChannelAction", + Query: setChannelsForChannelAction_Operation, Variables: &__setChannelsForChannelActionInput{ ActionId: actionId, ChannelIds: channelIds, @@ -14822,15 +15134,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func setDefaultDashboard( - ctx context.Context, - client graphql.Client, - dsid string, - dashid string, -) (*setDefaultDashboardResponse, error) { - req := &graphql.Request{ - OpName: "setDefaultDashboard", - Query: ` +// The query or mutation executed by setDefaultDashboard. +const setDefaultDashboard_Operation = ` mutation setDefaultDashboard ($dsid: ObjectId!, $dashid: ObjectId!) { resultStatus: setDefaultDashboard(dsid: $dsid, dashid: $dashid) { ... ResultStatus @@ -14841,7 +15146,17 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func setDefaultDashboard( + ctx context.Context, + client graphql.Client, + dsid string, + dashid string, +) (*setDefaultDashboardResponse, error) { + req := &graphql.Request{ + OpName: "setDefaultDashboard", + Query: setDefaultDashboard_Operation, Variables: &__setDefaultDashboardInput{ Dsid: dsid, Dashid: dashid, @@ -14861,15 +15176,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func setMonitorsForChannel( - ctx context.Context, - client graphql.Client, - channelId string, - monitorIds []string, -) (*setMonitorsForChannelResponse, error) { - req := &graphql.Request{ - OpName: "setMonitorsForChannel", - Query: ` +// The query or mutation executed by setMonitorsForChannel. +const setMonitorsForChannel_Operation = ` mutation setMonitorsForChannel ($channelId: ObjectId!, $monitorIds: [ObjectId!]!) { resultStatus: setMonitorsForChannel(channelId: $channelId, monitorIds: $monitorIds) { ... ResultStatus @@ -14880,7 +15188,17 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func setMonitorsForChannel( + ctx context.Context, + client graphql.Client, + channelId string, + monitorIds []string, +) (*setMonitorsForChannelResponse, error) { + req := &graphql.Request{ + OpName: "setMonitorsForChannel", + Query: setMonitorsForChannel_Operation, Variables: &__setMonitorsForChannelInput{ ChannelId: channelId, MonitorIds: monitorIds, @@ -14900,14 +15218,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func setRbacDefaultGroup( - ctx context.Context, - client graphql.Client, - id string, -) (*setRbacDefaultGroupResponse, error) { - req := &graphql.Request{ - OpName: "setRbacDefaultGroup", - Query: ` +// The query or mutation executed by setRbacDefaultGroup. +const setRbacDefaultGroup_Operation = ` mutation setRbacDefaultGroup ($id: ORN!) { resultStatus: setRbacDefaultGroup(id: $id) { ... ResultStatus @@ -14918,7 +15230,16 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func setRbacDefaultGroup( + ctx context.Context, + client graphql.Client, + id string, +) (*setRbacDefaultGroupResponse, error) { + req := &graphql.Request{ + OpName: "setRbacDefaultGroup", + Query: setRbacDefaultGroup_Operation, Variables: &__setRbacDefaultGroupInput{ Id: id, }, @@ -14937,13 +15258,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func unsetRbacDefaultGroup( - ctx context.Context, - client graphql.Client, -) (*unsetRbacDefaultGroupResponse, error) { - req := &graphql.Request{ - OpName: "unsetRbacDefaultGroup", - Query: ` +// The query or mutation executed by unsetRbacDefaultGroup. +const unsetRbacDefaultGroup_Operation = ` mutation unsetRbacDefaultGroup { resultStatus: unsetRbacDefaultGroup { ... ResultStatus @@ -14954,7 +15270,15 @@ fragment ResultStatus on ResultStatus { errorMessage detailedInfo } -`, +` + +func unsetRbacDefaultGroup( + ctx context.Context, + client graphql.Client, +) (*unsetRbacDefaultGroupResponse, error) { + req := &graphql.Request{ + OpName: "unsetRbacDefaultGroup", + Query: unsetRbacDefaultGroup_Operation, } var err error @@ -14970,15 +15294,8 @@ fragment ResultStatus on ResultStatus { return &data, err } -func updateApp( - ctx context.Context, - client graphql.Client, - id string, - config AppInput, -) (*updateAppResponse, error) { - req := &graphql.Request{ - OpName: "updateApp", - Query: ` +// The query or mutation executed by updateApp. +const updateApp_Operation = ` mutation updateApp ($id: ObjectId!, $config: AppInput!) { app: updateApp(id: $id, app: $config) { ... App @@ -15001,7 +15318,17 @@ fragment App on App { } outputs } -`, +` + +func updateApp( + ctx context.Context, + client graphql.Client, + id string, + config AppInput, +) (*updateAppResponse, error) { + req := &graphql.Request{ + OpName: "updateApp", + Query: updateApp_Operation, Variables: &__updateAppInput{ Id: id, Config: config, @@ -15021,15 +15348,8 @@ fragment App on App { return &data, err } -func updateAppDataSource( - ctx context.Context, - client graphql.Client, - id string, - config AppDataSourceInput, -) (*updateAppDataSourceResponse, error) { - req := &graphql.Request{ - OpName: "updateAppDataSource", - Query: ` +// The query or mutation executed by updateAppDataSource. +const updateAppDataSource_Operation = ` mutation updateAppDataSource ($id: ObjectId!, $config: AppDataSourceInput!) { appdatasource: updateAppDataSource(id: $id, source: $config) { ... AppDataSource @@ -15045,7 +15365,17 @@ fragment AppDataSource on AppDataSource { sourceUrl instructions } -`, +` + +func updateAppDataSource( + ctx context.Context, + client graphql.Client, + id string, + config AppDataSourceInput, +) (*updateAppDataSourceResponse, error) { + req := &graphql.Request{ + OpName: "updateAppDataSource", + Query: updateAppDataSource_Operation, Variables: &__updateAppDataSourceInput{ Id: id, Config: config, @@ -15065,15 +15395,8 @@ fragment AppDataSource on AppDataSource { return &data, err } -func updateBoard( - ctx context.Context, - client graphql.Client, - id string, - board BoardInput, -) (*updateBoardResponse, error) { - req := &graphql.Request{ - OpName: "updateBoard", - Query: ` +// The query or mutation executed by updateBoard. +const updateBoard_Operation = ` mutation updateBoard ($id: ObjectId!, $board: BoardInput!) { board: updateBoard(id: $id, board: $board) { ... Board @@ -15087,7 +15410,17 @@ fragment Board on Board { boardJson: board source } -`, +` + +func updateBoard( + ctx context.Context, + client graphql.Client, + id string, + board BoardInput, +) (*updateBoardResponse, error) { + req := &graphql.Request{ + OpName: "updateBoard", + Query: updateBoard_Operation, Variables: &__updateBoardInput{ Id: id, Board: board, @@ -15107,15 +15440,8 @@ fragment Board on Board { return &data, err } -func updateChannel( - ctx context.Context, - client graphql.Client, - id string, - channel ChannelInput, -) (*updateChannelResponse, error) { - req := &graphql.Request{ - OpName: "updateChannel", - Query: ` +// The query or mutation executed by updateChannel. +const updateChannel_Operation = ` mutation updateChannel ($id: ObjectId!, $channel: ChannelInput!) { channel: updateChannel(id: $id, channel: $channel) { ... Channel @@ -15131,7 +15457,17 @@ fragment Channel on Channel { id } } -`, +` + +func updateChannel( + ctx context.Context, + client graphql.Client, + id string, + channel ChannelInput, +) (*updateChannelResponse, error) { + req := &graphql.Request{ + OpName: "updateChannel", + Query: updateChannel_Operation, Variables: &__updateChannelInput{ Id: id, Channel: channel, @@ -15151,15 +15487,8 @@ fragment Channel on Channel { return &data, err } -func updateChannelAction( - ctx context.Context, - client graphql.Client, - id string, - action ActionInput, -) (*updateChannelActionResponse, error) { - req := &graphql.Request{ - OpName: "updateChannelAction", - Query: ` +// The query or mutation executed by updateChannelAction. +const updateChannelAction_Operation = ` mutation updateChannelAction ($id: ObjectId!, $action: ActionInput!) { channelAction: updateChannelAction(id: $id, action: $action) { __typename @@ -15194,7 +15523,17 @@ fragment ChannelAction on ChannelAction { isHtml } } -`, +` + +func updateChannelAction( + ctx context.Context, + client graphql.Client, + id string, + action ActionInput, +) (*updateChannelActionResponse, error) { + req := &graphql.Request{ + OpName: "updateChannelAction", + Query: updateChannelAction_Operation, Variables: &__updateChannelActionInput{ Id: id, Action: action, @@ -15214,15 +15553,8 @@ fragment ChannelAction on ChannelAction { return &data, err } -func updateDashboardLink( - ctx context.Context, - client graphql.Client, - id string, - input DashboardLinkInput, -) (*updateDashboardLinkResponse, error) { - req := &graphql.Request{ - OpName: "updateDashboardLink", - Query: ` +// The query or mutation executed by updateDashboardLink. +const updateDashboardLink_Operation = ` mutation updateDashboardLink ($id: ObjectId!, $input: DashboardLinkInput!) { dashboardLink: updateDashboardLink(id: $id, link: $input) { ... DashboardLink @@ -15240,7 +15572,17 @@ fragment DashboardLink on DashboardLink { fromCard linkLabel } -`, +` + +func updateDashboardLink( + ctx context.Context, + client graphql.Client, + id string, + input DashboardLinkInput, +) (*updateDashboardLinkResponse, error) { + req := &graphql.Request{ + OpName: "updateDashboardLink", + Query: updateDashboardLink_Operation, Variables: &__updateDashboardLinkInput{ Id: id, Input: input, @@ -15260,15 +15602,8 @@ fragment DashboardLink on DashboardLink { return &data, err } -func updateDatasetOutboundShare( - ctx context.Context, - client graphql.Client, - id string, - input DatasetOutboundShareInput, -) (*updateDatasetOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "updateDatasetOutboundShare", - Query: ` +// The query or mutation executed by updateDatasetOutboundShare. +const updateDatasetOutboundShare_Operation = ` mutation updateDatasetOutboundShare ($id: ObjectId!, $input: DatasetOutboundShareInput!) { datasetOutboundShare: updateDatasetOutboundShare(id: $id, input: $input) { ... DatasetOutboundShare @@ -15290,7 +15625,17 @@ fragment DatasetOutboundShare on DatasetOutboundShare { error } } -`, +` + +func updateDatasetOutboundShare( + ctx context.Context, + client graphql.Client, + id string, + input DatasetOutboundShareInput, +) (*updateDatasetOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "updateDatasetOutboundShare", + Query: updateDatasetOutboundShare_Operation, Variables: &__updateDatasetOutboundShareInput{ Id: id, Input: input, @@ -15310,15 +15655,8 @@ fragment DatasetOutboundShare on DatasetOutboundShare { return &data, err } -func updateDatastream( - ctx context.Context, - client graphql.Client, - id string, - datastream DatastreamInput, -) (*updateDatastreamResponse, error) { - req := &graphql.Request{ - OpName: "updateDatastream", - Query: ` +// The query or mutation executed by updateDatastream. +const updateDatastream_Operation = ` mutation updateDatastream ($id: ObjectId!, $datastream: DatastreamInput!) { datastream: updateDatastream(id: $id, datastream: $datastream) { ... Datastream @@ -15332,7 +15670,17 @@ fragment Datastream on Datastream { workspaceId datasetId } -`, +` + +func updateDatastream( + ctx context.Context, + client graphql.Client, + id string, + datastream DatastreamInput, +) (*updateDatastreamResponse, error) { + req := &graphql.Request{ + OpName: "updateDatastream", + Query: updateDatastream_Operation, Variables: &__updateDatastreamInput{ Id: id, Datastream: datastream, @@ -15345,22 +15693,15 @@ fragment Datastream on Datastream { err = client.MakeRequest( ctx, - req, - resp, - ) - - return &data, err -} - -func updateDatastreamToken( - ctx context.Context, - client graphql.Client, - id string, - token DatastreamTokenInput, -) (*updateDatastreamTokenResponse, error) { - req := &graphql.Request{ - OpName: "updateDatastreamToken", - Query: ` + req, + resp, + ) + + return &data, err +} + +// The query or mutation executed by updateDatastreamToken. +const updateDatastreamToken_Operation = ` mutation updateDatastreamToken ($id: String!, $token: DatastreamTokenInput!) { datastreamToken: updateDatastreamToken(id: $id, token: $token) { ... DatastreamToken @@ -15374,7 +15715,17 @@ fragment DatastreamToken on DatastreamToken { datastreamId secret } -`, +` + +func updateDatastreamToken( + ctx context.Context, + client graphql.Client, + id string, + token DatastreamTokenInput, +) (*updateDatastreamTokenResponse, error) { + req := &graphql.Request{ + OpName: "updateDatastreamToken", + Query: updateDatastreamToken_Operation, Variables: &__updateDatastreamTokenInput{ Id: id, Token: token, @@ -15394,15 +15745,8 @@ fragment DatastreamToken on DatastreamToken { return &data, err } -func updateDeferredForeignKey( - ctx context.Context, - client graphql.Client, - id string, - keyInput DeferredForeignKeyInput, -) (*updateDeferredForeignKeyResponse, error) { - req := &graphql.Request{ - OpName: "updateDeferredForeignKey", - Query: ` +// The query or mutation executed by updateDeferredForeignKey. +const updateDeferredForeignKey_Operation = ` mutation updateDeferredForeignKey ($id: ObjectId!, $keyInput: DeferredForeignKeyInput!) { deferredForeignKey: updateDeferredForeignKey(id: $id, data: $keyInput) { ... DeferredForeignKey @@ -15428,7 +15772,17 @@ fragment DeferredForeignKey on DeferredForeignKey { errorText } } -`, +` + +func updateDeferredForeignKey( + ctx context.Context, + client graphql.Client, + id string, + keyInput DeferredForeignKeyInput, +) (*updateDeferredForeignKeyResponse, error) { + req := &graphql.Request{ + OpName: "updateDeferredForeignKey", + Query: updateDeferredForeignKey_Operation, Variables: &__updateDeferredForeignKeyInput{ Id: id, KeyInput: keyInput, @@ -15448,15 +15802,8 @@ fragment DeferredForeignKey on DeferredForeignKey { return &data, err } -func updateFiledrop( - ctx context.Context, - client graphql.Client, - id string, - input FiledropInput, -) (*updateFiledropResponse, error) { - req := &graphql.Request{ - OpName: "updateFiledrop", - Query: ` +// The query or mutation executed by updateFiledrop. +const updateFiledrop_Operation = ` mutation updateFiledrop ($id: ObjectId!, $input: FiledropInput!) { filedrop: updateFiledrop(id: $id, input: $input) { ... Filedrop @@ -15488,7 +15835,17 @@ fragment Filedrop on Filedrop { } } } -`, +` + +func updateFiledrop( + ctx context.Context, + client graphql.Client, + id string, + input FiledropInput, +) (*updateFiledropResponse, error) { + req := &graphql.Request{ + OpName: "updateFiledrop", + Query: updateFiledrop_Operation, Variables: &__updateFiledropInput{ Id: id, Input: input, @@ -15508,15 +15865,8 @@ fragment Filedrop on Filedrop { return &data, err } -func updateFolder( - ctx context.Context, - client graphql.Client, - id string, - config FolderInput, -) (*updateFolderResponse, error) { - req := &graphql.Request{ - OpName: "updateFolder", - Query: ` +// The query or mutation executed by updateFolder. +const updateFolder_Operation = ` mutation updateFolder ($id: ObjectId!, $config: FolderInput!) { folder: updateFolder(id: $id, folder: $config) { ... Folder @@ -15529,7 +15879,17 @@ fragment Folder on Folder { description workspaceId } -`, +` + +func updateFolder( + ctx context.Context, + client graphql.Client, + id string, + config FolderInput, +) (*updateFolderResponse, error) { + req := &graphql.Request{ + OpName: "updateFolder", + Query: updateFolder_Operation, Variables: &__updateFolderInput{ Id: id, Config: config, @@ -15549,14 +15909,8 @@ fragment Folder on Folder { return &data, err } -func updateLayeredSettingRecord( - ctx context.Context, - client graphql.Client, - settingRecord LayeredSettingRecordInput, -) (*updateLayeredSettingRecordResponse, error) { - req := &graphql.Request{ - OpName: "updateLayeredSettingRecord", - Query: ` +// The query or mutation executed by updateLayeredSettingRecord. +const updateLayeredSettingRecord_Operation = ` mutation updateLayeredSettingRecord ($settingRecord: LayeredSettingRecordInput!) { layeredSettingRecord: updateLayeredSettingRecord(settingRecord: $settingRecord) { ... LayeredSettingRecord @@ -15603,7 +15957,16 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { datastreamId userId } -`, +` + +func updateLayeredSettingRecord( + ctx context.Context, + client graphql.Client, + settingRecord LayeredSettingRecordInput, +) (*updateLayeredSettingRecordResponse, error) { + req := &graphql.Request{ + OpName: "updateLayeredSettingRecord", + Query: updateLayeredSettingRecord_Operation, Variables: &__updateLayeredSettingRecordInput{ SettingRecord: settingRecord, }, @@ -15622,16 +15985,8 @@ fragment LayeredSettingRecordTarget on LayeredSettingRecordTarget { return &data, err } -// More workarounds for server-side struggles -func updateMonitor( - ctx context.Context, - client graphql.Client, - id string, - monitor MonitorInput, -) (*updateMonitorResponse, error) { - req := &graphql.Request{ - OpName: "updateMonitor", - Query: ` +// The query or mutation executed by updateMonitor. +const updateMonitor_Operation = ` mutation updateMonitor ($id: ObjectId!, $monitor: MonitorInput!) { monitor: updateMonitor(id: $id, monitor: $monitor) { monitor { @@ -15718,7 +16073,18 @@ fragment StageQuery on StageQuery { stageId } } -`, +` + +// More workarounds for server-side struggles +func updateMonitor( + ctx context.Context, + client graphql.Client, + id string, + monitor MonitorInput, +) (*updateMonitorResponse, error) { + req := &graphql.Request{ + OpName: "updateMonitor", + Query: updateMonitor_Operation, Variables: &__updateMonitorInput{ Id: id, Monitor: monitor, @@ -15738,15 +16104,8 @@ fragment StageQuery on StageQuery { return &data, err } -func updateMonitorAction( - ctx context.Context, - client graphql.Client, - id string, - monitorAction MonitorActionInput, -) (*updateMonitorActionResponse, error) { - req := &graphql.Request{ - OpName: "updateMonitorAction", - Query: ` +// The query or mutation executed by updateMonitorAction. +const updateMonitorAction_Operation = ` mutation updateMonitorAction ($id: ObjectId!, $monitorAction: MonitorActionInput!) { monitorAction: updateMonitorAction(id: $id, input: $monitorAction) { __typename @@ -15779,7 +16138,17 @@ fragment MonitorAction on MonitorAction { bodyTemplate } } -`, +` + +func updateMonitorAction( + ctx context.Context, + client graphql.Client, + id string, + monitorAction MonitorActionInput, +) (*updateMonitorActionResponse, error) { + req := &graphql.Request{ + OpName: "updateMonitorAction", + Query: updateMonitorAction_Operation, Variables: &__updateMonitorActionInput{ Id: id, MonitorAction: monitorAction, @@ -15799,15 +16168,8 @@ fragment MonitorAction on MonitorAction { return &data, err } -func updateMonitorActionAttachment( - ctx context.Context, - client graphql.Client, - id string, - monitorActionAttachment MonitorActionAttachmentInput, -) (*updateMonitorActionAttachmentResponse, error) { - req := &graphql.Request{ - OpName: "updateMonitorActionAttachment", - Query: ` +// The query or mutation executed by updateMonitorActionAttachment. +const updateMonitorActionAttachment_Operation = ` mutation updateMonitorActionAttachment ($id: ObjectId!, $monitorActionAttachment: MonitorActionAttachmentInput!) { monitorActionAttachment: updateMonitorActionAttachment(id: $id, input: $monitorActionAttachment) { ... MonitorActionAttachment @@ -15822,7 +16184,17 @@ fragment MonitorActionAttachment on MonitorActionAttachment { iconUrl description } -`, +` + +func updateMonitorActionAttachment( + ctx context.Context, + client graphql.Client, + id string, + monitorActionAttachment MonitorActionAttachmentInput, +) (*updateMonitorActionAttachmentResponse, error) { + req := &graphql.Request{ + OpName: "updateMonitorActionAttachment", + Query: updateMonitorActionAttachment_Operation, Variables: &__updateMonitorActionAttachmentInput{ Id: id, MonitorActionAttachment: monitorActionAttachment, @@ -15842,15 +16214,8 @@ fragment MonitorActionAttachment on MonitorActionAttachment { return &data, err } -func updatePoller( - ctx context.Context, - client graphql.Client, - id string, - poller PollerInput, -) (*updatePollerResponse, error) { - req := &graphql.Request{ - OpName: "updatePoller", - Query: ` +// The query or mutation executed by updatePoller. +const updatePoller_Operation = ` mutation updatePoller ($id: ObjectId!, $poller: PollerInput!) { poller: updatePoller(id: $id, poller: $poller) { ... Poller @@ -15926,7 +16291,17 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { headers params } -`, +` + +func updatePoller( + ctx context.Context, + client graphql.Client, + id string, + poller PollerInput, +) (*updatePollerResponse, error) { + req := &graphql.Request{ + OpName: "updatePoller", + Query: updatePoller_Operation, Variables: &__updatePollerInput{ Id: id, Poller: poller, @@ -15946,16 +16321,8 @@ fragment HttpRequestConfig on PollerHTTPRequestConfig { return &data, err } -// More workarounds for server-side struggles -func updatePreferredPath( - ctx context.Context, - client graphql.Client, - id string, - config PreferredPathInput, -) (*updatePreferredPathResponse, error) { - req := &graphql.Request{ - OpName: "updatePreferredPath", - Query: ` +// The query or mutation executed by updatePreferredPath. +const updatePreferredPath_Operation = ` mutation updatePreferredPath ($id: ObjectId!, $config: PreferredPathInput!) { preferredPathWithStatus: updatePreferredPath(id: $id, path: $config) { ... PreferredPathWithStatus @@ -15982,7 +16349,18 @@ fragment PreferredPath on PreferredPath { reverseFromDataset } } -`, +` + +// More workarounds for server-side struggles +func updatePreferredPath( + ctx context.Context, + client graphql.Client, + id string, + config PreferredPathInput, +) (*updatePreferredPathResponse, error) { + req := &graphql.Request{ + OpName: "updatePreferredPath", + Query: updatePreferredPath_Operation, Variables: &__updatePreferredPathInput{ Id: id, Config: config, @@ -16002,15 +16380,8 @@ fragment PreferredPath on PreferredPath { return &data, err } -func updateRbacGroup( - ctx context.Context, - client graphql.Client, - id string, - config RbacGroupInput, -) (*updateRbacGroupResponse, error) { - req := &graphql.Request{ - OpName: "updateRbacGroup", - Query: ` +// The query or mutation executed by updateRbacGroup. +const updateRbacGroup_Operation = ` mutation updateRbacGroup ($id: ORN!, $config: RbacGroupInput!) { rbacGroup: updateRbacGroup(id: $id, input: $config) { ... RbacGroup @@ -16021,7 +16392,17 @@ fragment RbacGroup on RbacGroup { name description } -`, +` + +func updateRbacGroup( + ctx context.Context, + client graphql.Client, + id string, + config RbacGroupInput, +) (*updateRbacGroupResponse, error) { + req := &graphql.Request{ + OpName: "updateRbacGroup", + Query: updateRbacGroup_Operation, Variables: &__updateRbacGroupInput{ Id: id, Config: config, @@ -16041,15 +16422,8 @@ fragment RbacGroup on RbacGroup { return &data, err } -func updateRbacGroupmember( - ctx context.Context, - client graphql.Client, - id string, - config RbacGroupmemberInput, -) (*updateRbacGroupmemberResponse, error) { - req := &graphql.Request{ - OpName: "updateRbacGroupmember", - Query: ` +// The query or mutation executed by updateRbacGroupmember. +const updateRbacGroupmember_Operation = ` mutation updateRbacGroupmember ($id: ORN!, $config: RbacGroupmemberInput!) { rbacGroupmember: updateRbacGroupmember(id: $id, input: $config) { ... RbacGroupmember @@ -16062,7 +16436,17 @@ fragment RbacGroupmember on RbacGroupmember { memberUserId memberGroupId } -`, +` + +func updateRbacGroupmember( + ctx context.Context, + client graphql.Client, + id string, + config RbacGroupmemberInput, +) (*updateRbacGroupmemberResponse, error) { + req := &graphql.Request{ + OpName: "updateRbacGroupmember", + Query: updateRbacGroupmember_Operation, Variables: &__updateRbacGroupmemberInput{ Id: id, Config: config, @@ -16082,15 +16466,8 @@ fragment RbacGroupmember on RbacGroupmember { return &data, err } -func updateRbacStatement( - ctx context.Context, - client graphql.Client, - id string, - config RbacStatementInput, -) (*updateRbacStatementResponse, error) { - req := &graphql.Request{ - OpName: "updateRbacStatement", - Query: ` +// The query or mutation executed by updateRbacStatement. +const updateRbacStatement_Operation = ` mutation updateRbacStatement ($id: ORN!, $config: RbacStatementInput!) { rbacStatement: updateRbacStatement(id: $id, input: $config) { ... RbacStatement @@ -16115,7 +16492,17 @@ fragment RbacStatement on RbacStatement { } role } -`, +` + +func updateRbacStatement( + ctx context.Context, + client graphql.Client, + id string, + config RbacStatementInput, +) (*updateRbacStatementResponse, error) { + req := &graphql.Request{ + OpName: "updateRbacStatement", + Query: updateRbacStatement_Operation, Variables: &__updateRbacStatementInput{ Id: id, Config: config, @@ -16135,15 +16522,8 @@ fragment RbacStatement on RbacStatement { return &data, err } -func updateSnowflakeOutboundShare( - ctx context.Context, - client graphql.Client, - id string, - input SnowflakeOutboundShareInput, -) (*updateSnowflakeOutboundShareResponse, error) { - req := &graphql.Request{ - OpName: "updateSnowflakeOutboundShare", - Query: ` +// The query or mutation executed by updateSnowflakeOutboundShare. +const updateSnowflakeOutboundShare_Operation = ` mutation updateSnowflakeOutboundShare ($id: ObjectId!, $input: SnowflakeOutboundShareInput!) { share: updateSnowflakeOutboundShare(id: $id, input: $input) { ... SnowflakeOutboundShare @@ -16163,7 +16543,17 @@ fragment SnowflakeAccount on SnowflakeAccount { organization account } -`, +` + +func updateSnowflakeOutboundShare( + ctx context.Context, + client graphql.Client, + id string, + input SnowflakeOutboundShareInput, +) (*updateSnowflakeOutboundShareResponse, error) { + req := &graphql.Request{ + OpName: "updateSnowflakeOutboundShare", + Query: updateSnowflakeOutboundShare_Operation, Variables: &__updateSnowflakeOutboundShareInput{ Id: id, Input: input, @@ -16183,15 +16573,8 @@ fragment SnowflakeAccount on SnowflakeAccount { return &data, err } -func updateWorkspace( - ctx context.Context, - client graphql.Client, - id string, - config WorkspaceInput, -) (*updateWorkspaceResponse, error) { - req := &graphql.Request{ - OpName: "updateWorkspace", - Query: ` +// The query or mutation executed by updateWorkspace. +const updateWorkspace_Operation = ` mutation updateWorkspace ($id: ObjectId!, $config: WorkspaceInput!) { workspace: updateWorkspace(id: $id, definition: $config) { ... Workspace @@ -16201,7 +16584,17 @@ fragment Workspace on Project { id label } -`, +` + +func updateWorkspace( + ctx context.Context, + client graphql.Client, + id string, + config WorkspaceInput, +) (*updateWorkspaceResponse, error) { + req := &graphql.Request{ + OpName: "updateWorkspace", + Query: updateWorkspace_Operation, Variables: &__updateWorkspaceInput{ Id: id, Config: config, diff --git a/go.mod b/go.mod index 3d794cc4..c374c6ac 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/observeinc/terraform-provider-observe go 1.18 require ( - github.com/Khan/genqlient v0.5.0 + github.com/Khan/genqlient v0.6.0 github.com/google/go-cmp v0.5.9 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/go-version v1.6.0 @@ -75,7 +75,7 @@ require ( golang.org/x/sys v0.13.0 // indirect golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect - golang.org/x/tools v0.6.0 // indirect + golang.org/x/tools v0.8.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect google.golang.org/grpc v1.56.3 // indirect diff --git a/go.sum b/go.sum index 8e941a8e..1756f0a1 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ -github.com/99designs/gqlgen v0.17.2/go.mod h1:K5fzLKwtph+FFgh9j7nFbRUdBKvTcGnsta51fsMTn3o= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/Khan/genqlient v0.5.0 h1:TMZJ+tl/BpbmGyIBiXzKzUftDhw4ZWxQZ+1ydn0gyII= -github.com/Khan/genqlient v0.5.0/go.mod h1:EpIvDVXYm01GP6AXzjA7dKriPTH6GmtpmvTAwUUqIX8= +github.com/Khan/genqlient v0.6.0 h1:Bwb1170ekuNIVIwTJEqvO8y7RxBxXu639VJOkKSrwAk= +github.com/Khan/genqlient v0.6.0/go.mod h1:rvChwWVTqXhiapdhLDV4bp9tz/Xvtewwkon4DpWWCRM= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= @@ -16,7 +14,6 @@ github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= -github.com/agnivade/levenshtein v1.1.0/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/alexflint/go-arg v1.4.2 h1:lDWZAXxpAnZUq4qwb86p/3rIJJ2Li81EoMbTMujhVa0= @@ -28,23 +25,18 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= -github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bradleyjkemp/cupaloy/v2 v2.6.0/go.mod h1:bm7JXdkRd4BHJk9HpwqAI8BoAY1lps46Enkdqw6aRX0= github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= github.com/dnephin/pflag v1.0.7 h1:oxONGlWxhmUct0YzKTgrpQv9AUA1wtPBn7zuSjJqptk= github.com/dnephin/pflag v1.0.7/go.mod h1:uxE91IoWURlOiTUIA8Mq5ZZkAv3dPUfZNaT80Zm7OQE= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= @@ -74,7 +66,6 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -97,7 +88,6 @@ github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/C github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hc-install v0.5.2 h1:SfwMFnEXVVirpwkDuSF5kymUOhrUxrTq3udEseZdOD0= github.com/hashicorp/hc-install v0.5.2/go.mod h1:9QISwe6newMWIfEiXpzuu1k9HAGtQYgnSH8H9T8wmoI= github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= @@ -131,23 +121,18 @@ github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kevinmbeaulieu/eq-go v1.0.0/go.mod h1:G3S8ajA56gKBZm4UB9AOyoOS37JO3roToPzKNM8dtdM= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/logrusorgru/aurora/v3 v3.0.0/go.mod h1:vsR12bk5grlLvLXAYrBsb5Oc/N+LxAlxggSjiwMnCUc= -github.com/matryer/moq v0.2.3/go.mod h1:9RtPYjTnH1bSBIkpvtHkFN7nbWAnO7oRpdJkEIn6UtE= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= @@ -163,7 +148,6 @@ github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQ github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/hashstructure v1.1.0 h1:P6P1hdjqAAknpY/M1CGipelZgp+4y9ja9kmUZPXP+H0= github.com/mitchellh/hashstructure v1.1.0/go.mod h1:xUDAozZz0Wmdiufv0uyhnHkUTN6/6d8ulp4AwfLKrmA= -github.com/mitchellh/mapstructure v1.2.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= @@ -180,31 +164,23 @@ github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSg github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -github.com/vektah/gqlparser/v2 v2.4.0/go.mod h1:flJWIR04IMQPGz+BXLrORkrARBxv/rtyIAFvd/MceW0= -github.com/vektah/gqlparser/v2 v2.4.5/go.mod h1:flJWIR04IMQPGz+BXLrORkrARBxv/rtyIAFvd/MceW0= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUOHcr4= github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -215,7 +191,6 @@ github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= @@ -231,15 +206,12 @@ golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 h1:5llv2sWeaMSnA3w2kS57ouQQ4pudlXrR0dCgw51QK9o= golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -247,18 +219,15 @@ golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -268,7 +237,6 @@ golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -288,13 +256,10 @@ golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200815165600-90abf76919f3/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.11/go.mod h1:SgwaegtQh8clINPpECJMqnxLv9I09HLqnW3RMqW0CA4= -golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.8.0 h1:vSDcovVPld282ceKgDimkRSC8kpaH1dgyc9UMzlt84Y= +golang.org/x/tools v0.8.0/go.mod h1:JxBZ99ISMI5ViVkT1tr6tdNmXeTrcpVSD3vZ1RsRdN4= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -316,7 +281,6 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogR gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/Khan/genqlient/graphql/client.go b/vendor/github.com/Khan/genqlient/graphql/client.go index 600f2438..469e3c04 100644 --- a/vendor/github.com/Khan/genqlient/graphql/client.go +++ b/vendor/github.com/Khan/genqlient/graphql/client.go @@ -46,31 +46,39 @@ type client struct { method string } -// NewClient returns a Client which makes requests to the given endpoint, +// NewClient returns a [Client] which makes requests to the given endpoint, // suitable for most users. // // The client makes POST requests to the given GraphQL endpoint using standard -// GraphQL HTTP-over-JSON transport. It will use the given http client, or -// http.DefaultClient if a nil client is passed. +// GraphQL HTTP-over-JSON transport. It will use the given [http.Client], or +// [http.DefaultClient] if a nil client is passed. // // The typical method of adding authentication headers is to wrap the client's -// Transport to add those headers. See example/caller.go for an example. +// [http.Transport] to add those headers. See [example/main.go] for an +// example. +// +// [example/main.go]: https://github.com/Khan/genqlient/blob/main/example/main.go#L12-L20 func NewClient(endpoint string, httpClient Doer) Client { return newClient(endpoint, httpClient, http.MethodPost) } -// NewClientUsingGet returns a Client which makes requests to the given endpoint, -// suitable for most users. +// NewClientUsingGet returns a [Client] which makes GET requests to the given +// endpoint suitable for most users who wish to make GET requests instead of +// POST. // -// The client makes GET requests to the given GraphQL endpoint using a GET query, -// with the query, operation name and variables encoded as URL parameters. -// It will use the given http client, or http.DefaultClient if a nil client is passed. +// The client makes GET requests to the given GraphQL endpoint using a GET +// query, with the query, operation name and variables encoded as URL +// parameters. It will use the given [http.Client], or [http.DefaultClient] if +// a nil client is passed. // -// The client does not support mutations, and will return an error if passed a request -// that attempts one. +// The client does not support mutations, and will return an error if passed a +// request that attempts one. // // The typical method of adding authentication headers is to wrap the client's -// Transport to add those headers. See example/caller.go for an example. +// [http.Transport] to add those headers. See [example/main.go] for an +// example. +// +// [example/main.go]: https://github.com/Khan/genqlient/blob/main/example/main.go#L12-L20 func NewClientUsingGet(endpoint string, httpClient Doer) Client { return newClient(endpoint, httpClient, http.MethodGet) } @@ -82,18 +90,20 @@ func newClient(endpoint string, httpClient Doer, method string) Client { return &client{httpClient, endpoint, method} } -// Doer encapsulates the methods from *http.Client needed by Client. -// The methods should have behavior to match that of *http.Client +// Doer encapsulates the methods from [*http.Client] needed by [Client]. +// The methods should have behavior to match that of [*http.Client] // (or mocks for the same). type Doer interface { Do(*http.Request) (*http.Response, error) } // Request contains all the values required to build queries executed by -// the graphql.Client. +// the [Client]. // // Typically, GraphQL APIs will accept a JSON payload of the form +// // {"query": "query myQuery { ... }", "variables": {...}}` +// // and Request marshals to this format. However, MakeRequest may // marshal the data in some other way desired by the backend. type Request struct { @@ -112,7 +122,9 @@ type Request struct { // Response that contains data returned by the GraphQL API. // // Typically, GraphQL APIs will return a JSON payload of the form +// // {"data": {...}, "errors": {...}} +// // It may additionally contain a key named "extensions", that // might hold GraphQL protocol extensions. Extensions and Errors // are optional, depending on the values returned by the server. diff --git a/vendor/github.com/Khan/genqlient/graphql/util.go b/vendor/github.com/Khan/genqlient/graphql/util.go index 5afa837b..a5db637b 100644 --- a/vendor/github.com/Khan/genqlient/graphql/util.go +++ b/vendor/github.com/Khan/genqlient/graphql/util.go @@ -7,9 +7,13 @@ package graphql // // It is used to prevent a struct type from inheriting its embed's // UnmarshalJSON method, so if we construct a type: +// // type T struct { E; NoUnmarshalJSON } -// where E has an UnmarshalJSON method, T will not inherit it, per the Go -// selector rules: https://golang.org/ref/spec#Selectors. +// +// where E has an UnmarshalJSON method, T will not inherit it, per the +// [Go selector rules]. +// +// [Go selector rules]: https://golang.org/ref/spec#Selectors. type NoUnmarshalJSON struct{} // UnmarshalJSON should never be called; it exists only to prevent a sibling @@ -22,9 +26,13 @@ func (NoUnmarshalJSON) UnmarshalJSON(b []byte) error { // // It is used to prevent a struct type from inheriting its embed's // MarshalJSON method, so if we construct a type: +// // type T struct { E; NoMarshalJSON } -// where E has an MarshalJSON method, T will not inherit it, per the Go -// selector rules: https://golang.org/ref/spec#Selectors. +// +// where E has an MarshalJSON method, T will not inherit it, per the +// [Go selector rules]. +// +// [Go selector rules]: https://golang.org/ref/spec#Selectors. type NoMarshalJSON struct{} // MarshalJSON should never be called; it exists only to prevent a sibling diff --git a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go new file mode 100644 index 00000000..be8f5a86 --- /dev/null +++ b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go @@ -0,0 +1,762 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package objectpath defines a naming scheme for types.Objects +// (that is, named entities in Go programs) relative to their enclosing +// package. +// +// Type-checker objects are canonical, so they are usually identified by +// their address in memory (a pointer), but a pointer has meaning only +// within one address space. By contrast, objectpath names allow the +// identity of an object to be sent from one program to another, +// establishing a correspondence between types.Object variables that are +// distinct but logically equivalent. +// +// A single object may have multiple paths. In this example, +// +// type A struct{ X int } +// type B A +// +// the field X has two paths due to its membership of both A and B. +// The For(obj) function always returns one of these paths, arbitrarily +// but consistently. +package objectpath + +import ( + "fmt" + "go/types" + "sort" + "strconv" + "strings" + + "golang.org/x/tools/internal/typeparams" + + _ "unsafe" // for go:linkname +) + +// A Path is an opaque name that identifies a types.Object +// relative to its package. Conceptually, the name consists of a +// sequence of destructuring operations applied to the package scope +// to obtain the original object. +// The name does not include the package itself. +type Path string + +// Encoding +// +// An object path is a textual and (with training) human-readable encoding +// of a sequence of destructuring operators, starting from a types.Package. +// The sequences represent a path through the package/object/type graph. +// We classify these operators by their type: +// +// PO package->object Package.Scope.Lookup +// OT object->type Object.Type +// TT type->type Type.{Elem,Key,Params,Results,Underlying} [EKPRU] +// TO type->object Type.{At,Field,Method,Obj} [AFMO] +// +// All valid paths start with a package and end at an object +// and thus may be defined by the regular language: +// +// objectpath = PO (OT TT* TO)* +// +// The concrete encoding follows directly: +// - The only PO operator is Package.Scope.Lookup, which requires an identifier. +// - The only OT operator is Object.Type, +// which we encode as '.' because dot cannot appear in an identifier. +// - The TT operators are encoded as [EKPRUTC]; +// one of these (TypeParam) requires an integer operand, +// which is encoded as a string of decimal digits. +// - The TO operators are encoded as [AFMO]; +// three of these (At,Field,Method) require an integer operand, +// which is encoded as a string of decimal digits. +// These indices are stable across different representations +// of the same package, even source and export data. +// The indices used are implementation specific and may not correspond to +// the argument to the go/types function. +// +// In the example below, +// +// package p +// +// type T interface { +// f() (a string, b struct{ X int }) +// } +// +// field X has the path "T.UM0.RA1.F0", +// representing the following sequence of operations: +// +// p.Lookup("T") T +// .Type().Underlying().Method(0). f +// .Type().Results().At(1) b +// .Type().Field(0) X +// +// The encoding is not maximally compact---every R or P is +// followed by an A, for example---but this simplifies the +// encoder and decoder. +const ( + // object->type operators + opType = '.' // .Type() (Object) + + // type->type operators + opElem = 'E' // .Elem() (Pointer, Slice, Array, Chan, Map) + opKey = 'K' // .Key() (Map) + opParams = 'P' // .Params() (Signature) + opResults = 'R' // .Results() (Signature) + opUnderlying = 'U' // .Underlying() (Named) + opTypeParam = 'T' // .TypeParams.At(i) (Named, Signature) + opConstraint = 'C' // .Constraint() (TypeParam) + + // type->object operators + opAt = 'A' // .At(i) (Tuple) + opField = 'F' // .Field(i) (Struct) + opMethod = 'M' // .Method(i) (Named or Interface; not Struct: "promoted" names are ignored) + opObj = 'O' // .Obj() (Named, TypeParam) +) + +// For returns the path to an object relative to its package, +// or an error if the object is not accessible from the package's Scope. +// +// The For function guarantees to return a path only for the following objects: +// - package-level types +// - exported package-level non-types +// - methods +// - parameter and result variables +// - struct fields +// These objects are sufficient to define the API of their package. +// The objects described by a package's export data are drawn from this set. +// +// For does not return a path for predeclared names, imported package +// names, local names, and unexported package-level names (except +// types). +// +// Example: given this definition, +// +// package p +// +// type T interface { +// f() (a string, b struct{ X int }) +// } +// +// For(X) would return a path that denotes the following sequence of operations: +// +// p.Scope().Lookup("T") (TypeName T) +// .Type().Underlying().Method(0). (method Func f) +// .Type().Results().At(1) (field Var b) +// .Type().Field(0) (field Var X) +// +// where p is the package (*types.Package) to which X belongs. +func For(obj types.Object) (Path, error) { + return newEncoderFor()(obj) +} + +// An encoder amortizes the cost of encoding the paths of multiple objects. +// Nonexported pending approval of proposal 58668. +type encoder struct { + scopeNamesMemo map[*types.Scope][]string // memoization of Scope.Names() + namedMethodsMemo map[*types.Named][]*types.Func // memoization of namedMethods() +} + +// Exposed to gopls via golang.org/x/tools/internal/typesinternal +// pending approval of proposal 58668. +// +//go:linkname newEncoderFor +func newEncoderFor() func(types.Object) (Path, error) { return new(encoder).For } + +func (enc *encoder) For(obj types.Object) (Path, error) { + pkg := obj.Pkg() + + // This table lists the cases of interest. + // + // Object Action + // ------ ------ + // nil reject + // builtin reject + // pkgname reject + // label reject + // var + // package-level accept + // func param/result accept + // local reject + // struct field accept + // const + // package-level accept + // local reject + // func + // package-level accept + // init functions reject + // concrete method accept + // interface method accept + // type + // package-level accept + // local reject + // + // The only accessible package-level objects are members of pkg itself. + // + // The cases are handled in four steps: + // + // 1. reject nil and builtin + // 2. accept package-level objects + // 3. reject obviously invalid objects + // 4. search the API for the path to the param/result/field/method. + + // 1. reference to nil or builtin? + if pkg == nil { + return "", fmt.Errorf("predeclared %s has no path", obj) + } + scope := pkg.Scope() + + // 2. package-level object? + if scope.Lookup(obj.Name()) == obj { + // Only exported objects (and non-exported types) have a path. + // Non-exported types may be referenced by other objects. + if _, ok := obj.(*types.TypeName); !ok && !obj.Exported() { + return "", fmt.Errorf("no path for non-exported %v", obj) + } + return Path(obj.Name()), nil + } + + // 3. Not a package-level object. + // Reject obviously non-viable cases. + switch obj := obj.(type) { + case *types.TypeName: + if _, ok := obj.Type().(*typeparams.TypeParam); !ok { + // With the exception of type parameters, only package-level type names + // have a path. + return "", fmt.Errorf("no path for %v", obj) + } + case *types.Const, // Only package-level constants have a path. + *types.Label, // Labels are function-local. + *types.PkgName: // PkgNames are file-local. + return "", fmt.Errorf("no path for %v", obj) + + case *types.Var: + // Could be: + // - a field (obj.IsField()) + // - a func parameter or result + // - a local var. + // Sadly there is no way to distinguish + // a param/result from a local + // so we must proceed to the find. + + case *types.Func: + // A func, if not package-level, must be a method. + if recv := obj.Type().(*types.Signature).Recv(); recv == nil { + return "", fmt.Errorf("func is not a method: %v", obj) + } + + if path, ok := enc.concreteMethod(obj); ok { + // Fast path for concrete methods that avoids looping over scope. + return path, nil + } + + default: + panic(obj) + } + + // 4. Search the API for the path to the var (field/param/result) or method. + + // First inspect package-level named types. + // In the presence of path aliases, these give + // the best paths because non-types may + // refer to types, but not the reverse. + empty := make([]byte, 0, 48) // initial space + names := enc.scopeNames(scope) + for _, name := range names { + o := scope.Lookup(name) + tname, ok := o.(*types.TypeName) + if !ok { + continue // handle non-types in second pass + } + + path := append(empty, name...) + path = append(path, opType) + + T := o.Type() + + if tname.IsAlias() { + // type alias + if r := find(obj, T, path, nil); r != nil { + return Path(r), nil + } + } else { + if named, _ := T.(*types.Named); named != nil { + if r := findTypeParam(obj, typeparams.ForNamed(named), path, nil); r != nil { + // generic named type + return Path(r), nil + } + } + // defined (named) type + if r := find(obj, T.Underlying(), append(path, opUnderlying), nil); r != nil { + return Path(r), nil + } + } + } + + // Then inspect everything else: + // non-types, and declared methods of defined types. + for _, name := range names { + o := scope.Lookup(name) + path := append(empty, name...) + if _, ok := o.(*types.TypeName); !ok { + if o.Exported() { + // exported non-type (const, var, func) + if r := find(obj, o.Type(), append(path, opType), nil); r != nil { + return Path(r), nil + } + } + continue + } + + // Inspect declared methods of defined types. + if T, ok := o.Type().(*types.Named); ok { + path = append(path, opType) + // Note that method index here is always with respect + // to canonical ordering of methods, regardless of how + // they appear in the underlying type. + for i, m := range enc.namedMethods(T) { + path2 := appendOpArg(path, opMethod, i) + if m == obj { + return Path(path2), nil // found declared method + } + if r := find(obj, m.Type(), append(path2, opType), nil); r != nil { + return Path(r), nil + } + } + } + } + + return "", fmt.Errorf("can't find path for %v in %s", obj, pkg.Path()) +} + +func appendOpArg(path []byte, op byte, arg int) []byte { + path = append(path, op) + path = strconv.AppendInt(path, int64(arg), 10) + return path +} + +// concreteMethod returns the path for meth, which must have a non-nil receiver. +// The second return value indicates success and may be false if the method is +// an interface method or if it is an instantiated method. +// +// This function is just an optimization that avoids the general scope walking +// approach. You are expected to fall back to the general approach if this +// function fails. +func (enc *encoder) concreteMethod(meth *types.Func) (Path, bool) { + // Concrete methods can only be declared on package-scoped named types. For + // that reason we can skip the expensive walk over the package scope: the + // path will always be package -> named type -> method. We can trivially get + // the type name from the receiver, and only have to look over the type's + // methods to find the method index. + // + // Methods on generic types require special consideration, however. Consider + // the following package: + // + // L1: type S[T any] struct{} + // L2: func (recv S[A]) Foo() { recv.Bar() } + // L3: func (recv S[B]) Bar() { } + // L4: type Alias = S[int] + // L5: func _[T any]() { var s S[int]; s.Foo() } + // + // The receivers of methods on generic types are instantiations. L2 and L3 + // instantiate S with the type-parameters A and B, which are scoped to the + // respective methods. L4 and L5 each instantiate S with int. Each of these + // instantiations has its own method set, full of methods (and thus objects) + // with receivers whose types are the respective instantiations. In other + // words, we have + // + // S[A].Foo, S[A].Bar + // S[B].Foo, S[B].Bar + // S[int].Foo, S[int].Bar + // + // We may thus be trying to produce object paths for any of these objects. + // + // S[A].Foo and S[B].Bar are the origin methods, and their paths are S.Foo + // and S.Bar, which are the paths that this function naturally produces. + // + // S[A].Bar, S[B].Foo, and both methods on S[int] are instantiations that + // don't correspond to the origin methods. For S[int], this is significant. + // The most precise object path for S[int].Foo, for example, is Alias.Foo, + // not S.Foo. Our function, however, would produce S.Foo, which would + // resolve to a different object. + // + // For S[A].Bar and S[B].Foo it could be argued that S.Bar and S.Foo are + // still the correct paths, since only the origin methods have meaningful + // paths. But this is likely only true for trivial cases and has edge cases. + // Since this function is only an optimization, we err on the side of giving + // up, deferring to the slower but definitely correct algorithm. Most users + // of objectpath will only be giving us origin methods, anyway, as referring + // to instantiated methods is usually not useful. + + if typeparams.OriginMethod(meth) != meth { + return "", false + } + + recvT := meth.Type().(*types.Signature).Recv().Type() + if ptr, ok := recvT.(*types.Pointer); ok { + recvT = ptr.Elem() + } + + named, ok := recvT.(*types.Named) + if !ok { + return "", false + } + + if types.IsInterface(named) { + // Named interfaces don't have to be package-scoped + // + // TODO(dominikh): opt: if scope.Lookup(name) == named, then we can apply this optimization to interface + // methods, too, I think. + return "", false + } + + // Preallocate space for the name, opType, opMethod, and some digits. + name := named.Obj().Name() + path := make([]byte, 0, len(name)+8) + path = append(path, name...) + path = append(path, opType) + for i, m := range enc.namedMethods(named) { + if m == meth { + path = appendOpArg(path, opMethod, i) + return Path(path), true + } + } + + panic(fmt.Sprintf("couldn't find method %s on type %s", meth, named)) +} + +// find finds obj within type T, returning the path to it, or nil if not found. +// +// The seen map is used to short circuit cycles through type parameters. If +// nil, it will be allocated as necessary. +func find(obj types.Object, T types.Type, path []byte, seen map[*types.TypeName]bool) []byte { + switch T := T.(type) { + case *types.Basic, *types.Named: + // Named types belonging to pkg were handled already, + // so T must belong to another package. No path. + return nil + case *types.Pointer: + return find(obj, T.Elem(), append(path, opElem), seen) + case *types.Slice: + return find(obj, T.Elem(), append(path, opElem), seen) + case *types.Array: + return find(obj, T.Elem(), append(path, opElem), seen) + case *types.Chan: + return find(obj, T.Elem(), append(path, opElem), seen) + case *types.Map: + if r := find(obj, T.Key(), append(path, opKey), seen); r != nil { + return r + } + return find(obj, T.Elem(), append(path, opElem), seen) + case *types.Signature: + if r := findTypeParam(obj, typeparams.ForSignature(T), path, seen); r != nil { + return r + } + if r := find(obj, T.Params(), append(path, opParams), seen); r != nil { + return r + } + return find(obj, T.Results(), append(path, opResults), seen) + case *types.Struct: + for i := 0; i < T.NumFields(); i++ { + fld := T.Field(i) + path2 := appendOpArg(path, opField, i) + if fld == obj { + return path2 // found field var + } + if r := find(obj, fld.Type(), append(path2, opType), seen); r != nil { + return r + } + } + return nil + case *types.Tuple: + for i := 0; i < T.Len(); i++ { + v := T.At(i) + path2 := appendOpArg(path, opAt, i) + if v == obj { + return path2 // found param/result var + } + if r := find(obj, v.Type(), append(path2, opType), seen); r != nil { + return r + } + } + return nil + case *types.Interface: + for i := 0; i < T.NumMethods(); i++ { + m := T.Method(i) + path2 := appendOpArg(path, opMethod, i) + if m == obj { + return path2 // found interface method + } + if r := find(obj, m.Type(), append(path2, opType), seen); r != nil { + return r + } + } + return nil + case *typeparams.TypeParam: + name := T.Obj() + if name == obj { + return append(path, opObj) + } + if seen[name] { + return nil + } + if seen == nil { + seen = make(map[*types.TypeName]bool) + } + seen[name] = true + if r := find(obj, T.Constraint(), append(path, opConstraint), seen); r != nil { + return r + } + return nil + } + panic(T) +} + +func findTypeParam(obj types.Object, list *typeparams.TypeParamList, path []byte, seen map[*types.TypeName]bool) []byte { + for i := 0; i < list.Len(); i++ { + tparam := list.At(i) + path2 := appendOpArg(path, opTypeParam, i) + if r := find(obj, tparam, path2, seen); r != nil { + return r + } + } + return nil +} + +// Object returns the object denoted by path p within the package pkg. +func Object(pkg *types.Package, p Path) (types.Object, error) { + if p == "" { + return nil, fmt.Errorf("empty path") + } + + pathstr := string(p) + var pkgobj, suffix string + if dot := strings.IndexByte(pathstr, opType); dot < 0 { + pkgobj = pathstr + } else { + pkgobj = pathstr[:dot] + suffix = pathstr[dot:] // suffix starts with "." + } + + obj := pkg.Scope().Lookup(pkgobj) + if obj == nil { + return nil, fmt.Errorf("package %s does not contain %q", pkg.Path(), pkgobj) + } + + // abstraction of *types.{Pointer,Slice,Array,Chan,Map} + type hasElem interface { + Elem() types.Type + } + // abstraction of *types.{Named,Signature} + type hasTypeParams interface { + TypeParams() *typeparams.TypeParamList + } + // abstraction of *types.{Named,TypeParam} + type hasObj interface { + Obj() *types.TypeName + } + + // The loop state is the pair (t, obj), + // exactly one of which is non-nil, initially obj. + // All suffixes start with '.' (the only object->type operation), + // followed by optional type->type operations, + // then a type->object operation. + // The cycle then repeats. + var t types.Type + for suffix != "" { + code := suffix[0] + suffix = suffix[1:] + + // Codes [AFM] have an integer operand. + var index int + switch code { + case opAt, opField, opMethod, opTypeParam: + rest := strings.TrimLeft(suffix, "0123456789") + numerals := suffix[:len(suffix)-len(rest)] + suffix = rest + i, err := strconv.Atoi(numerals) + if err != nil { + return nil, fmt.Errorf("invalid path: bad numeric operand %q for code %q", numerals, code) + } + index = int(i) + case opObj: + // no operand + default: + // The suffix must end with a type->object operation. + if suffix == "" { + return nil, fmt.Errorf("invalid path: ends with %q, want [AFMO]", code) + } + } + + if code == opType { + if t != nil { + return nil, fmt.Errorf("invalid path: unexpected %q in type context", opType) + } + t = obj.Type() + obj = nil + continue + } + + if t == nil { + return nil, fmt.Errorf("invalid path: code %q in object context", code) + } + + // Inv: t != nil, obj == nil + + switch code { + case opElem: + hasElem, ok := t.(hasElem) // Pointer, Slice, Array, Chan, Map + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want pointer, slice, array, chan or map)", code, t, t) + } + t = hasElem.Elem() + + case opKey: + mapType, ok := t.(*types.Map) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want map)", code, t, t) + } + t = mapType.Key() + + case opParams: + sig, ok := t.(*types.Signature) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want signature)", code, t, t) + } + t = sig.Params() + + case opResults: + sig, ok := t.(*types.Signature) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want signature)", code, t, t) + } + t = sig.Results() + + case opUnderlying: + named, ok := t.(*types.Named) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want named)", code, t, t) + } + t = named.Underlying() + + case opTypeParam: + hasTypeParams, ok := t.(hasTypeParams) // Named, Signature + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want named or signature)", code, t, t) + } + tparams := hasTypeParams.TypeParams() + if n := tparams.Len(); index >= n { + return nil, fmt.Errorf("tuple index %d out of range [0-%d)", index, n) + } + t = tparams.At(index) + + case opConstraint: + tparam, ok := t.(*typeparams.TypeParam) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want type parameter)", code, t, t) + } + t = tparam.Constraint() + + case opAt: + tuple, ok := t.(*types.Tuple) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want tuple)", code, t, t) + } + if n := tuple.Len(); index >= n { + return nil, fmt.Errorf("tuple index %d out of range [0-%d)", index, n) + } + obj = tuple.At(index) + t = nil + + case opField: + structType, ok := t.(*types.Struct) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want struct)", code, t, t) + } + if n := structType.NumFields(); index >= n { + return nil, fmt.Errorf("field index %d out of range [0-%d)", index, n) + } + obj = structType.Field(index) + t = nil + + case opMethod: + switch t := t.(type) { + case *types.Interface: + if index >= t.NumMethods() { + return nil, fmt.Errorf("method index %d out of range [0-%d)", index, t.NumMethods()) + } + obj = t.Method(index) // Id-ordered + + case *types.Named: + methods := namedMethods(t) // (unmemoized) + if index >= len(methods) { + return nil, fmt.Errorf("method index %d out of range [0-%d)", index, len(methods)) + } + obj = methods[index] // Id-ordered + + default: + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want interface or named)", code, t, t) + } + t = nil + + case opObj: + hasObj, ok := t.(hasObj) + if !ok { + return nil, fmt.Errorf("cannot apply %q to %s (got %T, want named or type param)", code, t, t) + } + obj = hasObj.Obj() + t = nil + + default: + return nil, fmt.Errorf("invalid path: unknown code %q", code) + } + } + + if obj.Pkg() != pkg { + return nil, fmt.Errorf("path denotes %s, which belongs to a different package", obj) + } + + return obj, nil // success +} + +// namedMethods returns the methods of a Named type in ascending Id order. +func namedMethods(named *types.Named) []*types.Func { + methods := make([]*types.Func, named.NumMethods()) + for i := range methods { + methods[i] = named.Method(i) + } + sort.Slice(methods, func(i, j int) bool { + return methods[i].Id() < methods[j].Id() + }) + return methods +} + +// scopeNames is a memoization of scope.Names. Callers must not modify the result. +func (enc *encoder) scopeNames(scope *types.Scope) []string { + m := enc.scopeNamesMemo + if m == nil { + m = make(map[*types.Scope][]string) + enc.scopeNamesMemo = m + } + names, ok := m[scope] + if !ok { + names = scope.Names() // allocates and sorts + m[scope] = names + } + return names +} + +// namedMethods is a memoization of the namedMethods function. Callers must not modify the result. +func (enc *encoder) namedMethods(named *types.Named) []*types.Func { + m := enc.namedMethodsMemo + if m == nil { + m = make(map[*types.Named][]*types.Func) + enc.namedMethodsMemo = m + } + methods, ok := m[named] + if !ok { + methods = namedMethods(named) // allocates and sorts + m[named] = methods + } + return methods + +} diff --git a/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go b/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go index 0372fb3a..a973dece 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/gcimporter.go @@ -7,6 +7,18 @@ // Package gcimporter provides various functions for reading // gc-generated object files that can be used to implement the // Importer interface defined by the Go 1.5 standard library package. +// +// The encoding is deterministic: if the encoder is applied twice to +// the same types.Package data structure, both encodings are equal. +// This property may be important to avoid spurious changes in +// applications such as build systems. +// +// However, the encoder is not necessarily idempotent. Importing an +// exported package may yield a types.Package that, while it +// represents the same set of Go types as the original, may differ in +// the details of its internal representation. Because of these +// differences, re-encoding the imported package may yield a +// different, but equally valid, encoding of the package. package gcimporter // import "golang.org/x/tools/internal/gcimporter" import ( diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go index ba53cdcd..a0dc0b5e 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go @@ -44,12 +44,12 @@ func IExportShallow(fset *token.FileSet, pkg *types.Package) ([]byte, error) { return out.Bytes(), err } -// IImportShallow decodes "shallow" types.Package data encoded by IExportShallow -// in the same executable. This function cannot import data from +// IImportShallow decodes "shallow" types.Package data encoded by +// IExportShallow in the same executable. This function cannot import data from // cmd/compile or gcexportdata.Write. -func IImportShallow(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string, insert InsertType) (*types.Package, error) { +func IImportShallow(fset *token.FileSet, getPackage GetPackageFunc, data []byte, path string, insert InsertType) (*types.Package, error) { const bundle = false - pkgs, err := iimportCommon(fset, imports, data, bundle, path, insert) + pkgs, err := iimportCommon(fset, getPackage, data, bundle, path, insert) if err != nil { return nil, err } diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go index 448f903e..be6dace1 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go @@ -85,7 +85,7 @@ const ( // If the export data version is not recognized or the format is otherwise // compromised, an error is returned. func IImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (int, *types.Package, error) { - pkgs, err := iimportCommon(fset, imports, data, false, path, nil) + pkgs, err := iimportCommon(fset, GetPackageFromMap(imports), data, false, path, nil) if err != nil { return 0, nil, err } @@ -94,10 +94,33 @@ func IImportData(fset *token.FileSet, imports map[string]*types.Package, data [] // IImportBundle imports a set of packages from the serialized package bundle. func IImportBundle(fset *token.FileSet, imports map[string]*types.Package, data []byte) ([]*types.Package, error) { - return iimportCommon(fset, imports, data, true, "", nil) + return iimportCommon(fset, GetPackageFromMap(imports), data, true, "", nil) } -func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data []byte, bundle bool, path string, insert InsertType) (pkgs []*types.Package, err error) { +// A GetPackageFunc is a function that gets the package with the given path +// from the importer state, creating it (with the specified name) if necessary. +// It is an abstraction of the map historically used to memoize package creation. +// +// Two calls with the same path must return the same package. +// +// If the given getPackage func returns nil, the import will fail. +type GetPackageFunc = func(path, name string) *types.Package + +// GetPackageFromMap returns a GetPackageFunc that retrieves packages from the +// given map of package path -> package. +// +// The resulting func may mutate m: if a requested package is not found, a new +// package will be inserted into m. +func GetPackageFromMap(m map[string]*types.Package) GetPackageFunc { + return func(path, name string) *types.Package { + if _, ok := m[path]; !ok { + m[path] = types.NewPackage(path, name) + } + return m[path] + } +} + +func iimportCommon(fset *token.FileSet, getPackage GetPackageFunc, data []byte, bundle bool, path string, insert InsertType) (pkgs []*types.Package, err error) { const currentVersion = iexportVersionCurrent version := int64(-1) if !debug { @@ -195,10 +218,9 @@ func iimportCommon(fset *token.FileSet, imports map[string]*types.Package, data if pkgPath == "" { pkgPath = path } - pkg := imports[pkgPath] + pkg := getPackage(pkgPath, pkgName) if pkg == nil { - pkg = types.NewPackage(pkgPath, pkgName) - imports[pkgPath] = pkg + errorf("internal error: getPackage returned nil package for %s", pkgPath) } else if pkg.Name() != pkgName { errorf("conflicting names %s and %s for package %q", pkg.Name(), pkgName, path) } diff --git a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go index b285a11c..34fc783f 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go @@ -12,6 +12,7 @@ package gcimporter import ( "go/token" "go/types" + "sort" "strings" "golang.org/x/tools/internal/pkgbits" @@ -121,6 +122,16 @@ func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[st iface.Complete() } + // Imports() of pkg are all of the transitive packages that were loaded. + var imps []*types.Package + for _, imp := range pr.pkgs { + if imp != nil && imp != pkg { + imps = append(imps, imp) + } + } + sort.Sort(byPath(imps)) + pkg.SetImports(imps) + pkg.MarkComplete() return pkg } @@ -260,39 +271,9 @@ func (r *reader) doPkg() *types.Package { pkg := types.NewPackage(path, name) r.p.imports[path] = pkg - imports := make([]*types.Package, r.Len()) - for i := range imports { - imports[i] = r.pkg() - } - pkg.SetImports(flattenImports(imports)) - return pkg } -// flattenImports returns the transitive closure of all imported -// packages rooted from pkgs. -func flattenImports(pkgs []*types.Package) []*types.Package { - var res []*types.Package - seen := make(map[*types.Package]struct{}) - for _, pkg := range pkgs { - if _, ok := seen[pkg]; ok { - continue - } - seen[pkg] = struct{}{} - res = append(res, pkg) - - // pkg.Imports() is already flattened. - for _, pkg := range pkg.Imports() { - if _, ok := seen[pkg]; ok { - continue - } - seen[pkg] = struct{}{} - res = append(res, pkg) - } - } - return res -} - // @@@ Types func (r *reader) typ() types.Type { diff --git a/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go b/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go index a3fb2d4f..7e638ec2 100644 --- a/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go +++ b/vendor/golang.org/x/tools/internal/tokeninternal/tokeninternal.go @@ -7,7 +7,9 @@ package tokeninternal import ( + "fmt" "go/token" + "sort" "sync" "unsafe" ) @@ -57,3 +59,93 @@ func GetLines(file *token.File) []int { panic("unexpected token.File size") } } + +// AddExistingFiles adds the specified files to the FileSet if they +// are not already present. It panics if any pair of files in the +// resulting FileSet would overlap. +func AddExistingFiles(fset *token.FileSet, files []*token.File) { + // Punch through the FileSet encapsulation. + type tokenFileSet struct { + // This type remained essentially consistent from go1.16 to go1.21. + mutex sync.RWMutex + base int + files []*token.File + _ *token.File // changed to atomic.Pointer[token.File] in go1.19 + } + + // If the size of token.FileSet changes, this will fail to compile. + const delta = int64(unsafe.Sizeof(tokenFileSet{})) - int64(unsafe.Sizeof(token.FileSet{})) + var _ [-delta * delta]int + + type uP = unsafe.Pointer + var ptr *tokenFileSet + *(*uP)(uP(&ptr)) = uP(fset) + ptr.mutex.Lock() + defer ptr.mutex.Unlock() + + // Merge and sort. + newFiles := append(ptr.files, files...) + sort.Slice(newFiles, func(i, j int) bool { + return newFiles[i].Base() < newFiles[j].Base() + }) + + // Reject overlapping files. + // Discard adjacent identical files. + out := newFiles[:0] + for i, file := range newFiles { + if i > 0 { + prev := newFiles[i-1] + if file == prev { + continue + } + if prev.Base()+prev.Size()+1 > file.Base() { + panic(fmt.Sprintf("file %s (%d-%d) overlaps with file %s (%d-%d)", + prev.Name(), prev.Base(), prev.Base()+prev.Size(), + file.Name(), file.Base(), file.Base()+file.Size())) + } + } + out = append(out, file) + } + newFiles = out + + ptr.files = newFiles + + // Advance FileSet.Base(). + if len(newFiles) > 0 { + last := newFiles[len(newFiles)-1] + newBase := last.Base() + last.Size() + 1 + if ptr.base < newBase { + ptr.base = newBase + } + } +} + +// FileSetFor returns a new FileSet containing a sequence of new Files with +// the same base, size, and line as the input files, for use in APIs that +// require a FileSet. +// +// Precondition: the input files must be non-overlapping, and sorted in order +// of their Base. +func FileSetFor(files ...*token.File) *token.FileSet { + fset := token.NewFileSet() + for _, f := range files { + f2 := fset.AddFile(f.Name(), f.Base(), f.Size()) + lines := GetLines(f) + f2.SetLines(lines) + } + return fset +} + +// CloneFileSet creates a new FileSet holding all files in fset. It does not +// create copies of the token.Files in fset: they are added to the resulting +// FileSet unmodified. +func CloneFileSet(fset *token.FileSet) *token.FileSet { + var files []*token.File + fset.Iterate(func(f *token.File) bool { + files = append(files, f) + return true + }) + newFileSet := token.NewFileSet() + AddExistingFiles(newFileSet, files) + return newFileSet +} diff --git a/vendor/golang.org/x/tools/internal/typeparams/common.go b/vendor/golang.org/x/tools/internal/typeparams/common.go index 25a1426d..cfba8189 100644 --- a/vendor/golang.org/x/tools/internal/typeparams/common.go +++ b/vendor/golang.org/x/tools/internal/typeparams/common.go @@ -87,7 +87,6 @@ func IsTypeParam(t types.Type) bool { func OriginMethod(fn *types.Func) *types.Func { recv := fn.Type().(*types.Signature).Recv() if recv == nil { - return fn } base := recv.Type() diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go index ce7d4351..3c53fbc6 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/types.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go @@ -11,6 +11,8 @@ import ( "go/types" "reflect" "unsafe" + + "golang.org/x/tools/go/types/objectpath" ) func SetUsesCgo(conf *types.Config) bool { @@ -50,3 +52,10 @@ func ReadGo116ErrorData(err types.Error) (code ErrorCode, start, end token.Pos, } var SetGoVersion = func(conf *types.Config, version string) bool { return false } + +// NewObjectpathEncoder returns a function closure equivalent to +// objectpath.For but amortized for multiple (sequential) calls. +// It is a temporary workaround, pending the approval of proposal 58668. +// +//go:linkname NewObjectpathFunc golang.org/x/tools/go/types/objectpath.newEncoderFor +func NewObjectpathFunc() func(types.Object) (objectpath.Path, error) diff --git a/vendor/modules.txt b/vendor/modules.txt index 04f31d18..f3738e1c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,5 +1,5 @@ -# github.com/Khan/genqlient v0.5.0 -## explicit; go 1.16 +# github.com/Khan/genqlient v0.6.0 +## explicit; go 1.18 github.com/Khan/genqlient/graphql # github.com/Masterminds/goutils v1.1.1 ## explicit @@ -352,11 +352,12 @@ golang.org/x/text/secure/bidirule golang.org/x/text/transform golang.org/x/text/unicode/bidi golang.org/x/text/unicode/norm -# golang.org/x/tools v0.6.0 +# golang.org/x/tools v0.8.0 ## explicit; go 1.18 golang.org/x/tools/go/gcexportdata golang.org/x/tools/go/internal/packagesdriver golang.org/x/tools/go/packages +golang.org/x/tools/go/types/objectpath golang.org/x/tools/internal/event golang.org/x/tools/internal/event/core golang.org/x/tools/internal/event/keys