google-cloud-automl-v1 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: 1dac08e3ab7f67db79ec5746c5b9a3d209b411d8aa38ec74000678d551dcb98c
4
- data.tar.gz: b23fdb4b0af2783e5d35ec0cb2c778deaaac522f562d6fe8226a5c352bf1e701
3
+ metadata.gz: 9abfbd4c581792e7761d7bc0d8b015ad4688651a669c2759d47fe8f01a3f0ab5
4
+ data.tar.gz: 82185a96127ff5754ecc6596fe1309099b7a96096806404dbc9514ba9bb3fbc6
5
5
  SHA512:
6
- metadata.gz: eecc576dd621c660860b1446152fc2fabcf03bcf4d0a79e24dbc7e7d365865879f355ae9e9c3ad81172b5cd6b08d1236488e796ce2a98dcae9d73f742f879cf3
7
- data.tar.gz: 5854a05fc6e2067c2ae1fd7cc31c7b8aad5c41045ab9e0b88443e792a6697bd7fce947ad1160023ea38044e8e2f2fdca9ac1858ab67c4e865cf2073e1a08204a
6
+ metadata.gz: b1102810f73594eb350288f0b6256925ed298e9d94a955b4f32a18edc94cc0719523c87737ae4a102641c5930f2e49dfd59c54635ca95c64552c7dce6e776d6a
7
+ data.tar.gz: 18fb38bc5a90c7bd5e0fe3d50315e058fd6a9fb3cc3100df1347f6c5fbaf9331d222235496a780fe299ec50a17caf8bd2dbd834afb7b8f5516baf3d6ebed5c27
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-v1/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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
88
+ retry_codes: [4, 14]
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
96
+ retry_codes: [4, 14]
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
106
+ retry_codes: [4, 14]
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
118
+ retry_codes: [4, 14]
119
119
  }
120
120
 
121
121
  default_config.rpcs.create_model.timeout = 5.0
@@ -125,7 +125,7 @@ module Google
125
125
  initial_delay: 0.1,
126
126
  max_delay: 60.0,
127
127
  multiplier: 1.3,
128
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
128
+ retry_codes: [4, 14]
129
129
  }
130
130
 
131
131
  default_config.rpcs.list_models.timeout = 5.0
@@ -133,7 +133,7 @@ module Google
133
133
  initial_delay: 0.1,
134
134
  max_delay: 60.0,
135
135
  multiplier: 1.3,
136
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
136
+ retry_codes: [4, 14]
137
137
  }
138
138
 
139
139
  default_config.rpcs.delete_model.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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
144
+ retry_codes: [4, 14]
145
145
  }
146
146
 
147
147
  default_config.rpcs.update_model.timeout = 5.0
@@ -157,7 +157,7 @@ module Google
157
157
  initial_delay: 0.1,
158
158
  max_delay: 60.0,
159
159
  multiplier: 1.3,
160
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
160
+ retry_codes: [4, 14]
161
161
  }
162
162
 
163
163
  default_config.rpcs.list_model_evaluations.timeout = 5.0
@@ -165,7 +165,7 @@ module Google
165
165
  initial_delay: 0.1,
166
166
  max_delay: 60.0,
167
167
  multiplier: 1.3,
168
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
168
+ retry_codes: [4, 14]
169
169
  }
170
170
 
171
171
  default_config
@@ -1691,7 +1691,7 @@ module Google
1691
1691
  def rpcs
1692
1692
  @rpcs ||= begin
1693
1693
  parent_rpcs = nil
1694
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1694
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1695
1695
  Rpcs.new parent_rpcs
1696
1696
  end
1697
1697
  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
@@ -582,7 +582,7 @@ module Google
582
582
  def rpcs
583
583
  @rpcs ||= begin
584
584
  parent_rpcs = nil
585
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
585
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
586
586
  Rpcs.new parent_rpcs
587
587
  end
588
588
  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 V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -884,7 +884,7 @@ module Google
884
884
  # The column names must contain the model's
885
885
  #
886
886
  # [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs]
