生成公司 (v3)

生成新的公司。

代码示例

Ruby

如需了解如何安装和使用适用于 CTS 的客户端库,请参阅 CTS 客户端库

如需向 CTS 进行身份验证,请设置应用默认凭据。 如需了解详情,请参阅为本地开发环境设置身份验证

# display_name         = "Your company display name"
# headquarters_address = "Your company headquarters address"
# external_id          = "Your internal ID for this company, allowing mapping internal identifiers to the company in Google's system"

require "google/apis/jobs_v3"
require "securerandom"

jobs = Google::Apis::JobsV3

company_generated = jobs::Company.new display_name:         display_name,
                                      headquarters_address: headquarters_address,
                                      external_id:          external_id
puts "Company generated: #{company_generated.to_json}"
company_generated

后续步骤

如需搜索和过滤其他 Google Cloud 产品的代码示例,请参阅 Google Cloud 示例浏览器