/// <summary>Snippet for DeleteCompany</summary> public void DeleteCompany() { // Snippet: DeleteCompany(CompanyNameOneof,CallSettings) // Create client CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); // Initialize request argument(s) CompanyNameOneof name = CompanyNameOneof.From(new CompanyName("[PROJECT]", "[TENANT]", "[COMPANY]")); // Make the request companyServiceClient.DeleteCompany(name); // End snippet }
/// <summary>Snippet for DeleteCompany</summary> public void DeleteCompanyResourceNames() { // Snippet: DeleteCompany(CompanyName, CallSettings) // Create client CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); // Initialize request argument(s) CompanyName name = CompanyName.FromProjectTenantCompany("[PROJECT]", "[TENANT]", "[COMPANY]"); // Make the request companyServiceClient.DeleteCompany(name); // End snippet }
/// <summary>Snippet for DeleteCompany</summary> public void DeleteCompany() { // Snippet: DeleteCompany(string, CallSettings) // Create client CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/tenants/[TENANT]/companies/[COMPANY]"; // Make the request companyServiceClient.DeleteCompany(name); // End snippet }
/// <summary>Snippet for DeleteCompany</summary> public void DeleteCompany() { // Snippet: DeleteCompany(string,CallSettings) // Create client CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); // Initialize request argument(s) string formattedName = new CompanyName("[PROJECT]", "[COMPANY]").ToString(); // Make the request companyServiceClient.DeleteCompany(formattedName); // End snippet }
// [START job_search_delete_company_beta] public static object DeleteCompany(string projectId, string tenantId, string companyId) { CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); CompanyName companyName = CompanyName.FromProjectTenantCompany(projectId, tenantId, companyId); DeleteCompanyRequest request = new DeleteCompanyRequest { CompanyName = companyName }; companyServiceClient.DeleteCompany(request); Console.WriteLine("Deleted Company."); return(0); }
/// <summary>Snippet for DeleteCompany</summary> public void DeleteCompany_RequestObject() { // Snippet: DeleteCompany(DeleteCompanyRequest,CallSettings) // Create client CompanyServiceClient companyServiceClient = CompanyServiceClient.Create(); // Initialize request argument(s) DeleteCompanyRequest request = new DeleteCompanyRequest { CompanyNameOneof = CompanyNameOneof.From(new CompanyName("[PROJECT]", "[TENANT]", "[COMPANY]")), }; // Make the request companyServiceClient.DeleteCompany(request); // End snippet }