google-cloud-automl-v1 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dac08e3ab7f67db79ec5746c5b9a3d209b411d8aa38ec74000678d551dcb98c
4
- data.tar.gz: b23fdb4b0af2783e5d35ec0cb2c778deaaac522f562d6fe8226a5c352bf1e701
3
+ metadata.gz: 9f3d96c714f8eeecc29866443ce5aa5ed87f04385a8b6c6774b956a2c409c09e
4
+ data.tar.gz: 39af58c066d46d990c5ac0541493efe6c055aabda27581c158904a4d796213df
5
5
  SHA512:
6
- metadata.gz: eecc576dd621c660860b1446152fc2fabcf03bcf4d0a79e24dbc7e7d365865879f355ae9e9c3ad81172b5cd6b08d1236488e796ce2a98dcae9d73f742f879cf3
7
- data.tar.gz: 5854a05fc6e2067c2ae1fd7cc31c7b8aad5c41045ab9e0b88443e792a6697bd7fce947ad1160023ea38044e8e2f2fdca9ac1858ab67c4e865cf2073e1a08204a
6
+ metadata.gz: 2eed003ff76085d819cd62167ef2b195c403e0815c6c16f9b57d6659a4243ea269d405f2525ae0b35c45c1ee10bae666e4a6b08ed57428213cdaec4753a54fa1
7
+ data.tar.gz: ae2c4cc8e36401b5e3572c7754700aa0a390e04494f46a807ab6a570857f52877eafa4154ec54d1de087411d85e154257719bd13fbdcfb5778bd4dbf3408f02c
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Automl
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-automl-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -198,7 +198,6 @@ files:
198
198
  - lib/google/cloud/automl/v1/text_sentiment_pb.rb
199
199
  - lib/google/cloud/automl/v1/translation_pb.rb
200
200
  - lib/google/cloud/automl/v1/version.rb
201
- - lib/google/cloud/common_resources_pb.rb
202
201
  - proto_docs/README.md
203
202
  - proto_docs/google/api/field_behavior.rb
204
203
  - proto_docs/google/api/resource.rb
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end