lib/google/cloud/talent.rb in google-cloud-talent-0.9.0 vs lib/google/cloud/talent.rb in google-cloud-talent-0.10.0

- old
+ new

@@ -85,14 +85,13 @@ .select { |file| File.directory?(file) } .select { |dir| Google::Gax::VERSION_MATCHER.match(File.basename(dir)) } .select { |dir| File.exist?(dir + ".rb") } .map { |dir| File.basename(dir) } - module ApplicationService + module TenantService ## - # A service that handles application management, including CRUD and - # enumeration. + # A service that handles tenant management, including CRUD and enumeration. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -138,17 +137,18 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::TenantService.new(*args, **kwargs) end end - module CompanyService + module ProfileService ## - # A service that handles company management, including CRUD and enumeration. + # A service that handles profile management, including profile CRUD, + # enumeration and search. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -194,17 +194,17 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs) end end - module Completion + module Event ## - # A service handles auto completion. + # A service handles client event report. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -250,17 +250,18 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs) end end - module Event + module ApplicationService ## - # A service handles client event report. + # A service that handles application management, including CRUD and + # enumeration. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -306,17 +307,17 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::Event.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::ApplicationService.new(*args, **kwargs) end end - module JobService + module CompanyService ## - # A service handles job management, including job CRUD, enumeration and search. + # A service that handles company management, including CRUD and enumeration. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -362,18 +363,17 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::CompanyService.new(*args, **kwargs) end end - module ProfileService + module JobService ## - # A service that handles profile management, including profile CRUD, - # enumeration and search. + # A service handles job management, including job CRUD, enumeration and search. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -419,17 +419,17 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::JobService.new(*args, **kwargs) end end - module TenantService + module Completion ## - # A service that handles tenant management, including CRUD and enumeration. + # A service handles auto completion. # # @param version [Symbol, String] # The major version of the service to be used. By default :v4beta1 # is used. # @overload new(version:, credentials:, scopes:, client_config:, timeout:) @@ -475,10 +475,10 @@ require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first - Google::Cloud::Talent.const_get(version_module)::TenantService.new(*args, **kwargs) + Google::Cloud::Talent.const_get(version_module)::Completion.new(*args, **kwargs) end end end end end