google-api-client 0.37.2 → 0.37.3

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.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +74 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
  9. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
  10. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
  13. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  14. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
  17. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
  19. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  20. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
  21. data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
  22. data/generated/google/apis/chat_v1.rb +1 -1
  23. data/generated/google/apis/chat_v1/classes.rb +4 -2
  24. data/generated/google/apis/classroom_v1.rb +1 -1
  25. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
  27. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  28. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  29. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  30. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  31. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
  32. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  35. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  36. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  37. data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
  38. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
  39. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
  41. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  42. data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
  43. data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
  44. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  45. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  46. data/generated/google/apis/cloudtrace_v2.rb +4 -4
  47. data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
  48. data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
  49. data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
  50. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  51. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
  52. data/generated/google/apis/container_v1.rb +1 -1
  53. data/generated/google/apis/container_v1/classes.rb +224 -66
  54. data/generated/google/apis/container_v1/representations.rb +70 -0
  55. data/generated/google/apis/container_v1/service.rb +116 -116
  56. data/generated/google/apis/container_v1beta1/classes.rb +18 -4
  57. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/content_v2.rb +1 -1
  59. data/generated/google/apis/content_v2/classes.rb +18 -2
  60. data/generated/google/apis/content_v2/service.rb +3 -1
  61. data/generated/google/apis/content_v2_1.rb +1 -1
  62. data/generated/google/apis/content_v2_1/classes.rb +51 -0
  63. data/generated/google/apis/content_v2_1/representations.rb +15 -0
  64. data/generated/google/apis/content_v2_1/service.rb +73 -1
  65. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  66. data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
  67. data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
  68. data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
  69. data/generated/google/apis/dataproc_v1.rb +1 -1
  70. data/generated/google/apis/dataproc_v1/classes.rb +15 -0
  71. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  72. data/generated/google/apis/dialogflow_v2.rb +1 -1
  73. data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
  74. data/generated/google/apis/dialogflow_v2/service.rb +555 -16
  75. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  76. data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
  77. data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
  78. data/generated/google/apis/displayvideo_v1.rb +1 -1
  79. data/generated/google/apis/dlp_v2.rb +1 -1
  80. data/generated/google/apis/dlp_v2/classes.rb +417 -2
  81. data/generated/google/apis/dlp_v2/representations.rb +175 -0
  82. data/generated/google/apis/dlp_v2/service.rb +116 -0
  83. data/generated/google/apis/file_v1.rb +1 -1
  84. data/generated/google/apis/file_v1/classes.rb +1 -145
  85. data/generated/google/apis/file_v1/representations.rb +0 -34
  86. data/generated/google/apis/file_v1beta1.rb +1 -1
  87. data/generated/google/apis/file_v1beta1/classes.rb +1 -145
  88. data/generated/google/apis/file_v1beta1/representations.rb +0 -34
  89. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  90. data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
  91. data/generated/google/apis/firebaserules_v1.rb +1 -1
  92. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  93. data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
  94. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  95. data/generated/google/apis/iap_v1beta1.rb +1 -1
  96. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  97. data/generated/google/apis/logging_v2.rb +6 -7
  98. data/generated/google/apis/logging_v2/service.rb +5 -6
  99. data/generated/google/apis/manufacturers_v1.rb +1 -1
  100. data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
  101. data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
  102. data/generated/google/apis/ml_v1.rb +1 -1
  103. data/generated/google/apis/ml_v1/classes.rb +966 -21
  104. data/generated/google/apis/ml_v1/representations.rb +477 -0
  105. data/generated/google/apis/ml_v1/service.rb +491 -0
  106. data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
  107. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
  108. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
  109. data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
  110. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  111. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  112. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  113. data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
  114. data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
  115. data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
  116. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  118. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  119. data/generated/google/apis/run_v1.rb +1 -1
  120. data/generated/google/apis/run_v1/classes.rb +84 -0
  121. data/generated/google/apis/run_v1/representations.rb +44 -0
  122. data/generated/google/apis/run_v1/service.rb +138 -0
  123. data/generated/google/apis/run_v1alpha1.rb +1 -1
  124. data/generated/google/apis/securitycenter_v1.rb +1 -1
  125. data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
  126. data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
  127. data/generated/google/apis/securitycenter_v1/service.rb +194 -6
  128. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  129. data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
  130. data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
  131. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  132. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
  133. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
  134. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  135. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
  136. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
  137. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
  138. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  139. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
  140. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  141. data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
  142. data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
  143. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  144. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  145. data/generated/google/apis/serviceusage_v1.rb +1 -1
  146. data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
  147. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  148. data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
  149. data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
  150. data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
  151. data/generated/google/apis/sheets_v4.rb +1 -1
  152. data/generated/google/apis/testing_v1.rb +1 -1
  153. data/generated/google/apis/testing_v1/classes.rb +7 -1
  154. data/generated/google/apis/testing_v1/representations.rb +1 -0
  155. data/generated/google/apis/tpu_v1.rb +1 -1
  156. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  157. data/generated/google/apis/translate_v3.rb +1 -1
  158. data/generated/google/apis/translate_v3/classes.rb +6 -3
  159. data/generated/google/apis/videointelligence_v1.rb +1 -1
  160. data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
  161. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  162. data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
  163. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  164. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
  165. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
  167. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  168. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
  169. data/generated/google/apis/vision_v1.rb +1 -1
  170. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  171. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  172. data/lib/google/apis/core/api_command.rb +4 -0
  173. data/lib/google/apis/version.rb +1 -1
  174. metadata +7 -7
  175. data/generated/google/apis/toolresults_v1/classes.rb +0 -696
  176. data/generated/google/apis/toolresults_v1/representations.rb +0 -438
  177. data/generated/google/apis/toolresults_v1/service.rb +0 -59
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/manufacturers/
26
26
  module ManufacturersV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200213'
28
+ REVISION = '20200303'
29
29
 
30
30
  # Manage your product listings for Google Manufacturer Center
31
31
  AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter'
@@ -181,6 +181,12 @@ module Google
181
181
  # @return [String]
182
182
  attr_accessor :release_date
183
183
 
184
+ # Rich product content. For more information, see
185
+ # https://support.google.com/manufacturers/answer/9389865
186
+ # Corresponds to the JSON property `richContent`
187
+ # @return [Array<String>]
188
+ attr_accessor :rich_content
189
+
184
190
  # The scent of the product. For more information, see