887
- # [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name]
887
+ # display_name-s
888
888
  # (order doesn't matter). The columns corresponding to the model's
889
889
  # input feature column specs must contain values compatible with the
890
890
  # column spec's data types. Prediction on all the rows, i.e. the CSV
@@ -907,7 +907,7 @@ module Google
907
907
  # The column names must contain the model's
908
908
  #
909
909
  # [input_feature_column_specs'][google.cloud.automl.v1.TablesModelMetadata.input_feature_column_specs]
910
- # [display_name-s][google.cloud.automl.v1.ColumnSpec.display_name]
910
+ # display_name-s
911
911
  # (order doesn't matter). The columns corresponding to the model's
912
912
  # input feature column specs must contain values compatible with the
913
913
  # column spec's data types. Prediction on all the rows of the table
@@ -1041,8 +1041,7 @@ module Google
1041
1041
  # that wraps the same "ID" : "<id_value>" but here followed by
1042
1042
  # exactly one
1043
1043
  #
1044
- # [`google.rpc.Status`](https:
1045
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1044
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1046
1045
  # containing only `code` and `message`fields.
1047
1046
  #
1048
1047
  # * For Image Object Detection:
@@ -1063,8 +1062,7 @@ module Google
1063
1062
  # that wraps the same "ID" : "<id_value>" but here followed by
1064
1063
  # exactly one
1065
1064
  #
1066
- # [`google.rpc.Status`](https:
1067
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1065
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1068
1066
  # containing only `code` and `message`fields.
1069
1067
  # * For Video Classification:
1070
1068
  # In the created directory a video_classification.csv file, and a .JSON
@@ -1138,8 +1136,7 @@ module Google
1138
1136
  # failed predictions). These files will have a JSON representation of a
1139
1137
  # proto that wraps input file followed by exactly one
1140
1138
  #
1141
- # [`google.rpc.Status`](https:
1142
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1139
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1143
1140
  # containing only `code` and `message`.
1144
1141
  #
1145
1142
  # * For Text Sentiment:
@@ -1162,8 +1159,7 @@ module Google
1162
1159
  # failed predictions). These files will have a JSON representation of a
1163
1160
  # proto that wraps input file followed by exactly one
1164
1161
  #
1165
- # [`google.rpc.Status`](https:
1166
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1162
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1167
1163
  # containing only `code` and `message`.
1168
1164
  #
1169
1165
  # * For Text Extraction:
@@ -1198,8 +1194,7 @@ module Google
1198
1194
  # or the document proto (in case of document) but here followed by
1199
1195
  # exactly one
1200
1196
  #
1201
- # [`google.rpc.Status`](https:
1202
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1197
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1203
1198
  # containing only `code` and `message`.
1204
1199
  #
1205
1200
  # * For Tables:
@@ -1251,8 +1246,7 @@ module Google
1251
1246
  # will have analogous format as `tables_*.csv`, but always with a
1252
1247
  # single target column having
1253
1248
  #
1254
- # [`google.rpc.Status`](https:
1255
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1249
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1256
1250
  # represented as a JSON string, and containing only `code` and
1257
1251
  # `message`.
1258
1252
  # BigQuery case:
@@ -1290,8 +1284,7 @@ module Google
1290
1284
  # [display_name][google.cloud.automl.v1p1beta.ColumnSpec.display_name]>",
1291
1285
  # and as a value has
1292
1286
  #
1293
- # [`google.rpc.Status`](https:
1294
- # //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1287
+ # [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
1295
1288
  # represented as a STRUCT, and containing only `code` and `message`.
1296
1289
  # @!attribute [rw] gcs_destination
1297
1290
  # @return [::Google::Cloud::AutoML::V1::GcsDestination]
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.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
@@ -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
@@ -248,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
247
  - !ruby/object:Gem::Version
249
248
  version: '0'
250
249
  requirements: []
251
- rubygems_version: 3.0.6
250
+ rubygems_version: 3.1.3
252
251
  signing_key:
253
252
  specification_version: 4
254
253
  summary: API Client library for the Cloud AutoML V1 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