Generate a new company.

## Code sample

### Ruby


To learn how to install and use the client library for CTS, see
[CTS client libraries](https://docs.cloud.google.com/talent-solution/job-search/docs/libraries.md.txt).


To authenticate to CTS, set up Application Default Credentials.
For more information, see

[Set up authentication for a local development environment](https://docs.cloud.google.com/docs/authentication/set-up-adc-local-dev-environment.md.txt).

```ruby
# 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
```

## What's next


To search and filter code samples for other Google Cloud products, see the
[Google Cloud sample browser](https://docs.cloud.google.com/docs/samples.md.txt?product=talentsolution).