google-cloud-automl-v1beta1 0.1.1 → 0.2.4

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: 55d49e0f6838ccaace3105cc81f82f3f48f5b5bde3ad713c875f91766a9b9d6b
4
- data.tar.gz: 5179ac40c4645166d7fe2a713b15cb518dd7bbd71bfd2400b7b1d4709717aeac
3
+ metadata.gz: 24c59ec5f303300aec9d8c35da177eee11cad1b12ed1feb83f46593a4f669079
4
+ data.tar.gz: f51f8dde29e4e348ccb95c1bd4229bce96354943c4317ec963c1d506219716c0
5
5
  SHA512:
6
- metadata.gz: 0b0144b5717e26f6e9cb231fad8eecee95b466ad8bdf8521c1834c0af1da01217e5f3c5ec434dfcff692b9726b74b901dc2e39fc787b177956c927443d5fdfe8
7
- data.tar.gz: 8950c1698b65768e392d4b7649b3d0e43f64df64d36be0430c84d51194ed269f19d4f2ee33bd64bca4522e8c5457b1517f867e251bc91a8391b1106d152153b0
6
+ metadata.gz: 1cedb7f99abd18fd4ca9f07cbd1a6d43a9405b3d8d3b7f84bb712e6bda95ace8df4a6926c104b0bf030051736ba2bb02ecf7e90c626dff21596490f9a950b34f
7
+ data.tar.gz: 246e6302878f32bf1805c11928328f1db7939ab9f4775c0d3aa651d4a62ed966550346a9d52334df0dbe215f485c133b860c145ec66c8f1cc9d0fda026c18ff7
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/automl.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.predict request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-automl-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/automl)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -263,7 +263,8 @@ module Google
263
263
  if credentials.is_a?(String) || credentials.is_a?(Hash)
264
264
  credentials = Credentials.new credentials, scope: @config.scope
265
265
  end
266
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
266
+ @quota_project_id = @config.quota_project
267
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
267
268
 
268
269
  @operations_client = Operations.new do |config|
269
270
  config.credentials = credentials
@@ -2128,24 +2129,28 @@ module Google
2128
2129
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2129
2130
  # trigger a retry.
2130
2131
  # @return [::Hash]
2132
+ # @!attribute [rw] quota_project
2133
+ # A separate project against which to charge quota.
2134
+ # @return [::String]
2131
2135
  #
2132
2136
  class Configuration
2133
2137
  extend ::Gapic::Config
2134
2138
 
2135
- config_attr :endpoint, "automl.googleapis.com", String
2136
- config_attr :credentials, nil do |value|
2139
+ config_attr :endpoint, "automl.googleapis.com", ::String
2140
+ config_attr :credentials, nil do |value|
2137
2141
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2138
2142
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2139
2143
  allowed.any? { |klass| klass === value }
2140
2144
  end
2141
- config_attr :scope, nil, ::String, ::Array, nil
2142
- config_attr :lib_name, nil, ::String, nil
2143
- config_attr :lib_version, nil, ::String, nil
2144
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2145
- config_attr :interceptors, nil, ::Array, nil
2146
- config_attr :timeout, nil, ::Numeric, nil
2147
- config_attr :metadata, nil, ::Hash, nil
2148
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2145
+ config_attr :scope, nil, ::String, ::Array, nil
2146
+ config_attr :lib_name, nil, ::String, nil
2147
+ config_attr :lib_version, nil, ::String, nil
2148
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2149
+ config_attr :interceptors, nil, ::Array, nil
2150
+ config_attr :timeout, nil, ::Numeric, nil
2151
+ config_attr :metadata, nil, ::Hash, nil
2152
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2153
+ config_attr :quota_project, nil, ::String, nil
2149
2154
 
2150
2155
  # @private
2151
2156
  def initialize parent_config = nil
@@ -2161,7 +2166,7 @@ module Google
2161
2166
  def rpcs
2162
2167
  @rpcs ||= begin
2163
2168
  parent_rpcs = nil
2164
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
2169
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
2165
2170
  Rpcs.new parent_rpcs
2166
2171
  end
2167
2172
  end
@@ -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,
@@ -464,24 +466,28 @@ module Google
464
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
467
  # trigger a retry.
466
468
  # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
467
472
  #
468
473
  class Configuration
469
474
  extend ::Gapic::Config
470
475
 
471
- config_attr :endpoint, "automl.googleapis.com", String
472
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "automl.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
473
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
480
  allowed.any? { |klass| klass === value }
476
481
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
485
491
 
486
492
  # @private
487
493
  def initialize parent_config = nil
@@ -497,7 +503,7 @@ module Google
497
503
  def rpcs
498
504
  @rpcs ||= begin
499
505
  parent_rpcs = nil
500
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
501
507
  Rpcs.new parent_rpcs
502
508
  end
503
509
  end
@@ -137,7 +137,8 @@ module Google
137
137
  if credentials.is_a?(String) || credentials.is_a?(Hash)
138
138
  credentials = Credentials.new credentials, scope: @config.scope
139
139
  end
140
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
140
+ @quota_project_id = @config.quota_project
141
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
142
143
  @operations_client = Operations.new do |config|
143
144
  config.credentials = credentials
@@ -500,24 +501,28 @@ module Google
500
501
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
501
502
  # trigger a retry.
502
503
  # @return [::Hash]
504
+ # @!attribute [rw] quota_project
505
+ # A separate project against which to charge quota.
506
+ # @return [::String]
503
507
  #
504
508
  class Configuration
505
509
  extend ::Gapic::Config
506
510
 
507
- config_attr :endpoint, "automl.googleapis.com", String
508
- config_attr :credentials, nil do |value|
511
+ config_attr :endpoint, "automl.googleapis.com", ::String
512
+ config_attr :credentials, nil do |value|
509
513
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
510
514
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
511
515
  allowed.any? { |klass| klass === value }
