google-cloud-automl-v1beta1 0.3.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,3 +34,6 @@ module Google
34
34
  end
35
35
  end
36
36
  end
37
+
38
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
39
+ require "google/cloud/automl/v1beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+
18
+ module Google
19
+ module Cloud
20
+ module Automl
21
+ module V1beta1
22
+ VERSION = ::Google::Cloud::AutoML::V1beta1::VERSION
23
+ end
24
+ end
25
+ end
26
+ end
@@ -73,7 +73,7 @@ module Google
73
73
  parent_config = while namespace.any?
74
74
  parent_name = namespace.join "::"
75
75
  parent_const = const_get parent_name
76
- break parent_const.configure if parent_const&.respond_to? :configure
76
+ break parent_const.configure if parent_const.respond_to? :configure
77
77
  namespace.pop
78
78
  end
79
79
  default_config = Client::Configuration.new parent_config
@@ -83,17 +83,17 @@ module Google
83
83
  default_config.rpcs.get_dataset.timeout = 5.0
84
84
  default_config.rpcs.get_dataset.retry_policy = {
85
85
  initial_delay: 0.1,
86
- max_delay: 60.0,
87
- multiplier: 1.3,
88
- retry_codes: [14, 4]
86
+ max_delay: 60.0,
87
+ multiplier: 1.3,
88
+ retry_codes: [14, 4]
89
89
  }
90
90
 
91
91
  default_config.rpcs.list_datasets.timeout = 5.0
92
92
  default_config.rpcs.list_datasets.retry_policy = {
93
93
  initial_delay: 0.1,
94
- max_delay: 60.0,
95
- multiplier: 1.3,
96
- retry_codes: [14, 4]
94
+ max_delay: 60.0,
95
+ multiplier: 1.3,
96
+ retry_codes: [14, 4]
97
97
  }
98
98
 
99
99
  default_config.rpcs.update_dataset.timeout = 5.0
@@ -101,9 +101,9 @@ module Google
101
101
  default_config.rpcs.delete_dataset.timeout = 5.0
102
102
  default_config.rpcs.delete_dataset.retry_policy = {
103
103
  initial_delay: 0.1,
104
- max_delay: 60.0,
105
- multiplier: 1.3,
106
- retry_codes: [14, 4]
104
+ max_delay: 60.0,
105
+ multiplier: 1.3,
106
+ retry_codes: [14, 4]
107
107
  }
108
108
 
109
109
  default_config.rpcs.import_data.timeout = 5.0
@@ -113,25 +113,25 @@ module Google
113
113
  default_config.rpcs.get_annotation_spec.timeout = 5.0
114
114
  default_config.rpcs.get_annotation_spec.retry_policy = {
115
115
  initial_delay: 0.1,
116
- max_delay: 60.0,
117
- multiplier: 1.3,
118
- retry_codes: [14, 4]
116
+ max_delay: 60.0,
117
+ multiplier: 1.3,
118
+ retry_codes: [14, 4]
119
119
  }
120
120
 
121
121
  default_config.rpcs.get_table_spec.timeout = 5.0
122
122
  default_config.rpcs.get_table_spec.retry_policy = {
123
123
  initial_delay: 0.1,
124
- max_delay: 60.0,
125
- multiplier: 1.3,
126
- retry_codes: [14, 4]
124
+ max_delay: 60.0,
125
+ multiplier: 1.3,
126
+ retry_codes: [14, 4]
127
127
  }
128
128
 
129
129
  default_config.rpcs.list_table_specs.timeout = 5.0
130
130
  default_config.rpcs.list_table_specs.retry_policy = {
131
131
  initial_delay: 0.1,
132
- max_delay: 60.0,
133
- multiplier: 1.3,
134
- retry_codes: [14, 4]
132
+ max_delay: 60.0,
133
+ multiplier: 1.3,
134
+ retry_codes: [14, 4]
135
135
  }
136
136
 
137
137
  default_config.rpcs.update_table_spec.timeout = 5.0
@@ -139,17 +139,17 @@ module Google
139
139
  default_config.rpcs.get_column_spec.timeout = 5.0
140
140
  default_config.rpcs.get_column_spec.retry_policy = {
141
141
  initial_delay: 0.1,
142
- max_delay: 60.0,
143
- multiplier: 1.3,
144
- retry_codes: [14, 4]
142
+ max_delay: 60.0,
143
+ multiplier: 1.3,
144
+ retry_codes: [14, 4]
145
145
  }
