/// <summary>Snippet for CreateEntry</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateEntryResourceNames() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) EntryGroupName parent = EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); string entryId = ""; Entry entry = new Entry(); // Make the request Entry response = dataCatalogClient.CreateEntry(parent, entryId, entry); }
/// <summary>Snippet for CreateEntry</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateEntry() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]"; string entryId = ""; Entry entry = new Entry(); // Make the request Entry response = dataCatalogClient.CreateEntry(parent, entryId, entry); }
/// <summary>Snippet for CreateEntry</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateEntryRequestObject() { // Create client DataCatalogClient dataCatalogClient = DataCatalogClient.Create(); // Initialize request argument(s) CreateEntryRequest request = new CreateEntryRequest { ParentAsEntryGroupName = EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"), Entry = new Entry(), EntryId = "", }; // Make the request Entry response = dataCatalogClient.CreateEntry(request); }