google-cloud-automl-v1beta1 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: 4d30d332e36bfce53c766595864cd4a87e2b4ee1a187af69fb8980a77fccdeea
4
- data.tar.gz: f982628088daa20810be0b95903e2819b70453f5b204ba6d5e891c0cb5b0cd0e
3
+ metadata.gz: 3a7ef5c55b8177aabad04777abb5a8e9996f2c9f787d2ffd64bd4acc993dee3b
4
+ data.tar.gz: 669bb67a43920c1ee64c13cc1fc13775f324729d54a04f8ff6aadb99e6b8b0b6
5
5
  SHA512:
6
- metadata.gz: f0b8d657448b3168e38ac3acd4264b36bb79b2f60d9f48d738e391b477ac16ea8da91df9804f9a4c8fe9f8c7f552698f7d9fb0bd59b6c35813c80aaf6fc4f7ee
7
- data.tar.gz: 8cda70061ac8ed87332345091b21f15b4b678d11e5f2fca7f197590ef6ebf102108e77e3844a6f1a2c41e856560a238a34c2d411e2b469a8e383c0f908bddb46
6
+ metadata.gz: f5168bf596cb65b0e1bef7b1de92800a2541fa3f57665a1704bee1d9a3444fc199416a50d30166bcce6149003ecabf610a9ae57a65725bfe7342d82a1a734c5d
7
+ data.tar.gz: a90cd1c8753039aaca52014516e5dff631e8927467740343ac15d28ceee18961a0e61ff2b3789d467dd87211389728699d5f3fc4d392f3fb5cd7c27509ca3092
@@ -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 V1beta1
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-v1beta1
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
@@ -207,7 +207,6 @@ files:
207
207
  - lib/google/cloud/automl/v1beta1/translation_pb.rb
208
208
  - lib/google/cloud/automl/v1beta1/version.rb
209
209
  - lib/google/cloud/automl/v1beta1/video_pb.rb
210
- - lib/google/cloud/common_resources_pb.rb
211
210
  - proto_docs/README.md
212
211
  - proto_docs/google/api/field_behavior.rb
213
212
  - 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