185
191
  # https://support.google.com/manufacturers/answer/6124116#scent.
186
192
  # Corresponds to the JSON property `scent`
@@ -266,6 +272,7 @@ module Google
266
272
  @product_page_url = args[:product_page_url] if args.key?(:product_page_url)
267
273
  @product_type = args[:product_type] if args.key?(:product_type)
268
274
  @release_date = args[:release_date] if args.key?(:release_date)
275
+ @rich_content = args[:rich_content] if args.key?(:rich_content)
269
276
  @scent = args[:scent] if args.key?(:scent)
270
277
  @size = args[:size] if args.key?(:size)
271
278
  @size_system = args[:size_system] if args.key?(:size_system)
@@ -129,6 +129,7 @@ module Google
129
129
  property :product_page_url, as: 'productPageUrl'
130
130
  collection :product_type, as: 'productType'
131
131
  property :release_date, as: 'releaseDate'
132
+ collection :rich_content, as: 'richContent'
132
133
  property :scent, as: 'scent'
133
134
  property :size, as: 'size'
134
135
  property :size_system, as: 'sizeSystem'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/ml/
26
26
  module MlV1
27
27
  VERSION = 'V1'
28
- REVISION = '20200222'
28
+ REVISION = '20200307'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -83,6 +83,55 @@ module Google
83
83
  end
84
84
  end
85
85
 
86
+ #
87
+ class GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # True if measurement.elapsed_time is used as the x-axis of each
91
+ # Trials Decay Curve. Otherwise, Measurement.steps will be used as the
92
+ # x-axis.
93
+ # Corresponds to the JSON property `useElapsedTime`
94
+ # @return [Boolean]
95
+ attr_accessor :use_elapsed_time
96
+ alias_method :use_elapsed_time?, :use_elapsed_time
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @use_elapsed_time = args[:use_elapsed_time] if args.key?(:use_elapsed_time)
105
+ end
106
+ end
107
+
108
+ # The median automated stopping rule stops a pending trial if the trial's
109
+ # best objective_value is strictly below the median 'performance' of all
110
+ # completed trials reported up to the trial's last measurement.
111
+ # Currently, 'performance' refers to the running average of the objective
112
+ # values reported by the trial in each measurement.
113
+ class GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # True if median automated stopping rule applies on
117
+ # measurement.use_elapsed_time. it means that elapsed_time field of
118
+ # latest measurement of current trial is used to compute median objective
119
+ # value for each completed trials.
120
+ # Corresponds to the JSON property `useElapsedTime`
121
+ # @return [Boolean]
122
+ attr_accessor :use_elapsed_time
123
+ alias_method :use_elapsed_time?, :use_elapsed_time
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @use_elapsed_time = args[:use_elapsed_time] if args.key?(:use_elapsed_time)
132
+ end
133
+ end
134
+
86
135
  # An observed value of a metric.
87
136
  class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
88
137
  include Google::Apis::Core::Hashable
@@ -108,6 +157,329 @@ module Google
108
157
  end
109
158
  end
110
159
 
