google-cloud-automl-v1beta1 0.2.0 → 0.2.5

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: 6cee0313f4dcb6530d9cbd2c3b18476e3d520f64631bc11694f96f6d0dbc6d2d
4
+ data.tar.gz: 6f9ee9272a44dc6f021eafddd22af83beb6d8b7294a7f47e26f8f5db0df7fd34
5
5
  SHA512:
6
- metadata.gz: f0b8d657448b3168e38ac3acd4264b36bb79b2f60d9f48d738e391b477ac16ea8da91df9804f9a4c8fe9f8c7f552698f7d9fb0bd59b6c35813c80aaf6fc4f7ee
7
- data.tar.gz: 8cda70061ac8ed87332345091b21f15b4b678d11e5f2fca7f197590ef6ebf102108e77e3844a6f1a2c41e856560a238a34c2d411e2b469a8e383c0f908bddb46
6
+ metadata.gz: 9b3c74706729dbed461e871fbab8b6609db3dc526c17a6e46d91bbb94b3f51ca791ab74eff1e46c25b3b0ead452b7b1a010784e8910030bed54d46589118b76a
7
+ data.tar.gz: d61f58dcae3788b992ab808f5cf8f9b4bd023308cd34b4d801c6b723dff0ce06a638195809992e23ffb36b310d96ded044cec0857353fa57a76f27048e92d002
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.
@@ -85,7 +85,7 @@ module Google
85
85
  initial_delay: 0.1,
86
86
  max_delay: 60.0,
87
87
  multiplier: 1.3,
88
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
88
+ retry_codes: [14, 4]
89
89
  }
90
90
 
91
91
  default_config.rpcs.list_datasets.timeout = 5.0
@@ -93,7 +93,7 @@ module Google
93
93
  initial_delay: 0.1,
94
94
  max_delay: 60.0,
95
95
  multiplier: 1.3,
96
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
96
+ retry_codes: [14, 4]
97
97
  }
98
98
 
99
99
  default_config.rpcs.update_dataset.timeout = 5.0
@@ -103,7 +103,7 @@ module Google
103
103
  initial_delay: 0.1,
104
104
  max_delay: 60.0,
105
105
  multiplier: 1.3,
106
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
106
+ retry_codes: [14, 4]
107
107
  }
108
108
 
109
109
  default_config.rpcs.import_data.timeout = 5.0
@@ -115,7 +115,7 @@ module Google
115
115
  initial_delay: 0.1,
116
116
  max_delay: 60.0,
117
117
  multiplier: 1.3,
118
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
118
+ retry_codes: [14, 4]
119
119
  }
120
120
 
121
121
  default_config.rpcs.get_table_spec.timeout = 5.0
@@ -123,7 +123,7 @@ module Google
123
123
  initial_delay: 0.1,
124
124
  max_delay: 60.0,
125
125
  multiplier: 1.3,
126
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
126
+ retry_codes: [14, 4]
127
127
  }
128
128
 
129
129
  default_config.rpcs.list_table_specs.timeout = 5.0
@@ -131,7 +131,7 @@ module Google
131
131
  initial_delay: 0.1,
132
132
  max_delay: 60.0,
133
133
  multiplier: 1.3,
134
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
134
+ retry_codes: [14, 4]
135
135
  }
136
136
 
137
137
  default_config.rpcs.update_table_spec.timeout = 5.0
@@ -141,7 +141,7 @@ module Google
141
141
  initial_delay: 0.1,
142
142
  max_delay: 60.0,
143
143
  multiplier: 1.3,
144
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
144
+ retry_codes: [14, 4]
145
145
  }
146
146
 
147
147
  default_config.rpcs.list_column_specs.timeout = 5.0
@@ -149,7 +149,7 @@ module Google
149
149
  initial_delay: 0.1,
150
150
  max_delay: 60.0,
151
151
  multiplier: 1.3,
152
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
152
+ retry_codes: [14, 4]
153
153
  }
154
154
 
155
155
  default_config.rpcs.update_column_spec.timeout = 5.0
@@ -161,7 +161,7 @@ module Google
161
161
  initial_delay: 0.1,
162
162
  max_delay: 60.0,
163
163
  multiplier: 1.3,
164
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
164
+ retry_codes: [14, 4]
165
165
  }
166
166
 
167
167
  default_config.rpcs.list_models.timeout = 5.0
@@ -169,7 +169,7 @@ module Google
169
169
  initial_delay: 0.1,
170
170
  max_delay: 60.0,
171
171
  multiplier: 1.3,
172
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
172
+ retry_codes: [14, 4]
173
173
  }
174
174
 
175
175
  default_config.rpcs.delete_model.timeout = 5.0
@@ -177,7 +177,7 @@ module Google
177
177
  initial_delay: 0.1,
178
178
  max_delay: 60.0,
179
179
  multiplier: 1.3,
180
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
180
+ retry_codes: [14, 4]
181
181
  }
182
182
 
183
183
  default_config.rpcs.deploy_model.timeout = 5.0
@@ -193,7 +193,7 @@ module Google
193
193
  initial_delay: 0.1,
194
194
  max_delay: 60.0,
195
195
  multiplier: 1.3,
196
- retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
196
+ retry_codes: [14, 4]
197
197
  }
198
198
 
199
199
  default_config.rpcs.list_model_evaluations.timeout = 5.0
@@ -2166,7 +2166,7 @@ module Google
2166
2166
  def rpcs
2167
2167
  @rpcs ||= begin
2168
2168
  parent_rpcs = nil
2169
- 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)
2170
2170
  Rpcs.new parent_rpcs
2171
2171
  end
2172
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,
@@ -501,7 +503,7 @@ module Google
501
503
  def rpcs
502
504
  @rpcs ||= begin
503
505
  parent_rpcs = nil
504
- 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)
505
507
  Rpcs.new parent_rpcs
506
508
  end
507
509
  end
@@ -538,7 +538,7 @@ module Google
538
538
  def rpcs
539
539
  @rpcs ||= begin
540
540
  parent_rpcs = nil
541
- 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)
542
542
  Rpcs.new parent_rpcs
543
543
  end
544
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,
@@ -501,7 +503,7 @@ module Google
501
503
  def rpcs
502
504
  @rpcs ||= begin
503
505
  parent_rpcs = nil
504
- 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)
505
507
  Rpcs.new parent_rpcs
506
508
  end
507
509
  end
@@ -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.5"
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.2.0
4
+ version: 0.2.5
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-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -266,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
265
  - !ruby/object:Gem::Version
267
266
  version: '0'
268
267
  requirements: []
269
- rubygems_version: 3.0.6
268
+ rubygems_version: 3.1.3
270
269
  signing_key:
271
270
  specification_version: 4
272
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