Skip to content

Commit 9df015c

Browse files
kchertenkoparthea
authored andcommitted
chore(samples): remove region tags. (#337)
* fix: remove region tags. * fix: remove region tags. * fix: add new lines to the end of files. * revert autogenerated samples. Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent a60178f commit 9df015c

24 files changed

+0
-56
lines changed

generated_samples/interactive-tutorials/events/import_user_events_big_query.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
def main(project_id, dataset_id, table_id):
23-
# [START retail_import_user_events_from_big_query]
2423
# TODO: Set project_id to your Google Cloud Platform project ID.
2524
# project_id = "my-project"
2625

@@ -98,8 +97,6 @@ def import_user_events_from_big_query():
9897

9998
import_user_events_from_big_query()
10099

101-
# [END retail_import_user_events_from_big_query]
102-
103100

104101
if __name__ == "__main__":
105102
parser = argparse.ArgumentParser()

generated_samples/interactive-tutorials/events/import_user_events_gcs.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
def main(bucket_name):
20-
# [START retail_import_user_events_from_gcs]
2120
# Import user events into a catalog from GCS using Retail API
2221

2322
import time
@@ -103,8 +102,6 @@ def import_user_events_from_gcs():
103102
import_user_events_from_gcs()
104103

105104

106-
# [END retail_import_user_events_from_gcs]
107-
108105
if __name__ == "__main__":
109106
parser = argparse.ArgumentParser()
110107
parser.add_argument(

generated_samples/interactive-tutorials/events/import_user_events_inline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_import_user_events_from_inline_source]
1716
# Import user events into a catalog from inline source using Retail API
1817
#
1918
import datetime
@@ -105,5 +104,3 @@ def import_user_events_from_inline_source():
105104

106105

107106
import_user_events_from_inline_source()
108-
109-
# [END retail_import_user_events_from_inline_source]

generated_samples/interactive-tutorials/events/purge_user_event.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_purge_user_event]
1716
# Deleting user event using Retail API.
1817
#
1918
import google.auth
@@ -52,4 +51,3 @@ def call_purge_user_events():
5251

5352
write_user_event(visitor_id)
5453
call_purge_user_events()
55-
# [END retail_purge_user_event]

generated_samples/interactive-tutorials/events/rejoin_user_event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_rejoin_user_event]
1716
# Starts a user event rejoin operation using Retail API.
1817
#
1918
import google.auth
@@ -55,5 +54,3 @@ def call_rejoin_user_events():
5554
write_user_event(visitor_id)
5655
call_rejoin_user_events()
5756
purge_user_event(visitor_id)
58-
59-
# [END retail_rejoin_user_event]

generated_samples/interactive-tutorials/events/write_user_event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_write_user_event]
1716
# Write user event using Retail API.
1817
#
1918
import datetime
@@ -71,5 +70,3 @@ def write_user_event():
7170

7271
write_user_event()
7372
purge_user_event(visitor_id)
74-
75-
# [END retail_write_user_event]

generated_samples/interactive-tutorials/product/add_fulfillment_places.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START retail_add_fulfillment_places]
1615
# Adding place IDs using Retail API.
1716
#
1817
import asyncio

generated_samples/interactive-tutorials/product/create_product.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_create_product]
1716
# Create product in a catalog using Retail API
1817
#
1918
import random
@@ -82,4 +81,3 @@ def create_product(product_id: str):
8281
created_product = create_product(generated_product_id)
8382
# delete created product
8483
delete_product(created_product.name)
85-
# [END retail_create_product]

generated_samples/interactive-tutorials/product/crud_product.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_crud_product]
1716
# Create, update, get and delete product in a catalog using Retail API.
1817
#
1918
import random
@@ -140,4 +139,3 @@ def delete_product():
140139
get_product()
141140
update_product()
142141
delete_product()
143-
# [END retail_crud_product]

generated_samples/interactive-tutorials/product/delete_product.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
# [START retail_delete_product]
1716
# Delete product from a catalog using Retail API.
1817
#
1918
import random
@@ -56,5 +55,3 @@ def delete_product(product_name: str):
5655
# delete created product
5756
created_product_name = create_product(product_id).name
5857
delete_product(created_product_name)
59-
60-
# [END retail_delete_product]

0 commit comments

Comments
 (0)