160
+ # A message representing a metric in the measurement.
161
+ class GoogleCloudMlV1MeasurementMetric
162
+ include Google::Apis::Core::Hashable
163
+
164
+ # Required. Metric name.
165
+ # Corresponds to the JSON property `metric`
166
+ # @return [String]
167
+ attr_accessor :metric
168
+
169
+ # Required. The value for this metric.
170
+ # Corresponds to the JSON property `value`
171
+ # @return [Float]
172
+ attr_accessor :value
173
+
174
+ def initialize(**args)
175
+ update!(**args)
176
+ end
177
+
178
+ # Update properties of this object
179
+ def update!(**args)
180
+ @metric = args[:metric] if args.key?(:metric)
181
+ @value = args[:value] if args.key?(:value)
182
+ end
183
+ end
184
+
185
+ #
186
+ class GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # Must be specified if type is `CATEGORICAL`.
190
+ # The list of possible categories.
191
+ # Corresponds to the JSON property `values`
192
+ # @return [Array<String>]
193
+ attr_accessor :values
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @values = args[:values] if args.key?(:values)
202
+ end
203
+ end
204
+
205
+ #
206
+ class GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec
207
+ include Google::Apis::Core::Hashable
208
+
209
+ # Must be specified if type is `DISCRETE`.
210
+ # A list of feasible points.
211
+ # The list should be in strictly increasing order. For instance, this
212
+ # parameter might have possible settings of 1.5, 2.5, and 4.0. This list
213
+ # should not contain more than 1,000 values.
214
+ # Corresponds to the JSON property `values`
215
+ # @return [Array<Float>]
216
+ attr_accessor :values
217
+
218
+ def initialize(**args)
219
+ update!(**args)
220
+ end
221
+
222
+ # Update properties of this object
223
+ def update!(**args)
224
+ @values = args[:values] if args.key?(:values)
225
+ end
226
+ end
227
+
228
+ #
229
+ class GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # Must be specified if type is `DOUBLE`. Maximum value of the parameter.
233
+ # Corresponds to the JSON property `maxValue`
234
+ # @return [Float]
235
+ attr_accessor :max_value
236
+
237
+ # Must be specified if type is `DOUBLE`. Minimum value of the parameter.
238
+ # Corresponds to the JSON property `minValue`
239
+ # @return [Float]
240
+ attr_accessor :min_value
241
+
242
+ def initialize(**args)
243
+ update!(**args)
244
+ end
245
+
246
+ # Update properties of this object
247
+ def update!(**args)
248
+ @max_value = args[:max_value] if args.key?(:max_value)
249
+ @min_value = args[:min_value] if args.key?(:min_value)
250
+ end
251
+ end
252
+
253
+ #
254
+ class GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec
255
+ include Google::Apis::Core::Hashable
256
+
257
+ # Must be specified if type is `INTEGER`. Maximum value of the parameter.
258
+ # Corresponds to the JSON property `maxValue`
259
+ # @return [Fixnum]
260
+ attr_accessor :max_value
261
+
262
+ # Must be specified if type is `INTEGER`. Minimum value of the parameter.
263
+ # Corresponds to the JSON property `minValue`
264
+ # @return [Fixnum]
265
+ attr_accessor :min_value
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @max_value = args[:max_value] if args.key?(:max_value)
274
+ @min_value = args[:min_value] if args.key?(:min_value)
275
+ end
276
+ end
277
+
278
+ # Represents the spec to match categorical values from parent parameter.
279
+ class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # Matches values of the parent parameter with type 'CATEGORICAL'.
283
+ # All values must exist in `categorical_value_spec` of parent parameter.
284
+ # Corresponds to the JSON property `values`
285
+ # @return [Array<String>]
286
+ attr_accessor :values
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @values = args[:values] if args.key?(:values)
295
+ end
296
+ end
297
+
298
+ # Represents the spec to match discrete values from parent parameter.
299
+ class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec
300
+ include Google::Apis::Core::Hashable
301
+
302
+ # Matches values of the parent parameter with type 'DISCRETE'.
303
+ # All values must exist in `discrete_value_spec` of parent parameter.
304
+ # Corresponds to the JSON property `values`
305
+ # @return [Array<Float>]
306
+ attr_accessor :values
307
+
308
+ def initialize(**args)
309
+ update!(**args)
310
+ end
311
+
312
+ # Update properties of this object
313
+ def update!(**args)
314
+ @values = args[:values] if args.key?(:values)
315
+ end
316
+ end
317
+
318
+ # Represents the spec to match integer values from parent parameter.
319
+ class GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # Matches values of the parent parameter with type 'INTEGER'.
323
+ # All values must lie in `integer_value_spec` of parent parameter.
324
+ # Corresponds to the JSON property `values`
325
+ # @return [Array<Fixnum>]
326
+ attr_accessor :values
327
+
328
+ def initialize(**args)
329
+ update!(**args)
330
+ end
331
+
332
+ # Update properties of this object
333
+ def update!(**args)
334
+ @values = args[:values] if args.key?(:values)
335
+ end
336
+ end
337
+
338
+ # Represents a metric to optimize.
339
+ class GoogleCloudMlV1StudyConfigMetricSpec
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Required. The optimization goal of the metric.
343
+ # Corresponds to the JSON property `goal`
344
+ # @return [String]
345
+ attr_accessor :goal
346
+
347
+ # Required. The name of the metric.
348
+ # Corresponds to the JSON property `metric`
349
+ # @return [String]
350
+ attr_accessor :metric
351
+
352
+ def initialize(**args)
353
+ update!(**args)
354
+ end
355
+
356
+ # Update properties of this object
357
+ def update!(**args)
358
+ @goal = args[:goal] if args.key?(:goal)
359
+ @metric = args[:metric] if args.key?(:metric)
360
+ end
361
+ end
362
+
363
+ # Represents a single parameter to optimize.
364
+ class GoogleCloudMlV1StudyConfigParameterSpec
365
+ include Google::Apis::Core::Hashable
366
+
367
+ # The value spec for a 'CATEGORICAL' parameter.
368
+ # Corresponds to the JSON property `categoricalValueSpec`
369
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec]
370
+ attr_accessor :categorical_value_spec
371
+
372
+ # A child node is active if the parameter's value matches the child node's
373
+ # matching_parent_values.
374
+ # If two items in child_parameter_specs have the same name, they must have
375
+ # disjoint matching_parent_values.
376
+ # Corresponds to the JSON property `childParameterSpecs`
377
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>]
378
+ attr_accessor :child_parameter_specs
379
+
380
+ # The value spec for a 'DISCRETE' parameter.
381
+ # Corresponds to the JSON property `discreteValueSpec`
382
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec]
383
+ attr_accessor :discrete_value_spec
384
+
385
+ # The value spec for a 'DOUBLE' parameter.
386
+ # Corresponds to the JSON property `doubleValueSpec`
387
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec]
388
+ attr_accessor :double_value_spec
389
+
390
+ # The value spec for an 'INTEGER' parameter.
391
+ # Corresponds to the JSON property `integerValueSpec`
392
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec]
393
+ attr_accessor :integer_value_spec
394
+
395
+ # Required. The parameter name must be unique amongst all ParameterSpecs.
396
+ # Corresponds to the JSON property `parameter`
397
+ # @return [String]
398
+ attr_accessor :parameter
399
+
400
+ # Represents the spec to match categorical values from parent parameter.
401
+ # Corresponds to the JSON property `parentCategoricalValues`
402
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec]
403
+ attr_accessor :parent_categorical_values
404
+
405
+ # Represents the spec to match discrete values from parent parameter.
406
+ # Corresponds to the JSON property `parentDiscreteValues`
407
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec]
408
+ attr_accessor :parent_discrete_values
409
+
410
+ # Represents the spec to match integer values from parent parameter.
411
+ # Corresponds to the JSON property `parentIntValues`
412
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec]
413
+ attr_accessor :parent_int_values
414
+
415
+ # How the parameter should be scaled.
416
+ # Leave unset for categorical parameters.
417
+ # Corresponds to the JSON property `scaleType`
418
+ # @return [String]
419
+ attr_accessor :scale_type
420
+
421
+ # Required. The type of the parameter.
422
+ # Corresponds to the JSON property `type`
423
+ # @return [String]
424
+ attr_accessor :type
425
+
426
+ def initialize(**args)
427
+ update!(**args)
428
+ end
429
+
430
+ # Update properties of this object
431
+ def update!(**args)
432
+ @categorical_value_spec = args[:categorical_value_spec] if args.key?(:categorical_value_spec)
433
+ @child_parameter_specs = args[:child_parameter_specs] if args.key?(:child_parameter_specs)
434
+ @discrete_value_spec = args[:discrete_value_spec] if args.key?(:discrete_value_spec)
435
+ @double_value_spec = args[:double_value_spec] if args.key?(:double_value_spec)
436
+ @integer_value_spec = args[:integer_value_spec] if args.key?(:integer_value_spec)
437
+ @parameter = args[:parameter] if args.key?(:parameter)
438
+ @parent_categorical_values = args[:parent_categorical_values] if args.key?(:parent_categorical_values)
439
+ @parent_discrete_values = args[:parent_discrete_values] if args.key?(:parent_discrete_values)
440
+ @parent_int_values = args[:parent_int_values] if args.key?(:parent_int_values)
441
+ @scale_type = args[:scale_type] if args.key?(:scale_type)
442
+ @type = args[:type] if args.key?(:type)
443
+ end
444
+ end
445
+
446
+ # A message representing a parameter to be tuned.
447
+ class GoogleCloudMlV1TrialParameter
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # Must be set if ParameterType is DOUBLE or DISCRETE.
451
+ # Corresponds to the JSON property `floatValue`
452
+ # @return [Float]
453
+ attr_accessor :float_value
454
+
455
+ # Must be set if ParameterType is INTEGER
456
+ # Corresponds to the JSON property `intValue`
457
+ # @return [Fixnum]
458
+ attr_accessor :int_value
459
+
460
+ # The name of the parameter.
461
+ # Corresponds to the JSON property `parameter`
462
+ # @return [String]
463
+ attr_accessor :parameter
464
+
465
+ # Must be set if ParameterTypeis CATEGORICAL
466
+ # Corresponds to the JSON property `stringValue`
467
+ # @return [String]
468
+ attr_accessor :string_value
469
+
470
+ def initialize(**args)
471
+ update!(**args)
472
+ end
473
+
474
+ # Update properties of this object
475
+ def update!(**args)
476
+ @float_value = args[:float_value] if args.key?(:float_value)
477
+ @int_value = args[:int_value] if args.key?(:int_value)
478
+ @parameter = args[:parameter] if args.key?(:parameter)
479
+ @string_value = args[:string_value] if args.key?(:string_value)
480
+ end
481
+ end
482
+
111
483
  # Represents a hardware accelerator request config.
