lib/google/cloud/pubsub/credentials.rb in google-cloud-pubsub-0.31.1 vs lib/google/cloud/pubsub/credentials.rb in google-cloud-pubsub-0.32.0
- old
+ new
@@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require "googleauth"
+require "google/cloud/pubsub/v1/credentials.rb"
module Google
module Cloud
module Pubsub
##
@@ -35,23 +36,10 @@
# credentials: creds
# )
#
# pubsub.project_id #=> "my-project"
#
- class Credentials < Google::Auth::Credentials
- SCOPE = ["https://www.googleapis.com/auth/pubsub"].freeze
- PATH_ENV_VARS = %w[PUBSUB_CREDENTIALS
- PUBSUB_KEYFILE
- GOOGLE_CLOUD_CREDENTIALS
- GOOGLE_CLOUD_KEYFILE
- GCLOUD_KEYFILE].freeze
- JSON_ENV_VARS = %w[PUBSUB_CREDENTIALS_JSON
- PUBSUB_KEYFILE_JSON
- GOOGLE_CLOUD_CREDENTIALS_JSON
- GOOGLE_CLOUD_KEYFILE_JSON
- GCLOUD_KEYFILE_JSON].freeze
- DEFAULT_PATHS = \
- ["~/.config/gcloud/application_default_credentials.json"].freeze
+ class Credentials < Google::Cloud::Pubsub::V1::Credentials
end
end
end
end