@@ -39,30 +39,7 @@ def create_fileset_entry_quickstart(client, project_id, entry_group_id, entry_id
3939 # TODO(developer): Set entry_id to the ID of the entry to create.
4040 # entry_id = "your_entry_id"
4141
42- # 1. Environment cleanup: delete pre-existing data.
43- # Delete any pre-existing Entry with the same name
44- # that will be used in step 3.
45- expected_entry_name = datacatalog_v1beta1 .DataCatalogClient .entry_path (
46- project_id , location_id , entry_group_id , entry_id
47- )
48-
49- try :
50- client .delete_entry (name = expected_entry_name )
51- except (exceptions .NotFound , exceptions .PermissionDenied ):
52- pass
53-
54- # Delete any pre-existing Entry Group with the same name
55- # that will be used in step 2.
56- expected_entry_group_name = datacatalog_v1beta1 .DataCatalogClient .entry_group_path (
57- project_id , location_id , entry_group_id
58- )
59-
60- try :
61- client .delete_entry_group (name = expected_entry_group_name )
62- except (exceptions .NotFound , exceptions .PermissionDenied ):
63- pass
64-
65- # 2. Create an Entry Group.
42+ # Create an Entry Group.
6643 # Construct a full Entry Group object to send to the API.
6744 entry_group_obj = datacatalog_v1beta1 .types .EntryGroup ()
6845 entry_group_obj .display_name = "My Fileset Entry Group"
@@ -80,7 +57,7 @@ def create_fileset_entry_quickstart(client, project_id, entry_group_id, entry_id
8057 )
8158 print ("Created entry group {}" .format (entry_group .name ))
8259
83- # 3. Create a Fileset Entry.
60+ # Create a Fileset Entry.
8461 # Construct a full Entry object to send to the API.
8562 entry = datacatalog_v1beta1 .types .Entry ()
8663 entry .display_name = "My Fileset"
0 commit comments