512
516
  end
513
- config_attr :scope, nil, ::String, ::Array, nil
514
- config_attr :lib_name, nil, ::String, nil
515
- config_attr :lib_version, nil, ::String, nil
516
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
517
- config_attr :interceptors, nil, ::Array, nil
518
- config_attr :timeout, nil, ::Numeric, nil
519
- config_attr :metadata, nil, ::Hash, nil
520
- config_attr :retry_policy, nil, ::Hash, Proc, nil
517
+ config_attr :scope, nil, ::String, ::Array, nil
518
+ config_attr :lib_name, nil, ::String, nil
519
+ config_attr :lib_version, nil, ::String, nil
520
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
521
+ config_attr :interceptors, nil, ::Array, nil
522
+ config_attr :timeout, nil, ::Numeric, nil
523
+ config_attr :metadata, nil, ::Hash, nil
524
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
525
+ config_attr :quota_project, nil, ::String, nil
521
526
 
522
527
  # @private
523
528
  def initialize parent_config = nil
@@ -533,7 +538,7 @@ module Google
533
538
  def rpcs
534
539
  @rpcs ||= begin
535
540
  parent_rpcs = nil
536
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
541
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
537
542
  Rpcs.new parent_rpcs
538
543
  end
539
544
  end
@@ -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,
@@ -464,24 +466,28 @@ module Google
464
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
467
  # trigger a retry.
466
468
  # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
467
472
  #
468
473
  class Configuration
469
474
  extend ::Gapic::Config
470
475
 
471
- config_attr :endpoint, "automl.googleapis.com", String
472
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "automl.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
473
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
480
  allowed.any? { |klass| klass === value }
476
481
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
485
491
 
486
492
  # @private
487
493
  def initialize parent_config = nil
@@ -497,7 +503,7 @@ module Google
497
503
  def rpcs
498
504
  @rpcs ||= begin
499
505
  parent_rpcs = nil
500
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
501
507
  Rpcs.new parent_rpcs
502
508
  end
503
509
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Automl
23
23
  module V1beta1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.4"
25
25
  end
26
26
  end
27
27
  end
@@ -723,8 +723,7 @@ module Google
723
723
  # that wraps the same "ID" : "<id_value>" but here followed by
724
724
  # exactly one
725
725
  #
726
- # [`google.rpc.Status`](https:
727
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
726
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
728
727
  # containing only `code` and `message`fields.
729
728
  #
730
729
  # * For Image Object Detection:
@@ -745,8 +744,7 @@ module Google
745
744
  # that wraps the same "ID" : "<id_value>" but here followed by
746
745
  # exactly one
747
746
  #
748
- # [`google.rpc.Status`](https:
749
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
747
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
750
748
  # containing only `code` and `message`fields.
751
749
  # * For Video Classification:
752
750
  # In the created directory a video_classification.csv file, and a .JSON
@@ -820,8 +818,7 @@ module Google
820
818
  # proto that wraps input text snippet or input text file followed by
821
819
  # exactly one
822
820
  #
823
- # [`google.rpc.Status`](https:
824
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
821
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
825
822
  # containing only `code` and `message`.
826
823
  #
827
824
  # * For Text Sentiment:
@@ -844,8 +841,7 @@ module Google
844
841
  # proto that wraps input text snippet or input text file followed by
845
842
  # exactly one
846
843
  #
847
- # [`google.rpc.Status`](https:
848
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
844
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
849
845
  # containing only `code` and `message`.
850
846
  #
851
847
  # * For Text Extraction:
@@ -880,8 +876,7 @@ module Google
880
876
  # or the document proto (in case of document) but here followed by
881
877
  # exactly one
882
878
  #
883
- # [`google.rpc.Status`](https:
884
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
879
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
885
880
  # containing only `code` and `message`.
886
881
  #
887
882
  # * For Tables:
@@ -933,8 +928,7 @@ module Google
933
928
  # will have analogous format as `tables_*.csv`, but always with a
934
929
  # single target column having
935
930
  #
936
- # [`google.rpc.Status`](https:
937
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
931
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
938
932
  # represented as a JSON string, and containing only `code` and
939
933
  # `message`.
940
934
  # BigQuery case:
@@ -972,8 +966,7 @@ module Google
972
966
  # {::Google::Cloud::AutoML::V1beta1::ColumnSpec#display_name display_name}>",
973
967
  # and as a value has
974
968
  #
975
- # [`google.rpc.Status`](https:
976
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
969
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
977
970
  # represented as a STRUCT, and containing only `code` and `message`.
978
971
  # @!attribute [rw] gcs_destination
979
972
  # @return [::Google::Cloud::AutoML::V1beta1::GcsDestination]
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.1.1
4
+ version: 0.2.4
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-05 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +207,6 @@ files:
179
207
  - lib/google/cloud/automl/v1beta1/translation_pb.rb
180
208
  - lib/google/cloud/automl/v1beta1/version.rb
181
209
  - lib/google/cloud/automl/v1beta1/video_pb.rb
182
- - lib/google/cloud/common_resources_pb.rb
183
210
  - proto_docs/README.md
184
211
  - proto_docs/google/api/field_behavior.rb
185
212
  - proto_docs/google/api/resource.rb
@@ -238,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
265
  - !ruby/object:Gem::Version
239
266
  version: '0'
240
267
  requirements: []
241
- rubygems_version: 3.0.6
268
+ rubygems_version: 3.1.3
242
269
  signing_key:
243
270
  specification_version: 4
244
271
  summary: API Client library for the Cloud AutoML V1beta1 API
@@ -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