Exemple #1
0
        /// <summary>Snippet for RenameTagTemplateFieldAsync</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 RenameTagTemplateFieldAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]/fields/[FIELD]";
            string newTagTemplateFieldId = "";
            // Make the request
            TagTemplateField response = await dataCatalogClient.RenameTagTemplateFieldAsync(name, newTagTemplateFieldId);
        }
Exemple #2
0
        /// <summary>Snippet for RenameTagTemplateFieldAsync</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 RenameTagTemplateFieldRequestObjectAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            RenameTagTemplateFieldRequest request = new RenameTagTemplateFieldRequest
            {
                TagTemplateFieldName  = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"),
                NewTagTemplateFieldId = "",
            };
            // Make the request
            TagTemplateField response = await dataCatalogClient.RenameTagTemplateFieldAsync(request);
        }