146
146
 
147
147
  default_config.rpcs.list_column_specs.timeout = 5.0
148
148
  default_config.rpcs.list_column_specs.retry_policy = {
149
149
  initial_delay: 0.1,
150
- max_delay: 60.0,
151
- multiplier: 1.3,
152
- retry_codes: [14, 4]
150
+ max_delay: 60.0,
151
+ multiplier: 1.3,
152
+ retry_codes: [14, 4]
153
153
  }
154
154
 
155
155
  default_config.rpcs.update_column_spec.timeout = 5.0
@@ -159,25 +159,25 @@ module Google
159
159
  default_config.rpcs.get_model.timeout = 5.0
160
160
  default_config.rpcs.get_model.retry_policy = {
161
161
  initial_delay: 0.1,
162
- max_delay: 60.0,
163
- multiplier: 1.3,
164
- retry_codes: [14, 4]
162
+ max_delay: 60.0,
163
+ multiplier: 1.3,
164
+ retry_codes: [14, 4]
165
165
  }
166
166
 
167
167
  default_config.rpcs.list_models.timeout = 5.0
168
168
  default_config.rpcs.list_models.retry_policy = {
169
169
  initial_delay: 0.1,
170
- max_delay: 60.0,
171
- multiplier: 1.3,
172
- retry_codes: [14, 4]
170
+ max_delay: 60.0,
171
+ multiplier: 1.3,
172
+ retry_codes: [14, 4]
173
173
  }
174
174
 
175
175
  default_config.rpcs.delete_model.timeout = 5.0
176
176
  default_config.rpcs.delete_model.retry_policy = {
177
177
  initial_delay: 0.1,
178
- max_delay: 60.0,
179
- multiplier: 1.3,
180
- retry_codes: [14, 4]
178
+ max_delay: 60.0,
179
+ multiplier: 1.3,
180
+ retry_codes: [14, 4]
181
181
  }
182
182
 
183
183
  default_config.rpcs.deploy_model.timeout = 5.0
@@ -191,9 +191,9 @@ module Google
191
191
  default_config.rpcs.get_model_evaluation.timeout = 5.0
192
192
  default_config.rpcs.get_model_evaluation.retry_policy = {
193
193
  initial_delay: 0.1,
194
- max_delay: 60.0,
195
- multiplier: 1.3,
196
- retry_codes: [14, 4]
194
+ max_delay: 60.0,
195
+ multiplier: 1.3,
196
+ retry_codes: [14, 4]
197
197
  }
198
198
 
199
199
  default_config.rpcs.list_model_evaluations.timeout = 5.0
@@ -259,7 +259,13 @@ module Google
259
259
 
260
260
  # Create credentials
261
261
  credentials = @config.credentials
262
- credentials ||= Credentials.default scope: @config.scope
262
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
263
+ # but only if the default endpoint does not have a region prefix.
264
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
265
+ @config.endpoint == Client.configure.endpoint &&
266
+ !@config.endpoint.split(".").first.include?("-")
267
+ credentials ||= Credentials.default scope: @config.scope,
268
+ enable_self_signed_jwt: enable_self_signed_jwt
263
269
  if credentials.is_a?(String) || credentials.is_a?(Hash)
264
270
  credentials = Credentials.new credentials, scope: @config.scope
265
271
  end
@@ -334,7 +340,7 @@ module Google
334
340
  # Set x-goog-api-client and x-goog-user-project headers
335
341
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
343
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
338
344
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
345
 
