jobs/V3/basic_company_sample.rb
# Copyright 2018 Google, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.




Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing software distributed under the License is distributed on an " AS IS " BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied . See the License for the specific language governing permissions and limitations under the License .
def job_discovery_generate_company display_name:, headquarters_address:, external_id:
  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
end
def job_discovery_generate_company display_name : , headquarters_address : , external_id : 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 end
Copyright 2018 Google, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Copyright 2018 Google Inc Licensed under the Apache License Version 2 . 0 ( the " License " ) ; you may not use this file except in compliance with the License .
# [START job_discovery_generate_company] # 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" # [END job_discovery_generate_company]
display_name
<not_specific>
headquarters_address
<not_specific>
external_id
<not_specific>