diff --git a/plugins/source/pagerduty/client/client.go b/plugins/source/pagerduty/client/client.go index 3df388c39bcb27..263a7389433e8c 100644 --- a/plugins/source/pagerduty/client/client.go +++ b/plugins/source/pagerduty/client/client.go @@ -8,8 +8,8 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/plugin-pb-go/specs" - "github.com/cloudquery/plugin-sdk/v2/plugins/source" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" "github.com/rs/zerolog" "gopkg.in/yaml.v3" ) diff --git a/plugins/source/pagerduty/client/testing.go b/plugins/source/pagerduty/client/testing.go index 9a13f6d6ed2eee..69e87898cf0131 100644 --- a/plugins/source/pagerduty/client/testing.go +++ b/plugins/source/pagerduty/client/testing.go @@ -15,8 +15,8 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/plugin-pb-go/specs" - "github.com/cloudquery/plugin-sdk/v2/plugins/source" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" "github.com/rs/zerolog" "golang.org/x/exp/slices" ) diff --git a/plugins/source/pagerduty/go.mod b/plugins/source/pagerduty/go.mod index 543665408ba8df..ac5c0fb7d8a2c0 100644 --- a/plugins/source/pagerduty/go.mod +++ b/plugins/source/pagerduty/go.mod @@ -4,21 +4,21 @@ go 1.19 require ( github.com/PagerDuty/go-pagerduty v1.6.0 + github.com/apache/arrow/go/v13 v13.0.0-20230509040948-de6c3cd2b604 github.com/cloudquery/plugin-pb-go v1.0.8 - github.com/cloudquery/plugin-sdk/v2 v2.7.0 + github.com/cloudquery/plugin-sdk/v3 v3.6.4 github.com/rs/zerolog v1.29.0 golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 golang.org/x/time v0.3.0 gopkg.in/yaml.v3 v3.0.1 ) -// TODO: remove once all updates are merged -replace github.com/apache/arrow/go/v13 => github.com/cloudquery/arrow/go/v13 v13.0.0-20230509053643-898a79b1d3c8 +replace github.com/apache/arrow/go/v13 => github.com/cloudquery/arrow/go/v13 v13.0.0-20230525142029-2d32efeedad8 require ( github.com/andybalholm/brotli v1.0.5 // indirect - github.com/apache/arrow/go/v13 v13.0.0-20230509040948-de6c3cd2b604 // indirect github.com/apache/thrift v0.16.0 // indirect + github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/getsentry/sentry-go v0.20.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect @@ -38,6 +38,7 @@ require ( github.com/mattn/go-isatty v0.0.18 // indirect github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3 // indirect + github.com/pierrec/lz4/v4 v4.1.15 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.6.1 // indirect diff --git a/plugins/source/pagerduty/go.sum b/plugins/source/pagerduty/go.sum index 1616203937cbf8..1742ef180b0f66 100644 --- a/plugins/source/pagerduty/go.sum +++ b/plugins/source/pagerduty/go.sum @@ -48,12 +48,14 @@ github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWR github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudquery/arrow/go/v13 v13.0.0-20230509053643-898a79b1d3c8 h1:CmgLSEGQNLHpUQ5cU4L4aF7cuJZRnc1toIIWqC1gmPg= -github.com/cloudquery/arrow/go/v13 v13.0.0-20230509053643-898a79b1d3c8/go.mod h1:/XatdE3kDIBqZKhZ7OBUHwP2jaASDFZHqF4puOWM8po= +github.com/cloudquery/arrow/go/v13 v13.0.0-20230525142029-2d32efeedad8 h1:/mgK+To5HNUzuZDWdVygbfn8oaPG5c7I/8qCxwwpWO8= +github.com/cloudquery/arrow/go/v13 v13.0.0-20230525142029-2d32efeedad8/go.mod h1:/XatdE3kDIBqZKhZ7OBUHwP2jaASDFZHqF4puOWM8po= github.com/cloudquery/plugin-pb-go v1.0.8 h1:wn3GXhcNItcP+6wUUZuzUFbvdL59liKBO37/izMi+FQ= github.com/cloudquery/plugin-pb-go v1.0.8/go.mod h1:vAGA27psem7ZZNAY4a3S9TKuA/JDQWstjKcHPJX91Mc= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= +github.com/cloudquery/plugin-sdk/v3 v3.6.4 h1:P4OkS5tJYkv3OqeL60DAVqXXbFQUyPKJ5YDtAgjl9b4= +github.com/cloudquery/plugin-sdk/v3 v3.6.4/go.mod h1:3JrZXEULmGXpkOukVaRIzaA63d7TJr9Ukp6hemTjbtc= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= @@ -189,6 +191,7 @@ github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceT github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pierrec/lz4/v4 v4.1.15 h1:MO0/ucJhngq7299dKLwIMtgTfbkoSPF6AoMYDd8Q4q0= +github.com/pierrec/lz4/v4 v4.1.15/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/plugins/source/pagerduty/main.go b/plugins/source/pagerduty/main.go index 23fa5a21e870e5..3d1da615cefacb 100644 --- a/plugins/source/pagerduty/main.go +++ b/plugins/source/pagerduty/main.go @@ -3,7 +3,7 @@ package main import ( "github.com/cloudquery/cloudquery/plugins/source/pagerduty/resources/plugin" - "github.com/cloudquery/plugin-sdk/v2/serve" + "github.com/cloudquery/plugin-sdk/v3/serve" ) const sentryDsn = "https://88b3936014084326bed8d93aaf24e559@o1396617.ingest.sentry.io/4504321041432576" diff --git a/plugins/source/pagerduty/resources/plugin/all_tables.go b/plugins/source/pagerduty/resources/plugin/all_tables.go index 3526d19f0e319e..a6acce82ecb499 100644 --- a/plugins/source/pagerduty/resources/plugin/all_tables.go +++ b/plugins/source/pagerduty/resources/plugin/all_tables.go @@ -16,7 +16,7 @@ import ( "github.com/cloudquery/cloudquery/plugins/source/pagerduty/resources/services/teams" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/resources/services/users" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/resources/services/vendors" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func AllTables() []*schema.Table { diff --git a/plugins/source/pagerduty/resources/plugin/plugin.go b/plugins/source/pagerduty/resources/plugin/plugin.go index 976190a003b606..6ab586009d1251 100644 --- a/plugins/source/pagerduty/resources/plugin/plugin.go +++ b/plugins/source/pagerduty/resources/plugin/plugin.go @@ -2,9 +2,9 @@ package plugin import ( "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/caser" - "github.com/cloudquery/plugin-sdk/v2/plugins/source" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/caser" + "github.com/cloudquery/plugin-sdk/v3/plugins/source" + "github.com/cloudquery/plugin-sdk/v3/schema" ) var ( diff --git a/plugins/source/pagerduty/resources/services/addons/addons.go b/plugins/source/pagerduty/resources/services/addons/addons.go index a43f80915ed879..6e8b90e878c8ec 100644 --- a/plugins/source/pagerduty/resources/services/addons/addons.go +++ b/plugins/source/pagerduty/resources/services/addons/addons.go @@ -2,8 +2,9 @@ package addons import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Addons() *schema.Table { @@ -14,12 +15,10 @@ func Addons() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Addon{}, transformers.WithUnwrapAllEmbeddedStructs()), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, }, } diff --git a/plugins/source/pagerduty/resources/services/addons/addons_fetch.go b/plugins/source/pagerduty/resources/services/addons/addons_fetch.go index c8ffa73bc98056..1bd9e3a8b9f0ae 100644 --- a/plugins/source/pagerduty/resources/services/addons/addons_fetch.go +++ b/plugins/source/pagerduty/resources/services/addons/addons_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchAddons(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/addons/addons_mock_test.go b/plugins/source/pagerduty/resources/services/addons/addons_mock_test.go index 64122e32e5afb0..dbf8ad8c1740ae 100644 --- a/plugins/source/pagerduty/resources/services/addons/addons_mock_test.go +++ b/plugins/source/pagerduty/resources/services/addons/addons_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/business_services/business_services.go b/plugins/source/pagerduty/resources/services/business_services/business_services.go index 16e2e06a2bb1f4..501d67228c6ebd 100644 --- a/plugins/source/pagerduty/resources/services/business_services/business_services.go +++ b/plugins/source/pagerduty/resources/services/business_services/business_services.go @@ -2,8 +2,10 @@ package business_services import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" + "github.com/cloudquery/plugin-sdk/v3/types" ) func BusinessServices() *schema.Table { @@ -15,20 +17,18 @@ func BusinessServices() *schema.Table { Columns: []schema.Column{ { Name: "dependencies", - Type: schema.TypeJSON, + Type: types.ExtensionTypes.JSON, Resolver: DependenciesResolver, }, { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLUrl"), }, }, diff --git a/plugins/source/pagerduty/resources/services/business_services/business_services_fetch.go b/plugins/source/pagerduty/resources/services/business_services/business_services_fetch.go index 73f268c34d9523..281bcd013c01a9 100644 --- a/plugins/source/pagerduty/resources/services/business_services/business_services_fetch.go +++ b/plugins/source/pagerduty/resources/services/business_services/business_services_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchBusinessServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/business_services/business_services_mock_test.go b/plugins/source/pagerduty/resources/services/business_services/business_services_mock_test.go index 593877896b92ed..1ca50ca4b5b995 100644 --- a/plugins/source/pagerduty/resources/services/business_services/business_services_mock_test.go +++ b/plugins/source/pagerduty/resources/services/business_services/business_services_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/business_services/resovlers.go b/plugins/source/pagerduty/resources/services/business_services/resovlers.go index db0a1de74f9f89..684675171f8e9d 100644 --- a/plugins/source/pagerduty/resources/services/business_services/resovlers.go +++ b/plugins/source/pagerduty/resources/services/business_services/resovlers.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func DependenciesResolver(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, c schema.Column) error { diff --git a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies.go b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies.go index 81cc7652736796..04c6e4a317519a 100644 --- a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies.go +++ b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies.go @@ -2,8 +2,9 @@ package escalation_policies import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func EscalationPolicies() *schema.Table { @@ -14,16 +15,14 @@ func EscalationPolicies() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.EscalationPolicy{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_fetch.go b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_fetch.go index fd578090c3bce6..3417edf597b0ed 100644 --- a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_fetch.go +++ b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchEscalationPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_mock_test.go b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_mock_test.go index 568fb019407bfd..c4fd95dc8c6bc7 100644 --- a/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_mock_test.go +++ b/plugins/source/pagerduty/resources/services/escalation_policies/escalation_policies_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas.go b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas.go index 424ea6c5e68810..24a78cfc825c13 100644 --- a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas.go +++ b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas.go @@ -2,8 +2,9 @@ package extension_schemas import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func ExtensionSchemas() *schema.Table { @@ -14,36 +15,34 @@ func ExtensionSchemas() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.ExtensionSchema{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL", "URL", "IconURL", "LogoURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "icon_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("IconURL"), }, { Name: "logo_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("LogoURL"), }, { Name: "guide_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("GuideURL"), }, { Name: "url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("URL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_fetch.go b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_fetch.go index 73ab6ec0c2211b..dbd9fd98ccd946 100644 --- a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_fetch.go +++ b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchExtensionSchemas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_mock_test.go b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_mock_test.go index bc9650ce3f9b8e..d39db18083011f 100644 --- a/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_mock_test.go +++ b/plugins/source/pagerduty/resources/services/extension_schemas/extension_schemas_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/extensions/extensions.go b/plugins/source/pagerduty/resources/services/extensions/extensions.go index f9f66fc5c5afbd..36a8ebc1f2d200 100644 --- a/plugins/source/pagerduty/resources/services/extensions/extensions.go +++ b/plugins/source/pagerduty/resources/services/extensions/extensions.go @@ -2,8 +2,9 @@ package extensions import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Extensions() *schema.Table { @@ -14,21 +15,19 @@ func Extensions() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Extension{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL", "EndpointURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "endpoint_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("EndpointURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/extensions/extensions_fetch.go b/plugins/source/pagerduty/resources/services/extensions/extensions_fetch.go index 2c516e8b56c0f6..dc74db87b4e11f 100644 --- a/plugins/source/pagerduty/resources/services/extensions/extensions_fetch.go +++ b/plugins/source/pagerduty/resources/services/extensions/extensions_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchExtensions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/extensions/extensions_mock_test.go b/plugins/source/pagerduty/resources/services/extensions/extensions_mock_test.go index ee1ac8b09c8849..4cb4e3918f5119 100644 --- a/plugins/source/pagerduty/resources/services/extensions/extensions_mock_test.go +++ b/plugins/source/pagerduty/resources/services/extensions/extensions_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_alerts.go b/plugins/source/pagerduty/resources/services/incidents/incident_alerts.go index 818268ba1d70b9..4939c01fa6c915 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_alerts.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_alerts.go @@ -2,8 +2,9 @@ package incidents import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func IncidentAlerts() *schema.Table { @@ -14,21 +15,19 @@ func IncidentAlerts() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.IncidentAlert{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_alerts_fetch.go b/plugins/source/pagerduty/resources/services/incidents/incident_alerts_fetch.go index 7d7f6867700862..597aaafcd0b369 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_alerts_fetch.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_alerts_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchIncidentAlerts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_log_entries.go b/plugins/source/pagerduty/resources/services/incidents/incident_log_entries.go index b3a0936a75a4bc..5b11510fd9e226 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_log_entries.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_log_entries.go @@ -2,8 +2,9 @@ package incidents import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func IncidentLogEntries() *schema.Table { @@ -14,36 +15,34 @@ func IncidentLogEntries() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.LogEntry{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL", "APIObject")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "type", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Type"), }, { Name: "summary", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Summary"), }, { Name: "self", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Self"), }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, }, diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_log_entries_fetch.go b/plugins/source/pagerduty/resources/services/incidents/incident_log_entries_fetch.go index 05b719ef877886..ae7230032474df 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_log_entries_fetch.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_log_entries_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchIncidentLogEntries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_notes.go b/plugins/source/pagerduty/resources/services/incidents/incident_notes.go index c4f7ab8522395a..b0611af08e9b31 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_notes.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_notes.go @@ -2,8 +2,9 @@ package incidents import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func IncidentNotes() *schema.Table { @@ -14,16 +15,14 @@ func IncidentNotes() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.IncidentNote{}), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, }, diff --git a/plugins/source/pagerduty/resources/services/incidents/incident_notes_fetch.go b/plugins/source/pagerduty/resources/services/incidents/incident_notes_fetch.go index 7727bc22f15b4e..bc355536e4f0ca 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incident_notes_fetch.go +++ b/plugins/source/pagerduty/resources/services/incidents/incident_notes_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchIncidentNotes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/incidents/incidents.go b/plugins/source/pagerduty/resources/services/incidents/incidents.go index b48cb46bc0a7c3..554cfbba3499ec 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incidents.go +++ b/plugins/source/pagerduty/resources/services/incidents/incidents.go @@ -2,8 +2,9 @@ package incidents import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Incidents() *schema.Table { @@ -14,26 +15,24 @@ func Incidents() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Incident{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, { Name: "last_status_change_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("LastStatusChangeAt"), }, }, diff --git a/plugins/source/pagerduty/resources/services/incidents/incidents_fetch.go b/plugins/source/pagerduty/resources/services/incidents/incidents_fetch.go index 87351a5fa17966..78f7f1c22b7ed8 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incidents_fetch.go +++ b/plugins/source/pagerduty/resources/services/incidents/incidents_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchIncidents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/incidents/incidents_mock_test.go b/plugins/source/pagerduty/resources/services/incidents/incidents_mock_test.go index 04eb80b843c66c..6b09191e8eff10 100644 --- a/plugins/source/pagerduty/resources/services/incidents/incidents_mock_test.go +++ b/plugins/source/pagerduty/resources/services/incidents/incidents_mock_test.go @@ -6,7 +6,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_window.go b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_window.go index 7460b4491eca11..b6818711592c0e 100644 --- a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_window.go +++ b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_window.go @@ -2,8 +2,9 @@ package maintenance_windows import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func MaintenanceWindows() *schema.Table { @@ -14,26 +15,24 @@ func MaintenanceWindows() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.MaintenanceWindow{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "start_time", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("StartTime"), }, { Name: "end_time", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("EndTime"), }, }, diff --git a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_fetch.go b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_fetch.go index b55484f3f75af8..085bbf0d9eaccb 100644 --- a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_fetch.go +++ b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchMaintenanceWindows(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_mock_test.go b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_mock_test.go index f85ee13b39367a..b5ab07cf1dc33e 100644 --- a/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_mock_test.go +++ b/plugins/source/pagerduty/resources/services/maintenance_windows/maintenance_windows_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/priorities/priorities.go b/plugins/source/pagerduty/resources/services/priorities/priorities.go index 0a8b48cff55b7d..f1916e1d2daaf8 100644 --- a/plugins/source/pagerduty/resources/services/priorities/priorities.go +++ b/plugins/source/pagerduty/resources/services/priorities/priorities.go @@ -2,8 +2,9 @@ package priorities import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Priorities() *schema.Table { @@ -14,16 +15,14 @@ func Priorities() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Priority{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/priorities/priorities_fetch.go b/plugins/source/pagerduty/resources/services/priorities/priorities_fetch.go index 48989eb141c543..913c68fab61d55 100644 --- a/plugins/source/pagerduty/resources/services/priorities/priorities_fetch.go +++ b/plugins/source/pagerduty/resources/services/priorities/priorities_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchPriorities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/priorities/priorities_mock_test.go b/plugins/source/pagerduty/resources/services/priorities/priorities_mock_test.go index 6598f5c2b07f9e..e7fd0ffc2a46c4 100644 --- a/plugins/source/pagerduty/resources/services/priorities/priorities_mock_test.go +++ b/plugins/source/pagerduty/resources/services/priorities/priorities_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules.go b/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules.go index 5b3c4403abb276..32f8b162fbce17 100644 --- a/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules.go +++ b/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules.go @@ -2,8 +2,9 @@ package rulesets import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func RulesetRules() *schema.Table { @@ -14,12 +15,10 @@ func RulesetRules() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.RulesetRule{}), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, }, } diff --git a/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules_fetch.go b/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules_fetch.go index ed2f71104867be..dbacdbdf0db214 100644 --- a/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules_fetch.go +++ b/plugins/source/pagerduty/resources/services/rulesets/ruleset_rules_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchRulesetRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/rulesets/rulesets.go b/plugins/source/pagerduty/resources/services/rulesets/rulesets.go index bb17636ff38794..e631598ab94f5a 100644 --- a/plugins/source/pagerduty/resources/services/rulesets/rulesets.go +++ b/plugins/source/pagerduty/resources/services/rulesets/rulesets.go @@ -2,8 +2,9 @@ package rulesets import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Rulesets() *schema.Table { @@ -14,16 +15,14 @@ func Rulesets() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Ruleset{}), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, }, diff --git a/plugins/source/pagerduty/resources/services/rulesets/rulesets_fetch.go b/plugins/source/pagerduty/resources/services/rulesets/rulesets_fetch.go index 179f2d30253b75..6c26a2088308c1 100644 --- a/plugins/source/pagerduty/resources/services/rulesets/rulesets_fetch.go +++ b/plugins/source/pagerduty/resources/services/rulesets/rulesets_fetch.go @@ -4,7 +4,7 @@ import ( "context" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchRulesets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/rulesets/rulesets_mock_test.go b/plugins/source/pagerduty/resources/services/rulesets/rulesets_mock_test.go index 5fed179b2b6f68..c3cddfeefb05df 100644 --- a/plugins/source/pagerduty/resources/services/rulesets/rulesets_mock_test.go +++ b/plugins/source/pagerduty/resources/services/rulesets/rulesets_mock_test.go @@ -6,7 +6,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/schedules/schedules.go b/plugins/source/pagerduty/resources/services/schedules/schedules.go index 370a5e7288afa6..3298e642cbd2bd 100644 --- a/plugins/source/pagerduty/resources/services/schedules/schedules.go +++ b/plugins/source/pagerduty/resources/services/schedules/schedules.go @@ -2,8 +2,9 @@ package schedules import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Schedules() *schema.Table { @@ -14,16 +15,14 @@ func Schedules() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Schedule{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/schedules/schedules_fetch.go b/plugins/source/pagerduty/resources/services/schedules/schedules_fetch.go index 6764e37ef13fbd..57937005b73447 100644 --- a/plugins/source/pagerduty/resources/services/schedules/schedules_fetch.go +++ b/plugins/source/pagerduty/resources/services/schedules/schedules_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchSchedules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/schedules/schedules_mock_test.go b/plugins/source/pagerduty/resources/services/schedules/schedules_mock_test.go index 56fa2b38206a48..9563b1015ba397 100644 --- a/plugins/source/pagerduty/resources/services/schedules/schedules_mock_test.go +++ b/plugins/source/pagerduty/resources/services/schedules/schedules_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/services/resolvers.go b/plugins/source/pagerduty/resources/services/services/resolvers.go index f746604db9c5da..c12dacfe8b61d4 100644 --- a/plugins/source/pagerduty/resources/services/services/resolvers.go +++ b/plugins/source/pagerduty/resources/services/services/resolvers.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func DependenciesResolver(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, c schema.Column) error { diff --git a/plugins/source/pagerduty/resources/services/services/service_rules.go b/plugins/source/pagerduty/resources/services/services/service_rules.go index 9b27a7af3946c2..5a6ac4b7d4e7fc 100644 --- a/plugins/source/pagerduty/resources/services/services/service_rules.go +++ b/plugins/source/pagerduty/resources/services/services/service_rules.go @@ -2,8 +2,9 @@ package services import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func ServiceRules() *schema.Table { @@ -14,12 +15,10 @@ func ServiceRules() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.ServiceRule{}), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, }, } diff --git a/plugins/source/pagerduty/resources/services/services/service_rules_fetch.go b/plugins/source/pagerduty/resources/services/services/service_rules_fetch.go index 3afdcc2f56a190..07bf8e8d575d62 100644 --- a/plugins/source/pagerduty/resources/services/services/service_rules_fetch.go +++ b/plugins/source/pagerduty/resources/services/services/service_rules_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchServiceRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/services/services.go b/plugins/source/pagerduty/resources/services/services/services.go index bdc513955ffac0..41ce6eae927f88 100644 --- a/plugins/source/pagerduty/resources/services/services/services.go +++ b/plugins/source/pagerduty/resources/services/services/services.go @@ -2,8 +2,10 @@ package services import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" + "github.com/cloudquery/plugin-sdk/v3/types" ) func Services() *schema.Table { @@ -15,30 +17,28 @@ func Services() *schema.Table { Columns: []schema.Column{ { Name: "dependencies", - Type: schema.TypeJSON, + Type: types.ExtensionTypes.JSON, Resolver: DependenciesResolver, }, { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreateAt"), }, { Name: "last_incident_timestamp", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("LastIncidentTimestamp"), }, }, diff --git a/plugins/source/pagerduty/resources/services/services/services_fetch.go b/plugins/source/pagerduty/resources/services/services/services_fetch.go index a2886329391fb1..516d06757f3c0c 100644 --- a/plugins/source/pagerduty/resources/services/services/services_fetch.go +++ b/plugins/source/pagerduty/resources/services/services/services_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/services/services_mock_test.go b/plugins/source/pagerduty/resources/services/services/services_mock_test.go index 063fa5b2b2bb78..253b6846f38710 100644 --- a/plugins/source/pagerduty/resources/services/services/services_mock_test.go +++ b/plugins/source/pagerduty/resources/services/services/services_mock_test.go @@ -6,7 +6,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/tags/tags.go b/plugins/source/pagerduty/resources/services/tags/tags.go index 114488d64bc7db..9475bf8eccd621 100644 --- a/plugins/source/pagerduty/resources/services/tags/tags.go +++ b/plugins/source/pagerduty/resources/services/tags/tags.go @@ -2,8 +2,9 @@ package tags import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Tags() *schema.Table { @@ -14,16 +15,14 @@ func Tags() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Tag{}, transformers.WithSkipFields("HTMLURL"), transformers.WithUnwrapAllEmbeddedStructs()), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/tags/tags_fetch.go b/plugins/source/pagerduty/resources/services/tags/tags_fetch.go index 4e7ec2ce0c74fb..251e6a79e72525 100644 --- a/plugins/source/pagerduty/resources/services/tags/tags_fetch.go +++ b/plugins/source/pagerduty/resources/services/tags/tags_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchTags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/tags/tags_mock_test.go b/plugins/source/pagerduty/resources/services/tags/tags_mock_test.go index 42726711491378..17a9fdc9d4f810 100644 --- a/plugins/source/pagerduty/resources/services/tags/tags_mock_test.go +++ b/plugins/source/pagerduty/resources/services/tags/tags_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/teams/resolvers.go b/plugins/source/pagerduty/resources/services/teams/resolvers.go index 72bad99e817773..be5b5ddbfbf907 100644 --- a/plugins/source/pagerduty/resources/services/teams/resolvers.go +++ b/plugins/source/pagerduty/resources/services/teams/resolvers.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func MembersResolver(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, c schema.Column) error { diff --git a/plugins/source/pagerduty/resources/services/teams/teams.go b/plugins/source/pagerduty/resources/services/teams/teams.go index 1217954cc62099..beea7da17aaf82 100644 --- a/plugins/source/pagerduty/resources/services/teams/teams.go +++ b/plugins/source/pagerduty/resources/services/teams/teams.go @@ -2,8 +2,10 @@ package teams import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" + "github.com/cloudquery/plugin-sdk/v3/types" ) func Teams() *schema.Table { @@ -15,20 +17,18 @@ func Teams() *schema.Table { Columns: []schema.Column{ { Name: "members", - Type: schema.TypeJSON, + Type: types.ExtensionTypes.JSON, Resolver: MembersResolver, }, { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/teams/teams_fetch.go b/plugins/source/pagerduty/resources/services/teams/teams_fetch.go index d6aaf53acec826..7b767c5a9686b8 100644 --- a/plugins/source/pagerduty/resources/services/teams/teams_fetch.go +++ b/plugins/source/pagerduty/resources/services/teams/teams_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchTeams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/teams/teams_mock_test.go b/plugins/source/pagerduty/resources/services/teams/teams_mock_test.go index 3fe1683d6c08f1..a8ecb5ac4687d7 100644 --- a/plugins/source/pagerduty/resources/services/teams/teams_mock_test.go +++ b/plugins/source/pagerduty/resources/services/teams/teams_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/users/user_contact_methods.go b/plugins/source/pagerduty/resources/services/users/user_contact_methods.go index b17f41492e1887..0d8dd28f69ad6d 100644 --- a/plugins/source/pagerduty/resources/services/users/user_contact_methods.go +++ b/plugins/source/pagerduty/resources/services/users/user_contact_methods.go @@ -2,8 +2,9 @@ package users import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func UserContactMethods() *schema.Table { @@ -14,21 +15,19 @@ func UserContactMethods() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.ContactMethod{}, transformers.WithSkipFields("HTMLURL", "SendHTMLEmail")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "send_html_email", - Type: schema.TypeBool, + Type: arrow.FixedWidthTypes.Boolean, Resolver: schema.PathResolver("SendHTMLEmail"), }, }, diff --git a/plugins/source/pagerduty/resources/services/users/user_contact_methods_fetch.go b/plugins/source/pagerduty/resources/services/users/user_contact_methods_fetch.go index e539d4f9fa2542..a51e4c30ad1319 100644 --- a/plugins/source/pagerduty/resources/services/users/user_contact_methods_fetch.go +++ b/plugins/source/pagerduty/resources/services/users/user_contact_methods_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchUserContactMethods(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/users/user_notification_rules.go b/plugins/source/pagerduty/resources/services/users/user_notification_rules.go index f7425833835c0e..925a33cb2e41b4 100644 --- a/plugins/source/pagerduty/resources/services/users/user_notification_rules.go +++ b/plugins/source/pagerduty/resources/services/users/user_notification_rules.go @@ -1,7 +1,9 @@ package users import ( - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/types" ) func UserNotificationRules() *schema.Table { @@ -11,51 +13,49 @@ func UserNotificationRules() *schema.Table { Resolver: fetchUserNotificationRules, Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "type", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Type"), }, { Name: "summary", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Summary"), }, { Name: "self", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Self"), }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "start_delay_in_minutes", - Type: schema.TypeInt, + Type: arrow.PrimitiveTypes.Int64, Resolver: schema.PathResolver("StartDelayInMinutes"), }, { Name: "created_at", - Type: schema.TypeTimestamp, + Type: arrow.FixedWidthTypes.Timestamp_us, Resolver: schema.PathResolver("CreatedAt"), }, { Name: "contact_method", - Type: schema.TypeJSON, + Type: types.ExtensionTypes.JSON, Resolver: schema.PathResolver("ContactMethod"), }, { Name: "urgency", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("Urgency"), }, }, diff --git a/plugins/source/pagerduty/resources/services/users/user_notification_rules_fetch.go b/plugins/source/pagerduty/resources/services/users/user_notification_rules_fetch.go index e603808b63b106..be0d91e691cd43 100644 --- a/plugins/source/pagerduty/resources/services/users/user_notification_rules_fetch.go +++ b/plugins/source/pagerduty/resources/services/users/user_notification_rules_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchUserNotificationRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/users/users.go b/plugins/source/pagerduty/resources/services/users/users.go index 4a6f267b490c87..60f11db8c5fd89 100644 --- a/plugins/source/pagerduty/resources/services/users/users.go +++ b/plugins/source/pagerduty/resources/services/users/users.go @@ -2,8 +2,9 @@ package users import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Users() *schema.Table { @@ -14,21 +15,19 @@ func Users() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.User{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL", "AvatarURL")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "avatar_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("AvatarURL"), }, }, diff --git a/plugins/source/pagerduty/resources/services/users/users_fetch.go b/plugins/source/pagerduty/resources/services/users/users_fetch.go index 7e08291685febc..e0cfe2361fe4e9 100644 --- a/plugins/source/pagerduty/resources/services/users/users_fetch.go +++ b/plugins/source/pagerduty/resources/services/users/users_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/users/users_mock_test.go b/plugins/source/pagerduty/resources/services/users/users_mock_test.go index ee3b7de83db250..f7fb01d6f04f2a 100644 --- a/plugins/source/pagerduty/resources/services/users/users_mock_test.go +++ b/plugins/source/pagerduty/resources/services/users/users_mock_test.go @@ -6,7 +6,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/plugins/source/pagerduty/resources/services/vendors/vendors.go b/plugins/source/pagerduty/resources/services/vendors/vendors.go index 3c914073685c34..2b87dee0f0a561 100644 --- a/plugins/source/pagerduty/resources/services/vendors/vendors.go +++ b/plugins/source/pagerduty/resources/services/vendors/vendors.go @@ -2,8 +2,9 @@ package vendors import ( "github.com/PagerDuty/go-pagerduty" - "github.com/cloudquery/plugin-sdk/v2/schema" - "github.com/cloudquery/plugin-sdk/v2/transformers" + "github.com/apache/arrow/go/v13/arrow" + "github.com/cloudquery/plugin-sdk/v3/schema" + "github.com/cloudquery/plugin-sdk/v3/transformers" ) func Vendors() *schema.Table { @@ -14,36 +15,34 @@ func Vendors() *schema.Table { Transform: transformers.TransformWithStruct(&pagerduty.Vendor{}, transformers.WithUnwrapAllEmbeddedStructs(), transformers.WithSkipFields("HTMLURL", "LogoURL", "WebsiteURL", "ThumbnailURL", "IsPDCEF")), Columns: []schema.Column{ { - Name: "id", - Type: schema.TypeString, - Resolver: schema.PathResolver("ID"), - CreationOptions: schema.ColumnCreationOptions{ - PrimaryKey: true, - }, + Name: "id", + Type: arrow.BinaryTypes.String, + Resolver: schema.PathResolver("ID"), + PrimaryKey: true, }, { Name: "html_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("HTMLURL"), }, { Name: "logo_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("LogoURL"), }, { Name: "website_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("WebsiteURL"), }, { Name: "thumbnail_url", - Type: schema.TypeString, + Type: arrow.BinaryTypes.String, Resolver: schema.PathResolver("ThumbnailURL"), }, { Name: "is_pd_cef", - Type: schema.TypeBool, + Type: arrow.FixedWidthTypes.Boolean, Resolver: schema.PathResolver("IsPDCEF"), }, }, diff --git a/plugins/source/pagerduty/resources/services/vendors/vendors_fetch.go b/plugins/source/pagerduty/resources/services/vendors/vendors_fetch.go index 1858f871e66b00..f8bc4629df9b1b 100644 --- a/plugins/source/pagerduty/resources/services/vendors/vendors_fetch.go +++ b/plugins/source/pagerduty/resources/services/vendors/vendors_fetch.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/schema" + "github.com/cloudquery/plugin-sdk/v3/schema" ) func fetchVendors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { diff --git a/plugins/source/pagerduty/resources/services/vendors/vendors_mock_test.go b/plugins/source/pagerduty/resources/services/vendors/vendors_mock_test.go index ec6feb5aa294f6..1b0a712ebd2bb0 100644 --- a/plugins/source/pagerduty/resources/services/vendors/vendors_mock_test.go +++ b/plugins/source/pagerduty/resources/services/vendors/vendors_mock_test.go @@ -5,7 +5,7 @@ import ( "github.com/PagerDuty/go-pagerduty" "github.com/cloudquery/cloudquery/plugins/source/pagerduty/client" - "github.com/cloudquery/plugin-sdk/v2/faker" + "github.com/cloudquery/plugin-sdk/v3/faker" ) func buildMockHttpClient() *client.MockHttpClient { diff --git a/website/tables/pagerduty/pagerduty_addons.md b/website/tables/pagerduty/pagerduty_addons.md index 7e6453378da74d..0cf464ca1878fa 100644 --- a/website/tables/pagerduty/pagerduty_addons.md +++ b/website/tables/pagerduty/pagerduty_addons.md @@ -10,15 +10,15 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|type|String| -|summary|String| -|self|String| -|html_url|String| -|name|String| -|src|String| -|services|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|html_url|utf8| +|name|utf8| +|src|utf8| +|services|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_business_services.md b/website/tables/pagerduty/pagerduty_business_services.md index 0d10169ecf8633..27b5a2e283ff71 100644 --- a/website/tables/pagerduty/pagerduty_business_services.md +++ b/website/tables/pagerduty/pagerduty_business_services.md @@ -10,17 +10,17 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|dependencies|JSON| -|id (PK)|String| -|html_url|String| -|name|String| -|type|String| -|summary|String| -|self|String| -|point_of_contact|String| -|description|String| -|team|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|dependencies|json| +|id (PK)|utf8| +|html_url|utf8| +|name|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|point_of_contact|utf8| +|description|utf8| +|team|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_escalation_policies.md b/website/tables/pagerduty/pagerduty_escalation_policies.md index d8effb0ad6e33b..85af10bd91e1c2 100644 --- a/website/tables/pagerduty/pagerduty_escalation_policies.md +++ b/website/tables/pagerduty/pagerduty_escalation_policies.md @@ -10,19 +10,19 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|escalation_rules|JSON| -|services|JSON| -|num_loops|Int| -|teams|JSON| -|description|String| -|on_call_handoff_notifications|String| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|escalation_rules|json| +|services|json| +|num_loops|int64| +|teams|json| +|description|utf8| +|on_call_handoff_notifications|utf8| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_extension_schemas.md b/website/tables/pagerduty/pagerduty_extension_schemas.md index 662dcadc5997a7..0f992552e6e423 100644 --- a/website/tables/pagerduty/pagerduty_extension_schemas.md +++ b/website/tables/pagerduty/pagerduty_extension_schemas.md @@ -10,20 +10,20 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|icon_url|String| -|logo_url|String| -|guide_url|String| -|url|String| -|type|String| -|summary|String| -|self|String| -|label|String| -|key|String| -|description|String| -|send_types|StringArray| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|icon_url|utf8| +|logo_url|utf8| +|guide_url|utf8| +|url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|label|utf8| +|key|utf8| +|description|utf8| +|send_types|list| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_extensions.md b/website/tables/pagerduty/pagerduty_extensions.md index ecb95e8e562239..5a6c11a7b6fd3c 100644 --- a/website/tables/pagerduty/pagerduty_extensions.md +++ b/website/tables/pagerduty/pagerduty_extensions.md @@ -10,17 +10,17 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|endpoint_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|extension_objects|JSON| -|extension_schema|JSON| -|temporarily_disabled|Bool| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|endpoint_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|extension_objects|json| +|extension_schema|json| +|temporarily_disabled|bool| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_incident_alerts.md b/website/tables/pagerduty/pagerduty_incident_alerts.md index 17d774da428e08..31624f3c59474a 100644 --- a/website/tables/pagerduty/pagerduty_incident_alerts.md +++ b/website/tables/pagerduty/pagerduty_incident_alerts.md @@ -14,21 +14,21 @@ This table depends on [pagerduty_incidents](pagerduty_incidents). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|created_at|Timestamp| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|status|String| -|alert_key|String| -|service|JSON| -|body|JSON| -|incident|JSON| -|suppressed|Bool| -|severity|String| -|integration|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|created_at|timestamp[us, tz=UTC]| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|status|utf8| +|alert_key|utf8| +|service|json| +|body|json| +|incident|json| +|suppressed|bool| +|severity|utf8| +|integration|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_incident_log_entries.md b/website/tables/pagerduty/pagerduty_incident_log_entries.md index bdea617ba94846..63b0a9612a6a82 100644 --- a/website/tables/pagerduty/pagerduty_incident_log_entries.md +++ b/website/tables/pagerduty/pagerduty_incident_log_entries.md @@ -14,23 +14,23 @@ This table depends on [pagerduty_incidents](pagerduty_incidents). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|type|String| -|summary|String| -|self|String| -|html_url|String| -|created_at|Timestamp| -|agent|JSON| -|channel|JSON| -|teams|JSON| -|contexts|JSON| -|acknowledgement_timeout|Int| -|event_details|JSON| -|assignees|JSON| -|incident|JSON| -|service|JSON| -|user|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|html_url|utf8| +|created_at|timestamp[us, tz=UTC]| +|agent|json| +|channel|json| +|teams|json| +|contexts|json| +|acknowledgement_timeout|int64| +|event_details|json| +|assignees|json| +|incident|json| +|service|json| +|user|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_incident_notes.md b/website/tables/pagerduty/pagerduty_incident_notes.md index 53cbd652309029..a182eb89ba2819 100644 --- a/website/tables/pagerduty/pagerduty_incident_notes.md +++ b/website/tables/pagerduty/pagerduty_incident_notes.md @@ -14,11 +14,11 @@ This table depends on [pagerduty_incidents](pagerduty_incidents). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|created_at|Timestamp| -|user|JSON| -|content|String| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|created_at|timestamp[us, tz=UTC]| +|user|json| +|content|utf8| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_incidents.md b/website/tables/pagerduty/pagerduty_incidents.md index c669b0dbf794b3..27eb9412d2ac29 100644 --- a/website/tables/pagerduty/pagerduty_incidents.md +++ b/website/tables/pagerduty/pagerduty_incidents.md @@ -17,38 +17,38 @@ The following tables depend on pagerduty_incidents: | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|created_at|Timestamp| -|last_status_change_at|Timestamp| -|type|String| -|summary|String| -|self|String| -|incident_number|Int| -|title|String| -|description|String| -|pending_actions|JSON| -|incident_key|String| -|service|JSON| -|assignments|JSON| -|acknowledgements|JSON| -|last_status_change_by|JSON| -|first_trigger_log_entry|JSON| -|escalation_policy|JSON| -|teams|JSON| -|priority|JSON| -|urgency|String| -|status|String| -|resolve_reason|JSON| -|alert_counts|JSON| -|body|JSON| -|is_mergeable|Bool| -|conference_bridge|JSON| -|assigned_via|String| -|occurrence|JSON| -|incidents_responders|JSON| -|responder_requests|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|created_at|timestamp[us, tz=UTC]| +|last_status_change_at|timestamp[us, tz=UTC]| +|type|utf8| +|summary|utf8| +|self|utf8| +|incident_number|int64| +|title|utf8| +|description|utf8| +|pending_actions|json| +|incident_key|utf8| +|service|json| +|assignments|json| +|acknowledgements|json| +|last_status_change_by|json| +|first_trigger_log_entry|json| +|escalation_policy|json| +|teams|json| +|priority|json| +|urgency|utf8| +|status|utf8| +|resolve_reason|json| +|alert_counts|json| +|body|json| +|is_mergeable|bool| +|conference_bridge|json| +|assigned_via|utf8| +|occurrence|json| +|incidents_responders|json| +|responder_requests|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_maintenance_windows.md b/website/tables/pagerduty/pagerduty_maintenance_windows.md index fb0757a834ef1b..57802c9d01853b 100644 --- a/website/tables/pagerduty/pagerduty_maintenance_windows.md +++ b/website/tables/pagerduty/pagerduty_maintenance_windows.md @@ -10,19 +10,19 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|start_time|Timestamp| -|end_time|Timestamp| -|type|String| -|summary|String| -|self|String| -|sequence_number|Int| -|description|String| -|services|JSON| -|teams|JSON| -|created_by|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|start_time|timestamp[us, tz=UTC]| +|end_time|timestamp[us, tz=UTC]| +|type|utf8| +|summary|utf8| +|self|utf8| +|sequence_number|int64| +|description|utf8| +|services|json| +|teams|json| +|created_by|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_priorities.md b/website/tables/pagerduty/pagerduty_priorities.md index 0455782edef853..842ad3bfc4f839 100644 --- a/website/tables/pagerduty/pagerduty_priorities.md +++ b/website/tables/pagerduty/pagerduty_priorities.md @@ -10,14 +10,14 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|description|String| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|description|utf8| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_ruleset_rules.md b/website/tables/pagerduty/pagerduty_ruleset_rules.md index 73ad9a79924d15..1ba1b28ff4d649 100644 --- a/website/tables/pagerduty/pagerduty_ruleset_rules.md +++ b/website/tables/pagerduty/pagerduty_ruleset_rules.md @@ -14,16 +14,16 @@ This table depends on [pagerduty_rulesets](pagerduty_rulesets). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|self|String| -|position|Int| -|disabled|Bool| -|conditions|JSON| -|actions|JSON| -|ruleset|JSON| -|catch_all|Bool| -|time_frame|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|self|utf8| +|position|int64| +|disabled|bool| +|conditions|json| +|actions|json| +|ruleset|json| +|catch_all|bool| +|time_frame|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_rulesets.md b/website/tables/pagerduty/pagerduty_rulesets.md index a4a81b4905e78b..b6c328cc8dea7a 100644 --- a/website/tables/pagerduty/pagerduty_rulesets.md +++ b/website/tables/pagerduty/pagerduty_rulesets.md @@ -15,17 +15,17 @@ The following tables depend on pagerduty_rulesets: | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|created_at|Timestamp| -|name|String| -|type|String| -|self|String| -|routing_keys|StringArray| -|creator|JSON| -|updated_at|String| -|updater|JSON| -|team|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|created_at|timestamp[us, tz=UTC]| +|name|utf8| +|type|utf8| +|self|utf8| +|routing_keys|list| +|creator|json| +|updated_at|utf8| +|updater|json| +|team|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_schedules.md b/website/tables/pagerduty/pagerduty_schedules.md index 19826a9e25acfa..15176f49fca2b1 100644 --- a/website/tables/pagerduty/pagerduty_schedules.md +++ b/website/tables/pagerduty/pagerduty_schedules.md @@ -10,21 +10,21 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|time_zone|String| -|description|String| -|escalation_policies|JSON| -|users|JSON| -|teams|JSON| -|schedule_layers|JSON| -|override_subschedule|JSON| -|final_schedule|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|time_zone|utf8| +|description|utf8| +|escalation_policies|json| +|users|json| +|teams|json| +|schedule_layers|json| +|override_subschedule|json| +|final_schedule|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_service_rules.md b/website/tables/pagerduty/pagerduty_service_rules.md index e70cd79540026d..293da52b23a54a 100644 --- a/website/tables/pagerduty/pagerduty_service_rules.md +++ b/website/tables/pagerduty/pagerduty_service_rules.md @@ -14,14 +14,14 @@ This table depends on [pagerduty_services](pagerduty_services). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|self|String| -|disabled|Bool| -|conditions|JSON| -|time_frame|JSON| -|position|Int| -|actions|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|self|utf8| +|disabled|bool| +|conditions|json| +|time_frame|json| +|position|int64| +|actions|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_services.md b/website/tables/pagerduty/pagerduty_services.md index 8421d2d2124e2e..67f6c8fa06a460 100644 --- a/website/tables/pagerduty/pagerduty_services.md +++ b/website/tables/pagerduty/pagerduty_services.md @@ -15,32 +15,32 @@ The following tables depend on pagerduty_services: | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|dependencies|JSON| -|id (PK)|String| -|html_url|String| -|created_at|Timestamp| -|last_incident_timestamp|Timestamp| -|type|String| -|summary|String| -|self|String| -|name|String| -|description|String| -|auto_resolve_timeout|Int| -|acknowledgement_timeout|Int| -|status|String| -|integrations|JSON| -|escalation_policy|JSON| -|teams|JSON| -|incident_urgency_rule|JSON| -|support_hours|JSON| -|scheduled_actions|JSON| -|alert_creation|String| -|alert_grouping|String| -|alert_grouping_timeout|Int| -|alert_grouping_parameters|JSON| -|response_play|JSON| -|addons|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|dependencies|json| +|id (PK)|utf8| +|html_url|utf8| +|created_at|timestamp[us, tz=UTC]| +|last_incident_timestamp|timestamp[us, tz=UTC]| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|description|utf8| +|auto_resolve_timeout|int64| +|acknowledgement_timeout|int64| +|status|utf8| +|integrations|json| +|escalation_policy|json| +|teams|json| +|incident_urgency_rule|json| +|support_hours|json| +|scheduled_actions|json| +|alert_creation|utf8| +|alert_grouping|utf8| +|alert_grouping_timeout|int64| +|alert_grouping_parameters|json| +|response_play|json| +|addons|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_tags.md b/website/tables/pagerduty/pagerduty_tags.md index fed9003f3d462a..69150a1ce9c756 100644 --- a/website/tables/pagerduty/pagerduty_tags.md +++ b/website/tables/pagerduty/pagerduty_tags.md @@ -10,13 +10,13 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|label|String| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|label|utf8| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_teams.md b/website/tables/pagerduty/pagerduty_teams.md index 9d0c1dcdf7f5c8..3879abddf11355 100644 --- a/website/tables/pagerduty/pagerduty_teams.md +++ b/website/tables/pagerduty/pagerduty_teams.md @@ -10,16 +10,16 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|members|JSON| -|id (PK)|String| -|html_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|description|String| -|parent|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|members|json| +|id (PK)|utf8| +|html_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|description|utf8| +|parent|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_user_contact_methods.md b/website/tables/pagerduty/pagerduty_user_contact_methods.md index 5e2f3064a4c3cd..fa346f8366a857 100644 --- a/website/tables/pagerduty/pagerduty_user_contact_methods.md +++ b/website/tables/pagerduty/pagerduty_user_contact_methods.md @@ -14,19 +14,19 @@ This table depends on [pagerduty_users](pagerduty_users). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|send_html_email|Bool| -|type|String| -|summary|String| -|self|String| -|label|String| -|address|String| -|send_short_email|Bool| -|blacklisted|Bool| -|country_code|Int| -|enabled|Bool| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|send_html_email|bool| +|type|utf8| +|summary|utf8| +|self|utf8| +|label|utf8| +|address|utf8| +|send_short_email|bool| +|blacklisted|bool| +|country_code|int64| +|enabled|bool| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_user_notification_rules.md b/website/tables/pagerduty/pagerduty_user_notification_rules.md index 24e30ba8b707a7..4635e3a3650ac9 100644 --- a/website/tables/pagerduty/pagerduty_user_notification_rules.md +++ b/website/tables/pagerduty/pagerduty_user_notification_rules.md @@ -14,16 +14,16 @@ This table depends on [pagerduty_users](pagerduty_users). | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|type|String| -|summary|String| -|self|String| -|html_url|String| -|start_delay_in_minutes|Int| -|created_at|Timestamp| -|contact_method|JSON| -|urgency|String| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|html_url|utf8| +|start_delay_in_minutes|int64| +|created_at|timestamp[us, tz=UTC]| +|contact_method|json| +|urgency|utf8| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_users.md b/website/tables/pagerduty/pagerduty_users.md index 3f9fb28ba0a7f2..dc6d3a475ea965 100644 --- a/website/tables/pagerduty/pagerduty_users.md +++ b/website/tables/pagerduty/pagerduty_users.md @@ -16,24 +16,24 @@ The following tables depend on pagerduty_users: | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|avatar_url|String| -|type|String| -|summary|String| -|self|String| -|name|String| -|email|String| -|time_zone|String| -|color|String| -|role|String| -|description|String| -|invitation_sent|Bool| -|contact_methods|JSON| -|notification_rules|JSON| -|job_title|String| -|teams|JSON| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|avatar_url|utf8| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|email|utf8| +|time_zone|utf8| +|color|utf8| +|role|utf8| +|description|utf8| +|invitation_sent|bool| +|contact_methods|json| +|notification_rules|json| +|job_title|utf8| +|teams|json| \ No newline at end of file diff --git a/website/tables/pagerduty/pagerduty_vendors.md b/website/tables/pagerduty/pagerduty_vendors.md index f3ef4f47bf317c..6048cfe1b88447 100644 --- a/website/tables/pagerduty/pagerduty_vendors.md +++ b/website/tables/pagerduty/pagerduty_vendors.md @@ -10,24 +10,24 @@ The primary key for this table is **id**. | Name | Type | | ------------- | ------------- | -|_cq_source_name|String| -|_cq_sync_time|Timestamp| -|_cq_id|UUID| -|_cq_parent_id|UUID| -|id (PK)|String| -|html_url|String| -|logo_url|String| -|website_url|String| -|thumbnail_url|String| -|is_pd_cef|Bool| -|type|String| -|summary|String| -|self|String| -|name|String| -|long_name|String| -|description|String| -|connectable|Bool| -|generic_service_type|String| -|integration_guide_url|String| -|alert_creation_default|String| -|alert_creation_editable|Bool| \ No newline at end of file +|_cq_source_name|utf8| +|_cq_sync_time|timestamp[us, tz=UTC]| +|_cq_id|uuid| +|_cq_parent_id|uuid| +|id (PK)|utf8| +|html_url|utf8| +|logo_url|utf8| +|website_url|utf8| +|thumbnail_url|utf8| +|is_pd_cef|bool| +|type|utf8| +|summary|utf8| +|self|utf8| +|name|utf8| +|long_name|utf8| +|description|utf8| +|connectable|bool| +|generic_service_type|utf8| +|integration_guide_url|utf8| +|alert_creation_default|utf8| +|alert_creation_editable|bool| \ No newline at end of file