112
484
  # Note that the AcceleratorConfig can be used in both Jobs and Versions.
113
485
  # Learn more about [accelerators for training](/ml-engine/docs/using-gpus) and
@@ -137,6 +509,25 @@ module Google
137
509
  end
138
510
  end
139
511
 
512
+ # The request message for the AddTrialMeasurement service method.
513
+ class GoogleCloudMlV1AddTrialMeasurementRequest
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # A message representing a Measurement.
517
+ # Corresponds to the JSON property `measurement`
518
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Measurement]
519
+ attr_accessor :measurement
520
+
521
+ def initialize(**args)
522
+ update!(**args)
523
+ end
524
+
525
+ # Update properties of this object
526
+ def update!(**args)
527
+ @measurement = args[:measurement] if args.key?(:measurement)
528
+ end
529
+ end
530
+
140
531
  # Options for automatically scaling a model.
141
532
  class GoogleCloudMlV1AutoScaling
142
533
  include Google::Apis::Core::Hashable
@@ -197,6 +588,36 @@ module Google
197
588
  end
198
589
  end
199
590
 
591
+ # Configuration for Automated Early Stopping of Trials. If no
592
+ # implementation_config is set, automated early stopping will not be run.
593
+ class GoogleCloudMlV1AutomatedStoppingConfig
594
+ include Google::Apis::Core::Hashable
595
+
596
+ #
597
+ # Corresponds to the JSON property `decayCurveStoppingConfig`
598
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfigDecayCurveAutomatedStoppingConfig]
599
+ attr_accessor :decay_curve_stopping_config
600
+
601
+ # The median automated stopping rule stops a pending trial if the trial's
602
+ # best objective_value is strictly below the median 'performance' of all
603
+ # completed trials reported up to the trial's last measurement.
604
+ # Currently, 'performance' refers to the running average of the objective
605
+ # values reported by the trial in each measurement.
606
+ # Corresponds to the JSON property `medianAutomatedStoppingConfig`
607
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfigMedianAutomatedStoppingConfig]
608
+ attr_accessor :median_automated_stopping_config
609
+
610
+ def initialize(**args)
611
+ update!(**args)
612
+ end
613
+
614
+ # Update properties of this object
615
+ def update!(**args)
616
+ @decay_curve_stopping_config = args[:decay_curve_stopping_config] if args.key?(:decay_curve_stopping_config)
617
+ @median_automated_stopping_config = args[:median_automated_stopping_config] if args.key?(:median_automated_stopping_config)
618
+ end
619
+ end
620
+
200
621
  # Represents output related to a built-in algorithm Job.
201
622
  class GoogleCloudMlV1BuiltInAlgorithmOutput
202
623
  include Google::Apis::Core::Hashable
@@ -251,18 +672,152 @@ module Google
251
672
  end
252
673
 
253
674
  #
