Cloud Talent Solution に含まれる Company リソースは、それぞれ 1 つの会社を表します。その会社に属する求人は、その会社で募集中の職位に対して作成される求人の投稿を表します。求人には、会社名や住所などの情報と、Cloud Talent Solution サービスのリソースを内部データベースに結び付ける内部フィールドが含まれます。
会社の作成
会社を作成するには、companies
エンドポイントに POST リクエストを送信し、その際に少なくとも 2 つの必須項目を指定します。会社の作成方法の詳細については、クイックスタート: 会社と求人の作成のページをご覧ください。チュートリアル動画やインタラクティブなコードラボも利用可能です。
Go
import (
"context"
"fmt"
"io"
talent "cloud.google.com/go/talent/apiv4beta1"
talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
)
// createCompany creates a company as given.
func createCompany(w io.Writer, projectID, externalID, displayName string) (*talentpb.Company, error) {
ctx := context.Background()
// Initializes a companyService client.
c, err := talent.NewCompanyClient(ctx)
if err != nil {
return nil, fmt.Errorf("talent.NewCompanyClient: %v", err)
}
// Construct a createCompany request.
req := &talentpb.CreateCompanyRequest{
Parent: fmt.Sprintf("projects/%s", projectID),
Company: &talentpb.Company{
ExternalId: externalID,
DisplayName: displayName,
},
}
resp, err := c.CreateCompany(ctx, req)
if err != nil {
return nil, fmt.Errorf("CreateCompany: %v", err)
}
fmt.Fprintf(w, "Created company: %q\n", resp.GetName())
return resp, nil
}
Java
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import com.google.cloud.talent.v4.Company;
import com.google.cloud.talent.v4.CompanyServiceClient;
import com.google.cloud.talent.v4.CreateCompanyRequest;
import com.google.cloud.talent.v4.TenantName;
import java.io.IOException;
public class JobSearchCreateCompany {
public static void createCompany() throws IOException {
// TODO(developer): Replace these variables before running the sample.
String projectId = "your-project-id";
String tenantId = "your-tenant-id";
String displayName = "your-company-display-name";
String externalId = "your-external-id";
createCompany(projectId, tenantId, displayName, externalId);
}
// Create a company.
public static void createCompany(
String projectId, String tenantId, String displayName, String externalId) throws IOException {
// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
TenantName parent = TenantName.of(projectId, tenantId);
Company company =
Company.newBuilder().setDisplayName(displayName).setExternalId(externalId).build();
CreateCompanyRequest request =
CreateCompanyRequest.newBuilder()
.setParent(parent.toString())
.setCompany(company)
.build();
Company response = companyServiceClient.createCompany(request);
System.out.println("Created Company");
System.out.format("Name: %s%n", response.getName());
System.out.format("Display Name: %s%n", response.getDisplayName());
System.out.format("External ID: %s%n", response.getExternalId());
}
}
}
Node.js
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
const talent = require('@google-cloud/talent').v4;
/**
* Create Company
*
* @param projectId {string} Your Google Cloud Project ID
* @param tenantId {string} Identifier of the Tenant
*/
function sampleCreateCompany(projectId, tenantId, displayName, externalId) {
const client = new talent.CompanyServiceClient();
// const projectId = 'Your Google Cloud Project ID';
// const tenantId = 'Your Tenant ID (using tenancy is optional)';
// const displayName = 'My Company Name';
// const externalId = 'Identifier of this company in my system';
const formattedParent = client.tenantPath(projectId, tenantId);
const company = {
displayName: displayName,
externalId: externalId,
};
const request = {
parent: formattedParent,
company: company,
};
client
.createCompany(request)
.then(responses => {
const response = responses[0];
console.log('Created Company');
console.log(`Name: ${response.name}`);
console.log(`Display Name: ${response.displayName}`);
console.log(`External ID: ${response.externalId}`);
})
.catch(err => {
console.error(err);
});
}
Python
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
from google.cloud import talent
import six
def create_company(project_id, tenant_id, display_name, external_id):
"""Create Company"""
client = talent.CompanyServiceClient()
# project_id = 'Your Google Cloud Project ID'
# tenant_id = 'Your Tenant ID (using tenancy is optional)'
# display_name = 'My Company Name'
# external_id = 'Identifier of this company in my system'
if isinstance(project_id, six.binary_type):
project_id = project_id.decode("utf-8")
if isinstance(tenant_id, six.binary_type):
tenant_id = tenant_id.decode("utf-8")
if isinstance(display_name, six.binary_type):
display_name = display_name.decode("utf-8")
if isinstance(external_id, six.binary_type):
external_id = external_id.decode("utf-8")
parent = f"projects/{project_id}/tenants/{tenant_id}"
company = {"display_name": display_name, "external_id": external_id}
response = client.create_company(parent=parent, company=company)
print("Created Company")
print("Name: {}".format(response.name))
print("Display Name: {}".format(response.display_name))
print("External ID: {}".format(response.external_id))
return response.name
Ruby
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
require "google/cloud/talent"
# Instantiate a client
company_service = Google::Cloud::Talent.company_service
# project_id = "Your Google Cloud Project ID"
# tenant_id = "Your Tenant ID (using tenancy is required)"
parent = company_service.tenant_path project: project_id, tenant: tenant_id
# display_name = "My Company Name"
# external_id = "Identifier of this company in my system"
company = { display_name: display_name, external_id: external_id }
response = company_service.create_company parent: parent, company: company
puts "Created Company"
puts "Name: #{response.name}"
puts "Display Name: #{response.display_name}"
puts "External ID: #{response.external_id}"
C#
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
public static object CreateCompany(string projectId, string tenantId, string displayName, string externalId)
{
CompanyServiceClient companyServiceClient = CompanyServiceClient.Create();
TenantName tenantName = TenantName.FromProjectTenant(projectId, tenantId);
Company company = new Company
{
DisplayName = displayName,
ExternalId = externalId
};
CreateCompanyRequest request = new CreateCompanyRequest
{
ParentAsTenantName = tenantName,
Company = company
};
Company response = companyServiceClient.CreateCompany(request);
Console.WriteLine("Created Company");
Console.WriteLine($"Name: {response.Name}");
Console.WriteLine($"Display Name: {response.DisplayName}");
Console.WriteLine($"External ID: {response.ExternalId}");
return 0;
}
必須項目
作成や更新リクエストでは次のフィールドが必須です。
displayName
: 求人とともに表示される雇用主の名前(「Google LLC」など)。externalId
: この会社用の内部 ID。この項目により、Google のシステム内で内部 ID を会社にマッピングできます。その会社に個別の内部 ID がない場合は、このフィールドをdisplayName
と同じ値に設定します。
よく使用されるフィールド
headquartersAddress
: 会社の本社の住所。求人の勤務地とは異なる場合があります。Cloud Talent Solution で使用できる本社所在地は、会社ごとに 1 か所のみです。このサービスは、住所の位置情報の特定を試み、可能な場合は、より詳細な位置情報をderivedInfo.headquartersLocation
(出力のみ)に入力します。size
: 従業員数に基づく会社の規模を表すバケット値(MINI
からGIANT
)。列挙型とその定義については、size
のリファレンスをご覧ください。eeoText
: この会社のすべての求人に関連付けられる、雇用機会均等法の法的免責事項の文章を含む文字列。keywordSearchableJobCustomAttributes
: この会社の求人のどのcustomAttributes
にインデックスを登録して、一般的なキーワード検索で検索できるようにするかを指定します。
機密の会社
機密性の高い求人を投稿する場合は、会社と同様のフィールドを設定した別の会社を作成し、displayName
や externalId
などの識別フィールドを難読化することをおすすめします。
雇用主を匿名にする場合(人材派遣会社の使用例など)は、externalId
と displayName
をランダムかつ一意の値に設定することをおすすめします。
会社の取得
Go
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import (
"context"
"fmt"
"io"
talent "cloud.google.com/go/talent/apiv4beta1"
talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
)
// getCompany gets an existing company by its resource name.
func getCompany(w io.Writer, projectID, companyID string) (*talentpb.Company, error) {
ctx := context.Background()
// Initialize a companyService client.
c, err := talent.NewCompanyClient(ctx)
if err != nil {
return nil, fmt.Errorf("talent.NewCompanyClient: %v", err)
}
// Construct a getCompany request.
companyName := fmt.Sprintf("projects/%s/companies/%s", projectID, companyID)
req := &talentpb.GetCompanyRequest{
// The resource name of the company to be retrieved.
// The format is "projects/{project_id}/companies/{company_id}".
Name: companyName,
}
resp, err := c.GetCompany(ctx, req)
if err != nil {
return nil, fmt.Errorf("GetCompany: %v", err)
}
fmt.Fprintf(w, "Company: %q\n", resp.GetName())
fmt.Fprintf(w, "Company display name: %q\n", resp.GetDisplayName())
return resp, nil
}
Java
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import com.google.cloud.talent.v4.Company;
import com.google.cloud.talent.v4.CompanyName;
import com.google.cloud.talent.v4.CompanyServiceClient;
import com.google.cloud.talent.v4.GetCompanyRequest;
import java.io.IOException;
public class JobSearchGetCompany {
public static void getCompany() throws IOException {
// TODO(developer): Replace these variables before running the sample.
String projectId = "your-project-id";
String tenantId = "your-tenant-id";
String companyId = "your-company-id";
getCompany(projectId, tenantId, companyId);
}
// Get Company.
public static void getCompany(String projectId, String tenantId, String companyId)
throws IOException {
// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
CompanyName name = CompanyName.of(projectId, tenantId, companyId);
GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name.toString()).build();
Company response = companyServiceClient.getCompany(request);
System.out.format("Company name: %s%n", response.getName());
System.out.format("Display name: %s%n", response.getDisplayName());
}
}
}
Node.js
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
const talent = require('@google-cloud/talent').v4;
/** Get Company */
function sampleGetCompany(projectId, tenantId, companyId) {
const client = new talent.CompanyServiceClient();
// const projectId = 'Your Google Cloud Project ID';
// const tenantId = 'Your Tenant ID (using tenancy is optional)';
// const companyId = 'Company ID';
const formattedName = client.companyPath(projectId, tenantId, companyId);
client
.getCompany({name: formattedName})
.then(responses => {
const response = responses[0];
console.log(`Company name: ${response.name}`);
console.log(`Display name: ${response.displayName}`);
})
.catch(err => {
console.error(err);
});
}
Python
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
from google.cloud import talent
import six
def get_company(project_id, tenant_id, company_id):
"""Get Company"""
client = talent.CompanyServiceClient()
# project_id = 'Your Google Cloud Project ID'
# tenant_id = 'Your Tenant ID (using tenancy is optional)'
# company_id = 'Company ID'
if isinstance(project_id, six.binary_type):
project_id = project_id.decode("utf-8")
if isinstance(tenant_id, six.binary_type):
tenant_id = tenant_id.decode("utf-8")
if isinstance(company_id, six.binary_type):
company_id = company_id.decode("utf-8")
name = client.company_path(project_id, tenant_id, company_id)
response = client.get_company(name=name)
print(f"Company name: {response.name}")
print(f"Display name: {response.display_name}")
Ruby
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
require "google/cloud/talent"
# Instantiate a client
company_service = Google::Cloud::Talent.company_service
# project_id = "Your Google Cloud Project ID"
# tenant_id = "Your Tenant ID (using tenancy is required)"
# company_id = "Company ID"
formatted_name = company_service.company_path project: project_id,
tenant: tenant_id,
company: company_id
response = company_service.get_company name: formatted_name
puts "Company name: #{response.name}"
puts "Display name: #{response.display_name}"
C#
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
public static object GetCompany(string projectId, string tenantId, string companyId)
{
CompanyServiceClient companyServiceClient = CompanyServiceClient.Create();
CompanyName companyName = CompanyName.FromProjectTenantCompany(projectId, tenantId, companyId);
GetCompanyRequest request = new GetCompanyRequest
{
CompanyName = companyName
};
var response = companyServiceClient.GetCompany(request);
Console.WriteLine($"Company name: {response.Name}");
Console.WriteLine($"Display name: {response.DisplayName}");
return 0;
}
会社の一覧表示
Go
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import (
"context"
"fmt"
"io"
talent "cloud.google.com/go/talent/apiv4beta1"
"google.golang.org/api/iterator"
talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
)
// listCompanies lists all companies in the project.
func listCompanies(w io.Writer, projectID string) error {
ctx := context.Background()
// Initialize a compnayService client.
c, err := talent.NewCompanyClient(ctx)
if err != nil {
return fmt.Errorf("talent.NewCompanyClient: %v", err)
}
// Construct a listCompanies request.
req := &talentpb.ListCompaniesRequest{
Parent: "projects/" + projectID,
}
it := c.ListCompanies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
return nil
}
if err != nil {
return fmt.Errorf("it.Next: %v", err)
}
fmt.Fprintf(w, "Listing company: %q\n", resp.GetName())
fmt.Fprintf(w, "Display name: %v\n", resp.GetDisplayName())
fmt.Fprintf(w, "External ID: %v\n", resp.GetExternalId())
}
}
Java
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import com.google.cloud.talent.v4.Company;
import com.google.cloud.talent.v4.CompanyServiceClient;
import com.google.cloud.talent.v4.ListCompaniesRequest;
import com.google.cloud.talent.v4.TenantName;
import java.io.IOException;
public class JobSearchListCompanies {
public static void listCompanies() throws IOException {
// TODO(developer): Replace these variables before running the sample.
String projectId = "your-project-id";
String tenantId = "your-tenant-id";
listCompanies(projectId, tenantId);
}
// List Companies.
public static void listCompanies(String projectId, String tenantId) throws IOException {
// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
TenantName parent = TenantName.of(projectId, tenantId);
ListCompaniesRequest request =
ListCompaniesRequest.newBuilder().setParent(parent.toString()).build();
for (Company responseItem : companyServiceClient.listCompanies(request).iterateAll()) {
System.out.format("Company Name: %s%n", responseItem.getName());
System.out.format("Display Name: %s%n", responseItem.getDisplayName());
System.out.format("External ID: %s%n", responseItem.getExternalId());
}
}
}
}
Node.js
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
const talent = require('@google-cloud/talent').v4;
/**
* List Companies
*
* @param projectId {string} Your Google Cloud Project ID
* @param tenantId {string} Identifier of the Tenant
*/
function sampleListCompanies(projectId, tenantId) {
const client = new talent.CompanyServiceClient();
// Iterate over all elements.
// const projectId = 'Your Google Cloud Project ID';
// const tenantId = 'Your Tenant ID (using tenancy is optional)';
const formattedParent = client.tenantPath(projectId, tenantId);
client
.listCompanies({parent: formattedParent})
.then(responses => {
const resources = responses[0];
for (const resource of resources) {
console.log(`Company Name: ${resource.name}`);
console.log(`Display Name: ${resource.displayName}`);
console.log(`External ID: ${resource.externalId}`);
}
})
.catch(err => {
console.error(err);
});
}
Python
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
from google.cloud import talent
import six
def list_companies(project_id, tenant_id):
"""List Companies"""
client = talent.CompanyServiceClient()
# project_id = 'Your Google Cloud Project ID'
# tenant_id = 'Your Tenant ID (using tenancy is optional)'
if isinstance(project_id, six.binary_type):
project_id = project_id.decode("utf-8")
if isinstance(tenant_id, six.binary_type):
tenant_id = tenant_id.decode("utf-8")
parent = f"projects/{project_id}/tenants/{tenant_id}"
# Iterate over all results
results = []
for company in client.list_companies(parent=parent):
results.append(company.name)
print(f"Company Name: {company.name}")
print(f"Display Name: {company.display_name}")
print(f"External ID: {company.external_id}")
return results
Ruby
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
require "google/cloud/talent"
# Instantiate a client
company_service = Google::Cloud::Talent.company_service
# project_id = "Your Google Cloud Project ID"
# tenant_id = "Your Tenant ID (using tenancy is required)"
formatted_parent = company_service.tenant_path project: project_id, tenant: tenant_id
# Iterate over all results.
response = company_service.list_companies parent: formatted_parent
response.each do |element|
puts "Company Name: #{element.name}"
puts "Display Name: #{element.display_name}"
puts "External ID: #{element.external_id}"
end
response
C#
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
public static object ListCompanies(string projectId, string tenantId)
{
CompanyServiceClient companyServiceClient = CompanyServiceClient.Create();
TenantName tenantName = TenantName.FromProjectTenant(projectId, tenantId);
ListCompaniesRequest request = new ListCompaniesRequest
{
ParentAsTenantName = tenantName
};
var companies = companyServiceClient.ListCompanies(request);
foreach (var company in companies)
{
Console.WriteLine($"Company Name: {company.Name}");
Console.WriteLine($"Display Name: {company.DisplayName}");
Console.WriteLine($"External ID: {company.ExternalId}");
}
return 0;
}
会社の削除
Go
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import (
"context"
"fmt"
"io"
talent "cloud.google.com/go/talent/apiv4beta1"
talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
)
// deleteCompany deletes an existing company. Companies with
// existing jobs cannot be deleted until those jobs have been deleted.
func deleteCompany(w io.Writer, projectID, companyID string) error {
ctx := context.Background()
// Initialize a companyService client.
c, err := talent.NewCompanyClient(ctx)
if err != nil {
return fmt.Errorf("talent.NewCompanyClient: %v", err)
}
// Construct a deleteCompany request.
companyName := fmt.Sprintf("projects/%s/companies/%s", projectID, companyID)
req := &talentpb.DeleteCompanyRequest{
// The resource name of the company to be deleted.
// The format is "projects/{project_id}/companies/{company_id}".
Name: companyName,
}
if err := c.DeleteCompany(ctx, req); err != nil {
return fmt.Errorf("DeleteCompany(%s): %v", companyName, err)
}
fmt.Fprintf(w, "Deleted company: %q\n", companyName)
return nil
}
Java
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
import com.google.cloud.talent.v4.CompanyName;
import com.google.cloud.talent.v4.CompanyServiceClient;
import com.google.cloud.talent.v4.DeleteCompanyRequest;
import java.io.IOException;
public class JobSearchDeleteCompany {
public static void deleteCompany() throws IOException {
// TODO(developer): Replace these variables before running the sample.
String projectId = "your-project-id";
String tenantId = "your-tenant-id";
String companyId = "your-company-id";
deleteCompany(projectId, tenantId, companyId);
}
// Delete Company.
public static void deleteCompany(String projectId, String tenantId, String companyId)
throws IOException {
// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
CompanyName name = CompanyName.of(projectId, tenantId, companyId);
DeleteCompanyRequest request =
DeleteCompanyRequest.newBuilder().setName(name.toString()).build();
companyServiceClient.deleteCompany(request);
System.out.println("Deleted company");
}
}
}
Node.js
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
const talent = require('@google-cloud/talent').v4;
/** Delete Company */
function sampleDeleteCompany(projectId, tenantId, companyId) {
const client = new talent.CompanyServiceClient();
// const projectId = 'Your Google Cloud Project ID';
// const tenantId = 'Your Tenant ID (using tenancy is optional)';
// const companyId = 'ID of the company to delete';
const formattedName = client.companyPath(projectId, tenantId, companyId);
client.deleteCompany({name: formattedName}).catch(err => {
console.error(err);
});
console.log('Deleted company');
}
Python
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
from google.cloud import talent
import six
def delete_company(project_id, tenant_id, company_id):
"""Delete Company"""
client = talent.CompanyServiceClient()
# project_id = 'Your Google Cloud Project ID'
# tenant_id = 'Your Tenant ID (using tenancy is optional)'
# company_id = 'ID of the company to delete'
if isinstance(project_id, six.binary_type):
project_id = project_id.decode("utf-8")
if isinstance(tenant_id, six.binary_type):
tenant_id = tenant_id.decode("utf-8")
if isinstance(company_id, six.binary_type):
company_id = company_id.decode("utf-8")
name = client.company_path(project_id, tenant_id, company_id)
client.delete_company(name=name)
print("Deleted company")
Ruby
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
require "google/cloud/talent"
# Instantiate a client
company_service = Google::Cloud::Talent.company_service
# project_id = "Your Google Cloud Project ID"
# tenant_id = "Your Tenant ID (using tenancy is required)"
# company_id = "ID of the company to delete"
formatted_name = company_service.company_path project: project_id,
tenant: tenant_id,
company: company_id
company_service.delete_company name: formatted_name
puts "Deleted company"
C#
Cloud Talent Solution クライアントのインストールと作成の詳細については、Cloud Talent Solution クライアント ライブラリをご覧ください。
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;
}