Skip to content

Commit d1b3f77

Browse files
author
Rebecca Taylor
committed
Add more clarifying comments about resource names versus identifiers (AutoML Video OT)
1 parent 59d442e commit d1b3f77

5 files changed

+15
-0
lines changed

video/cloud-client/automl/v1beta1/automl_video_object_tracking_create_dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def sample_create_dataset(display_name, project):
6868
# This will have the format:
6969
# projects/[Google Cloud Project Number]/locations/us-central1/datasets/VOT1234567890123456789
7070
#
71+
# The Dataset ID is the generated identifer in this path, e.g. VOT1234567890123456789
72+
# You will need this ID to perform operations on the dataset as well as to create a model.
73+
#
7174
print(u"Name: {}".format(dataset.name))
7275
# Print out the Display Name (the text you provided during creation)
7376
print(u"Display Name: {}".format(dataset.display_name))

video/cloud-client/automl/v1beta1/automl_video_object_tracking_get_dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def sample_get_dataset(dataset_id, project):
5252
# This will have the format:
5353
# projects/[Google Cloud Project Number]/locations/us-central1/datasets/VOT1234567890123456789
5454
#
55+
# The Dataset ID is the generated identifer in this path, e.g. VOT1234567890123456789
56+
# You will need this ID to perform operations on the dataset as well as to create a model.
57+
#
5558
print(u"Name: {}".format(dataset.name))
5659
# Print out the Display Name (the text you provided during creation)
5760
print(u"Display Name: {}".format(dataset.display_name))

video/cloud-client/automl/v1beta1/automl_video_object_tracking_get_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def sample_get_model(model_id, project):
5252
# This will have the format:
5353
# projects/[Google Cloud Project Number]/locations/us-central1/models/VOT1234567890123456789
5454
#
55+
# The Model ID is the generated identifer in this path, e.g. VOT1234567890123456789
56+
# You will need this ID to perform operations on the model including predictions.
57+
#
5558
print(u"Model name: {}".format(model.name))
5659
# Print out the Display Name (the text you provided during creation)
5760
print(u"Display name: {}".format(model.display_name))

video/cloud-client/automl/v1beta1/automl_video_object_tracking_list_datasets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def sample_list_datasets(project):
5555
# This will have the format:
5656
# projects/[Google Cloud Project Number]/locations/us-central1/datasets/VOT1234567890123456789
5757
#
58+
# The Dataset ID is the generated identifer in this path, e.g. VOT1234567890123456789
59+
# You will need this ID to perform operations on the dataset as well as to create a model.
60+
#
5861
print(u"Name: {}".format(dataset.name))
5962
# Print out the Display Name (the text you provided during creation)
6063
print(u"Display Name: {}".format(dataset.display_name))

video/cloud-client/automl/v1beta1/automl_video_object_tracking_list_models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def sample_list_models(filter_, project):
5454
# This will have the format:
5555
# projects/[Google Cloud Project Number]/locations/us-central1/models/VOT1234567890123456789
5656
#
57+
# The Model ID is the generated identifer in this path, e.g. VOT1234567890123456789
58+
# You will need this ID to perform operations on the model including predictions.
59+
#
5760
print(u"Model name: {}".format(model.name))
5861
# Print out the Display Name (the text you provided during creation)
5962
print(u"Display name: {}".format(model.display_name))

0 commit comments

Comments
 (0)