254
- class GoogleCloudMlV1Capability
675
+ class GoogleCloudMlV1Capability
676
+ include Google::Apis::Core::Hashable
677
+
678
+ # Available accelerators for the capability.
679
+ # Corresponds to the JSON property `availableAccelerators`
680
+ # @return [Array<String>]
681
+ attr_accessor :available_accelerators
682
+
683
+ #
684
+ # Corresponds to the JSON property `type`
685
+ # @return [String]
686
+ attr_accessor :type
687
+
688
+ def initialize(**args)
689
+ update!(**args)
690
+ end
691
+
692
+ # Update properties of this object
693
+ def update!(**args)
694
+ @available_accelerators = args[:available_accelerators] if args.key?(:available_accelerators)
695
+ @type = args[:type] if args.key?(:type)
696
+ end
697
+ end
698
+
699
+ # This message will be placed in the metadata field of a
700
+ # google.longrunning.Operation associated with a CheckTrialEarlyStoppingState
701
+ # request.
702
+ class GoogleCloudMlV1CheckTrialEarlyStoppingStateMetatdata
703
+ include Google::Apis::Core::Hashable
704
+
705
+ # The time operation was submitted.
706
+ # Corresponds to the JSON property `createTime`
707
+ # @return [String]
708
+ attr_accessor :create_time
709
+
710
+ # The name of the study that the trial belongs to.
711
+ # Corresponds to the JSON property `study`
712
+ # @return [String]
713
+ attr_accessor :study
714
+
715
+ # The Trial name.
716
+ # Corresponds to the JSON property `trial`
717
+ # @return [String]
718
+ attr_accessor :trial
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @create_time = args[:create_time] if args.key?(:create_time)
727
+ @study = args[:study] if args.key?(:study)
728
+ @trial = args[:trial] if args.key?(:trial)
729
+ end
730
+ end
731
+
732
+ # The request message for the CheckTrialEarlyStoppingState service method.
733
+ class GoogleCloudMlV1CheckTrialEarlyStoppingStateRequest
734
+ include Google::Apis::Core::Hashable
735
+
736
+ def initialize(**args)
737
+ update!(**args)
738
+ end
739
+
740
+ # Update properties of this object
741
+ def update!(**args)
742
+ end
743
+ end
744
+
745
+ # The message will be placed in the response field of a completed
746
+ # google.longrunning.Operation associated with a CheckTrialEarlyStoppingState
747
+ # request.
748
+ class GoogleCloudMlV1CheckTrialEarlyStoppingStateResponse
749
+ include Google::Apis::Core::Hashable
750
+
751
+ # The time operation processing completed.
752
+ # Corresponds to the JSON property `endTime`
753
+ # @return [String]
754
+ attr_accessor :end_time
755
+
756
+ # True if the Trial should stop.
757
+ # Corresponds to the JSON property `shouldStop`
758
+ # @return [Boolean]
759
+ attr_accessor :should_stop
760
+ alias_method :should_stop?, :should_stop
761
+
762
+ # The time operation was started.
763
+ # Corresponds to the JSON property `startTime`
764
+ # @return [String]
765
+ attr_accessor :start_time
766
+
767
+ def initialize(**args)
768
+ update!(**args)
769
+ end
770
+
771
+ # Update properties of this object
772
+ def update!(**args)
773
+ @end_time = args[:end_time] if args.key?(:end_time)
774
+ @should_stop = args[:should_stop] if args.key?(:should_stop)
775
+ @start_time = args[:start_time] if args.key?(:start_time)
776
+ end
777
+ end
778
+
779
+ # The request message for the CompleteTrial service method.
780
+ class GoogleCloudMlV1CompleteTrialRequest
781
+ include Google::Apis::Core::Hashable
782
+
783
+ # A message representing a Measurement.
784
+ # Corresponds to the JSON property `finalMeasurement`
785
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Measurement]
786
+ attr_accessor :final_measurement
787
+
788
+ # Optional. A human readable reason why the Trial was infeasible. This should
789
+ # only be provided if `trial_infeasible` is true.
790
+ # Corresponds to the JSON property `infeasibleReason`
791
+ # @return [String]
792
+ attr_accessor :infeasible_reason
793
+
794
+ # Optional. True if the trial cannot be run with the given Parameter, and
795
+ # final_measurement will be ignored.
796
+ # Corresponds to the JSON property `trialInfeasible`
797
+ # @return [Boolean]
798
+ attr_accessor :trial_infeasible
799
+ alias_method :trial_infeasible?, :trial_infeasible
800
+
801
+ def initialize(**args)
802
+ update!(**args)
803
+ end
804
+
805
+ # Update properties of this object
806
+ def update!(**args)
807
+ @final_measurement = args[:final_measurement] if args.key?(:final_measurement)
808
+ @infeasible_reason = args[:infeasible_reason] if args.key?(:infeasible_reason)
809
+ @trial_infeasible = args[:trial_infeasible] if args.key?(:trial_infeasible)
810
+ end
811
+ end
812
+
813
+ #
814
+ class GoogleCloudMlV1Config
255
815
  include Google::Apis::Core::Hashable
256
816
 
257
- # Available accelerators for the capability.
258
- # Corresponds to the JSON property `availableAccelerators`
259
- # @return [Array<String>]
260
- attr_accessor :available_accelerators
261
-
262
- #
263
- # Corresponds to the JSON property `type`
817
+ # The service account Cloud ML uses to run on TPU node.
818
+ # Corresponds to the JSON property `tpuServiceAccount`
264
819
  # @return [String]
265
- attr_accessor :type
820
+ attr_accessor :tpu_service_account
266
821
 
267
822
  def initialize(**args)
268
823
  update!(**args)
@@ -270,19 +825,21 @@ module Google
270
825
 
271
826
  # Update properties of this object
272
827
  def update!(**args)
273
- @available_accelerators = args[:available_accelerators] if args.key?(:available_accelerators)
274
- @type = args[:type] if args.key?(:type)
828
+ @tpu_service_account = args[:tpu_service_account] if args.key?(:tpu_service_account)
275
829
  end
276
830
  end
277
831
 
278
- #
279
- class GoogleCloudMlV1Config
832
+ # Represents a custom encryption key configuration that can be applied to
833
+ # a resource.
834
+ class GoogleCloudMlV1EncryptionConfig
280
835
  include Google::Apis::Core::Hashable
281
836
 
282
- # The service account Cloud ML uses to run on TPU node.
283
- # Corresponds to the JSON property `tpuServiceAccount`
837
+ # The Cloud KMS resource identifier of the customer managed encryption key
838
+ # used to protect a resource, such as a training job. Has the form:
839
+ # `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
840
+ # Corresponds to the JSON property `kmsKeyName`
284
841
  # @return [String]
285
- attr_accessor :tpu_service_account
842
+ attr_accessor :kms_key_name
286
843
 
287
844
  def initialize(**args)
288
845
  update!(**args)
@@ -290,7 +847,7 @@ module Google
290
847
 
291
848
  # Update properties of this object
292
849
  def update!(**args)
293
- @tpu_service_account = args[:tpu_service_account] if args.key?(:tpu_service_account)
850
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
294
851
  end
295
852
  end
296
853
 
@@ -344,8 +901,8 @@ module Google
344
901
  # Message holding configuration options for explaining model predictions.
345
902
  # There are two feature attribution methods supported for TensorFlow models:
346
903
  # integrated gradients and sampled Shapley.
347
- # <a href="/ml-engine/docs/ai-explanations/overview">Learn more about feature
348
- # attributions</a>.
904
+ # [Learn more about feature
905
+ # attributions.](/ml-engine/docs/ai-explanations/overview)
349
906
  class GoogleCloudMlV1ExplanationConfig
350
907
  include Google::Apis::Core::Hashable
351
908
 
@@ -363,6 +920,14 @@ module Google
363
920
  # @return [Google::Apis::MlV1::GoogleCloudMlV1SampledShapleyAttribution]
364
921
  attr_accessor :sampled_shapley_attribution
365
922
 
