From ced211f0fcab484a8a48f57ec24ad4611b803538 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Thu, 28 Dec 2023 18:12:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20to=20latest=20proto-gen?= =?UTF-8?q?-go=20(#2924)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- explorer/cnquery_explorer.pb.go | 2 +- explorer/scan/cnquery_explorer_scan.pb.go | 2 +- llx/llx.pb.go | 2 +- providers-sdk/v1/inventory/inventory.pb.go | 2 +- providers-sdk/v1/plugin/plugin.pb.go | 2 +- providers-sdk/v1/resources/resources.pb.go | 2 +- providers-sdk/v1/upstream/health/health.pb.go | 2 +- providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go | 2 +- providers-sdk/v1/upstream/mvd/mvd.pb.go | 2 +- providers-sdk/v1/upstream/upstream.pb.go | 2 +- providers-sdk/v1/vault/vault.pb.go | 2 +- providers/slack/resources/slack.lr.go | 266 +++++++++--------- sbom/sbom.pb.go | 2 +- shared/proto/cnquery.pb.go | 2 +- 14 files changed, 146 insertions(+), 146 deletions(-) diff --git a/explorer/cnquery_explorer.pb.go b/explorer/cnquery_explorer.pb.go index 6b4de4d99c..66780e7561 100644 --- a/explorer/cnquery_explorer.pb.go +++ b/explorer/cnquery_explorer.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: cnquery_explorer.proto diff --git a/explorer/scan/cnquery_explorer_scan.pb.go b/explorer/scan/cnquery_explorer_scan.pb.go index 6b6ad8eae5..abfbb64d84 100644 --- a/explorer/scan/cnquery_explorer_scan.pb.go +++ b/explorer/scan/cnquery_explorer_scan.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: cnquery_explorer_scan.proto diff --git a/llx/llx.pb.go b/llx/llx.pb.go index 758f3c988e..ad65e8baf7 100644 --- a/llx/llx.pb.go +++ b/llx/llx.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: llx.proto diff --git a/providers-sdk/v1/inventory/inventory.pb.go b/providers-sdk/v1/inventory/inventory.pb.go index 00517b513b..abcb4abdb3 100644 --- a/providers-sdk/v1/inventory/inventory.pb.go +++ b/providers-sdk/v1/inventory/inventory.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: inventory.proto diff --git a/providers-sdk/v1/plugin/plugin.pb.go b/providers-sdk/v1/plugin/plugin.pb.go index 075edfff44..913100f3f2 100644 --- a/providers-sdk/v1/plugin/plugin.pb.go +++ b/providers-sdk/v1/plugin/plugin.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: plugin.proto diff --git a/providers-sdk/v1/resources/resources.pb.go b/providers-sdk/v1/resources/resources.pb.go index 910e5e3131..3c3f1ad535 100644 --- a/providers-sdk/v1/resources/resources.pb.go +++ b/providers-sdk/v1/resources/resources.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: resources.proto diff --git a/providers-sdk/v1/upstream/health/health.pb.go b/providers-sdk/v1/upstream/health/health.pb.go index 0e5942b06a..1d52fd23d6 100644 --- a/providers-sdk/v1/upstream/health/health.pb.go +++ b/providers-sdk/v1/upstream/health/health.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: health.proto diff --git a/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go b/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go index 405beb762b..1efb3b3831 100644 --- a/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go +++ b/providers-sdk/v1/upstream/mvd/cvss/cvss.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: cvss.proto diff --git a/providers-sdk/v1/upstream/mvd/mvd.pb.go b/providers-sdk/v1/upstream/mvd/mvd.pb.go index 4bb2574b17..6250d1286f 100644 --- a/providers-sdk/v1/upstream/mvd/mvd.pb.go +++ b/providers-sdk/v1/upstream/mvd/mvd.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: mvd.proto diff --git a/providers-sdk/v1/upstream/upstream.pb.go b/providers-sdk/v1/upstream/upstream.pb.go index 87cea70af0..695bfcc410 100644 --- a/providers-sdk/v1/upstream/upstream.pb.go +++ b/providers-sdk/v1/upstream/upstream.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: upstream.proto diff --git a/providers-sdk/v1/vault/vault.pb.go b/providers-sdk/v1/vault/vault.pb.go index 9cb3e16f3b..3a3a5b85d2 100644 --- a/providers-sdk/v1/vault/vault.pb.go +++ b/providers-sdk/v1/vault/vault.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: vault.proto diff --git a/providers/slack/resources/slack.lr.go b/providers/slack/resources/slack.lr.go index 0011e89bdd..a65d503c13 100644 --- a/providers/slack/resources/slack.lr.go +++ b/providers/slack/resources/slack.lr.go @@ -17,7 +17,7 @@ import ( var resourceFactories map[string]plugin.ResourceFactory func init() { - resourceFactories = map[string]plugin.ResourceFactory{ + resourceFactories = map[string]plugin.ResourceFactory { "slack": { // to override args, implement: initSlack(runtime *plugin.Runtime, args map[string]*llx.RawData) (map[string]*llx.RawData, plugin.Resource, error) Create: createSlack, @@ -27,7 +27,7 @@ func init() { Create: createSlackConversations, }, "slack.team": { - Init: initSlackTeam, + Init: initSlackTeam, Create: createSlackTeam, }, "slack.users": { @@ -35,7 +35,7 @@ func init() { Create: createSlackUsers, }, "slack.user": { - Init: initSlackUser, + Init: initSlackUser, Create: createSlackUser, }, "slack.enterpriseUser": { @@ -73,7 +73,7 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD } if res != nil { - id := name + "\x00" + res.MqlID() + id := name+"\x00"+res.MqlID() if x, ok := runtime.Resources.Get(id); ok { return x, nil } @@ -89,7 +89,7 @@ func NewResource(runtime *plugin.Runtime, name string, args map[string]*llx.RawD return nil, err } - id := name + "\x00" + res.MqlID() + id := name+"\x00"+res.MqlID() if x, ok := runtime.Resources.Get(id); ok { return x, nil } @@ -112,7 +112,7 @@ func CreateResource(runtime *plugin.Runtime, name string, args map[string]*llx.R return nil, err } - id := name + "\x00" + res.MqlID() + id := name+"\x00"+res.MqlID() if x, ok := runtime.Resources.Get(id); ok { return x, nil } @@ -400,11 +400,11 @@ func GetData(resource plugin.Resource, field string, args map[string]*llx.RawDat return f(resource) } -var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ +var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool { "slack.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlack).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlack).__id, ok = v.Value.(string) + return + }, "slack.accessLogs": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlack).AccessLogs, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return @@ -414,9 +414,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.conversations.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackConversations).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackConversations).__id, ok = v.Value.(string) + return + }, "slack.conversations.privateChannels": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackConversations).PrivateChannels, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return @@ -434,9 +434,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.team.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackTeam).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackTeam).__id, ok = v.Value.(string) + return + }, "slack.team.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackTeam).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -454,9 +454,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.users.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackUsers).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackUsers).__id, ok = v.Value.(string) + return + }, "slack.users.bots": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackUsers).Bots, ok = plugin.RawToTValue[[]interface{}](v.Value, v.Error) return @@ -478,9 +478,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.user.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackUser).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackUser).__id, ok = v.Value.(string) + return + }, "slack.user.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackUser).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -582,9 +582,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.enterpriseUser.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackEnterpriseUser).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackEnterpriseUser).__id, ok = v.Value.(string) + return + }, "slack.enterpriseUser.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackEnterpriseUser).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -606,9 +606,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.userGroup.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackUserGroup).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackUserGroup).__id, ok = v.Value.(string) + return + }, "slack.userGroup.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackUserGroup).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -666,9 +666,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.login.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackLogin).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackLogin).__id, ok = v.Value.(string) + return + }, "slack.login.userID": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackLogin).UserID, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -710,9 +710,9 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ return }, "slack.conversation.__id": func(r plugin.Resource, v *llx.RawData) (ok bool) { - r.(*mqlSlackConversation).__id, ok = v.Value.(string) - return - }, + r.(*mqlSlackConversation).__id, ok = v.Value.(string) + return + }, "slack.conversation.id": func(r plugin.Resource, v *llx.RawData) (ok bool) { r.(*mqlSlackConversation).Id, ok = plugin.RawToTValue[string](v.Value, v.Error) return @@ -796,13 +796,13 @@ var setDataFields = map[string]func(r plugin.Resource, v *llx.RawData) bool{ } func SetData(resource plugin.Resource, field string, val *llx.RawData) error { - f, ok := setDataFields[resource.MqlName()+"."+field] + f, ok := setDataFields[resource.MqlName() + "." + field] if !ok { - return errors.New("[slack] cannot set '" + field + "' in resource '" + resource.MqlName() + "', field not found") + return errors.New("[slack] cannot set '"+field+"' in resource '"+resource.MqlName()+"', field not found") } if ok := f(resource, val); !ok { - return errors.New("[slack] cannot set '" + field + "' in resource '" + resource.MqlName() + "', type does not match") + return errors.New("[slack] cannot set '"+field+"' in resource '"+resource.MqlName()+"', type does not match") } return nil } @@ -820,7 +820,7 @@ func SetAllData(resource plugin.Resource, args map[string]*llx.RawData) error { // mqlSlack for the slack resource type mqlSlack struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackInternal it will be used here AccessLogs plugin.TValue[[]interface{}] UserGroups plugin.TValue[[]interface{}] @@ -838,7 +838,7 @@ func createSlack(runtime *plugin.Runtime, args map[string]*llx.RawData) (plugin. } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -898,12 +898,12 @@ func (c *mqlSlack) GetUserGroups() *plugin.TValue[[]interface{}] { // mqlSlackConversations for the slack.conversations resource type mqlSlackConversations struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackConversationsInternal it will be used here PrivateChannels plugin.TValue[[]interface{}] - PublicChannels plugin.TValue[[]interface{}] - DirectMessages plugin.TValue[[]interface{}] - List plugin.TValue[[]interface{}] + PublicChannels plugin.TValue[[]interface{}] + DirectMessages plugin.TValue[[]interface{}] + List plugin.TValue[[]interface{}] } // createSlackConversations creates a new instance of this resource @@ -918,7 +918,7 @@ func createSlackConversations(runtime *plugin.Runtime, args map[string]*llx.RawD } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1010,11 +1010,11 @@ func (c *mqlSlackConversations) GetList() *plugin.TValue[[]interface{}] { // mqlSlackTeam for the slack.team resource type mqlSlackTeam struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackTeamInternal it will be used here - Id plugin.TValue[string] - Name plugin.TValue[string] - Domain plugin.TValue[string] + Id plugin.TValue[string] + Name plugin.TValue[string] + Domain plugin.TValue[string] EmailDomain plugin.TValue[string] } @@ -1030,7 +1030,7 @@ func createSlackTeam(runtime *plugin.Runtime, args map[string]*llx.RawData) (plu } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1074,13 +1074,13 @@ func (c *mqlSlackTeam) GetEmailDomain() *plugin.TValue[string] { // mqlSlackUsers for the slack.users resource type mqlSlackUsers struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackUsersInternal it will be used here - Bots plugin.TValue[[]interface{}] + Bots plugin.TValue[[]interface{}] Members plugin.TValue[[]interface{}] - Admins plugin.TValue[[]interface{}] - Owners plugin.TValue[[]interface{}] - List plugin.TValue[[]interface{}] + Admins plugin.TValue[[]interface{}] + Owners plugin.TValue[[]interface{}] + List plugin.TValue[[]interface{}] } // createSlackUsers creates a new instance of this resource @@ -1095,7 +1095,7 @@ func createSlackUsers(runtime *plugin.Runtime, args map[string]*llx.RawData) (pl } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1203,33 +1203,33 @@ func (c *mqlSlackUsers) GetList() *plugin.TValue[[]interface{}] { // mqlSlackUser for the slack.user resource type mqlSlackUser struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackUserInternal it will be used here - Id plugin.TValue[string] - Name plugin.TValue[string] - TeamId plugin.TValue[string] - Deleted plugin.TValue[bool] - Color plugin.TValue[string] - RealName plugin.TValue[string] - TimeZone plugin.TValue[string] - TimeZoneLabel plugin.TValue[string] - TimeZoneOffset plugin.TValue[int64] - IsBot plugin.TValue[bool] - IsAdmin plugin.TValue[bool] - IsOwner plugin.TValue[bool] - IsPrimaryOwner plugin.TValue[bool] - IsRestricted plugin.TValue[bool] + Id plugin.TValue[string] + Name plugin.TValue[string] + TeamId plugin.TValue[string] + Deleted plugin.TValue[bool] + Color plugin.TValue[string] + RealName plugin.TValue[string] + TimeZone plugin.TValue[string] + TimeZoneLabel plugin.TValue[string] + TimeZoneOffset plugin.TValue[int64] + IsBot plugin.TValue[bool] + IsAdmin plugin.TValue[bool] + IsOwner plugin.TValue[bool] + IsPrimaryOwner plugin.TValue[bool] + IsRestricted plugin.TValue[bool] IsUltraRestricted plugin.TValue[bool] - IsStranger plugin.TValue[bool] - IsAppUser plugin.TValue[bool] - IsInvitedUser plugin.TValue[bool] - Has2FA plugin.TValue[bool] - TwoFactorType plugin.TValue[string] - HasFiles plugin.TValue[bool] - Presence plugin.TValue[string] - Locale plugin.TValue[string] - Profile plugin.TValue[interface{}] - EnterpriseUser plugin.TValue[*mqlSlackEnterpriseUser] + IsStranger plugin.TValue[bool] + IsAppUser plugin.TValue[bool] + IsInvitedUser plugin.TValue[bool] + Has2FA plugin.TValue[bool] + TwoFactorType plugin.TValue[string] + HasFiles plugin.TValue[bool] + Presence plugin.TValue[string] + Locale plugin.TValue[string] + Profile plugin.TValue[interface{}] + EnterpriseUser plugin.TValue[*mqlSlackEnterpriseUser] } // createSlackUser creates a new instance of this resource @@ -1244,7 +1244,7 @@ func createSlackUser(runtime *plugin.Runtime, args map[string]*llx.RawData) (plu } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1372,13 +1372,13 @@ func (c *mqlSlackUser) GetEnterpriseUser() *plugin.TValue[*mqlSlackEnterpriseUse // mqlSlackEnterpriseUser for the slack.enterpriseUser resource type mqlSlackEnterpriseUser struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackEnterpriseUserInternal it will be used here - Id plugin.TValue[string] - EnterpriseId plugin.TValue[string] + Id plugin.TValue[string] + EnterpriseId plugin.TValue[string] EnterpriseName plugin.TValue[string] - IsAdmin plugin.TValue[bool] - IsOwner plugin.TValue[bool] + IsAdmin plugin.TValue[bool] + IsOwner plugin.TValue[bool] } // createSlackEnterpriseUser creates a new instance of this resource @@ -1393,7 +1393,7 @@ func createSlackEnterpriseUser(runtime *plugin.Runtime, args map[string]*llx.Raw } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1441,22 +1441,22 @@ func (c *mqlSlackEnterpriseUser) GetIsOwner() *plugin.TValue[bool] { // mqlSlackUserGroup for the slack.userGroup resource type mqlSlackUserGroup struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackUserGroupInternal it will be used here - Id plugin.TValue[string] - TeamId plugin.TValue[string] - Name plugin.TValue[string] + Id plugin.TValue[string] + TeamId plugin.TValue[string] + Name plugin.TValue[string] Description plugin.TValue[string] - Handle plugin.TValue[string] - IsExternal plugin.TValue[bool] - Created plugin.TValue[*time.Time] - Updated plugin.TValue[*time.Time] - Deleted plugin.TValue[*time.Time] - CreatedBy plugin.TValue[*mqlSlackUser] - UpdatedBy plugin.TValue[*mqlSlackUser] - DeletedBy plugin.TValue[*mqlSlackUser] - UserCount plugin.TValue[int64] - Members plugin.TValue[[]interface{}] + Handle plugin.TValue[string] + IsExternal plugin.TValue[bool] + Created plugin.TValue[*time.Time] + Updated plugin.TValue[*time.Time] + Deleted plugin.TValue[*time.Time] + CreatedBy plugin.TValue[*mqlSlackUser] + UpdatedBy plugin.TValue[*mqlSlackUser] + DeletedBy plugin.TValue[*mqlSlackUser] + UserCount plugin.TValue[int64] + Members plugin.TValue[[]interface{}] } // createSlackUserGroup creates a new instance of this resource @@ -1471,7 +1471,7 @@ func createSlackUserGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1567,18 +1567,18 @@ func (c *mqlSlackUserGroup) GetMembers() *plugin.TValue[[]interface{}] { // mqlSlackLogin for the slack.login resource type mqlSlackLogin struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackLoginInternal it will be used here - UserID plugin.TValue[string] - Username plugin.TValue[string] - Count plugin.TValue[int64] - Ip plugin.TValue[string] + UserID plugin.TValue[string] + Username plugin.TValue[string] + Count plugin.TValue[int64] + Ip plugin.TValue[string] UserAgent plugin.TValue[string] - Isp plugin.TValue[string] - Country plugin.TValue[string] - Region plugin.TValue[string] + Isp plugin.TValue[string] + Country plugin.TValue[string] + Region plugin.TValue[string] DateFirst plugin.TValue[*time.Time] - DateLast plugin.TValue[*time.Time] + DateLast plugin.TValue[*time.Time] } // createSlackLogin creates a new instance of this resource @@ -1593,7 +1593,7 @@ func createSlackLogin(runtime *plugin.Runtime, args map[string]*llx.RawData) (pl } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } @@ -1661,28 +1661,28 @@ func (c *mqlSlackLogin) GetDateLast() *plugin.TValue[*time.Time] { // mqlSlackConversation for the slack.conversation resource type mqlSlackConversation struct { MqlRuntime *plugin.Runtime - __id string + __id string // optional: if you define mqlSlackConversationInternal it will be used here - Id plugin.TValue[string] - Name plugin.TValue[string] - Creator plugin.TValue[*mqlSlackUser] - Created plugin.TValue[*time.Time] - Locale plugin.TValue[string] - Topic plugin.TValue[interface{}] - Purpose plugin.TValue[interface{}] - IsArchived plugin.TValue[bool] - IsOpen plugin.TValue[bool] - IsPrivate plugin.TValue[bool] - IsIM plugin.TValue[bool] - IsMpim plugin.TValue[bool] - IsGroup plugin.TValue[bool] - IsChannel plugin.TValue[bool] - IsShared plugin.TValue[bool] - IsExtShared plugin.TValue[bool] + Id plugin.TValue[string] + Name plugin.TValue[string] + Creator plugin.TValue[*mqlSlackUser] + Created plugin.TValue[*time.Time] + Locale plugin.TValue[string] + Topic plugin.TValue[interface{}] + Purpose plugin.TValue[interface{}] + IsArchived plugin.TValue[bool] + IsOpen plugin.TValue[bool] + IsPrivate plugin.TValue[bool] + IsIM plugin.TValue[bool] + IsMpim plugin.TValue[bool] + IsGroup plugin.TValue[bool] + IsChannel plugin.TValue[bool] + IsShared plugin.TValue[bool] + IsExtShared plugin.TValue[bool] IsPendingExtShared plugin.TValue[bool] - IsOrgShared plugin.TValue[bool] - Priority plugin.TValue[float64] - Members plugin.TValue[[]interface{}] + IsOrgShared plugin.TValue[bool] + Priority plugin.TValue[float64] + Members plugin.TValue[[]interface{}] } // createSlackConversation creates a new instance of this resource @@ -1697,7 +1697,7 @@ func createSlackConversation(runtime *plugin.Runtime, args map[string]*llx.RawDa } if res.__id == "" { - res.__id, err = res.id() + res.__id, err = res.id() if err != nil { return nil, err } diff --git a/sbom/sbom.pb.go b/sbom/sbom.pb.go index e6f4a77681..3742771dee 100644 --- a/sbom/sbom.pb.go +++ b/sbom/sbom.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: sbom.proto diff --git a/shared/proto/cnquery.pb.go b/shared/proto/cnquery.pb.go index fbf8993bcb..dbf1cacd69 100644 --- a/shared/proto/cnquery.pb.go +++ b/shared/proto/cnquery.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.32.0 // protoc v4.25.1 // source: cnquery.proto