lib/google/cloud/scheduler/v1/cloud_scheduler_client.rb in google-cloud-scheduler-0.3.0 vs lib/google/cloud/scheduler/v1/cloud_scheduler_client.rb in google-cloud-scheduler-0.3.1

- old
+ new

@@ -66,34 +66,38 @@ ALL_SCOPES = [ "https://www.googleapis.com/auth/cloud-platform" ].freeze - PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new( - "projects/{project}" + JOB_PATH_TEMPLATE = Google::Gax::PathTemplate.new( + "projects/{project}/locations/{location}/jobs/{job}" ) - private_constant :PROJECT_PATH_TEMPLATE + private_constant :JOB_PATH_TEMPLATE LOCATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new( "projects/{project}/locations/{location}" ) private_constant :LOCATION_PATH_TEMPLATE - JOB_PATH_TEMPLATE = Google::Gax::PathTemplate.new( - "projects/{project}/locations/{location}/jobs/{job}" + PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new( + "projects/{project}" ) - private_constant :JOB_PATH_TEMPLATE + private_constant :PROJECT_PATH_TEMPLATE - # Returns a fully-qualified project resource name string. + # Returns a fully-qualified job resource name string. # @param project [String] + # @param location [String] + # @param job [String] # @return [String] - def self.project_path project - PROJECT_PATH_TEMPLATE.render( - :"project" => project + def self.job_path project, location, job + JOB_PATH_TEMPLATE.render( + :"project" => project, + :"location" => location, + :"job" => job ) end # Returns a fully-qualified location resource name string. # @param project [String] @@ -104,19 +108,15 @@ :"project" => project, :"location" => location ) end - # Returns a fully-qualified job resource name string. + # Returns a fully-qualified project resource name string. # @param project [String] - # @param location [String] - # @param job [String] # @return [String] - def self.job_path project, location, job - JOB_PATH_TEMPLATE.render( - :"project" => project, - :"location" => location, - :"job" => job + def self.project_path project + PROJECT_PATH_TEMPLATE.render( + :"project" => project ) end # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc] # Provides the means for authenticating requests made by the client. This parameter can