README.md in google-cloud-container_analysis-0.1.0 vs README.md in google-cloud-container_analysis-0.2.0

- old
+ new

@@ -18,9 +18,21 @@ ### Installation ``` $ gem install google-cloud-container_analysis ``` +### Preview +```ruby +require "google/cloud/container_analysis" + +container_analysis_client = Google::Cloud::ContainerAnalysis.new +grafeas_client = container_analysis_client.grafeas_client +parent = Grafeas::V1::GrafeasClient.project_path "my-project" +results = grafeas_client.list_occurrences(parent).each do |occurrence| + # do something with occurrence +end +``` + ### Next Steps - Read the [Client Library Documentation][] for Container Analysis API to see other available methods on the client. - Read the [Container Analysis API Product documentation][Product Documentation] to learn more about the product and see How-to Guides.