{"action":"created","comment":{"url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/comments/194572758","pull_request_review_id":127768019,"id":194572758,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDU3Mjc1OA==","diff_hunk":"@@ -0,0 +1,50 @@\n+# frozen_string_literal: true\n+\n+require 'gcp_backend'\n+\n+module Inspec::Resources\n+  class GoogleComputeFirewalls < GcpResourceBase\n+    name 'google_compute_firewalls'\n+    desc 'Verifies settings for GCP compute firewalls in bulk'\n+\n+    example \"\n+      describe google_compute_firewalls(project: 'chef-inspec-gcp') do\n+        it { should exist }\n+        ...\n+      end\n+    \"\n+\n+    def initialize(opts = {})\n+      # Call the parent class constructor\n+      super(opts)\n+      @display_name = opts[:name]\n+      @project = opts[:project]\n+    end\n+\n+    # FilterTable setup\n+    filter_table_config = FilterTable.create\n+    filter_table_config.add_accessor(:where)\n+    filter_table_config.add_accessor(:entries)\n+    filter_table_config.add(:exist?) { |filter_table| !filter_table.entries.empty? }\n+    filter_table_config.add(:count) { |filter_table| filter_table.entries.count }\n+    filter_table_config.add(:firewall_ids, field: :firewall_id)\n+    filter_table_config.add(:firewall_names, field: :firewall_name)\n+    filter_table_config.add(:firewall_directions, field: :firewall_direction)\n+    filter_table_config.add(:colors, field: :color, type: :simple)","path":"libraries/google_compute_firewalls.rb","position":33,"original_position":33,"commit_id":"19f23cd3844ed71ffddf5f5dea84c9e95f320fab","original_commit_id":"19f23cd3844ed71ffddf5f5dea84c9e95f320fab","user":{"login":"clintoncwolfe","id":156460,"node_id":"MDQ6VXNlcjE1NjQ2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/156460?v=4","gravatar_id":"","url":"https://api.github.com/users/clintoncwolfe","html_url":"https://github.com/clintoncwolfe","followers_url":"https://api.github.com/users/clintoncwolfe/followers","following_url":"https://api.github.com/users/clintoncwolfe/following{/other_user}","gists_url":"https://api.github.com/users/clintoncwolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/clintoncwolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintoncwolfe/subscriptions","organizations_url":"https://api.github.com/users/clintoncwolfe/orgs","repos_url":"https://api.github.com/users/clintoncwolfe/repos","events_url":"https://api.github.com/users/clintoncwolfe/events{/privacy}","received_events_url":"https://api.github.com/users/clintoncwolfe/received_events","type":"User","site_admin":false},"body":"Colors appears to be copypasta.  Check your other plurals as well.","created_at":"2018-06-11T22:59:33Z","updated_at":"2018-06-11T23:04:54Z","html_url":"https://github.com/inspec/inspec-gcp/pull/18#discussion_r194572758","pull_request_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/comments/194572758"},"html":{"href":"https://github.com/inspec/inspec-gcp/pull/18#discussion_r194572758"},"pull_request":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18","id":193565740,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNTY1NzQw","html_url":"https://github.com/inspec/inspec-gcp/pull/18","diff_url":"https://github.com/inspec/inspec-gcp/pull/18.diff","patch_url":"https://github.com/inspec/inspec-gcp/pull/18.patch","issue_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/18","number":18,"state":"open","locked":false,"title":"Add plural resources","user":{"login":"skpaterson","id":18705468,"node_id":"MDQ6VXNlcjE4NzA1NDY4","avatar_url":"https://avatars0.githubusercontent.com/u/18705468?v=4","gravatar_id":"","url":"https://api.github.com/users/skpaterson","html_url":"https://github.com/skpaterson","followers_url":"https://api.github.com/users/skpaterson/followers","following_url":"https://api.github.com/users/skpaterson/following{/other_user}","gists_url":"https://api.github.com/users/skpaterson/gists{/gist_id}","starred_url":"https://api.github.com/users/skpaterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skpaterson/subscriptions","organizations_url":"https://api.github.com/users/skpaterson/orgs","repos_url":"https://api.github.com/users/skpaterson/repos","events_url":"https://api.github.com/users/skpaterson/events{/privacy}","received_events_url":"https://api.github.com/users/skpaterson/received_events","type":"User","site_admin":false},"body":"Includes resources required for upcoming blog post.","created_at":"2018-06-08T09:59:29Z","updated_at":"2018-06-11T23:04:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dc0e43985f82e32e81bb5a8d5da2dc2dafc435c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jquick","id":574637,"node_id":"MDQ6VXNlcjU3NDYzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/574637?v=4","gravatar_id":"","url":"https://api.github.com/users/jquick","html_url":"https://github.com/jquick","followers_url":"https://api.github.com/users/jquick/followers","following_url":"https://api.github.com/users/jquick/following{/other_user}","gists_url":"https://api.github.com/users/jquick/gists{/gist_id}","starred_url":"https://api.github.com/users/jquick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquick/subscriptions","organizations_url":"https://api.github.com/users/jquick/orgs","repos_url":"https://api.github.com/users/jquick/repos","events_url":"https://api.github.com/users/jquick/events{/privacy}","received_events_url":"https://api.github.com/users/jquick/received_events","type":"User","site_admin":false},{"login":"chris-rock","id":1178413,"node_id":"MDQ6VXNlcjExNzg0MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1178413?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-rock","html_url":"https://github.com/chris-rock","followers_url":"https://api.github.com/users/chris-rock/followers","following_url":"https://api.github.com/users/chris-rock/following{/other_user}","gists_url":"https://api.github.com/users/chris-rock/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rock/subscriptions","organizations_url":"https://api.github.com/users/chris-rock/orgs","repos_url":"https://api.github.com/users/chris-rock/repos","events_url":"https://api.github.com/users/chris-rock/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rock/received_events","type":"User","site_admin":false},{"login":"jerryaldrichiii","id":13783510,"node_id":"MDQ6VXNlcjEzNzgzNTEw","avatar_url":"https://avatars2.githubusercontent.com/u/13783510?v=4","gravatar_id":"","url":"https://api.github.com/users/jerryaldrichiii","html_url":"https://github.com/jerryaldrichiii","followers_url":"https://api.github.com/users/jerryaldrichiii/followers","following_url":"https://api.github.com/users/jerryaldrichiii/following{/other_user}","gists_url":"https://api.github.com/users/jerryaldrichiii/gists{/gist_id}","starred_url":"https://api.github.com/users/jerryaldrichiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerryaldrichiii/subscriptions","organizations_url":"https://api.github.com/users/jerryaldrichiii/orgs","repos_url":"https://api.github.com/users/jerryaldrichiii/repos","events_url":"https://api.github.com/users/jerryaldrichiii/events{/privacy}","received_events_url":"https://api.github.com/users/jerryaldrichiii/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18/commits","review_comments_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18/comments","review_comment_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/18/comments","statuses_url":"https://api.github.com/repos/inspec/inspec-gcp/statuses/19f23cd3844ed71ffddf5f5dea84c9e95f320fab","head":{"label":"inspec:add-plural-resources","ref":"add-plural-resources","sha":"19f23cd3844ed71ffddf5f5dea84c9e95f320fab","user":{"login":"inspec","id":39202509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjAyNTA5","avatar_url":"https://avatars3.githubusercontent.com/u/39202509?v=4","gravatar_id":"","url":"https://api.github.com/users/inspec","html_url":"https://github.com/inspec","followers_url":"https://api.github.com/users/inspec/followers","following_url":"https://api.github.com/users/inspec/following{/other_user}","gists_url":"https://api.github.com/users/inspec/gists{/gist_id}","starred_url":"https://api.github.com/users/inspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspec/subscriptions","organizations_url":"https://api.github.com/users/inspec/orgs","repos_url":"https://api.github.com/users/inspec/repos","events_url":"https://api.github.com/users/inspec/events{/privacy}","received_events_url":"https://api.github.com/users/inspec/received_events","type":"Organization","site_admin":false},"repo":{"id":129882039,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk4ODIwMzk=","name":"inspec-gcp","full_name":"inspec/inspec-gcp","owner":{"login":"inspec","id":39202509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjAyNTA5","avatar_url":"https://avatars3.githubusercontent.com/u/39202509?v=4","gravatar_id":"","url":"https://api.github.com/users/inspec","html_url":"https://github.com/inspec","followers_url":"https://api.github.com/users/inspec/followers","following_url":"https://api.github.com/users/inspec/following{/other_user}","gists_url":"https://api.github.com/users/inspec/gists{/gist_id}","starred_url":"https://api.github.com/users/inspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspec/subscriptions","organizations_url":"https://api.github.com/users/inspec/orgs","repos_url":"https://api.github.com/users/inspec/repos","events_url":"https://api.github.com/users/inspec/events{/privacy}","received_events_url":"https://api.github.com/users/inspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspec/inspec-gcp","description":"InSpec GCP (Google Cloud Platform) Resource Pack","fork":false,"url":"https://api.github.com/repos/inspec/inspec-gcp","forks_url":"https://api.github.com/repos/inspec/inspec-gcp/forks","keys_url":"https://api.github.com/repos/inspec/inspec-gcp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspec/inspec-gcp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspec/inspec-gcp/teams","hooks_url":"https://api.github.com/repos/inspec/inspec-gcp/hooks","issue_events_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/events{/number}","events_url":"https://api.github.com/repos/inspec/inspec-gcp/events","assignees_url":"https://api.github.com/repos/inspec/inspec-gcp/assignees{/user}","branches_url":"https://api.github.com/repos/inspec/inspec-gcp/branches{/branch}","tags_url":"https://api.github.com/repos/inspec/inspec-gcp/tags","blobs_url":"https://api.github.com/repos/inspec/inspec-gcp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspec/inspec-gcp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspec/inspec-gcp/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspec/inspec-gcp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspec/inspec-gcp/statuses/{sha}","languages_url":"https://api.github.com/repos/inspec/inspec-gcp/languages","stargazers_url":"https://api.github.com/repos/inspec/inspec-gcp/stargazers","contributors_url":"https://api.github.com/repos/inspec/inspec-gcp/contributors","subscribers_url":"https://api.github.com/repos/inspec/inspec-gcp/subscribers","subscription_url":"https://api.github.com/repos/inspec/inspec-gcp/subscription","commits_url":"https://api.github.com/repos/inspec/inspec-gcp/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspec/inspec-gcp/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspec/inspec-gcp/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspec/inspec-gcp/contents/{+path}","compare_url":"https://api.github.com/repos/inspec/inspec-gcp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspec/inspec-gcp/merges","archive_url":"https://api.github.com/repos/inspec/inspec-gcp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspec/inspec-gcp/downloads","issues_url":"https://api.github.com/repos/inspec/inspec-gcp/issues{/number}","pulls_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls{/number}","milestones_url":"https://api.github.com/repos/inspec/inspec-gcp/milestones{/number}","notifications_url":"https://api.github.com/repos/inspec/inspec-gcp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspec/inspec-gcp/labels{/name}","releases_url":"https://api.github.com/repos/inspec/inspec-gcp/releases{/id}","deployments_url":"https://api.github.com/repos/inspec/inspec-gcp/deployments","created_at":"2018-04-17T09:43:18Z","updated_at":"2018-06-11T22:41:15Z","pushed_at":"2018-06-11T22:41:17Z","git_url":"git://github.com/inspec/inspec-gcp.git","ssh_url":"git@github.com:inspec/inspec-gcp.git","clone_url":"https://github.com/inspec/inspec-gcp.git","svn_url":"https://github.com/inspec/inspec-gcp","homepage":"https://www.inspec.io/","size":117,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":9,"watchers":7,"default_branch":"master"}},"base":{"label":"inspec:master","ref":"master","sha":"804e06778411f01b39c186326c047c7fa20f9639","user":{"login":"inspec","id":39202509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjAyNTA5","avatar_url":"https://avatars3.githubusercontent.com/u/39202509?v=4","gravatar_id":"","url":"https://api.github.com/users/inspec","html_url":"https://github.com/inspec","followers_url":"https://api.github.com/users/inspec/followers","following_url":"https://api.github.com/users/inspec/following{/other_user}","gists_url":"https://api.github.com/users/inspec/gists{/gist_id}","starred_url":"https://api.github.com/users/inspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspec/subscriptions","organizations_url":"https://api.github.com/users/inspec/orgs","repos_url":"https://api.github.com/users/inspec/repos","events_url":"https://api.github.com/users/inspec/events{/privacy}","received_events_url":"https://api.github.com/users/inspec/received_events","type":"Organization","site_admin":false},"repo":{"id":129882039,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk4ODIwMzk=","name":"inspec-gcp","full_name":"inspec/inspec-gcp","owner":{"login":"inspec","id":39202509,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjAyNTA5","avatar_url":"https://avatars3.githubusercontent.com/u/39202509?v=4","gravatar_id":"","url":"https://api.github.com/users/inspec","html_url":"https://github.com/inspec","followers_url":"https://api.github.com/users/inspec/followers","following_url":"https://api.github.com/users/inspec/following{/other_user}","gists_url":"https://api.github.com/users/inspec/gists{/gist_id}","starred_url":"https://api.github.com/users/inspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspec/subscriptions","organizations_url":"https://api.github.com/users/inspec/orgs","repos_url":"https://api.github.com/users/inspec/repos","events_url":"https://api.github.com/users/inspec/events{/privacy}","received_events_url":"https://api.github.com/users/inspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspec/inspec-gcp","description":"InSpec GCP (Google Cloud Platform) Resource Pack","fork":false,"url":"https://api.github.com/repos/inspec/inspec-gcp","forks_url":"https://api.github.com/repos/inspec/inspec-gcp/forks","keys_url":"https://api.github.com/repos/inspec/inspec-gcp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspec/inspec-gcp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspec/inspec-gcp/teams","hooks_url":"https://api.github.com/repos/inspec/inspec-gcp/hooks","issue_events_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/events{/number}","events_url":"https://api.github.com/repos/inspec/inspec-gcp/events","assignees_url":"https://api.github.com/repos/inspec/inspec-gcp/assignees{/user}","branches_url":"https://api.github.com/repos/inspec/inspec-gcp/branches{/branch}","tags_url":"https://api.github.com/repos/inspec/inspec-gcp/tags","blobs_url":"https://api.github.com/repos/inspec/inspec-gcp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspec/inspec-gcp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspec/inspec-gcp/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspec/inspec-gcp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspec/inspec-gcp/statuses/{sha}","languages_url":"https://api.github.com/repos/inspec/inspec-gcp/languages","stargazers_url":"https://api.github.com/repos/inspec/inspec-gcp/stargazers","contributors_url":"https://api.github.com/repos/inspec/inspec-gcp/contributors","subscribers_url":"https://api.github.com/repos/inspec/inspec-gcp/subscribers","subscription_url":"https://api.github.com/repos/inspec/inspec-gcp/subscription","commits_url":"https://api.github.com/repos/inspec/inspec-gcp/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspec/inspec-gcp/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspec/inspec-gcp/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspec/inspec-gcp/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspec/inspec-gcp/contents/{+path}","compare_url":"https://api.github.com/repos/inspec/inspec-gcp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspec/inspec-gcp/merges","archive_url":"https://api.github.com/repos/inspec/inspec-gcp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspec/inspec-gcp/downloads","issues_url":"https://api.github.com/repos/inspec/inspec-gcp/issues{/number}","pulls_url":"https://api.github.com/repos/inspec/inspec-gcp/pulls{/number}","milestones_url":"https://api.github.com/repos/inspec/inspec-gcp/milestones{/number}","notifications_url":"https://api.github.com/repos/inspec/inspec-gcp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspec/inspec-gcp/labels{/name}","releases_url":"https://api.github.com/repos/inspec/inspec-gcp/releases{/id}","deployments_url":"https://api.github.com/repos/inspec/inspec-gcp/deployments","created_at":"2018-04-17T09:43:18Z","updated_at":"2018-06-11T22:41:15Z","pushed_at":"2018-06-11T22:41:17Z","git_url":"git://github.com/inspec/inspec-gcp.git","ssh_url":"git@github.com:inspec/inspec-gcp.git","clone_url":"https://github.com/inspec/inspec-gcp.git","svn_url":"https://github.com/inspec/inspec-gcp","homepage":"https://www.inspec.io/","size":117,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":9,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18"},"html":{"href":"https://github.com/inspec/inspec-gcp/pull/18"},"issue":{"href":"https://api.github.com/repos/inspec/inspec-gcp/issues/18"},"comments":{"href":"https://api.github.com/repos/inspec/inspec-gcp/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspec/inspec-gcp/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/inspec/inspec-gcp/statuses/19f23cd3844ed71ffddf5f5dea84c9e95f320fab"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"clintoncwolfe"}}