/// <summary>Snippet for UpdateTagTemplateField</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateTagTemplateField1ResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagTemplateFieldName name             = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
     TagTemplateField     tagTemplateField = new TagTemplateField();
     // Make the request
     TagTemplateField response = dataCatalogClient.UpdateTagTemplateField(name, tagTemplateField);
 }
Example #2
0
        /// <summary>Snippet for DeleteTagTemplateFieldAsync</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 DeleteTagTemplateFieldResourceNamesAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            TagTemplateFieldName name = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
            bool force = false;
            // Make the request
            await dataCatalogClient.DeleteTagTemplateFieldAsync(name, force);
        }
        /// <summary>Snippet for UpdateTagTemplateFieldAsync</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 UpdateTagTemplateField2ResourceNamesAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            TagTemplateFieldName name             = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
            TagTemplateField     tagTemplateField = new TagTemplateField();
            FieldMask            updateMask       = new FieldMask();
            // Make the request
            TagTemplateField response = await dataCatalogClient.UpdateTagTemplateFieldAsync(name, tagTemplateField, updateMask);
        }
Example #4
0
 /// <summary>Snippet for RenameTagTemplateField</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void RenameTagTemplateFieldRequestObject()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     RenameTagTemplateFieldRequest request = new RenameTagTemplateFieldRequest
     {
         TagTemplateFieldName  = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"),
         NewTagTemplateFieldId = "",
     };
     // Make the request
     TagTemplateField response = dataCatalogClient.RenameTagTemplateField(request);
 }
Example #5
0
        /// <summary>Snippet for DeleteTagTemplateField</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void DeleteTagTemplateFieldRequestObject()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            DeleteTagTemplateFieldRequest request = new DeleteTagTemplateFieldRequest
            {
                TagTemplateFieldName = TagTemplateFieldName.FromProjectLocationTagTemplateField("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"),
                Force = false,
            };

            // Make the request
            dataCatalogClient.DeleteTagTemplateField(request);
        }
        /// <summary>Snippet for UpdateTagTemplateFieldAsync</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 UpdateTagTemplateFieldRequestObjectAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

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