google-cloud-automl-v1 0.2.1 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f3d96c714f8eeecc29866443ce5aa5ed87f04385a8b6c6774b956a2c409c09e
4
- data.tar.gz: 39af58c066d46d990c5ac0541493efe6c055aabda27581c158904a4d796213df
3
+ metadata.gz: 5e2c5d77141f0fd06ed0d4478c8f11ca0bda18991589312188570eb2c0fb7bff
4
+ data.tar.gz: 683d497ce4b36f4dda7cb70f4f04f1135b3b0d30ca2d920e4d899dafe2b40fb6
5
5
  SHA512:
6
- metadata.gz: 2eed003ff76085d819cd62167ef2b195c403e0815c6c16f9b57d6659a4243ea269d405f2525ae0b35c45c1ee10bae666e4a6b08ed57428213cdaec4753a54fa1
7
- data.tar.gz: ae2c4cc8e36401b5e3572c7754700aa0a390e04494f46a807ab6a570857f52877eafa4154ec54d1de087411d85e154257719bd13fbdcfb5778bd4dbf3408f02c
6
+ metadata.gz: 47eb753c44cfe2b022aefac0577e68ac0a2372344cde96e801742f5a16e8944b5b2984061f91e12553a472312f4b07327b0f02759f023eddaa5ecd5dfa0dba05
7
+ data.tar.gz: 6faf771fccb020758c9aa20f9230a4c8e1d56c4a3c22c23d4b72704679c9661bba23f0981cbb347afcd97166006a3115442fca510455dfebda6c09027242c25b
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
@@ -1663,7 +1663,7 @@ module Google
1663
1663
 
1664
1664
  config_attr :endpoint, "automl.googleapis.com", ::String
1665
1665
  config_attr :credentials, nil do |value|
1666
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1666
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1667
1667
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1668
1668
  allowed.any? { |klass| klass === value }
1669
1669
  end
@@ -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
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "automl.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -503,7 +503,7 @@ module Google
503
503
  def rpcs
504
504
  @rpcs ||= begin
505
505
  parent_rpcs = nil
506
- 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)
507
507
  Rpcs.new parent_rpcs
508
508
  end
509
509
  end
@@ -554,7 +554,7 @@ module Google
554
554
 
555
555
  config_attr :endpoint, "automl.googleapis.com", ::String
556
556
  config_attr :credentials, nil do |value|
557
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
557
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
558
558
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
559
559
  allowed.any? { |klass| klass === value }
560
560
  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
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "automl.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -503,7 +503,7 @@ module Google
503
503
  def rpcs
504
504
  @rpcs ||= begin
505
505
  parent_rpcs = nil
506
- 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)
507
507
  Rpcs.new parent_rpcs
508
508
  end
509
509
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Automl
23
23
  module V1
24
- VERSION = "0.2.1"
24
+ VERSION = "0.2.6"
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.1
4
+ version: 0.2.6
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-26 00:00:00.000000000 Z
11
+ date: 2020-08-10 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
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  - !ruby/object:Gem::Version
248
248
  version: '0'
249
249
  requirements: []
250
- rubygems_version: 3.0.6
250
+ rubygems_version: 3.1.3
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: API Client library for the Cloud AutoML V1 API