923
+ # Attributes credit by computing the XRAI taking advantage
924
+ # of the model's fully differentiable structure. Refer to this paper for
925
+ # more details: https://arxiv.org/abs/1906.02825
926
+ # Currently only implemented for models with natural image inputs.
927
+ # Corresponds to the JSON property `xraiAttribution`
928
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1XraiAttribution]
929
+ attr_accessor :xrai_attribution
930
+
366
931
  def initialize(**args)
367
932
  update!(**args)
368
933
  end
@@ -371,6 +936,7 @@ module Google
371
936
  def update!(**args)
372
937
  @integrated_gradients_attribution = args[:integrated_gradients_attribution] if args.key?(:integrated_gradients_attribution)
373
938
  @sampled_shapley_attribution = args[:sampled_shapley_attribution] if args.key?(:sampled_shapley_attribution)
939
+ @xrai_attribution = args[:xrai_attribution] if args.key?(:xrai_attribution)
374
940
  end
375
941
  end
376
942
 
@@ -771,6 +1337,44 @@ module Google
771
1337
  end
772
1338
  end
773
1339
 
1340
+ #
1341
+ class GoogleCloudMlV1ListStudiesResponse
1342
+ include Google::Apis::Core::Hashable
1343
+
1344
+ # The Studies associated with the project.
1345
+ # Corresponds to the JSON property `studies`
1346
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Study>]
1347
+ attr_accessor :studies
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @studies = args[:studies] if args.key?(:studies)
1356
+ end
1357
+ end
1358
+
1359
+ # The response message for the ListTrials method.
1360
+ class GoogleCloudMlV1ListTrialsResponse
1361
+ include Google::Apis::Core::Hashable
1362
+
1363
+ # The trials associated with the study.
1364
+ # Corresponds to the JSON property `trials`
1365
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Trial>]
1366
+ attr_accessor :trials
1367
+
1368
+ def initialize(**args)
1369
+ update!(**args)
1370
+ end
1371
+
1372
+ # Update properties of this object
1373
+ def update!(**args)
1374
+ @trials = args[:trials] if args.key?(:trials)
1375
+ end
1376
+ end
1377
+
774
1378
  # Response message for the ListVersions method.
775
1379
  class GoogleCloudMlV1ListVersionsResponse
776
1380
  include Google::Apis::Core::Hashable
@@ -844,6 +1448,39 @@ module Google
844
1448
  end
845
1449
  end
846
1450
 
1451
+ # A message representing a Measurement.
1452
+ class GoogleCloudMlV1Measurement
1453
+ include Google::Apis::Core::Hashable
1454
+
1455
+ # Time that the Trial has been running at the point of this Measurement.
1456
+ # Corresponds to the JSON property `elapsedTime`
1457
+ # @return [String]
1458
+ attr_accessor :elapsed_time
1459
+
1460
+ # Provides a list of metrics that act as inputs into the objective
1461
+ # function.
1462
+ # Corresponds to the JSON property `metrics`
1463
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric>]
1464
+ attr_accessor :metrics
1465
+
1466
+ # The number of steps a machine learning model has been trained for.
1467
+ # Must be non-negative.
1468
+ # Corresponds to the JSON property `stepCount`
1469
+ # @return [Fixnum]
1470
+ attr_accessor :step_count
1471
+
1472
+ def initialize(**args)
1473
+ update!(**args)
1474
+ end
1475
+
1476
+ # Update properties of this object
1477
+ def update!(**args)
1478
+ @elapsed_time = args[:elapsed_time] if args.key?(:elapsed_time)
1479
+ @metrics = args[:metrics] if args.key?(:metrics)
1480
+ @step_count = args[:step_count] if args.key?(:step_count)
1481
+ end
1482
+ end
1483
+
847
1484
  # Represents a machine learning solution.
848
1485
  # A model can have multiple versions, each of which is a deployed, trained
849
1486
  # model ready to receive prediction requests. The model itself is just a
@@ -1456,6 +2093,205 @@ module Google
1456
2093
  end
1457
2094
  end
1458
2095
 
