{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/comments/182522533","pull_request_review_id":113334992,"id":182522533,"diff_hunk":"@@ -689,29 +689,32 @@ $ composer require google/cloud-vision\n ```php\n require 'vendor/autoload.php';\n \n-use Google\\Cloud\\Dlp\\V2beta1\\DlpServiceClient;\n-use Google\\Cloud\\Dlp\\V2beta1\\ContentItem;\n-use Google\\Cloud\\Dlp\\V2beta1\\InfoType;\n-use Google\\Cloud\\Dlp\\V2beta1\\InspectConfig;\n+use Google\\Cloud\\Dlp\\V2\\DlpServiceClient;\n+use Google\\Cloud\\Dlp\\V2\\ContentItem;\n+use Google\\Cloud\\Dlp\\V2\\InfoType;\n+use Google\\Cloud\\Dlp\\V2\\InspectConfig;\n \n $dlpServiceClient = new DlpServiceClient();\n-$name = 'EMAIL_ADDRESS';\n-$infoTypesElement = new InfoType();\n-$infoTypesElement->setName($name);\n-$infoTypes = [$infoTypesElement];\n+$infoTypesElement = new InfoType()\n+    ->setName('EMAIL_ADDRESS');\n $inspectConfig = new InspectConfig();\n-$inspectConfig->setInfoTypes($infoTypes);\n-$type = 'text/plain';\n-$value = 'My email is example@example.com.';\n-$itemsElement = new ContentItem();\n-$itemsElement->setType($type);\n-$itemsElement->setValue($value);\n-$items = [$itemsElement];\n+    ->setInfoTypes([$infoTypesElement]);","path":"README.md","position":28,"original_position":28,"commit_id":"bc05947756eface01a14309d14a9297153b6164a","original_commit_id":"bc05947756eface01a14309d14a9297153b6164a","user":{"login":"michaelbausor","id":14846209,"avatar_url":"https://avatars2.githubusercontent.com/u/14846209?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelbausor","html_url":"https://github.com/michaelbausor","followers_url":"https://api.github.com/users/michaelbausor/followers","following_url":"https://api.github.com/users/michaelbausor/following{/other_user}","gists_url":"https://api.github.com/users/michaelbausor/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbausor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbausor/subscriptions","organizations_url":"https://api.github.com/users/michaelbausor/orgs","repos_url":"https://api.github.com/users/michaelbausor/repos","events_url":"https://api.github.com/users/michaelbausor/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbausor/received_events","type":"User","site_admin":false},"body":"`;` above should be removed? And elsewhere?","created_at":"2018-04-18T18:17:26Z","updated_at":"2018-04-18T18:17:27Z","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023#discussion_r182522533","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/comments/182522533"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023#discussion_r182522533"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023","id":182561248,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/1023","number":1023,"state":"open","locked":false,"title":"Update DLP example","user":{"login":"dwsupplee","id":2079879,"avatar_url":"https://avatars2.githubusercontent.com/u/2079879?v=4","gravatar_id":"","url":"https://api.github.com/users/dwsupplee","html_url":"https://github.com/dwsupplee","followers_url":"https://api.github.com/users/dwsupplee/followers","following_url":"https://api.github.com/users/dwsupplee/following{/other_user}","gists_url":"https://api.github.com/users/dwsupplee/gists{/gist_id}","starred_url":"https://api.github.com/users/dwsupplee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwsupplee/subscriptions","organizations_url":"https://api.github.com/users/dwsupplee/orgs","repos_url":"https://api.github.com/users/dwsupplee/repos","events_url":"https://api.github.com/users/dwsupplee/events{/privacy}","received_events_url":"https://api.github.com/users/dwsupplee/received_events","type":"User","site_admin":false},"body":"Spurred by https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1022","created_at":"2018-04-18T18:14:13Z","updated_at":"2018-04-18T18:17:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8084959c751168d3ec7540a2fc82de82b68ef20c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":721750674,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/labels/api:%20dlp","name":"api: dlp","color":"f8f8f8","default":false},{"id":297069407,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/1023/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/statuses/bc05947756eface01a14309d14a9297153b6164a","head":{"label":"dwsupplee:dlp-readme-fix","ref":"dlp-readme-fix","sha":"bc05947756eface01a14309d14a9297153b6164a","user":{"login":"dwsupplee","id":2079879,"avatar_url":"https://avatars2.githubusercontent.com/u/2079879?v=4","gravatar_id":"","url":"https://api.github.com/users/dwsupplee","html_url":"https://github.com/dwsupplee","followers_url":"https://api.github.com/users/dwsupplee/followers","following_url":"https://api.github.com/users/dwsupplee/following{/other_user}","gists_url":"https://api.github.com/users/dwsupplee/gists{/gist_id}","starred_url":"https://api.github.com/users/dwsupplee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwsupplee/subscriptions","organizations_url":"https://api.github.com/users/dwsupplee/orgs","repos_url":"https://api.github.com/users/dwsupplee/repos","events_url":"https://api.github.com/users/dwsupplee/events{/privacy}","received_events_url":"https://api.github.com/users/dwsupplee/received_events","type":"User","site_admin":false},"repo":{"id":43695469,"name":"gcloud-php","full_name":"dwsupplee/gcloud-php","owner":{"login":"dwsupplee","id":2079879,"avatar_url":"https://avatars2.githubusercontent.com/u/2079879?v=4","gravatar_id":"","url":"https://api.github.com/users/dwsupplee","html_url":"https://github.com/dwsupplee","followers_url":"https://api.github.com/users/dwsupplee/followers","following_url":"https://api.github.com/users/dwsupplee/following{/other_user}","gists_url":"https://api.github.com/users/dwsupplee/gists{/gist_id}","starred_url":"https://api.github.com/users/dwsupplee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwsupplee/subscriptions","organizations_url":"https://api.github.com/users/dwsupplee/orgs","repos_url":"https://api.github.com/users/dwsupplee/repos","events_url":"https://api.github.com/users/dwsupplee/events{/privacy}","received_events_url":"https://api.github.com/users/dwsupplee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwsupplee/gcloud-php","description":"Google Cloud Client Library for PHP","fork":true,"url":"https://api.github.com/repos/dwsupplee/gcloud-php","forks_url":"https://api.github.com/repos/dwsupplee/gcloud-php/forks","keys_url":"https://api.github.com/repos/dwsupplee/gcloud-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwsupplee/gcloud-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwsupplee/gcloud-php/teams","hooks_url":"https://api.github.com/repos/dwsupplee/gcloud-php/hooks","issue_events_url":"https://api.github.com/repos/dwsupplee/gcloud-php/issues/events{/number}","events_url":"https://api.github.com/repos/dwsupplee/gcloud-php/events","assignees_url":"https://api.github.com/repos/dwsupplee/gcloud-php/assignees{/user}","branches_url":"https://api.github.com/repos/dwsupplee/gcloud-php/branches{/branch}","tags_url":"https://api.github.com/repos/dwsupplee/gcloud-php/tags","blobs_url":"https://api.github.com/repos/dwsupplee/gcloud-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwsupplee/gcloud-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwsupplee/gcloud-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwsupplee/gcloud-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwsupplee/gcloud-php/statuses/{sha}","languages_url":"https://api.github.com/repos/dwsupplee/gcloud-php/languages","stargazers_url":"https://api.github.com/repos/dwsupplee/gcloud-php/stargazers","contributors_url":"https://api.github.com/repos/dwsupplee/gcloud-php/contributors","subscribers_url":"https://api.github.com/repos/dwsupplee/gcloud-php/subscribers","subscription_url":"https://api.github.com/repos/dwsupplee/gcloud-php/subscription","commits_url":"https://api.github.com/repos/dwsupplee/gcloud-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwsupplee/gcloud-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwsupplee/gcloud-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwsupplee/gcloud-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwsupplee/gcloud-php/contents/{+path}","compare_url":"https://api.github.com/repos/dwsupplee/gcloud-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwsupplee/gcloud-php/merges","archive_url":"https://api.github.com/repos/dwsupplee/gcloud-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwsupplee/gcloud-php/downloads","issues_url":"https://api.github.com/repos/dwsupplee/gcloud-php/issues{/number}","pulls_url":"https://api.github.com/repos/dwsupplee/gcloud-php/pulls{/number}","milestones_url":"https://api.github.com/repos/dwsupplee/gcloud-php/milestones{/number}","notifications_url":"https://api.github.com/repos/dwsupplee/gcloud-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwsupplee/gcloud-php/labels{/name}","releases_url":"https://api.github.com/repos/dwsupplee/gcloud-php/releases{/id}","deployments_url":"https://api.github.com/repos/dwsupplee/gcloud-php/deployments","created_at":"2015-10-05T15:45:33Z","updated_at":"2016-05-22T22:27:43Z","pushed_at":"2018-04-18T18:13:46Z","git_url":"git://github.com/dwsupplee/gcloud-php.git","ssh_url":"git@github.com:dwsupplee/gcloud-php.git","clone_url":"https://github.com/dwsupplee/gcloud-php.git","svn_url":"https://github.com/dwsupplee/gcloud-php","homepage":null,"size":10950,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"6834308b2316fa6cb755118a4e75909880393ac8","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":43642389,"name":"google-cloud-php","full_name":"GoogleCloudPlatform/google-cloud-php","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/google-cloud-php","description":"Google Cloud Client Library for PHP","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/deployments","created_at":"2015-10-04T16:09:46Z","updated_at":"2018-04-17T16:22:11Z","pushed_at":"2018-04-18T18:14:13Z","git_url":"git://github.com/GoogleCloudPlatform/google-cloud-php.git","ssh_url":"git@github.com:GoogleCloudPlatform/google-cloud-php.git","clone_url":"https://github.com/GoogleCloudPlatform/google-cloud-php.git","svn_url":"https://github.com/GoogleCloudPlatform/google-cloud-php","homepage":"https://googlecloudplatform.github.io/google-cloud-php","size":11640,"stargazers_count":314,"watchers_count":314,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":143,"mirror_url":null,"archived":false,"open_issues_count":48,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":143,"open_issues":48,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023"},"html":{"href":"https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1023"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/1023"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/issues/1023/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/pulls/1023/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-php/statuses/bc05947756eface01a14309d14a9297153b6164a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"michaelbausor"}}