Skip to content

Commit

Permalink
chore(samples): add and fix comments (#312)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
2 people authored and dandhlee committed Dec 2, 2022
1 parent db391dc commit 9d4cb2b
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_purge_user_event]
# Import user events into a catalog from inline source using Retail API
# Deleting user event using Retail API.
#
import google.auth
from google.cloud.retail import PurgeUserEventsRequest, UserEventServiceClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_rejoin_user_event]
# Import user events into a catalog from inline source using Retail API
# Starts a user event rejoin operation using Retail API.
#
import google.auth
from google.cloud.retail import RejoinUserEventsRequest, UserEventServiceClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_write_user_event]
# Import user events into a catalog from inline source using Retail API
# Write user event using Retail API.
#
import datetime

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# limitations under the License.

# [START retail_add_fulfillment_places]
# Adding place IDs using Retail API.
#
import datetime
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_crud_product]
# Create product in a catalog using Retail API
# Create, update, get and delete product in a catalog using Retail API.
#
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_delete_product]
# Delete product from a catalog using Retail API
# Delete product from a catalog using Retail API.
#
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# [START retail_get_product]
# Get product from a catalog using Retail API
# Get product from a catalog using Retail API.
#
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

def main(bucket_name):
# [START retail_import_products_from_gcs]

# Import products from using Retail API.
#
import time

import google.auth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# limitations under the License.

# [START retail_remove_fulfillment_places]
# Remove place IDs using Retail API.
#
import datetime
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# limitations under the License.

# [START retail_set_inventory]
# Updating inventory information using Retail API.
#
import datetime
import random
import string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

# [START retail_search_product_with_facet_spec]
# Call Retail API to search for a products in a catalog with facets.
#

import google.auth
from google.cloud.retail import SearchRequest, SearchServiceClient

Expand Down

0 comments on commit 9d4cb2b

Please sign in to comment.