2096
+ #
2097
+ class GoogleCloudMlV1StopTrialRequest
2098
+ include Google::Apis::Core::Hashable
2099
+
2100
+ def initialize(**args)
2101
+ update!(**args)
2102
+ end
2103
+
2104
+ # Update properties of this object
2105
+ def update!(**args)
2106
+ end
2107
+ end
2108
+
2109
+ # A message representing a Study.
2110
+ class GoogleCloudMlV1Study
2111
+ include Google::Apis::Core::Hashable
2112
+
2113
+ # Output only. Time that the study was created.
2114
+ # Corresponds to the JSON property `createTime`
2115
+ # @return [String]
2116
+ attr_accessor :create_time
2117
+
2118
+ # Output only. A human readable reason why the Study is inactive.
2119
+ # This should be empty if a study is ACTIVE or COMPLETED.
2120
+ # Corresponds to the JSON property `inactiveReason`
2121
+ # @return [String]
2122
+ attr_accessor :inactive_reason
2123
+
2124
+ # Output only. The name of a study.
2125
+ # Corresponds to the JSON property `name`
2126
+ # @return [String]
2127
+ attr_accessor :name
2128
+
2129
+ # Output only. The detailed state of a study.
2130
+ # Corresponds to the JSON property `state`
2131
+ # @return [String]
2132
+ attr_accessor :state
2133
+
2134
+ # Represents configuration of a study.
2135
+ # Corresponds to the JSON property `studyConfig`
2136
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1StudyConfig]
2137
+ attr_accessor :study_config
2138
+
2139
+ def initialize(**args)
2140
+ update!(**args)
2141
+ end
2142
+
2143
+ # Update properties of this object
2144
+ def update!(**args)
2145
+ @create_time = args[:create_time] if args.key?(:create_time)
2146
+ @inactive_reason = args[:inactive_reason] if args.key?(:inactive_reason)
2147
+ @name = args[:name] if args.key?(:name)
2148
+ @state = args[:state] if args.key?(:state)
2149
+ @study_config = args[:study_config] if args.key?(:study_config)
2150
+ end
2151
+ end
2152
+
2153
+ # Represents configuration of a study.
2154
+ class GoogleCloudMlV1StudyConfig
2155
+ include Google::Apis::Core::Hashable
2156
+
2157
+ # The search algorithm specified for the study.
2158
+ # Corresponds to the JSON property `algorithm`
2159
+ # @return [String]
2160
+ attr_accessor :algorithm
2161
+
2162
+ # Configuration for Automated Early Stopping of Trials. If no
2163
+ # implementation_config is set, automated early stopping will not be run.
2164
+ # Corresponds to the JSON property `automatedStoppingConfig`
2165
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfig]
2166
+ attr_accessor :automated_stopping_config
2167
+
2168
+ #
2169
+ # Corresponds to the JSON property `metrics`
2170
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec>]
2171
+ attr_accessor :metrics
2172
+
2173
+ # Required. The set of parameters to tune.
2174
+ # Corresponds to the JSON property `parameters`
2175
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>]
2176
+ attr_accessor :parameters
2177
+
2178
+ def initialize(**args)
2179
+ update!(**args)
2180
+ end
2181
+
2182
+ # Update properties of this object
2183
+ def update!(**args)
2184
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
2185
+ @automated_stopping_config = args[:automated_stopping_config] if args.key?(:automated_stopping_config)
2186
+ @metrics = args[:metrics] if args.key?(:metrics)
2187
+ @parameters = args[:parameters] if args.key?(:parameters)
2188
+ end
2189
+ end
2190
+
2191
+ # Metadata field of a google.longrunning.Operation associated
2192
+ # with a SuggestTrialsRequest.
2193
+ class GoogleCloudMlV1SuggestTrialsMetadata
2194
+ include Google::Apis::Core::Hashable
2195
+
2196
+ # The identifier of the client that is requesting the suggestion.
2197
+ # Corresponds to the JSON property `clientId`
2198
+ # @return [String]
2199
+ attr_accessor :client_id
2200
+
2201
+ # The time operation was submitted.
2202
+ # Corresponds to the JSON property `createTime`
2203
+ # @return [String]
2204
+ attr_accessor :create_time
2205
+
2206
+ # The name of the study that the trial belongs to.
2207
+ # Corresponds to the JSON property `study`
2208
+ # @return [String]
2209
+ attr_accessor :study
2210
+
2211
+ # The number of suggestions requested.
2212
+ # Corresponds to the JSON property `suggestionCount`
2213
+ # @return [Fixnum]
2214
+ attr_accessor :suggestion_count
2215
+
2216
+ def initialize(**args)
2217
+ update!(**args)
2218
+ end
2219
+
2220
+ # Update properties of this object
2221
+ def update!(**args)
2222
+ @client_id = args[:client_id] if args.key?(:client_id)
2223
+ @create_time = args[:create_time] if args.key?(:create_time)
2224
+ @study = args[:study] if args.key?(:study)
2225
+ @suggestion_count = args[:suggestion_count] if args.key?(:suggestion_count)
2226
+ end
2227
+ end
2228
+
2229
+ # The request message for the SuggestTrial service method.
2230
+ class GoogleCloudMlV1SuggestTrialsRequest
2231
+ include Google::Apis::Core::Hashable
2232
+
2233
+ # Required. The identifier of the client that is requesting the suggestion.
2234
+ # If multiple SuggestTrialsRequests have the same `client_id`,
2235
+ # the service will return the identical suggested trial if the trial is
2236
+ # pending, and provide a new trial if the last suggested trial was completed.
2237
+ # Corresponds to the JSON property `clientId`
2238
+ # @return [String]
2239
+ attr_accessor :client_id
2240
+
2241
+ # Required. The number of suggestions requested.
2242
+ # Corresponds to the JSON property `suggestionCount`
2243
+ # @return [Fixnum]
2244
+ attr_accessor :suggestion_count
2245
+
2246
+ def initialize(**args)
2247
+ update!(**args)
2248
+ end
2249
+
2250
+ # Update properties of this object
2251
+ def update!(**args)
2252
+ @client_id = args[:client_id] if args.key?(:client_id)
2253
+ @suggestion_count = args[:suggestion_count] if args.key?(:suggestion_count)
2254
+ end
2255
+ end
2256
+
2257
+ # This message will be placed in the response field of a completed
2258
+ # google.longrunning.Operation associated with a SuggestTrials request.
2259
+ class GoogleCloudMlV1SuggestTrialsResponse
2260
+ include Google::Apis::Core::Hashable
2261
+
2262
+ # The time operation processing completed.
2263
+ # Corresponds to the JSON property `endTime`
2264
+ # @return [String]
2265
+ attr_accessor :end_time
2266
+
2267
+ # The time operation was started.
2268
+ # Corresponds to the JSON property `startTime`
2269
+ # @return [String]
2270
+ attr_accessor :start_time
2271
+
2272
+ # The state of the study.
2273
+ # Corresponds to the JSON property `studyState`
2274
+ # @return [String]
2275
+ attr_accessor :study_state
2276
+
2277
+ # A list of Trials.
2278
+ # Corresponds to the JSON property `trials`
2279
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Trial>]
2280
+ attr_accessor :trials
2281
+
2282
+ def initialize(**args)
2283
+ update!(**args)
2284
+ end
2285
+
2286
+ # Update properties of this object
2287
+ def update!(**args)
2288
+ @end_time = args[:end_time] if args.key?(:end_time)
2289
+ @start_time = args[:start_time] if args.key?(:start_time)
2290
+ @study_state = args[:study_state] if args.key?(:study_state)
2291
+ @trials = args[:trials] if args.key?(:trials)
2292
+ end
2293
+ end
2294
+
1459
2295
  # Represents input parameters for a training job. When using the gcloud command
1460
2296
  # to submit your training job, you can specify the input parameters as
1461
2297
  # command-line arguments and/or in a YAML configuration file referenced from
@@ -1469,6 +2305,12 @@ module Google
1469
2305
  # @return [Array<String>]
1470
2306
  attr_accessor :args
1471
2307
 
2308
+ # Represents a custom encryption key configuration that can be applied to
2309
+ # a resource.
2310
+ # Corresponds to the JSON property `encryptionConfig`
2311
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig]
2312
+ attr_accessor :encryption_config
2313
+
1472
2314
  # Represents a set of hyperparameters to optimize.
1473
2315
  # Corresponds to the JSON property `hyperparameters`
1474
2316
  # @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
@@ -1663,6 +2505,7 @@ module Google
1663
2505
  # Update properties of this object
