Exemplo 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);
 }
 /// <summary>Snippet for UpdateTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateTag1()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     Tag tag = new Tag();
     // Make the request
     Tag response = dataCatalogClient.UpdateTag(tag);
 }
 /// <summary>Snippet for UpdateTagTemplate</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateTagTemplate1()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagTemplate tagTemplate = new TagTemplate();
     // Make the request
     TagTemplate response = dataCatalogClient.UpdateTagTemplate(tagTemplate);
 }
Exemplo 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 GetTagTemplate()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]";
     // Make the request
     TagTemplate response = dataCatalogClient.GetTagTemplate(name);
 }
 /// <summary>Snippet for GetIamPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetIamPolicy()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string resource = "a/wildcard/resource";
     // Make the request
     Policy response = dataCatalogClient.GetIamPolicy(resource);
 }
Exemplo n.º 6
0
 /// <summary>Snippet for UpdateEntryGroup</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateEntryGroup1()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     EntryGroup entryGroup = new EntryGroup();
     // Make the request
     EntryGroup response = dataCatalogClient.UpdateEntryGroup(entryGroup);
 }
 /// <summary>Snippet for GetEntry</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetEntry()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]/entries/[ENTRY]";
     // Make the request
     Entry response = dataCatalogClient.GetEntry(name);
 }
Exemplo n.º 8
0
 /// <summary>Snippet for GetIamPolicy</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetIamPolicyResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
     // Make the request
     Policy response = dataCatalogClient.GetIamPolicy(resource);
 }
Exemplo n.º 9
0
 /// <summary>Snippet for GetEntry</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetEntryResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     EntryName name = EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
     // Make the request
     Entry response = dataCatalogClient.GetEntry(name);
 }
Exemplo n.º 10
0
 /// <summary>Snippet for UpdateEntry</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateEntry1()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     Entry entry = new Entry();
     // Make the request
     Entry response = dataCatalogClient.UpdateEntry(entry);
 }
Exemplo n.º 11
0
        /// <summary>Snippet for DeleteEntryGroup</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void DeleteEntryGroup()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";

            // Make the request
            dataCatalogClient.DeleteEntryGroup(name);
        }
Exemplo n.º 12
0
 /// <summary>Snippet for RenameTagTemplateFieldEnumValue</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void RenameTagTemplateFieldEnumValue()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]/fields/[TAG_TEMPLATE_FIELD_ID]/enumValues/[ENUM_VALUE_DISPLAY_NAME]";
     string newEnumValueDisplayName = "";
     // Make the request
     TagTemplateField response = dataCatalogClient.RenameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
 }
 /// <summary>Snippet for CreateTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateTag()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string parent = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]/entries/[ENTRY]/tags/[TAG]";
     Tag    tag    = new Tag();
     // Make the request
     Tag response = dataCatalogClient.CreateTag(parent, tag);
 }
 /// <summary>Snippet for RenameTagTemplateFieldEnumValue</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void RenameTagTemplateFieldEnumValueResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagTemplateFieldEnumValueName name = TagTemplateFieldEnumValueName.FromProjectLocationTagTemplateTagTemplateFieldEnumValueDisplayName("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[TAG_TEMPLATE_FIELD_ID]", "[ENUM_VALUE_DISPLAY_NAME]");
     string newEnumValueDisplayName     = "";
     // Make the request
     TagTemplateField response = dataCatalogClient.RenameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
 }
 /// <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);
 }
        /// <summary>Snippet for DeleteEntryGroup</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void DeleteEntryGroupResourceNames()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            EntryGroupName name = EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");

            // Make the request
            dataCatalogClient.DeleteEntryGroup(name);
        }
 /// <summary>Snippet for GetEntryGroup</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetEntryGroup2()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string    name     = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
     FieldMask readMask = new FieldMask();
     // Make the request
     EntryGroup response = dataCatalogClient.GetEntryGroup(name, readMask);
 }
Exemplo n.º 18
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 RenameTagTemplateField()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]/fields/[FIELD]";
     string newTagTemplateFieldId = "";
     // Make the request
     TagTemplateField response = dataCatalogClient.RenameTagTemplateField(name, newTagTemplateFieldId);
 }
 /// <summary>Snippet for UpdateEntryGroup</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateEntryGroup2()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     EntryGroup entryGroup = new EntryGroup();
     FieldMask  updateMask = new FieldMask();
     // Make the request
     EntryGroup response = dataCatalogClient.UpdateEntryGroup(entryGroup, updateMask);
 }
 /// <summary>Snippet for UpdateTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateTag2()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     Tag       tag        = new Tag();
     FieldMask updateMask = new FieldMask();
     // Make the request
     Tag response = dataCatalogClient.UpdateTag(tag, updateMask);
 }
Exemplo n.º 21
0
 /// <summary>Snippet for CreateTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateTagResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     TagName parent = TagName.FromProjectLocationEntryGroupEntryTag("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]");
     Tag     tag    = new Tag();
     // Make the request
     Tag response = dataCatalogClient.CreateTag(parent, tag);
 }
Exemplo n.º 22
0
 /// <summary>Snippet for GetEntryGroup</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetEntryGroup2ResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     EntryGroupName name     = EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
     FieldMask      readMask = new FieldMask();
     // Make the request
     EntryGroup response = dataCatalogClient.GetEntryGroup(name, readMask);
 }
 /// <summary>Snippet for LookupEntry</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void LookupEntryRequestObject()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     LookupEntryRequest request = new LookupEntryRequest {
         LinkedResource = "",
     };
     // Make the request
     Entry response = dataCatalogClient.LookupEntry(request);
 }
        /// <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 DeleteTagTemplateResourceNames()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            TagTemplateName name  = TagTemplateName.FromProjectLocationTagTemplate("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
            bool            force = false;

            // Make the request
            dataCatalogClient.DeleteTagTemplate(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);
 }
        /// <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 DeleteTagTemplateField()
        {
            // Create client
            DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
            // Initialize request argument(s)
            string name  = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]/fields/[FIELD]";
            bool   force = false;

            // Make the request
            dataCatalogClient.DeleteTagTemplateField(name, force);
        }
Exemplo n.º 27
0
 /// <summary>Snippet for CreateEntryGroup</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateEntryGroupResourceNames()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     LocationName parent       = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
     string       entryGroupId = "";
     EntryGroup   entryGroup   = new EntryGroup();
     // Make the request
     EntryGroup response = dataCatalogClient.CreateEntryGroup(parent, entryGroupId, entryGroup);
 }
 /// <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 UpdateTagTemplateField2()
 {
     // Create client
     DataCatalogClient dataCatalogClient = DataCatalogClient.Create();
     // Initialize request argument(s)
     string           name             = "projects/[PROJECT]/locations/[LOCATION]/tagTemplates/[TAG_TEMPLATE]/fields/[FIELD]";
     TagTemplateField tagTemplateField = new TagTemplateField();
     FieldMask        updateMask       = new FieldMask();
     // Make the request
     TagTemplateField response = dataCatalogClient.UpdateTagTemplateField(name, tagTemplateField, updateMask);
 }
 /// <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 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);
 }