/// <summary>Snippet for CreateTagTemplateAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task CreateTagTemplateResourceNamesAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            LocationName parent        = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            string       tagTemplateId = "";
            TagTemplate  tagTemplate   = new TagTemplate();
            // Make the request
            TagTemplate response = await dataCatalogClient.CreateTagTemplateAsync(parent, tagTemplateId, tagTemplate);
        }
Exemple #2
0
        /// <summary>Snippet for CreateTagTemplateAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task CreateTagTemplateAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            string      parent        = "projects/[PROJECT]/locations/[LOCATION]";
            string      tagTemplateId = "";
            TagTemplate tagTemplate   = new TagTemplate();
            // Make the request
            TagTemplate response = await dataCatalogClient.CreateTagTemplateAsync(parent, tagTemplateId, tagTemplate);
        }
        /// <summary>Snippet for CreateTagTemplateAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task CreateTagTemplateRequestObjectAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            CreateTagTemplateRequest request = new CreateTagTemplateRequest
            {
                ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
                TagTemplate          = new TagTemplate(),
                TagTemplateId        = "",
            };
            // Make the request
            TagTemplate response = await dataCatalogClient.CreateTagTemplateAsync(request);
        }