diff --git a/generators/rootly/rootly.js b/generators/rootly/rootly.js index b2aa6f428..40b82b913 100644 --- a/generators/rootly/rootly.js +++ b/generators/rootly/rootly.js @@ -6,30 +6,47 @@ const resourceTpl = require(path.join(__dirname, 'templates', 'resource.go.js')) const swaggerUrl = process.env.SWAGGER_URL || "https://rootly-heroku.s3.amazonaws.com/swagger/v1/swagger.tf.json" const excluded = [ - "alert", - "audits", - "custom_field", - "custom_field_option", - "dashboard_panel", - "errors", - "escalation_policy", - "escalation_policy_level", - "incident", - "incident_action_item", - "incident_custom_field_selection", - "incident_event", - "incident_event_functionality", - "incident_event_service", - "incident_feedback", - "incident_form_field_selection", - "incident_post_mortem", - "incident_status_page_event", - "ip_ranges", - "pulse", - "user", - "webhooks_delivery", - "workflow_runs", - "workflow_custom_field_selection", + "alert", + "alert_urgency", + "alert_group", + "audits", + "catalog", + "catalog_field", + "catalog_entity", + "catalog_entity_property", + "custom_field_option", + "custom_field", + "dashboard_panel", + "dashboard", + "errors", + "escalation_policy", + "on_call_shadows", + "escalation_policy_path", + "escalation_policy_level", + "live_call_router", + "incident_status_page_event", + "incident_action_item", + "incident_custom_field_selection", + "incident_event_functionality", + "incident_event_service", + "incident_event", + "incident_feedback", + "incident_form_field_selection", + "incident_post_mortem", + "incident", + "ip_ranges", + "post_mortem_template", + "pulse", + "retrospective_configuration", + "retrospective_process", + "retrospective_step", + "secret", + "shift", + "user", + "user_notification_rule", + "webhooks_delivery", + "workflow_runs", + "workflow_task", ] async function main() { diff --git a/go.mod b/go.mod index ffc24700e..2aa4047ea 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/GoogleCloudPlatform/terraformer -go 1.21 +go 1.22.0 + +toolchain go1.22.2 require ( cloud.google.com/go v0.112.1 // indirect @@ -155,10 +157,10 @@ require ( github.com/xanzy/go-gitlab v0.50.2 github.com/yandex-cloud/go-genproto v0.0.0-20220314102905-1acaee8ca7eb github.com/yandex-cloud/go-sdk v0.0.0-20220314105123-d0c2a928feb6 - github.com/zclconf/go-cty v1.14.4 + github.com/zclconf/go-cty v1.15.0 github.com/zorkian/go-datadog-api v2.30.0+incompatible - golang.org/x/oauth2 v0.18.0 - golang.org/x/text v0.15.0 + golang.org/x/oauth2 v0.22.0 + golang.org/x/text v0.19.0 gonum.org/v1/gonum v0.7.0 google.golang.org/api v0.169.0 google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de @@ -196,7 +198,7 @@ require ( github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect github.com/Azure/go-autorest/logger v0.2.1 // indirect github.com/Azure/go-autorest/tracing v0.6.0 // indirect - github.com/BurntSushi/toml v1.3.2 // indirect + github.com/BurntSushi/toml v1.4.0 // indirect github.com/IBM/go-sdk-core/v5 v5.10.1 // indirect github.com/Masterminds/goutils v1.1.1 // indirect github.com/agext/levenshtein v1.2.3 // indirect @@ -216,7 +218,7 @@ require ( github.com/aws/smithy-go v1.13.5 // indirect github.com/beevik/etree v1.1.0 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect - github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/bgentry/speakeasy v0.2.0 // indirect github.com/blang/semver v3.5.1+incompatible // indirect github.com/bmatcuk/doublestar v1.1.5 // indirect github.com/cenkalti/backoff/v4 v4.1.3 // indirect @@ -250,17 +252,17 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-getter v1.7.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-retryablehttp v0.7.6 // indirect + github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.0 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-sockaddr v1.0.0 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/go-version v1.7.0 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect + github.com/hashicorp/hcl/v2 v2.22.0 // indirect github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590 // indirect - github.com/hashicorp/yamux v0.1.1 // indirect - github.com/huandu/xstrings v1.4.0 // indirect + github.com/hashicorp/yamux v0.1.2 // indirect + github.com/huandu/xstrings v1.5.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/jonboulle/clockwork v0.2.2 // indirect github.com/json-iterator/go v1.1.12 // indirect @@ -304,17 +306,17 @@ require ( github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect go.mongodb.org/mongo-driver v1.7.5 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.23.0 // indirect + golang.org/x/crypto v0.28.0 // indirect golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect - golang.org/x/net v0.25.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/term v0.20.0 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.21.0 // indirect + golang.org/x/tools v0.26.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/grpc v1.64.0 // indirect - google.golang.org/protobuf v1.34.1 // indirect + google.golang.org/grpc v1.67.1 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/auth0.v5 v5.21.1 gopkg.in/go-playground/assert.v1 v1.2.1 // indirect gopkg.in/go-playground/validator.v9 v9.31.0 // indirect @@ -346,22 +348,23 @@ require ( require ( cloud.google.com/go/compute v1.25.1 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/compute/metadata v0.5.0 // indirect cloud.google.com/go/longrunning v0.5.5 // indirect + dario.cat/mergo v1.0.1 // indirect github.com/DataDog/zstd v1.5.2 // indirect github.com/Kunde21/markdownfmt/v3 v3.1.0 // indirect - github.com/Masterminds/semver/v3 v3.2.1 // indirect - github.com/Masterminds/sprig/v3 v3.2.3 // indirect + github.com/Masterminds/semver/v3 v3.3.0 // indirect + github.com/Masterminds/sprig/v3 v3.3.0 // indirect github.com/Myra-Security-GmbH/signature v1.0.0 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.2-proton // indirect + github.com/ProtonMail/go-crypto v1.1.0-beta.0-proton // indirect github.com/PuerkitoBio/purell v1.1.1 // indirect github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect + github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect github.com/buxizhizhoum/inflection v1.0.4 // indirect github.com/clbanning/mxj v1.8.4 // indirect - github.com/cloudflare/circl v1.3.8 // indirect + github.com/cloudflare/circl v1.5.0 // indirect github.com/emicklei/go-restful v2.16.0+incompatible // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect @@ -376,20 +379,20 @@ require ( github.com/hashicorp/cli v1.1.6 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/hc-install v0.6.4 // indirect + github.com/hashicorp/hc-install v0.9.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect github.com/hashicorp/terraform-json v0.22.1 // indirect - github.com/hashicorp/terraform-plugin-docs v0.19.2 // indirect - github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-docs v0.19.4 // indirect + github.com/hashicorp/terraform-plugin-go v0.24.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect - github.com/imdario/mergo v1.0.0 // indirect + github.com/imdario/mergo v1.0.1 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/manicminer/hamilton-autorest v0.2.0 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect + github.com/mattn/go-runewidth v0.0.16 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nxadm/tail v1.4.11 // indirect github.com/oapi-codegen/runtime v1.1.1 // indirect @@ -397,11 +400,11 @@ require ( github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/rootlyhq/terraform-provider-rootly v1.5.0 // indirect github.com/shopspring/decimal v1.4.0 // indirect - github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/cast v1.7.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/yuin/goldmark v1.7.1 // indirect + github.com/yuin/goldmark v1.7.8 // indirect github.com/yuin/goldmark-meta v1.1.0 // indirect go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect @@ -409,11 +412,11 @@ require ( go.opentelemetry.io/otel v1.24.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect - golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect - golang.org/x/mod v0.17.0 // indirect + golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect + golang.org/x/mod v0.21.0 // indirect golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect ) @@ -423,7 +426,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/medialive v1.24.2 github.com/aws/aws-sdk-go-v2/service/mq v1.15.1 github.com/aws/aws-sdk-go-v2/service/ssoadmin v1.16.5 - github.com/rootlyhq/terraform-provider-rootly/v2 v2.0.1 + github.com/rootlyhq/terraform-provider-rootly/v2 v2.7.1 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.392 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cbs v1.0.392 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb v1.0.392 diff --git a/go.sum b/go.sum index 7d5deed53..acc15dbb8 100644 --- a/go.sum +++ b/go.sum @@ -81,6 +81,8 @@ cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJd cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/compute/metadata v0.5.0 h1:Zr0eK8JbFv6+Wi4ilXAR8FJ3wyNdpxHKJNPos6LTZOY= +cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY= cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= @@ -202,6 +204,8 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= +dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/Azure/azure-pipeline-go v0.2.2 h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY= github.com/Azure/azure-pipeline-go v0.2.2/go.mod h1:4rQ/NZncSvGqNkkOsNpOU1tgoNuIlp9AfUH5G1tvCHc= @@ -257,6 +261,8 @@ github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4/go.mod h1:chxPXzS github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0= +github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/ChrisTrenkamp/goxpath v0.0.0-20170922090931-c385f95c6022/go.mod h1:nuWgzSkT5PnyOd+272uUmV0dnAnAn42Mk7PiQC5VzN4= github.com/DataDog/datadog-api-client-go/v2 v2.11.0 h1:7KCEQ3S90PIH1GcqFHcnwDpNfZbqa2BsiF8OYmLb4Jk= @@ -298,9 +304,13 @@ github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0 github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.3.0 h1:B8LGeaivUe71a5qox1ICM/JLl0NqZSW5CHyL+hmvYS0= +github.com/Masterminds/semver/v3 v3.3.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= +github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs= +github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/Myra-Security-GmbH/myrasec-go/v2 v2.28.0 h1:/j5vGm0MB++gzimxjR53JCB/7PApCfxdaV52nU5FTC8= @@ -318,6 +328,8 @@ github.com/PaloAltoNetworks/pango v0.8.0 h1:ABzKykGkKZSzsAMW3n2SQ3rwK+dXKDZQbQSS github.com/PaloAltoNetworks/pango v0.8.0/go.mod h1:xpwEKL6CHhniRcqKYTjIiGBzPd3QIyto3sz2ynsP1qg= github.com/ProtonMail/go-crypto v1.1.0-alpha.2-proton h1:HKz85FwoXx86kVtTvFke7rgHvq/HoloSUvW5semjFWs= github.com/ProtonMail/go-crypto v1.1.0-alpha.2-proton/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.0-beta.0-proton h1:ZGewsAoeSirbUS5cO8L0FMQA+iSop9xR1nmFYifDBPo= +github.com/ProtonMail/go-crypto v1.1.0-beta.0-proton/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/rehttp v1.0.0 h1:aJ7A7YI2lIvOxcJVeUZY4P6R7kKZtLeONjgyKGwOIu8= @@ -647,6 +659,8 @@ github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1U github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bgentry/speakeasy v0.2.0 h1:tgObeVOf8WAvtuAX6DhJ4xks4CFNwPDZiqzGqIHE51E= +github.com/bgentry/speakeasy v0.2.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932/go.mod h1:NOuUCSz6Q9T7+igc/hlvDOUdtWKryOrtFyIVABv/p7k= github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= @@ -656,6 +670,8 @@ github.com/bmatcuk/doublestar v1.1.5 h1:2bNwBOmhyFEFcoB3tGvTD5xanq+4kyOZlB8wFYbM github.com/bmatcuk/doublestar v1.1.5/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= @@ -682,6 +698,8 @@ github.com/clbanning/mxj v1.8.4/go.mod h1:BVjHeAH+rl9rs6f+QIpeRl0tfu10SXn1pUSa5P github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.3.8 h1:j+V8jJt09PoeMFIu2uh5JUyEaIHTXVOHslFoLNAKqwI= github.com/cloudflare/circl v1.3.8/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU= +github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys= +github.com/cloudflare/circl v1.5.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= github.com/cloudflare/cloudflare-go v0.13.6 h1:G6aw092fOkvkHODCxf8EHLPqHN2BVxHU4RoTFjS51xo= github.com/cloudflare/cloudflare-go v0.13.6/go.mod h1:gNGW6MkPPVLhjgaXq4vaS7WnTaQpCfl6DE1W9JuWyt8= github.com/cloudfoundry/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21 h1:tuijfIjZyjZaHq9xDUh0tNitwXshJpbLkqMOJv4H3do= @@ -1110,6 +1128,8 @@ github.com/hashicorp/go-retryablehttp v0.7.0/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-retryablehttp v0.7.6 h1:TwRYfx2z2C4cLbXmT8I5PgP/xmuqASDyiVuGYfs9GZM= github.com/hashicorp/go-retryablehttp v0.7.6/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= +github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= +github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-rootcerts v1.0.0 h1:Rqb66Oo1X/eSV1x66xbDccZjhJigjg0+e82kpwzSwCI= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= @@ -1130,6 +1150,8 @@ github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09 github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= +github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -1137,6 +1159,8 @@ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+l github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9Km8e0= github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= +github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6eLhghE= +github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= @@ -1144,6 +1168,8 @@ github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= github.com/hashicorp/hcl/v2 v2.20.1 h1:M6hgdyz7HYt1UN9e61j+qKJBqR3orTWbI1HKBJEdxtc= github.com/hashicorp/hcl/v2 v2.20.1/go.mod h1:TZDqQ4kNKCbh1iJp99FdPiUaVDDUPivbqxZulxDYqL4= +github.com/hashicorp/hcl/v2 v2.22.0 h1:hkZ3nCtqeJsDhPRFz5EA9iwcG1hNWGePOTw6oyul12M= +github.com/hashicorp/hcl/v2 v2.22.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590 h1:2yzhWGdgQUWZUCNK+AoO35V+HTsgEmcM4J9IkArh7PI= github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -1163,8 +1189,12 @@ github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7 github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= github.com/hashicorp/terraform-plugin-docs v0.19.2 h1:YjdKa1vuqt9EnPYkkrv9HnGZz175HhSJ7Vsn8yZeWus= github.com/hashicorp/terraform-plugin-docs v0.19.2/go.mod h1:gad2aP6uObFKhgNE8DR9nsEuEQnibp7il0jZYYOunWY= +github.com/hashicorp/terraform-plugin-docs v0.19.4 h1:G3Bgo7J22OMtegIgn8Cd/CaSeyEljqjH3G39w28JK4c= +github.com/hashicorp/terraform-plugin-docs v0.19.4/go.mod h1:4pLASsatTmRynVzsjEhbXZ6s7xBlUw/2Kt0zfrq8HxA= github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-go v0.24.0 h1:2WpHhginCdVhFIrWHxDEg6RBn3YaWzR2o6qUeIEat2U= +github.com/hashicorp/terraform-plugin-go v0.24.0/go.mod h1:tUQ53lAsOyYSckFGEefGC5C8BAaO0ENqzFd3bQeuYQg= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= @@ -1181,6 +1211,8 @@ github.com/hashicorp/vault v0.10.4/go.mod h1:KfSyffbKxoVyspOdlaGVjIuwLobi07qD1bA github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8= +github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns= github.com/heimweh/go-pagerduty v0.0.0-20210930203304-530eff2acdc6 h1:/D0VtHEOCdotE1vSB9XznceAjIGkUieZ4BF6VKUIqNU= github.com/heimweh/go-pagerduty v0.0.0-20210930203304-530eff2acdc6/go.mod h1:JtJGtgN0y9KOCaqFMZFaBCWskpO/KK3Ro9TwjP9ss6w= github.com/heroku/heroku-go/v5 v5.4.1 h1:J1nNnR3/571b2iUDHl+y1B3VkhKm6YOXIq9GGzQUv5s= @@ -1195,6 +1227,8 @@ github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI= +github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334 h1:VHgatEHNcBFEB7inlalqfNqw65aNkM1lGX2yt3NmbS8= github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334/go.mod h1:SK73tn/9oHe+/Y0h39VT4UCxmurVJkR5NA7kMEAOgSE= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= @@ -1332,6 +1366,8 @@ github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzp github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= +github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= +github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/mattn/go-shellwords v1.0.4/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/microsoft/azure-devops-go-api/azuredevops v1.0.0-b5 h1:YH424zrwLTlyHSH/GzLMJeu5zhYVZSx5RQxGKm1h96s= @@ -1509,6 +1545,8 @@ github.com/rootlyhq/terraform-provider-rootly v1.5.0 h1:yHm1kRsXidco46TrgKWhuS29 github.com/rootlyhq/terraform-provider-rootly v1.5.0/go.mod h1:hv8ZQh+y+Nvf2AdiQPzXy9McXuOMptET7u6xZphJ578= github.com/rootlyhq/terraform-provider-rootly/v2 v2.0.1 h1:OO59nGVQ+GpR91qkVrlRFTYFDvRu+Q6bNBn/sPdudaY= github.com/rootlyhq/terraform-provider-rootly/v2 v2.0.1/go.mod h1:bPWdTKrQdK7eePffHIBwrLkl87xTSeuQ+fcHgZkPX4g= +github.com/rootlyhq/terraform-provider-rootly/v2 v2.7.1 h1:AQUkPKMewoW06FSUhj3z9nthkdVO1DfV/ZrPbDIMWm8= +github.com/rootlyhq/terraform-provider-rootly/v2 v2.7.1/go.mod h1:pQWEK6tR8wwHvzDOG/VHigJ0ZjbwlDoutfyFrkJX31w= github.com/russellhaering/goxmldsig v1.2.0 h1:Y6GTTc9Un5hCxSzVz4UIWQ/zuVwDvzJk80guqzwx6Vg= github.com/russellhaering/goxmldsig v1.2.0/go.mod h1:gM4MDENBQf7M+V824SGfyIUVFWydB7n0KkEubVJl+Tw= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -1547,6 +1585,8 @@ github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w= +github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4= @@ -1865,6 +1905,8 @@ github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yuin/goldmark v1.7.1 h1:3bajkSilaCbjdKVsKdZjZCLBNPL9pYzrCakKaf4U49U= github.com/yuin/goldmark v1.7.1/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= +github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic= +github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc= github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= @@ -1873,6 +1915,8 @@ github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= +github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= @@ -1955,6 +1999,8 @@ golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1970,6 +2016,8 @@ golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EH golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM= golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc= +golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c h1:7dEasQXItcW1xKJ2+gg5VOiBnqWrJc+rq0DPKyvvdbY= +golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8= golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= @@ -2001,6 +2049,8 @@ golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2069,6 +2119,8 @@ golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -2100,6 +2152,8 @@ golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ= golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -2117,6 +2171,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2216,12 +2272,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2235,6 +2294,8 @@ golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -2312,6 +2373,8 @@ golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw= golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= golang.org/x/tools/cmd/cover v0.1.0-deprecated h1:Rwy+mWYz6loAF+LnG1jHG/JWMHRMMC2/1XX3Ejkx9lA= golang.org/x/tools/cmd/cover v0.1.0-deprecated/go.mod h1:hMDiIvlpN1NoVgmjLjUJE9tMHyxHjFX7RuQ+rW12mSA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -2502,10 +2565,14 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1: google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 h1:wKguEg1hsxI2/L3hUYrpo1RVi48K+uTyzKqprwLXsb8= +google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142/go.mod h1:d6be+8HhtEtucleCbxpPW9PA9XwISACu8nvpPqF0BVo= google.golang.org/genproto/googleapis/rpc v0.0.0-20240509183442-62759503f434 h1:umK/Ey0QEzurTNlsV3R+MfxHAb78HCEX/IkuR+zH4WQ= google.golang.org/genproto/googleapis/rpc v0.0.0-20240509183442-62759503f434/go.mod h1:I7Y+G38R2bu5j1aLzfFmQfTcU/WnFuqDwLZAbvKTKpM= google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 h1:Q2RxlXqh1cgzzUgV261vBO2jI5R/3DD1J2pM0nI4NhU= google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= @@ -2548,6 +2615,8 @@ google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -2566,6 +2635,8 @@ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/auth0.v5 v5.21.1 h1:aIqHBmnqaDv4eK2WSpTRsv2dEpT1jdHJPl+iwyDJNoo= gopkg.in/auth0.v5 v5.21.1/go.mod h1:k1eJq1+II4rwUlecBabE7u4igEuzKUCEZAMa11PUfQk= diff --git a/providers/rootly/form_field.go b/providers/rootly/form_field.go index e0bf48880..dd7f58a5a 100644 --- a/providers/rootly/form_field.go +++ b/providers/rootly/form_field.go @@ -47,6 +47,11 @@ func (g* FormFieldGenerator) InitResources() error { return err } g.Resources = append(g.Resources, child_form_field_option...) +child_form_field_placement, err := g.createFormFieldPlacementResources(tf_resource.InstanceState.ID) + if err != nil { + return err + } + g.Resources = append(g.Resources, child_form_field_placement...) child_form_field_position, err := g.createFormFieldPositionResources(tf_resource.InstanceState.ID) if err != nil { return err @@ -90,6 +95,16 @@ func (g *FormFieldGenerator) PostConvertHook() error { } + for i, form_field_placement := range g.Resources { + if form_field_placement.InstanceInfo.Type != "rootly_form_field_placement" { + continue + } + if form_field_placement.InstanceState.Attributes["form_field_id"] == resource.InstanceState.ID { + g.Resources[i].Item["form_field_id"] = "${" + resource.InstanceInfo.Type + "." + resource.ResourceName + ".id}" + } + } + + for i, form_field_position := range g.Resources { if form_field_position.InstanceInfo.Type != "rootly_form_field_position" { continue @@ -154,6 +169,55 @@ func (g *FormFieldGenerator) createFormFieldOptionResource(provider_resource int } +func (g *FormFieldGenerator) createFormFieldPlacementResources(parent_id string) ([]terraformutils.Resource, error) { + page_size := 50 + page_num := 1 + + client, err := g.RootlyClient() + if err != nil { + return nil, err + } + + var tf_resources []terraformutils.Resource + + for { + resources, err := func(page_size, page_num int) ([]interface{}, error) { + params := new(rootlygo.ListFormFieldPlacementsParams) + params.PageSize = &page_size + params.PageNumber = &page_num + return client.ListFormFieldPlacements(parent_id, params) + }(page_size, page_num) + + if err != nil { + return nil, err + } + + if len(resources) == 0 { + break + } + + for _, resource := range resources { + tf_resources = append(tf_resources, g.createFormFieldPlacementResource(resource)) + } + + page_num += 1 + } + + return tf_resources, nil +} + +func (g *FormFieldGenerator) createFormFieldPlacementResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.FormFieldPlacement) + return terraformutils.NewSimpleResource( + x.ID, + x.ID, + "rootly_form_field_placement", + g.ProviderName, + []string{}, + ) +} + + func (g *FormFieldGenerator) createFormFieldPositionResources(parent_id string) ([]terraformutils.Resource, error) { page_size := 50 page_num := 1 diff --git a/providers/rootly/form_set.go b/providers/rootly/form_set.go new file mode 100644 index 000000000..d0f7f1322 --- /dev/null +++ b/providers/rootly/form_set.go @@ -0,0 +1,140 @@ + +// Generated by generators/rootly/rootly.js + +package rootly + +import ( + + "github.com/GoogleCloudPlatform/terraformer/terraformutils" + "github.com/rootlyhq/terraform-provider-rootly/v2/client" + rootlygo "github.com/rootlyhq/terraform-provider-rootly/v2/schema" +) + +type FormSetGenerator struct { + RootlyService +} + +func (g* FormSetGenerator) InitResources() error { + page_size := 50 + page_num := 1 + + client, err := g.RootlyClient() + if err != nil { + return err + } + + for { + resources, err := func(page_size, page_num int) ([]interface{}, error) { + params := new(rootlygo.ListFormSetsParams) + params.PageSize = &page_size + params.PageNumber = &page_num + return client.ListFormSets(params) + }(page_size, page_num) + + if err != nil { + return err + } + + if len(resources) == 0 { + break + } + + for _, resource := range resources { + tf_resource := g.createFormSetResource(resource) + g.Resources = append(g.Resources, tf_resource) + child_form_set_condition, err := g.createFormSetConditionResources(tf_resource.InstanceState.ID) + if err != nil { + return err + } + g.Resources = append(g.Resources, child_form_set_condition...) + } + + page_num += 1 + } + + return nil +} + +func (g *FormSetGenerator) createFormSetResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.FormSet) + return terraformutils.NewSimpleResource( + x.ID, + x.Slug, + "rootly_form_set", + g.ProviderName, + []string{}, + ) +} + + +func (g *FormSetGenerator) PostConvertHook() error { + for _, resource := range g.Resources { + + if resource.InstanceInfo.Type != "rootly_form_set" { + continue + } + + + for i, form_set_condition := range g.Resources { + if form_set_condition.InstanceInfo.Type != "rootly_form_set_condition" { + continue + } + if form_set_condition.InstanceState.Attributes["form_set_id"] == resource.InstanceState.ID { + g.Resources[i].Item["form_set_id"] = "${" + resource.InstanceInfo.Type + "." + resource.ResourceName + ".id}" + } + } + + } + + return nil +} + + +func (g *FormSetGenerator) createFormSetConditionResources(parent_id string) ([]terraformutils.Resource, error) { + page_size := 50 + page_num := 1 + + client, err := g.RootlyClient() + if err != nil { + return nil, err + } + + var tf_resources []terraformutils.Resource + + for { + resources, err := func(page_size, page_num int) ([]interface{}, error) { + params := new(rootlygo.ListFormSetConditionsParams) + params.PageSize = &page_size + params.PageNumber = &page_num + return client.ListFormSetConditions(parent_id, params) + }(page_size, page_num) + + if err != nil { + return nil, err + } + + if len(resources) == 0 { + break + } + + for _, resource := range resources { + tf_resources = append(tf_resources, g.createFormSetConditionResource(resource)) + } + + page_num += 1 + } + + return tf_resources, nil +} + +func (g *FormSetGenerator) createFormSetConditionResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.FormSetCondition) + return terraformutils.NewSimpleResource( + x.ID, + x.ID, + "rootly_form_set_condition", + g.ProviderName, + []string{}, + ) +} + diff --git a/providers/rootly/heartbeat.go b/providers/rootly/heartbeat.go new file mode 100644 index 000000000..32c3c5286 --- /dev/null +++ b/providers/rootly/heartbeat.go @@ -0,0 +1,67 @@ + +// Generated by generators/rootly/rootly.js + +package rootly + +import ( + + "github.com/GoogleCloudPlatform/terraformer/terraformutils" + "github.com/rootlyhq/terraform-provider-rootly/v2/client" + rootlygo "github.com/rootlyhq/terraform-provider-rootly/v2/schema" +) + +type HeartbeatGenerator struct { + RootlyService +} + +func (g* HeartbeatGenerator) InitResources() error { + page_size := 50 + page_num := 1 + + client, err := g.RootlyClient() + if err != nil { + return err + } + + for { + resources, err := func(page_size, page_num int) ([]interface{}, error) { + params := new(rootlygo.ListHeartbeatsParams) + params.PageSize = &page_size + params.PageNumber = &page_num + return client.ListHeartbeats(params) + }(page_size, page_num) + + if err != nil { + return err + } + + if len(resources) == 0 { + break + } + + for _, resource := range resources { + tf_resource := g.createHeartbeatResource(resource) + g.Resources = append(g.Resources, tf_resource) + + } + + page_num += 1 + } + + return nil +} + +func (g *HeartbeatGenerator) createHeartbeatResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.Heartbeat) + return terraformutils.NewSimpleResource( + x.ID, + x.ID, + "rootly_heartbeat", + g.ProviderName, + []string{}, + ) +} + + + + diff --git a/providers/rootly/rootly_provider.go b/providers/rootly/rootly_provider.go index 598cc07f2..4696cb143 100644 --- a/providers/rootly/rootly_provider.go +++ b/providers/rootly/rootly_provider.go @@ -10,8 +10,8 @@ import ( type RootlyProvider struct { //nolint terraformutils.Provider - apiUrl string apiKey string + apiUrl string } func (p *RootlyProvider) Init(args []string) error { @@ -28,8 +28,8 @@ func (p *RootlyProvider) Init(args []string) error { if apiKey := os.Getenv("ROOTLY_API_TOKEN"); apiKey != "" { p.apiKey = os.Getenv("ROOTLY_API_TOKEN") } - if args[1] != "" { - p.apiKey = args[1] + if args[0] != "" { + p.apiKey = args[0] } if p.apiKey == "" { return errors.New("required API key missing") @@ -82,65 +82,31 @@ func (p *RootlyProvider) GetResourceConnections() map[string]map[string][]string "form_field_id", "id", }, }, - "rootly_form_field_position": { + "rootly_form_field_placement_condition": { + + "rootly_form_field_placement": { + "form_field_placement_id", "id", + }, + }, + "rootly_form_field_placement": { "rootly_form_field": { "form_field_id", "id", }, }, - "rootly_workflow_task_add_action_item": { + "rootly_form_field_position": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_form_field": { + "form_field_id", "id", }, }, -"rootly_workflow_task_update_action_item": { + "rootly_form_set_condition": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_form_set": { + "form_set_id", "id", }, }, -"rootly_workflow_task_add_role": { + "rootly_workflow_custom_field_selection": { "rootly_workflow_incident": { "workflow_id", "id", @@ -166,7 +132,7 @@ func (p *RootlyProvider) GetResourceConnections() map[string]map[string][]string "workflow_id", "id", }, }, -"rootly_workflow_task_add_slack_bookmark": { + "rootly_workflow_form_field_condition": { "rootly_workflow_incident": { "workflow_id", "id", @@ -192,2830 +158,104 @@ func (p *RootlyProvider) GetResourceConnections() map[string]map[string][]string "workflow_id", "id", }, }, -"rootly_workflow_task_add_team": { + "rootly_incident_permission_set_boolean": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_incident_permission_set": { + "incident_permission_set_id", "id", }, }, -"rootly_workflow_task_add_to_timeline": { + "rootly_incident_permission_set_resource": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_incident_permission_set": { + "incident_permission_set_id", "id", }, }, -"rootly_workflow_task_archive_slack_channels": { + "rootly_incident_role_task": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_incident_role": { + "incident_role_id", "id", }, }, -"rootly_workflow_task_attach_datadog_dashboards": { + "rootly_override_shift": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_schedule": { + "schedule_id", "id", }, }, -"rootly_workflow_task_auto_assign_role_opsgenie": { + "rootly_playbook_task": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_playbook": { + "playbook_id", "id", }, }, -"rootly_workflow_task_auto_assign_role_rootly": { + "rootly_schedule_rotation_active_day": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", + "rootly_schedule_rotation": { + "schedule_rotation_id", "id", }, }, -"rootly_workflow_task_auto_assign_role_pagerduty": { + "rootly_schedule_rotation_user": { - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", + "rootly_schedule_rotation": { + "schedule_rotation_id", "id", }, - - "rootly_workflow_alert": { - "workflow_id", "id", + }, + "rootly_schedule_rotation": { + + "rootly_schedule": { + "schedule_id", "id", }, - - "rootly_workflow_simple": { - "workflow_id", "id", + }, + "rootly_status_page_template": { + + "rootly_status_page": { + "status_page_id", "id", }, }, -"rootly_workflow_task_update_pagerduty_incident": { + "rootly_incident_sub_status": { - "rootly_workflow_incident": { - "workflow_id", "id", + "rootly_incident": { + "incident_id", "id", }, - - "rootly_workflow_action_item": { - "workflow_id", "id", + }, + "rootly_retrospective_process_group": { + + "rootly_retrospective_process": { + "retrospective_process_id", "id", }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", + }, + "rootly_retrospective_process_group_step": { + + "rootly_retrospective_process_group": { + "retrospective_process_group_id", "id", }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_pagerduty_status_update": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_pagertree_alert": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_pagertree_alert": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_auto_assign_role_victor_ops": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_call_people": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_airtable_table_record": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_asana_subtask": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_asana_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_confluence_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_datadog_notebook": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_dropbox_paper_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_github_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_gitlab_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_outlook_event": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_google_calendar_event": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_google_docs_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_google_calendar_event": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_sharepoint_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_google_docs_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_google_docs_permissions": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_remove_google_docs_permissions": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_quip_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_google_meeting": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_go_to_meeting": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_incident_postmortem": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_jira_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_jira_subtask": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_linear_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_linear_subtask_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_linear_issue_comment": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_microsoft_teams_meeting": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_notion_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_notion_page": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_service_now_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_shortcut_story": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_shortcut_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_trello_card": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_webex_meeting": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_zendesk_ticket": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_zendesk_jira_link": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_clickup_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_zoom_meeting": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_get_github_commits": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_get_gitlab_commits": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_get_pulses": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_get_alerts": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_http_client": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_invite_to_slack_channel_opsgenie": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_invite_to_slack_channel_rootly": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_invite_to_slack_channel_pagerduty": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_invite_to_slack_channel": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_invite_to_slack_channel_victor_ops": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_page_opsgenie_on_call_responders": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_opsgenie_alert": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_opsgenie_alert": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_opsgenie_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_page_rootly_on_call_responders": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_page_pagerduty_on_call_responders": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_page_victor_ops_on_call_responders": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_victor_ops_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_print": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_publish_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_redis_client": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_rename_slack_channel": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_change_slack_channel_privacy": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_run_command_heroku": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_email": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_dashboard_report": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_create_slack_channel": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_slack_message": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_sms": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_whatsapp_message": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_snapshot_datadog_graph": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_snapshot_grafana_dashboard": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_snapshot_looker_look": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_snapshot_new_relic_graph": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_tweet_twitter_message": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_airtable_table_record": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_asana_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_github_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_gitlab_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_incident_postmortem": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_jira_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_linear_issue": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_service_now_incident": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_shortcut_story": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_shortcut_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_slack_channel_topic": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_status": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_trello_card": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_clickup_task": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_update_zendesk_ticket": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_trigger_workflow": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, -"rootly_workflow_task_send_slack_blocks": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, - "rootly_workflow_form_field_condition": { - - "rootly_workflow_incident": { - "workflow_id", "id", - }, - - "rootly_workflow_action_item": { - "workflow_id", "id", - }, - - "rootly_workflow_post_mortem": { - "workflow_id", "id", - }, - - "rootly_workflow_pulse": { - "workflow_id", "id", - }, - - "rootly_workflow_alert": { - "workflow_id", "id", - }, - - "rootly_workflow_simple": { - "workflow_id", "id", - }, - }, - "rootly_incident_permission_set_boolean": { - - "rootly_incident_permission_set": { - "incident_permission_set_id", "id", - }, - }, - "rootly_incident_permission_set_resource": { - - "rootly_incident_permission_set": { - "incident_permission_set_id", "id", - }, - }, - "rootly_incident_role_task": { - - "rootly_incident_role": { - "incident_role_id", "id", - }, - }, - "rootly_override_shift": { - - "rootly_schedule": { - "schedule_id", "id", - }, - }, - "rootly_playbook_task": { - - "rootly_playbook": { - "playbook_id", "id", - }, - }, - "rootly_retrospective_step": { - - "rootly_retrospective_process": { - "retrospective_process_id", "id", - }, - }, - "rootly_schedule_rotation": { - - "rootly_schedule": { - "schedule_id", "id", - }, - }, - "rootly_schedule_rotation_active_day": { - - "rootly_schedule_rotation": { - "schedule_rotation_id", "id", - }, - }, - "rootly_schedule_rotation_user": { - - "rootly_schedule_rotation": { - "schedule_rotation_id", "id", - }, - }, - "rootly_status_page_template": { - - "rootly_status_page": { - "status_page_id", "id", - }, - }, - "rootly_user_notification_rule": { - - "rootly_user": { - "user_id", "id", - }, - }, - } -} + }, + } +} func (p *RootlyProvider) GetSupportedService() map[string]terraformutils.ServiceGenerator { return map[string]terraformutils.ServiceGenerator{ "authorization": &AuthorizationGenerator{}, "cause": &CauseGenerator{}, "custom_form": &CustomFormGenerator{}, - "dashboard": &DashboardGenerator{}, "environment": &EnvironmentGenerator{}, "form_field": &FormFieldGenerator{}, + "form_set": &FormSetGenerator{}, "functionality": &FunctionalityGenerator{}, "workflow_group": &WorkflowGroupGenerator{}, "workflow": &WorkflowGenerator{}, + "heartbeat": &HeartbeatGenerator{}, "incident_permission_set": &IncidentPermissionSetGenerator{}, "incident_role": &IncidentRoleGenerator{}, "incident_type": &IncidentTypeGenerator{}, "playbook": &PlaybookGenerator{}, - "post_mortem_template": &PostMortemTemplateGenerator{}, - "retrospective_configuration": &RetrospectiveConfigurationGenerator{}, - "retrospective_process": &RetrospectiveProcessGenerator{}, "role": &RoleGenerator{}, "schedule": &ScheduleGenerator{}, - "secret": &SecretGenerator{}, "service": &ServiceGenerator{}, "severity": &SeverityGenerator{}, "status_page": &StatusPageGenerator{}, "team": &TeamGenerator{}, "webhooks_endpoint": &WebhooksEndpointGenerator{}, + "sub_status": &SubStatusGenerator{}, } -} +} \ No newline at end of file diff --git a/providers/rootly/sub_status.go b/providers/rootly/sub_status.go new file mode 100644 index 000000000..312a170c2 --- /dev/null +++ b/providers/rootly/sub_status.go @@ -0,0 +1,67 @@ + +// Generated by generators/rootly/rootly.js + +package rootly + +import ( + + "github.com/GoogleCloudPlatform/terraformer/terraformutils" + "github.com/rootlyhq/terraform-provider-rootly/v2/client" + rootlygo "github.com/rootlyhq/terraform-provider-rootly/v2/schema" +) + +type SubStatusGenerator struct { + RootlyService +} + +func (g* SubStatusGenerator) InitResources() error { + page_size := 50 + page_num := 1 + + client, err := g.RootlyClient() + if err != nil { + return err + } + + for { + resources, err := func(page_size, page_num int) ([]interface{}, error) { + params := new(rootlygo.ListSubStatusesParams) + params.PageSize = &page_size + params.PageNumber = &page_num + return client.ListSubStatuses(params) + }(page_size, page_num) + + if err != nil { + return err + } + + if len(resources) == 0 { + break + } + + for _, resource := range resources { + tf_resource := g.createSubStatusResource(resource) + g.Resources = append(g.Resources, tf_resource) + + } + + page_num += 1 + } + + return nil +} + +func (g *SubStatusGenerator) createSubStatusResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.SubStatus) + return terraformutils.NewSimpleResource( + x.ID, + x.Slug, + "rootly_sub_status", + g.ProviderName, + []string{}, + ) +} + + + + diff --git a/providers/rootly/workflow.go b/providers/rootly/workflow.go index e96a694ce..fd15e7518 100644 --- a/providers/rootly/workflow.go +++ b/providers/rootly/workflow.go @@ -4,7 +4,7 @@ package rootly import ( - "regexp" + "github.com/GoogleCloudPlatform/terraformer/terraformutils" "github.com/rootlyhq/terraform-provider-rootly/v2/client" rootlygo "github.com/rootlyhq/terraform-provider-rootly/v2/schema" @@ -42,11 +42,11 @@ func (g* WorkflowGenerator) InitResources() error { for _, resource := range resources { tf_resource := g.createWorkflowResource(resource) g.Resources = append(g.Resources, tf_resource) - child_workflow_task, err := g.createWorkflowTaskResources(tf_resource.InstanceState.ID) + child_workflow_custom_field_selection, err := g.createWorkflowCustomFieldSelectionResources(tf_resource.InstanceState.ID) if err != nil { return err } - g.Resources = append(g.Resources, child_workflow_task...) + g.Resources = append(g.Resources, child_workflow_custom_field_selection...) child_workflow_form_field_condition, err := g.createWorkflowFormFieldConditionResources(tf_resource.InstanceState.ID) if err != nil { return err @@ -80,11 +80,11 @@ func (g *WorkflowGenerator) PostConvertHook() error { } - for i, workflow_task := range g.Resources { - if !regexp.MustCompile(`workflow_task`).MatchString(workflow_task.InstanceInfo.Type) { + for i, workflow_custom_field_selection := range g.Resources { + if workflow_custom_field_selection.InstanceInfo.Type != "rootly_workflow_custom_field_selection" { continue } - if workflow_task.InstanceState.Attributes["workflow_id"] == resource.InstanceState.ID { + if workflow_custom_field_selection.InstanceState.Attributes["workflow_id"] == resource.InstanceState.ID { g.Resources[i].Item["workflow_id"] = "${" + resource.InstanceInfo.Type + "." + resource.ResourceName + ".id}" } } @@ -105,7 +105,7 @@ func (g *WorkflowGenerator) PostConvertHook() error { } -func (g *WorkflowGenerator) createWorkflowTaskResources(parent_id string) ([]terraformutils.Resource, error) { +func (g *WorkflowGenerator) createWorkflowCustomFieldSelectionResources(parent_id string) ([]terraformutils.Resource, error) { page_size := 50 page_num := 1 @@ -118,10 +118,10 @@ func (g *WorkflowGenerator) createWorkflowTaskResources(parent_id string) ([]ter for { resources, err := func(page_size, page_num int) ([]interface{}, error) { - params := new(rootlygo.ListWorkflowTasksParams) + params := new(rootlygo.ListWorkflowCustomFieldSelectionsParams) params.PageSize = &page_size params.PageNumber = &page_num - return client.ListWorkflowTasks(parent_id, params) + return client.ListWorkflowCustomFieldSelections(parent_id, params) }(page_size, page_num) if err != nil { @@ -133,7 +133,7 @@ func (g *WorkflowGenerator) createWorkflowTaskResources(parent_id string) ([]ter } for _, resource := range resources { - tf_resources = append(tf_resources, g.createWorkflowTaskResource(resource)) + tf_resources = append(tf_resources, g.createWorkflowCustomFieldSelectionResource(resource)) } page_num += 1 @@ -142,12 +142,12 @@ func (g *WorkflowGenerator) createWorkflowTaskResources(parent_id string) ([]ter return tf_resources, nil } -func (g *WorkflowGenerator) createWorkflowTaskResource(provider_resource interface{}) terraformutils.Resource { - x, _ := provider_resource.(*client.WorkflowTask) +func (g *WorkflowGenerator) createWorkflowCustomFieldSelectionResource(provider_resource interface{}) terraformutils.Resource { + x, _ := provider_resource.(*client.WorkflowCustomFieldSelection) return terraformutils.NewSimpleResource( x.ID, x.ID, - "rootly_workflow_task_" + x.TaskParams["task_type"].(string), + "rootly_workflow_custom_field_selection", g.ProviderName, []string{}, )