lib/google/cloud/talent/v4beta1/company_service_client.rb in google-cloud-talent-0.4.0 vs lib/google/cloud/talent/v4beta1/company_service_client.rb in google-cloud-talent-0.5.0

- old
+ new

@@ -73,10 +73,22 @@ "projects/{project}/tenants/{tenant}/companies/{company}" ) private_constant :COMPANY_PATH_TEMPLATE + COMPANY_WITHOUT_TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new( + "projects/{project}/companies/{company}" + ) + + private_constant :COMPANY_WITHOUT_TENANT_PATH_TEMPLATE + + PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new( + "projects/{project}" + ) + + private_constant :PROJECT_PATH_TEMPLATE + TENANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new( "projects/{project}/tenants/{tenant}" ) private_constant :TENANT_PATH_TEMPLATE @@ -89,9 +101,29 @@ def self.company_path project, tenant, company COMPANY_PATH_TEMPLATE.render( :"project" => project, :"tenant" => tenant, :"company" => company + ) + end + + # Returns a fully-qualified company_without_tenant resource name string. + # @param project [String] + # @param company [String] + # @return [String] + def self.company_without_tenant_path project, company + COMPANY_WITHOUT_TENANT_PATH_TEMPLATE.render( + :"project" => project, + :"company" => company + ) + end + + # Returns a fully-qualified project resource name string. + # @param project [String] + # @return [String] + def self.project_path project + PROJECT_PATH_TEMPLATE.render( + :"project" => project ) end # Returns a fully-qualified tenant resource name string. # @param project [String]