Skip to content

Commit a66febe

Browse files
docs: Add examples to wrapper libraries README.md (googleapis#31320)
Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
1 parent a2c892f commit a66febe

File tree

191 files changed

+1492
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+1492
-8
lines changed

google-ads-ad_manager/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/admanager.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/ads/ad_manager"
39+
40+
client = Google::Ads::AdManager.ad_break_service
41+
request = ::Google::Ads::AdManager::V1::GetAdBreakRequest.new # (request fields as keyword arguments...)
42+
response = client.get_ad_break request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-ads-marketing_platform-admin/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/marketingplatformadmin.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/ads/marketing_platform/admin"
39+
40+
client = Google::Ads::MarketingPlatform::Admin.marketingplatform_admin_service
41+
request = ::Google::Ads::MarketingPlatform::Admin::V1alpha::GetOrganizationRequest.new # (request fields as keyword arguments...)
42+
response = client.get_organization request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-analytics-admin/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ In order to use this library, you first need to go through the following steps:
3131
1. [Enable the API.](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com)
3232
1. [Set up authentication.](AUTHENTICATION.md)
3333

34+
```ruby
35+
require "google/analytics/admin"
36+
37+
client = Google::Analytics::Admin.analytics_admin_service
38+
request = ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new # (request fields as keyword arguments...)
39+
response = client.get_account request
40+
```
41+
3442
## Debug Logging
3543

3644
This library comes with opt-in Debug Logging that can help you troubleshoot

google-analytics-data/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/analytics/data"
39+
40+
client = Google::Analytics::Data.analytics_data
41+
request = ::Google::Analytics::Data::V1beta::RunReportRequest.new # (request fields as keyword arguments...)
42+
response = client.run_report request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-apps-chat/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/chat.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/apps/chat"
39+
40+
client = Google::Apps::Chat.chat_service
41+
request = ::Google::Apps::Chat::V1::CreateMessageRequest.new # (request fields as keyword arguments...)
42+
response = client.create_message request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-apps-events-subscriptions/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/workspaceevents.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/apps/events/subscriptions"
39+
40+
client = Google::Apps::Events::Subscriptions.subscriptions_service
41+
request = ::Google::Apps::Events::Subscriptions::V1::CreateSubscriptionRequest.new # (request fields as keyword arguments...)
42+
response = client.create_subscription request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-apps-meet/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ In order to use this library, you first need to go through the following steps:
3333
1. [Enable the API.](https://console.cloud.google.com/apis/library/meet.googleapis.com)
3434
1. [Set up authentication.](AUTHENTICATION.md)
3535

36+
```ruby
37+
require "google/apps/meet"
38+
39+
client = Google::Apps::Meet.spaces_service
40+
request = ::Google::Apps::Meet::V2::CreateSpaceRequest.new # (request fields as keyword arguments...)
41+
response = client.create_space request
42+
```
43+
3644
## Debug Logging
3745

3846
This library comes with opt-in Debug Logging that can help you troubleshoot

google-area120-tables/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/area120tables.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/area120/tables"
39+
40+
client = Google::Area120::Tables.tables_service
41+
request = ::Google::Area120::Tables::V1alpha1::GetTableRequest.new # (request fields as keyword arguments...)
42+
response = client.get_table request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-cloud-access_approval/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
3434
1. [Enable the API.](https://console.cloud.google.com/apis/library/accessapproval.googleapis.com)
3535
1. [Set up authentication.](AUTHENTICATION.md)
3636

37+
```ruby
38+
require "google/cloud/access_approval"
39+
40+
client = Google::Cloud::AccessApproval.access_approval
41+
request = ::Google::Cloud::AccessApproval::V1::ListApprovalRequestsMessage.new # (request fields as keyword arguments...)
42+
response = client.list_approval_requests request
43+
```
44+
3745
## Debug Logging
3846

3947
This library comes with opt-in Debug Logging that can help you troubleshoot

google-cloud-advisory_notifications/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ In order to use this library, you first need to go through the following steps:
3333
1. [Enable the API.](https://console.cloud.google.com/apis/library/advisorynotifications.googleapis.com)
3434
1. [Set up authentication.](AUTHENTICATION.md)
3535

36+
```ruby
37+
require "google/cloud/advisory_notifications"
38+
39+
client = Google::Cloud::AdvisoryNotifications.advisory_notifications_service
40+
request = ::Google::Cloud::AdvisoryNotifications::V1::ListNotificationsRequest.new # (request fields as keyword arguments...)
41+
response = client.list_notifications request
42+
```
43+
3644
## Debug Logging
3745

3846
This library comes with opt-in Debug Logging that can help you troubleshoot

0 commit comments

Comments
 (0)