From 46fb7e4bfb26923229810cb44a8cb28f39713405 Mon Sep 17 00:00:00 2001 From: Julia Zolotarev Date: Thu, 14 Nov 2024 14:34:39 -0500 Subject: [PATCH] APP-15944 - Regen client and tests after collections were removed --- .../TestInlineRuleInstance_Basic.yaml | 64 +++++----- .../TestInlineRuleInstance_BasicImport.yaml | 32 ++--- .../TestReferencedQuestionRule_Basic.yaml | 112 +++++++++--------- jupiterone/internal/client/generated.go | 16 --- 4 files changed, 104 insertions(+), 120 deletions(-) diff --git a/jupiterone/cassettes/TestInlineRuleInstance_Basic.yaml b/jupiterone/cassettes/TestInlineRuleInstance_Basic.yaml index 065e221..48189a2 100644 --- a/jupiterone/cassettes/TestInlineRuleInstance_Basic.yaml +++ b/jupiterone/cassettes/TestInlineRuleInstance_Basic.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1329 + content_length: 1311 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation CreateInlineQuestionRuleInstance ($instance: CreateInlineQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createInlineQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\tlabels {\n\t\t\tlabelName\n\t\t\tlabelValue\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"remediationSteps":"","collectionId":"","labels":null,"j1Internal":false}},"operationName":"CreateInlineQuestionRuleInstance"}' + body: '{"query":"\nmutation CreateInlineQuestionRuleInstance ($instance: CreateInlineQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createInlineQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\tlabels {\n\t\t\tlabelName\n\t\t\tlabelValue\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"remediationSteps":"","labels":null,"j1Internal":false}},"operationName":"CreateInlineQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -30,7 +30,7 @@ interactions: content_length: 635 uncompressed: false body: | - {"data":{"createQuestionRuleInstance":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762","version":1,"specVersion":1,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"e21cb9a9-4b30-4eb2-b4ae-b7083ef4f1be"},{"type":"CREATE_ALERT","id":"889eb7b6-bcd5-4c8f-a046-86d90f5aa210"}]}],"labels":[]}}} + {"data":{"createQuestionRuleInstance":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3","version":1,"specVersion":1,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"3aded5a7-3b0b-4931-b7ab-8c41eaad9edb"},{"type":"CREATE_ALERT","id":"58329228-29c4-4dcb-8a45-2cae42fad241"}]}],"labels":[]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -78,7 +78,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 5.932296042s + duration: 914.116375ms - id: 1 request: proto: HTTP/1.1 @@ -87,17 +87,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -108,7 +108,7 @@ interactions: content_length: 976 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"e21cb9a9-4b30-4eb2-b4ae-b7083ef4f1be","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"889eb7b6-bcd5-4c8f-a046-86d90f5aa210"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"3aded5a7-3b0b-4931-b7ab-8c41eaad9edb","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"58329228-29c4-4dcb-8a45-2cae42fad241"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -156,7 +156,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 168.647375ms + duration: 197.93925ms - id: 2 request: proto: HTTP/1.1 @@ -165,17 +165,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -186,7 +186,7 @@ interactions: content_length: 976 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"e21cb9a9-4b30-4eb2-b4ae-b7083ef4f1be","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"889eb7b6-bcd5-4c8f-a046-86d90f5aa210"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"3aded5a7-3b0b-4931-b7ab-8c41eaad9edb","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"58329228-29c4-4dcb-8a45-2cae42fad241"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -234,26 +234,26 @@ interactions: - "0" status: 200 OK code: 200 - duration: 192.829833ms + duration: 178.562958ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1073 + content_length: 1055 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation UpdateInlineQuestionRuleInstance ($instance: UpdateInlineQuestionRuleInstanceInput!) {\n\tupdateInlineQuestionRuleInstance(instance: $instance) {\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762","version":1,"state":{"actions":null},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"collectionId":"","labels":null}},"operationName":"UpdateInlineQuestionRuleInstance"}' + body: '{"query":"\nmutation UpdateInlineQuestionRuleInstance ($instance: UpdateInlineQuestionRuleInstanceInput!) {\n\tupdateInlineQuestionRuleInstance(instance: $instance) {\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"id":"a08a36f9-8478-4c9e-a786-98aade54cec3","version":1,"state":{"actions":null},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"labels":null}},"operationName":"UpdateInlineQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -264,7 +264,7 @@ interactions: content_length: 304 uncompressed: false body: | - {"data":{"updateInlineQuestionRuleInstance":{"version":2,"specVersion":1,"operations":[{"when":null,"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"dd51761b-5da6-474f-8a57-2fd9cbe57fce"},{"type":"CREATE_ALERT","id":"beb55cd0-3ca8-4223-8230-fae3071f1711"}]}]}}} + {"data":{"updateInlineQuestionRuleInstance":{"version":2,"specVersion":1,"operations":[{"when":null,"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"06779bbb-1558-4346-bba1-c8c5f5af9b92"},{"type":"CREATE_ALERT","id":"158c2ab1-65d5-47d0-9731-b029d223424d"}]}]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -312,7 +312,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 466.432042ms + duration: 607.696375ms - id: 4 request: proto: HTTP/1.1 @@ -321,17 +321,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -342,7 +342,7 @@ interactions: content_length: 903 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":2,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":null,"actions":[{"targetValue":"HIGH","id":"dd51761b-5da6-474f-8a57-2fd9cbe57fce","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"beb55cd0-3ca8-4223-8230-fae3071f1711"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":2,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":true,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[{"when":null,"actions":[{"targetValue":"HIGH","id":"06779bbb-1558-4346-bba1-c8c5f5af9b92","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"158c2ab1-65d5-47d0-9731-b029d223424d"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -390,7 +390,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 176.50625ms + duration: 214.80375ms - id: 5 request: proto: HTTP/1.1 @@ -399,17 +399,17 @@ interactions: content_length: 200 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762"},"operationName":"DeleteRuleInstance"}' + body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3"},"operationName":"DeleteRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -420,7 +420,7 @@ interactions: content_length: 78 uncompressed: false body: | - {"data":{"deleteRuleInstance":{"id":"5af7b3fe-de85-4c22-8f35-1b795e65f762"}}} + {"data":{"deleteRuleInstance":{"id":"a08a36f9-8478-4c9e-a786-98aade54cec3"}}} headers: Access-Control-Allow-Credentials: - "true" @@ -468,4 +468,4 @@ interactions: - "0" status: 200 OK code: 200 - duration: 202.818416ms + duration: 200.901917ms diff --git a/jupiterone/cassettes/TestInlineRuleInstance_BasicImport.yaml b/jupiterone/cassettes/TestInlineRuleInstance_BasicImport.yaml index 88db677..8237d46 100644 --- a/jupiterone/cassettes/TestInlineRuleInstance_BasicImport.yaml +++ b/jupiterone/cassettes/TestInlineRuleInstance_BasicImport.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1132 + content_length: 1114 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation CreateInlineQuestionRuleInstance ($instance: CreateInlineQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createInlineQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\tlabels {\n\t\t\tlabelName\n\t\t\tlabelValue\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"test","specVersion":1,"operations":[],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_DAY","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","collectionId":"","labels":null,"j1Internal":false}},"operationName":"CreateInlineQuestionRuleInstance"}' + body: '{"query":"\nmutation CreateInlineQuestionRuleInstance ($instance: CreateInlineQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createInlineQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\tlabels {\n\t\t\tlabelName\n\t\t\tlabelValue\n\t\t}\n\t}\n}\n","variables":{"instance":{"question":{"queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","name":"query0","version":"v1","includeDeleted":false}]},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"test","specVersion":1,"operations":[],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_DAY","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","labels":null,"j1Internal":false}},"operationName":"CreateInlineQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -30,7 +30,7 @@ interactions: content_length: 350 uncompressed: false body: | - {"data":{"createQuestionRuleInstance":{"id":"2fbfcdd3-3dfa-4ec6-b308-7d69317398f2","version":1,"specVersion":1,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[],"labels":[]}}} + {"data":{"createQuestionRuleInstance":{"id":"3d615c75-efca-4c2c-ac1d-34a7613cb1c2","version":1,"specVersion":1,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[],"labels":[]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -78,7 +78,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 714.939333ms + duration: 804.6685ms - id: 1 request: proto: HTTP/1.1 @@ -87,17 +87,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"2fbfcdd3-3dfa-4ec6-b308-7d69317398f2"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"3d615c75-efca-4c2c-ac1d-34a7613cb1c2"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -108,7 +108,7 @@ interactions: content_length: 691 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"2fbfcdd3-3dfa-4ec6-b308-7d69317398f2","name":"tf-provider-test-rule","resourceGroupId":null,"description":"test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_DAY","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"3d615c75-efca-4c2c-ac1d-34a7613cb1c2","name":"tf-provider-test-rule","resourceGroupId":null,"description":"test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_DAY","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":null,"question":{"queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false}]},"operations":[],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -156,7 +156,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 166.679917ms + duration: 192.248166ms - id: 2 request: proto: HTTP/1.1 @@ -165,17 +165,17 @@ interactions: content_length: 200 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"2fbfcdd3-3dfa-4ec6-b308-7d69317398f2"},"operationName":"DeleteRuleInstance"}' + body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"3d615c75-efca-4c2c-ac1d-34a7613cb1c2"},"operationName":"DeleteRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -186,7 +186,7 @@ interactions: content_length: 78 uncompressed: false body: | - {"data":{"deleteRuleInstance":{"id":"2fbfcdd3-3dfa-4ec6-b308-7d69317398f2"}}} + {"data":{"deleteRuleInstance":{"id":"3d615c75-efca-4c2c-ac1d-34a7613cb1c2"}}} headers: Access-Control-Allow-Credentials: - "true" @@ -234,4 +234,4 @@ interactions: - "0" status: 200 OK code: 200 - duration: 185.454542ms + duration: 260.179875ms diff --git a/jupiterone/cassettes/TestReferencedQuestionRule_Basic.yaml b/jupiterone/cassettes/TestReferencedQuestionRule_Basic.yaml index 39d38a4..799f3c0 100644 --- a/jupiterone/cassettes/TestReferencedQuestionRule_Basic.yaml +++ b/jupiterone/cassettes/TestReferencedQuestionRule_Basic.yaml @@ -9,7 +9,7 @@ interactions: content_length: 601 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" body: '{"query":"\nmutation CreateQuestion ($question: CreateQuestionInput!) {\n\tcreateQuestion(question: $question) {\n\t\tid\n\t}\n}\n","variables":{"question":{"title":"tf-provider-test-rule","name":"","tags":["tf_acc:1","tf_acc:2"],"description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","widgetId":"","queries":[{"query":"Find DataStore with classification=(''critical'' or ''sensitive'' or ''confidential'' or ''restricted'') and encrypted!=true","version":"v1","name":"query0","resultsAre":"INFORMATIVE","includeDeleted":false}],"compliance":[],"variables":null}},"operationName":"CreateQuestion"}' @@ -19,7 +19,7 @@ interactions: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -30,7 +30,7 @@ interactions: content_length: 74 uncompressed: false body: | - {"data":{"createQuestion":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"}}} + {"data":{"createQuestion":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"}}} headers: Access-Control-Allow-Credentials: - "true" @@ -78,26 +78,26 @@ interactions: - "0" status: 200 OK code: 200 - duration: 2.421468417s + duration: 705.3565ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 996 + content_length: 978 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation CreateReferencedQuestionRuleInstance ($instance: CreateReferencedQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createReferencedQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"questionId":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","collectionId":"","labels":null}},"operationName":"CreateReferencedQuestionRuleInstance"}' + body: '{"query":"\nmutation CreateReferencedQuestionRuleInstance ($instance: CreateReferencedQuestionRuleInstanceInput!) {\n\tcreateQuestionRuleInstance: createReferencedQuestionRuleInstance(instance: $instance) {\n\t\tid\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"questionId":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","labels":null}},"operationName":"CreateReferencedQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -108,7 +108,7 @@ interactions: content_length: 415 uncompressed: false body: | - {"data":{"createQuestionRuleInstance":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3","version":1,"specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"1c35d201-6cfe-40cf-8a40-85572d260f4a"},{"type":"CREATE_ALERT","id":"94ad2b7a-44a0-402d-86df-61490517a28f"}]}]}}} + {"data":{"createQuestionRuleInstance":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a","version":1,"specVersion":1,"operations":[{"when":{"condition":"{{queries.query0.total != 0}}","specVersion":1,"type":"FILTER"},"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"07d2af99-05fa-4285-a37b-13c41f7320b6"},{"type":"CREATE_ALERT","id":"798089e7-20c6-4f40-bfe2-4a81a75e02cd"}]}]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -156,7 +156,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 1.455695417s + duration: 872.043583ms - id: 2 request: proto: HTTP/1.1 @@ -165,17 +165,17 @@ interactions: content_length: 434 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"},"operationName":"GetQuestionById"}' + body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"},"operationName":"GetQuestionById"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -186,7 +186,7 @@ interactions: content_length: 436 uncompressed: false body: | - {"data":{"question":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} + {"data":{"question":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -234,7 +234,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 221.946583ms + duration: 223.450042ms - id: 3 request: proto: HTTP/1.1 @@ -243,17 +243,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -264,7 +264,7 @@ interactions: content_length: 819 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","question":null,"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"1c35d201-6cfe-40cf-8a40-85572d260f4a","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"94ad2b7a-44a0-402d-86df-61490517a28f"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","question":null,"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"07d2af99-05fa-4285-a37b-13c41f7320b6","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"798089e7-20c6-4f40-bfe2-4a81a75e02cd"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -312,7 +312,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 158.445834ms + duration: 181.849917ms - id: 4 request: proto: HTTP/1.1 @@ -321,17 +321,17 @@ interactions: content_length: 434 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"},"operationName":"GetQuestionById"}' + body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"},"operationName":"GetQuestionById"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -342,7 +342,7 @@ interactions: content_length: 436 uncompressed: false body: | - {"data":{"question":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} + {"data":{"question":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -390,7 +390,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 213.585459ms + duration: 225.234833ms - id: 5 request: proto: HTTP/1.1 @@ -399,17 +399,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -420,7 +420,7 @@ interactions: content_length: 819 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","question":null,"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"1c35d201-6cfe-40cf-8a40-85572d260f4a","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"94ad2b7a-44a0-402d-86df-61490517a28f"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":1,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","question":null,"operations":[{"when":{"type":"FILTER","condition":"{{queries.query0.total != 0}}","specVersion":1},"actions":[{"targetValue":"HIGH","id":"07d2af99-05fa-4285-a37b-13c41f7320b6","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"798089e7-20c6-4f40-bfe2-4a81a75e02cd"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -468,26 +468,26 @@ interactions: - "0" status: 200 OK code: 200 - duration: 158.629458ms + duration: 186.030458ms - id: 6 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 956 + content_length: 938 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation UpdateReferencedQuestionRuleInstance ($instance: UpdateReferencedQuestionRuleInstanceInput!) {\n\tupdateReferencedQuestionRuleInstance(instance: $instance) {\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"questionId":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","id":"429574a6-687e-4fd1-aff8-ce7248d396e3","version":1,"state":{"actions":null},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","collectionId":"","labels":null}},"operationName":"UpdateReferencedQuestionRuleInstance"}' + body: '{"query":"\nmutation UpdateReferencedQuestionRuleInstance ($instance: UpdateReferencedQuestionRuleInstanceInput!) {\n\tupdateReferencedQuestionRuleInstance(instance: $instance) {\n\t\tversion\n\t\tspecVersion\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t}\n}\n","variables":{"instance":{"questionId":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","id":"c1c17486-366a-41cd-bb80-17557b54ee5a","version":1,"state":{"actions":null},"templates":null,"tags":["tf_acc:1","tf_acc:2"],"name":"tf-provider-test-rule","description":"Test","specVersion":1,"operations":[{"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY"},{"type":"CREATE_ALERT"}]}],"outputs":["queries.query0.total","alertLevel"],"pollingInterval":"ONE_WEEK","notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"remediationSteps":"","labels":null}},"operationName":"UpdateReferencedQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: content_length: 308 uncompressed: false body: | - {"data":{"updateReferencedQuestionRuleInstance":{"version":2,"specVersion":1,"operations":[{"when":null,"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"fcf33883-ac59-4de6-af47-efcb50f8ec56"},{"type":"CREATE_ALERT","id":"9c8393e9-abcd-431e-be99-b7dd831d52b3"}]}]}}} + {"data":{"updateReferencedQuestionRuleInstance":{"version":2,"specVersion":1,"operations":[{"when":null,"actions":[{"targetProperty":"alertLevel","targetValue":"HIGH","type":"SET_PROPERTY","id":"b9365810-3d95-4561-8869-97c0faf82299"},{"type":"CREATE_ALERT","id":"0be6318a-13c9-4d5f-90a3-729ce384e330"}]}]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -546,7 +546,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 611.525084ms + duration: 528.586792ms - id: 7 request: proto: HTTP/1.1 @@ -555,17 +555,17 @@ interactions: content_length: 434 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"},"operationName":"GetQuestionById"}' + body: '{"query":"\nquery GetQuestionById ($id: ID!) {\n\tquestion(id: $id) {\n\t\tid\n\t\ttitle\n\t\tdescription\n\t\tshowTrend\n\t\tpollingInterval\n\t\tqueries {\n\t\t\tname\n\t\t\tquery\n\t\t\tversion\n\t\t\tincludeDeleted\n\t\t\tresultsAre\n\t\t}\n\t\ttags\n\t\tcompliance {\n\t\t\tstandard\n\t\t\trequirements\n\t\t\tcontrols\n\t\t}\n\t}\n}\n","variables":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"},"operationName":"GetQuestionById"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -576,7 +576,7 @@ interactions: content_length: 436 uncompressed: false body: | - {"data":{"question":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} + {"data":{"question":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","title":"tf-provider-test-rule","description":"Test","showTrend":false,"pollingInterval":"ONE_DAY","queries":[{"name":"query0","query":"Find DataStore with classification=('critical' or 'sensitive' or 'confidential' or 'restricted') and encrypted!=true","version":"v1","includeDeleted":false,"resultsAre":"INFORMATIVE"}],"tags":["tf_acc:1","tf_acc:2"],"compliance":[]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -624,7 +624,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 224.390792ms + duration: 214.118ms - id: 8 request: proto: HTTP/1.1 @@ -633,17 +633,17 @@ interactions: content_length: 653 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3"},"operationName":"GetQuestionRuleInstance"}' + body: '{"query":"\nquery GetQuestionRuleInstance ($id: ID!) {\n\tquestionRuleInstance(id: $id) {\n\t\tid\n\t\tname\n\t\tresourceGroupId\n\t\tdescription\n\t\tversion\n\t\tspecVersion\n\t\tlatest\n\t\tpollingInterval\n\t\tdeleted\n\t\ttype\n\t\ttemplates\n\t\tnotifyOnFailure\n\t\ttriggerActionsOnNewEntitiesOnly\n\t\tignorePreviousResults\n\t\tquestionId\n\t\tquestion {\n\t\t\tqueries {\n\t\t\t\tname\n\t\t\t\tquery\n\t\t\t\tversion\n\t\t\t\tincludeDeleted\n\t\t\t}\n\t\t}\n\t\toperations {\n\t\t\twhen\n\t\t\tactions\n\t\t}\n\t\toutputs\n\t\ttags\n\t}\n}\n","variables":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a"},"operationName":"GetQuestionRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -654,7 +654,7 @@ interactions: content_length: 746 uncompressed: false body: | - {"data":{"questionRuleInstance":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":2,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe","question":null,"operations":[{"when":null,"actions":[{"targetValue":"HIGH","id":"fcf33883-ac59-4de6-af47-efcb50f8ec56","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"9c8393e9-abcd-431e-be99-b7dd831d52b3"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} + {"data":{"questionRuleInstance":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a","name":"tf-provider-test-rule","resourceGroupId":null,"description":"Test","version":2,"specVersion":1,"latest":true,"pollingInterval":"ONE_WEEK","deleted":false,"type":"QUESTION","templates":null,"notifyOnFailure":false,"triggerActionsOnNewEntitiesOnly":false,"ignorePreviousResults":false,"questionId":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb","question":null,"operations":[{"when":null,"actions":[{"targetValue":"HIGH","id":"b9365810-3d95-4561-8869-97c0faf82299","type":"SET_PROPERTY","targetProperty":"alertLevel"},{"type":"CREATE_ALERT","id":"0be6318a-13c9-4d5f-90a3-729ce384e330"}]}],"outputs":["queries.query0.total","alertLevel"],"tags":["tf_acc:1","tf_acc:2"]}}} headers: Access-Control-Allow-Credentials: - "true" @@ -702,7 +702,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 153.776334ms + duration: 183.338583ms - id: 9 request: proto: HTTP/1.1 @@ -711,17 +711,17 @@ interactions: content_length: 200 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3"},"operationName":"DeleteRuleInstance"}' + body: '{"query":"\nmutation DeleteRuleInstance ($id: ID!) {\n\tdeleteRuleInstance(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a"},"operationName":"DeleteRuleInstance"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -732,7 +732,7 @@ interactions: content_length: 78 uncompressed: false body: | - {"data":{"deleteRuleInstance":{"id":"429574a6-687e-4fd1-aff8-ce7248d396e3"}}} + {"data":{"deleteRuleInstance":{"id":"c1c17486-366a-41cd-bb80-17557b54ee5a"}}} headers: Access-Control-Allow-Credentials: - "true" @@ -780,7 +780,7 @@ interactions: - "0" status: 200 OK code: 200 - duration: 301.521625ms + duration: 324.022042ms - id: 10 request: proto: HTTP/1.1 @@ -789,17 +789,17 @@ interactions: content_length: 188 transfer_encoding: [] trailer: {} - host: graphql.dev.jupiterone.io + host: graphql.us.jupiterone.io remote_addr: "" request_uri: "" - body: '{"query":"\nmutation DeleteQuestion ($id: ID!) {\n\tdeleteQuestion(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"},"operationName":"DeleteQuestion"}' + body: '{"query":"\nmutation DeleteQuestion ($id: ID!) {\n\tdeleteQuestion(id: $id) {\n\t\tid\n\t}\n}\n","variables":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"},"operationName":"DeleteQuestion"}' form: {} headers: Cache-Control: - no-cache Content-Type: - application/json - url: https://graphql.dev.jupiterone.io/ + url: https://graphql.us.jupiterone.io/ method: POST response: proto: HTTP/2.0 @@ -810,7 +810,7 @@ interactions: content_length: 74 uncompressed: false body: | - {"data":{"deleteQuestion":{"id":"b07a2f3e-50f7-4a7e-b65c-92959ac9b9fe"}}} + {"data":{"deleteQuestion":{"id":"a3d09bda-b208-44a6-a4c4-9d0e3ea6e7eb"}}} headers: Access-Control-Allow-Credentials: - "true" @@ -858,4 +858,4 @@ interactions: - "0" status: 200 OK code: 200 - duration: 486.108625ms + duration: 381.381125ms diff --git a/jupiterone/internal/client/generated.go b/jupiterone/internal/client/generated.go index cecfdbe..7723703 100644 --- a/jupiterone/internal/client/generated.go +++ b/jupiterone/internal/client/generated.go @@ -499,7 +499,6 @@ type CreateInlineQuestionRuleInstanceInput struct { TriggerActionsOnNewEntitiesOnly bool `json:"triggerActionsOnNewEntitiesOnly"` IgnorePreviousResults bool `json:"ignorePreviousResults"` RemediationSteps string `json:"remediationSteps"` - CollectionId string `json:"collectionId"` ResourceGroupId string `json:"resourceGroupId,omitempty"` Labels []RuleInstanceLabelInput `json:"labels"` J1Internal bool `json:"j1Internal"` @@ -558,9 +557,6 @@ func (v *CreateInlineQuestionRuleInstanceInput) GetRemediationSteps() string { return v.RemediationSteps } -// GetCollectionId returns CreateInlineQuestionRuleInstanceInput.CollectionId, and is useful for accessing the field via an interface. -func (v *CreateInlineQuestionRuleInstanceInput) GetCollectionId() string { return v.CollectionId } - // GetResourceGroupId returns CreateInlineQuestionRuleInstanceInput.ResourceGroupId, and is useful for accessing the field via an interface. func (v *CreateInlineQuestionRuleInstanceInput) GetResourceGroupId() string { return v.ResourceGroupId } @@ -1024,7 +1020,6 @@ type CreateReferencedQuestionRuleInstanceInput struct { TriggerActionsOnNewEntitiesOnly bool `json:"triggerActionsOnNewEntitiesOnly"` IgnorePreviousResults bool `json:"ignorePreviousResults"` RemediationSteps string `json:"remediationSteps"` - CollectionId string `json:"collectionId"` ResourceGroupId string `json:"resourceGroupId,omitempty"` Labels []RuleInstanceLabelInput `json:"labels"` } @@ -1082,9 +1077,6 @@ func (v *CreateReferencedQuestionRuleInstanceInput) GetRemediationSteps() string return v.RemediationSteps } -// GetCollectionId returns CreateReferencedQuestionRuleInstanceInput.CollectionId, and is useful for accessing the field via an interface. -func (v *CreateReferencedQuestionRuleInstanceInput) GetCollectionId() string { return v.CollectionId } - // GetResourceGroupId returns CreateReferencedQuestionRuleInstanceInput.ResourceGroupId, and is useful for accessing the field via an interface. func (v *CreateReferencedQuestionRuleInstanceInput) GetResourceGroupId() string { return v.ResourceGroupId @@ -3512,7 +3504,6 @@ type UpdateInlineQuestionRuleInstanceInput struct { TriggerActionsOnNewEntitiesOnly bool `json:"triggerActionsOnNewEntitiesOnly"` IgnorePreviousResults bool `json:"ignorePreviousResults"` RemediationSteps string `json:"remediationSteps,omitempty"` - CollectionId string `json:"collectionId"` ResourceGroupId string `json:"resourceGroupId,omitempty"` Labels []RuleInstanceLabelInput `json:"labels"` } @@ -3582,9 +3573,6 @@ func (v *UpdateInlineQuestionRuleInstanceInput) GetRemediationSteps() string { return v.RemediationSteps } -// GetCollectionId returns UpdateInlineQuestionRuleInstanceInput.CollectionId, and is useful for accessing the field via an interface. -func (v *UpdateInlineQuestionRuleInstanceInput) GetCollectionId() string { return v.CollectionId } - // GetResourceGroupId returns UpdateInlineQuestionRuleInstanceInput.ResourceGroupId, and is useful for accessing the field via an interface. func (v *UpdateInlineQuestionRuleInstanceInput) GetResourceGroupId() string { return v.ResourceGroupId } @@ -3814,7 +3802,6 @@ type UpdateReferencedQuestionRuleInstanceInput struct { TriggerActionsOnNewEntitiesOnly bool `json:"triggerActionsOnNewEntitiesOnly"` IgnorePreviousResults bool `json:"ignorePreviousResults"` RemediationSteps string `json:"remediationSteps"` - CollectionId string `json:"collectionId"` ResourceGroupId string `json:"resourceGroupId,omitempty"` Labels []RuleInstanceLabelInput `json:"labels"` } @@ -3884,9 +3871,6 @@ func (v *UpdateReferencedQuestionRuleInstanceInput) GetRemediationSteps() string return v.RemediationSteps } -// GetCollectionId returns UpdateReferencedQuestionRuleInstanceInput.CollectionId, and is useful for accessing the field via an interface. -func (v *UpdateReferencedQuestionRuleInstanceInput) GetCollectionId() string { return v.CollectionId } - // GetResourceGroupId returns UpdateReferencedQuestionRuleInstanceInput.ResourceGroupId, and is useful for accessing the field via an interface. func (v *UpdateReferencedQuestionRuleInstanceInput) GetResourceGroupId() string { return v.ResourceGroupId