340
346
  header_params = {
@@ -400,7 +406,7 @@ module Google
400
406
  # Set x-goog-api-client and x-goog-user-project headers
401
407
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
402
408
  lib_name: @config.lib_name, lib_version: @config.lib_version,
403
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
409
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
404
410
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
411
 
406
412
  header_params = {
@@ -482,7 +488,7 @@ module Google
482
488
  # Set x-goog-api-client and x-goog-user-project headers
483
489
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
484
490
  lib_name: @config.lib_name, lib_version: @config.lib_version,
485
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
491
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
486
492
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
487
493
 
488
494
  header_params = {
@@ -551,7 +557,7 @@ module Google
551
557
  # Set x-goog-api-client and x-goog-user-project headers
552
558
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
553
559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
554
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
560
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
555
561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
556
562
 
557
563
  header_params = {
@@ -621,7 +627,7 @@ module Google
621
627
  # Set x-goog-api-client and x-goog-user-project headers
622
628
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
629
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
630
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
625
631
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
632
 
627
633
  header_params = {
@@ -700,7 +706,7 @@ module Google
700
706
  # Set x-goog-api-client and x-goog-user-project headers
701
707
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
708
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
709
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
704
710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
711
 
706
712
  header_params = {
@@ -771,7 +777,7 @@ module Google
771
777
  # Set x-goog-api-client and x-goog-user-project headers
772
778
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
773
779
  lib_name: @config.lib_name, lib_version: @config.lib_version,
774
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
780
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
775
781
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
776
782
 
777
783
  header_params = {
@@ -838,7 +844,7 @@ module Google
838
844
  # Set x-goog-api-client and x-goog-user-project headers
839
845
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
846
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
847
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
842
848
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
849
 
844
850
  header_params = {
@@ -906,7 +912,7 @@ module Google
906
912
  # Set x-goog-api-client and x-goog-user-project headers
907
913
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
908
914
  lib_name: @config.lib_name, lib_version: @config.lib_version,
909
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
915
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
910
916
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
911
917
 
912
918
  header_params = {
@@ -984,7 +990,7 @@ module Google
984
990
  # Set x-goog-api-client and x-goog-user-project headers
985
991
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
992
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
993
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
988
994
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
995
 
990
996
  header_params = {
@@ -1053,7 +1059,7 @@ module Google
1053
1059
  # Set x-goog-api-client and x-goog-user-project headers
1054
1060
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1055
1061
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1056
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1062
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1057
1063
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1058
1064
 
1059
1065
  header_params = {
@@ -1121,7 +1127,7 @@ module Google
1121
1127
  # Set x-goog-api-client and x-goog-user-project headers
1122
1128
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1129
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1130
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1125
1131
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1132
 
1127
1133
  header_params = {
@@ -1199,7 +1205,7 @@ module Google
1199
1205
  # Set x-goog-api-client and x-goog-user-project headers
1200
1206
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1201
1207
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1202
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1208
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1203
1209
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1204
1210
 
1205
1211
  header_params = {
@@ -1268,7 +1274,7 @@ module Google
1268
1274
  # Set x-goog-api-client and x-goog-user-project headers
1269
1275
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1270
1276
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1271
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1277
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1272
1278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1273
1279
 
1274
1280
  header_params = {
@@ -1340,7 +1346,7 @@ module Google
1340
1346
  # Set x-goog-api-client and x-goog-user-project headers
1341
1347
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1342
1348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1343
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1349
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1344
1350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1345
1351
 
1346
1352
  header_params = {
@@ -1407,7 +1413,7 @@ module Google
1407
1413
  # Set x-goog-api-client and x-goog-user-project headers
1408
1414
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1409
1415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1410
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1416
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1411
1417
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1412
1418
 
1413
1419
  header_params = {
@@ -1490,7 +1496,7 @@ module Google
1490
1496
  # Set x-goog-api-client and x-goog-user-project headers
1491
1497
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1492
1498
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1493
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1499
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1494
1500
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1495
1501
 
1496
1502
  header_params = {
@@ -1561,7 +1567,7 @@ module Google
1561
1567
  # Set x-goog-api-client and x-goog-user-project headers
1562
1568
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1563
1569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1564
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1570
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1565
1571
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1566
1572
 
1567
1573
  header_params = {
@@ -1643,7 +1649,7 @@ module Google
1643
1649
  # Set x-goog-api-client and x-goog-user-project headers
1644
1650
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1645
1651
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1646
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1652
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1647
1653
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1648
1654
 
1649
1655
  header_params = {
@@ -1716,7 +1722,7 @@ module Google
1716
1722
  # Set x-goog-api-client and x-goog-user-project headers
1717
1723
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1718
1724
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1719
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1725
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1720
1726
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1721
1727
 
1722
1728
  header_params = {
@@ -1792,7 +1798,7 @@ module Google
1792
1798
  # Set x-goog-api-client and x-goog-user-project headers
1793
1799
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1794
1800
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1795
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1801
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1796
1802
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1797
1803
 
1798
1804
  header_params = {
@@ -1875,7 +1881,7 @@ module Google
1875
1881
  # Set x-goog-api-client and x-goog-user-project headers
1876
1882
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1877
1883
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1878
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1884
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1879
1885
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1880
1886
 
1881
1887
  header_params = {
@@ -1942,7 +1948,7 @@ module Google
1942
1948
  # Set x-goog-api-client and x-goog-user-project headers
1943
1949
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1944
1950
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1945
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
1951
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
1946
1952
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1947
1953
 
1948
1954
  header_params = {
@@ -2029,7 +2035,7 @@ module Google
2029
2035
  # Set x-goog-api-client and x-goog-user-project headers
2030
2036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2031
2037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2032
- gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
2038
+ gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
2033
2039
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2034
2040
 
2035
2041
  header_params = {
@@ -2145,7 +2151,7 @@ module Google
2145
2151
  config_attr :scope, nil, ::String, ::Array, nil
2146
2152
  config_attr :lib_name, nil, ::String, nil
2147
2153
  config_attr :lib_version, nil, ::String, nil
2148
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2154
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
2149
2155
  config_attr :interceptors, nil, ::Array, nil
2150
2156
  config_attr :timeout, nil, ::Numeric, nil
2151
2157
  config_attr :metadata, nil, ::Hash, nil
@@ -2166,7 +2172,7 @@ module Google
2166
2172
  def rpcs
2167
2173
  @rpcs ||= begin
2168
2174
  parent_rpcs = nil
2169
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
2175
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2170
2176
  Rpcs.new parent_rpcs
2171
2177
  end
2172
2178
  end
@@ -2178,7 +2184,7 @@ module Google
2178
2184
  # Each configuration object is of type `Gapic::Config::Method` and includes
2179
2185
  # the following configuration fields:
2180
2186
  #
2181
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
2187
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2182
2188
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
2183
2189
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2184
2190
  # include the following keys:
@@ -2312,53 +2318,53 @@ module Google
2312
2318
 
2313
2319
  # @private
2314
2320
  def initialize parent_rpcs = nil
2315
- create_dataset_config = parent_rpcs&.create_dataset if parent_rpcs&.respond_to? :create_dataset
2321
+ create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
2316
2322
  @create_dataset = ::Gapic::Config::Method.new create_dataset_config
2317
- get_dataset_config = parent_rpcs&.get_dataset if parent_rpcs&.respond_to? :get_dataset
2323
+ get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
2318
2324
  @get_dataset = ::Gapic::Config::Method.new get_dataset_config
2319
- list_datasets_config = parent_rpcs&.list_datasets if parent_rpcs&.respond_to? :list_datasets
2325
+ list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
2320
2326
  @list_datasets = ::Gapic::Config::Method.new list_datasets_config
2321
- update_dataset_config = parent_rpcs&.update_dataset if parent_rpcs&.respond_to? :update_dataset
2327
+ update_dataset_config = parent_rpcs.update_dataset if parent_rpcs.respond_to? :update_dataset
2322
2328
  @update_dataset = ::Gapic::Config::Method.new update_dataset_config
2323
- delete_dataset_config = parent_rpcs&.delete_dataset if parent_rpcs&.respond_to? :delete_dataset
2329
+ delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
2324
2330
  @delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
2325
- import_data_config = parent_rpcs&.import_data if parent_rpcs&.respond_to? :import_data
2331
+ import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
2326
2332
  @import_data = ::Gapic::Config::Method.new import_data_config
2327
- export_data_config = parent_rpcs&.export_data if parent_rpcs&.respond_to? :export_data
2333
+ export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
2328
2334
  @export_data = ::Gapic::Config::Method.new export_data_config
2329
- get_annotation_spec_config = parent_rpcs&.get_annotation_spec if parent_rpcs&.respond_to? :get_annotation_spec
2335
+ get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
2330
2336
  @get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
2331
- get_table_spec_config = parent_rpcs&.get_table_spec if parent_rpcs&.respond_to? :get_table_spec
2337
+ get_table_spec_config = parent_rpcs.get_table_spec if parent_rpcs.respond_to? :get_table_spec
2332
2338
  @get_table_spec = ::Gapic::Config::Method.new get_table_spec_config
2333
- list_table_specs_config = parent_rpcs&.list_table_specs if parent_rpcs&.respond_to? :list_table_specs
2339
+ list_table_specs_config = parent_rpcs.list_table_specs if parent_rpcs.respond_to? :list_table_specs
2334
2340
  @list_table_specs = ::Gapic::Config::Method.new list_table_specs_config
2335
- update_table_spec_config = parent_rpcs&.update_table_spec if parent_rpcs&.respond_to? :update_table_spec
2341
+ update_table_spec_config = parent_rpcs.update_table_spec if parent_rpcs.respond_to? :update_table_spec
2336
2342
  @update_table_spec = ::Gapic::Config::Method.new update_table_spec_config
2337
- get_column_spec_config = parent_rpcs&.get_column_spec if parent_rpcs&.respond_to? :get_column_spec
2343
+ get_column_spec_config = parent_rpcs.get_column_spec if parent_rpcs.respond_to? :get_column_spec
2338
2344
  @get_column_spec = ::Gapic::Config::Method.new get_column_spec_config
2339
- list_column_specs_config = parent_rpcs&.list_column_specs if parent_rpcs&.respond_to? :list_column_specs
2345
+ list_column_specs_config = parent_rpcs.list_column_specs if parent_rpcs.respond_to? :list_column_specs
2340
2346
  @list_column_specs = ::Gapic::Config::Method.new list_column_specs_config
2341
- update_column_spec_config = parent_rpcs&.update_column_spec if parent_rpcs&.respond_to? :update_column_spec
2347
+ update_column_spec_config = parent_rpcs.update_column_spec if parent_rpcs.respond_to? :update_column_spec
2342
2348
  @update_column_spec = ::Gapic::Config::Method.new update_column_spec_config
2343
- create_model_config = parent_rpcs&.create_model if parent_rpcs&.respond_to? :create_model
2349
+ create_model_config = parent_rpcs.create_model if parent_rpcs.respond_to? :create_model
2344
2350
  @create_model = ::Gapic::Config::Method.new create_model_config
2345
- get_model_config = parent_rpcs&.get_model if parent_rpcs&.respond_to? :get_model
2351
+ get_model_config = parent_rpcs.get_model if parent_rpcs.respond_to? :get_model
2346
2352
  @get_model = ::Gapic::Config::Method.new get_model_config
2347
- list_models_config = parent_rpcs&.list_models if parent_rpcs&.respond_to? :list_models
2353
+ list_models_config = parent_rpcs.list_models if parent_rpcs.respond_to? :list_models
2348
2354
  @list_models = ::Gapic::Config::Method.new list_models_config
2349
- delete_model_config = parent_rpcs&.delete_model if parent_rpcs&.respond_to? :delete_model
2355
+ delete_model_config = parent_rpcs.delete_model if parent_rpcs.respond_to? :delete_model
2350
2356
  @delete_model = ::Gapic::Config::Method.new delete_model_config
2351
- deploy_model_config = parent_rpcs&.deploy_model if parent_rpcs&.respond_to? :deploy_model
2357
+ deploy_model_config = parent_rpcs.deploy_model if parent_rpcs.respond_to? :deploy_model
2352
2358
  @deploy_model = ::Gapic::Config::Method.new deploy_model_config
2353
- undeploy_model_config = parent_rpcs&.undeploy_model if parent_rpcs&.respond_to? :undeploy_model
2359
+ undeploy_model_config = parent_rpcs.undeploy_model if parent_rpcs.respond_to? :undeploy_model
2354
2360
  @undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
2355
- export_model_config = parent_rpcs&.export_model if parent_rpcs&.respond_to? :export_model
2361
+ export_model_config = parent_rpcs.export_model if parent_rpcs.respond_to? :export_model
2356
2362
  @export_model = ::Gapic::Config::Method.new export_model_config
2357
- export_evaluated_examples_config = parent_rpcs&.export_evaluated_examples if parent_rpcs&.respond_to? :export_evaluated_examples
2363
+ export_evaluated_examples_config = parent_rpcs.export_evaluated_examples if parent_rpcs.respond_to? :export_evaluated_examples
2358
2364
  @export_evaluated_examples = ::Gapic::Config::Method.new export_evaluated_examples_config
2359
- get_model_evaluation_config = parent_rpcs&.get_model_evaluation if parent_rpcs&.respond_to? :get_model_evaluation
2365
+ get_model_evaluation_config = parent_rpcs.get_model_evaluation if parent_rpcs.respond_to? :get_model_evaluation
2360
2366
  @get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
2361
- list_model_evaluations_config = parent_rpcs&.list_model_evaluations if parent_rpcs&.respond_to? :list_model_evaluations
2367
+ list_model_evaluations_config = parent_rpcs.list_model_evaluations if parent_rpcs.respond_to? :list_model_evaluations
2362
2368
  @list_model_evaluations = ::Gapic::Config::Method.new list_model_evaluations_config
2363
2369
 
2364
2370
  yield self if block_given?