Ejemplo n.º 1
0
 /// <summary>Snippet for GetTagTemplate</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetTagTemplateResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagTemplateName name = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
     // Make the request
     TagTemplate response = dataCatalogClient.GetTagTemplate(name);
 }
Ejemplo n.º 2
0
        /// <summary>Snippet for DeleteTagTemplateAsync</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 DeleteTagTemplateResourceNamesAsync()
        {
            // Create client
            DataCatalogClient dataCatalogClient = await DataCatalogClient.CreateAsync();

            // Initialize request argument(s)
            TagTemplateName name  = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
            bool            force = false;
            // Make the request
            await dataCatalogClient.DeleteTagTemplateAsync(name, force);
        }
 /// <summary>Snippet for CreateTagTemplateField</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateTagTemplateFieldResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagTemplateName  parent             = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
     string           tagTemplateFieldId = "";
     TagTemplateField tagTemplateField   = new TagTemplateField();
     // Make the request
     TagTemplateField response = dataCatalogClient.CreateTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
 }
Ejemplo n.º 4
0
 /// <summary>Snippet for GetTagTemplate</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetTagTemplateRequestObject()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     GetTagTemplateRequest request = new GetTagTemplateRequest
     {
         TagTemplateName = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"),
     };
     // Make the request
     TagTemplate response = dataCatalogClient.GetTagTemplate(request);
 }
Ejemplo n.º 5
0
 /// <summary>Snippet for CreateTagTemplateField</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateTagTemplateFieldRequestObject()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     CreateTagTemplateFieldRequest request = new CreateTagTemplateFieldRequest
     {
         ParentAsTagTemplateName = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"),
         TagTemplateFieldId      = "",
         TagTemplateField        = new TagTemplateField(),
     };
     // Make the request
     TagTemplateField response = dataCatalogClient.CreateTagTemplateField(request);
 }
Ejemplo n.º 6
0
        /// <summary>Snippet for DeleteTagTemplate</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void DeleteTagTemplateRequestObject()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            DeleteTagTemplateRequest request = new DeleteTagTemplateRequest
            {
                TagTemplateName = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"),
                Force           = false,
            };

            // Make the request
            dataCatalogClient.DeleteTagTemplate(request);
        }