1664
2506
  def update!(**args)
1665
2507
  @args = args[:args] if args.key?(:args)
2508
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
1666
2509
  @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
1667
2510
  @job_dir = args[:job_dir] if args.key?(:job_dir)
1668
2511
  @master_config = args[:master_config] if args.key?(:master_config)
@@ -1747,6 +2590,84 @@ module Google
1747
2590
  end
1748
2591
  end
1749
2592
 
2593
+ # A message representing a Trial.
2594
+ class GoogleCloudMlV1Trial
2595
+ include Google::Apis::Core::Hashable
2596
+
2597
+ # Output only. The identifier of the client that originally requested this trial.
2598
+ # Corresponds to the JSON property `clientId`
2599
+ # @return [String]
2600
+ attr_accessor :client_id
2601
+
2602
+ # Output only. Time the Trial's status changed to COMPLETED.
2603
+ # Corresponds to the JSON property `endTime`
2604
+ # @return [String]
2605
+ attr_accessor :end_time
2606
+
2607
+ # A message representing a Measurement.
2608
+ # Corresponds to the JSON property `finalMeasurement`
2609
+ # @return [Google::Apis::MlV1::GoogleCloudMlV1Measurement]
2610
+ attr_accessor :final_measurement
2611
+
2612
+ # Output only. A human readable string describing why the Trial is
2613
+ # infeasible. This should only be set if trial_infeasible is true.
2614
+ # Corresponds to the JSON property `infeasibleReason`
2615
+ # @return [String]
2616
+ attr_accessor :infeasible_reason
2617
+
2618
+ # A list of measurements that are strictly lexicographically
2619
+ # ordered by their induced tuples (steps, elapsed_time).
2620
+ # These are used for early stopping computations.
2621
+ # Corresponds to the JSON property `measurements`
2622
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Measurement>]
2623
+ attr_accessor :measurements
2624
+
2625
+ # Output only. Name of the trial assigned by the service.
2626
+ # Corresponds to the JSON property `name`
2627
+ # @return [String]
2628
+ attr_accessor :name
2629
+
2630
+ # The parameters of the Trial.
2631
+ # Corresponds to the JSON property `parameters`
2632
+ # @return [Array<Google::Apis::MlV1::GoogleCloudMlV1TrialParameter>]
2633
+ attr_accessor :parameters
2634
+
2635
+ # Output only. Time the Trial was started.
2636
+ # Corresponds to the JSON property `startTime`
2637
+ # @return [String]
2638
+ attr_accessor :start_time
2639
+
2640
+ # The detailed state of a trial.
2641
+ # Corresponds to the JSON property `state`
2642
+ # @return [String]
2643
+ attr_accessor :state
2644
+
2645
+ # Output only. True if the parameters in this trial should not be attempted
2646
+ # again.
2647
+ # Corresponds to the JSON property `trialInfeasible`
2648
+ # @return [Boolean]
2649
+ attr_accessor :trial_infeasible
2650
+ alias_method :trial_infeasible?, :trial_infeasible
2651
+
2652
+ def initialize(**args)
2653
+ update!(**args)
2654
+ end
2655
+
2656
+ # Update properties of this object
2657
+ def update!(**args)
2658
+ @client_id = args[:client_id] if args.key?(:client_id)
2659
+ @end_time = args[:end_time] if args.key?(:end_time)
2660
+ @final_measurement = args[:final_measurement] if args.key?(:final_measurement)
2661
+ @infeasible_reason = args[:infeasible_reason] if args.key?(:infeasible_reason)
2662
+ @measurements = args[:measurements] if args.key?(:measurements)
2663
+ @name = args[:name] if args.key?(:name)
2664
+ @parameters = args[:parameters] if args.key?(:parameters)
2665
+ @start_time = args[:start_time] if args.key?(:start_time)
2666
+ @state = args[:state] if args.key?(:state)
2667
+ @trial_infeasible = args[:trial_infeasible] if args.key?(:trial_infeasible)
2668
+ end
2669
+ end
2670
+
1750
2671
  # Represents a version of the model.
1751
2672
  # Each version is a trained model deployed in the cloud, ready to handle
1752
2673
  # prediction requests. A model can have multiple versions. You can get
@@ -1814,8 +2735,8 @@ module Google
1814
2735
  # Message holding configuration options for explaining model predictions.
1815
2736
  # There are two feature attribution methods supported for TensorFlow models:
1816
2737
  # integrated gradients and sampled Shapley.
1817
- # <a href="/ml-engine/docs/ai-explanations/overview">Learn more about feature
1818
- # attributions</a>.
2738
+ # [Learn more about feature
2739
+ # attributions.](/ml-engine/docs/ai-explanations/overview)
1819
2740
  # Corresponds to the JSON property `explanationConfig`
1820
2741
  # @return [Google::Apis::MlV1::GoogleCloudMlV1ExplanationConfig]
1821
2742
  attr_accessor :explanation_config
@@ -2039,6 +2960,30 @@ module Google
2039
2960
  end
2040
2961
  end
2041
2962
 
2963
+ # Attributes credit by computing the XRAI taking advantage
2964
+ # of the model's fully differentiable structure. Refer to this paper for
2965
+ # more details: https://arxiv.org/abs/1906.02825
2966
+ # Currently only implemented for models with natural image inputs.
2967
+ class GoogleCloudMlV1XraiAttribution
2968
+ include Google::Apis::Core::Hashable
2969
+
2970
+ # Number of steps for approximating the path integral.
2971
+ # A good value to start is 50 and gradually increase until the
2972
+ # sum to diff property is met within the desired error range.
2973
+ # Corresponds to the JSON property `numIntegralSteps`
2974
+ # @return [Fixnum]
2975
+ attr_accessor :num_integral_steps
2976
+
2977
+ def initialize(**args)
2978
+ update!(**args)
2979
+ end
2980
+
2981
+ # Update properties of this object
2982
+ def update!(**args)
2983
+ @num_integral_steps = args[:num_integral_steps] if args.key?(:num_integral_steps)
2984
+ end
2985
+ end
2986
+
2042
2987
  # Specifies the audit configuration for a service.
2043
2988
  # The configuration determines which permission types are logged, and what
2044
2989
  # identities, if any, are exempted from logging.