google-api-client 0.29.0 → 0.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/generated/google/apis/bigquery_v2.rb +1 -1
  4. data/generated/google/apis/bigquery_v2/classes.rb +0 -914
  5. data/generated/google/apis/bigquery_v2/representations.rb +0 -365
  6. data/generated/google/apis/bigquery_v2/service.rb +0 -162
  7. data/generated/google/apis/calendar_v3.rb +1 -1
  8. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  9. data/generated/google/apis/calendar_v3/service.rb +8 -8
  10. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  12. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  13. data/generated/google/apis/dialogflow_v2.rb +1 -1
  14. data/generated/google/apis/dialogflow_v2/classes.rb +3 -3
  15. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  16. data/generated/google/apis/digitalassetlinks_v1/service.rb +5 -4
  17. data/generated/google/apis/dns_v2beta1.rb +1 -1
  18. data/generated/google/apis/dns_v2beta1/service.rb +1 -1
  19. data/generated/google/apis/drive_v2.rb +1 -1
  20. data/generated/google/apis/drive_v2/classes.rb +10 -21
  21. data/generated/google/apis/drive_v2/service.rb +78 -26
  22. data/generated/google/apis/drive_v3.rb +1 -1
  23. data/generated/google/apis/drive_v3/classes.rb +9 -20
  24. data/generated/google/apis/drive_v3/service.rb +54 -18
  25. data/generated/google/apis/iam_v1.rb +1 -1
  26. data/generated/google/apis/iam_v1/classes.rb +48 -0
  27. data/generated/google/apis/iam_v1/representations.rb +28 -0
  28. data/generated/google/apis/iam_v1/service.rb +23 -6
  29. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  30. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -0
  31. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  32. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  33. data/generated/google/apis/servicenetworking_v1/classes.rb +6 -0
  34. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -0
  35. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  36. data/generated/google/apis/servicenetworking_v1beta/classes.rb +6 -0
  37. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  38. data/generated/google/apis/serviceusage_v1.rb +1 -1
  39. data/generated/google/apis/serviceusage_v1/classes.rb +6 -0
  40. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  41. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  42. data/generated/google/apis/serviceusage_v1beta1/classes.rb +6 -0
  43. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  44. data/generated/google/apis/spanner_v1.rb +1 -1
  45. data/generated/google/apis/spanner_v1/classes.rb +48 -6
  46. data/generated/google/apis/spanner_v1/representations.rb +17 -0
  47. data/generated/google/apis/storage_v1.rb +1 -1
  48. data/generated/google/apis/storage_v1/classes.rb +2 -2
  49. data/generated/google/apis/storage_v1/representations.rb +2 -1
  50. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  51. data/lib/google/apis/version.rb +1 -1
  52. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5d895806bd8758953233b3df3d065b7f88d2f3d
4
- data.tar.gz: f4f0621e08b8352ae401e317434c82f8d19c75dc
3
+ metadata.gz: afa581b25727d0e03804388a4b87e69acf4951a3
4
+ data.tar.gz: 4f46bade8349b1d362c51df3a27921f1fbde958b
5
5
  SHA512:
6
- metadata.gz: 148336270670ea5460e7299b382dd15a371f2b3eb9992bab42bd53850b6ebcb2fedbcf42bf379fb4fe7164dcb95b8d8b6ed0ad5e93ddf3586b97cad4e32f57cd
7
- data.tar.gz: 1248e0f489d5ca15fafd5b582a4d2adeb576b0489fcadd8fff05707769cc31973d7b73cd444764957d8d36f4154fe77177b8c0b7be356380aa75fe7ccd8ae1f1
6
+ metadata.gz: eb723ae9006321c005d653adb9fb5261291ad79de387d14ff3d023e1194d9414678d3ac6d53b4fedd0b0f370102b3531874b4c7d9d515f3eeaf2472d9824697f
7
+ data.tar.gz: 210e8bc4f99e45502db70804bb8ddc0a1d553f8618e64579970bc408aa64ec8edd69fa28e987dd14a34dd88142c0e0711d14a79cc0a7b4eb02d2a58b8722b1c8
@@ -1,3 +1,23 @@
1
+ # 0.29.1
2
+ * Backwards compatible changes:
3
+ * Updated `bigquery_v2`
4
+ * Updated `calendar_v3`
5
+ * Updated `cloudbuild_v1`
6
+ * Updated `dialogflow_v2`
7
+ * Updated `digitalassetlinks_v1`
8
+ * Updated `dns_v2beta1`
9
+ * Updated `drive_v2`
10
+ * Updated `drive_v3`
11
+ * Updated `iam_v1`
12
+ * Updated `serviceconsumermanagement_v1`
13
+ * Updated `servicenetworking_v1`
14
+ * Updated `servicenetworking_v1beta`
15
+ * Updated `serviceusage_v1`
16
+ * Updated `serviceusage_v1beta1`
17
+ * Updated `spanner_v1`
18
+ * Updated `storage_v1`
19
+ * Updated `youtube_partner_v1`
20
+
1
21
  # 0.29.0
2
22
  * Breaking changes:
3
23
  * Deleted `logging_v2beta1`
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190423'
28
+ REVISION = '20190501'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -22,74 +22,6 @@ module Google
22
22
  module Apis
23
23
  module BigqueryV2
24
24
 
25
- # Aggregate metrics for classification models. For multi-class models,
26
- # the metrics are either macro-averaged: metrics are calculated for each
27
- # label and then an unweighted average is taken of those values or
28
- # micro-averaged: the metric is calculated globally by counting the total
29
- # number of correctly predicted rows.
30
- class AggregateClassificationMetrics
31
- include Google::Apis::Core::Hashable
32
-
33
- # Accuracy is the fraction of predictions given the correct label. For
34
- # multiclass this is a micro-averaged metric.
35
- # Corresponds to the JSON property `accuracy`
36
- # @return [Float]
37
- attr_accessor :accuracy
38
-
39
- # The F1 score is an average of recall and precision. For multiclass
40
- # this is a macro-averaged metric.
41
- # Corresponds to the JSON property `f1Score`
42
- # @return [Float]
43
- attr_accessor :f1_score
44
-
45
- # Logarithmic Loss. For multiclass this is a macro-averaged metric.
46
- # Corresponds to the JSON property `logLoss`
47
- # @return [Float]
48
- attr_accessor :log_loss
49
-
50
- # Precision is the fraction of actual positive predictions that had
51
- # positive actual labels. For multiclass this is a macro-averaged
52
- # metric treating each class as a binary classifier.
53
- # Corresponds to the JSON property `precision`
54
- # @return [Float]
55
- attr_accessor :precision
56
-
57
- # Recall is the fraction of actual positive labels that were given a
58
- # positive prediction. For multiclass this is a macro-averaged metric.
59
- # Corresponds to the JSON property `recall`
60
- # @return [Float]
61
- attr_accessor :recall
62
-
63
- # Area Under a ROC Curve. For multiclass this is a macro-averaged
64
- # metric.
65
- # Corresponds to the JSON property `rocAuc`
66
- # @return [Float]
67
- attr_accessor :roc_auc
68
-
69
- # Threshold at which the metrics are computed. For binary
70
- # classification models this is the positive class threshold.
71
- # For multi-class classfication models this is the confidence
72
- # threshold.
73
- # Corresponds to the JSON property `threshold`
74
- # @return [Float]
75
- attr_accessor :threshold
76
-
77
- def initialize(**args)
78
- update!(**args)
79
- end
80
-
81
- # Update properties of this object
82
- def update!(**args)
83
- @accuracy = args[:accuracy] if args.key?(:accuracy)
84
- @f1_score = args[:f1_score] if args.key?(:f1_score)
85
- @log_loss = args[:log_loss] if args.key?(:log_loss)
86
- @precision = args[:precision] if args.key?(:precision)
87
- @recall = args[:recall] if args.key?(:recall)
88
- @roc_auc = args[:roc_auc] if args.key?(:roc_auc)
89
- @threshold = args[:threshold] if args.key?(:threshold)
90
- end
91
- end
92
-
93
25
  #
94
26
  class BigQueryModelTraining
95
27
  include Google::Apis::Core::Hashable
@@ -291,90 +223,6 @@ module Google
291
223
  end
292
224
  end
293
225
 
294
- # Evaluation metrics for binary classification models.
295
- class BinaryClassificationMetrics
296
- include Google::Apis::Core::Hashable
297
-
298
- # Aggregate metrics for classification models. For multi-class models,
299
- # the metrics are either macro-averaged: metrics are calculated for each
300
- # label and then an unweighted average is taken of those values or
301
- # micro-averaged: the metric is calculated globally by counting the total
302
- # number of correctly predicted rows.
303
- # Corresponds to the JSON property `aggregateClassificationMetrics`
304
- # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
305
- attr_accessor :aggregate_classification_metrics
306
-
307
- # Binary confusion matrix at multiple thresholds.
308
- # Corresponds to the JSON property `binaryConfusionMatrixList`
309
- # @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]
310
- attr_accessor :binary_confusion_matrix_list
311
-
312
- def initialize(**args)
313
- update!(**args)
314
- end
315
-
316
- # Update properties of this object
317
- def update!(**args)
318
- @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
319
- @binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
320
- end
321
- end
322
-
323
- # Confusion matrix for binary classification models.
324
- class BinaryConfusionMatrix
325
- include Google::Apis::Core::Hashable
326
-
327
- # Number of false samples predicted as false.
328
- # Corresponds to the JSON property `falseNegatives`
329
- # @return [Fixnum]
330
- attr_accessor :false_negatives
331
-
332
- # Number of false samples predicted as true.
333
- # Corresponds to the JSON property `falsePositives`
334
- # @return [Fixnum]
335
- attr_accessor :false_positives
336
-
337
- # Threshold value used when computing each of the following metric.
338
- # Corresponds to the JSON property `positiveClassThreshold`
339
- # @return [Float]
340
- attr_accessor :positive_class_threshold
341
-
342
- # Aggregate precision.
343
- # Corresponds to the JSON property `precision`
344
- # @return [Float]
345
- attr_accessor :precision
346
-
347
- # Aggregate recall.
348
- # Corresponds to the JSON property `recall`
349
- # @return [Float]
350
- attr_accessor :recall
351
-
352
- # Number of true samples predicted as false.
353
- # Corresponds to the JSON property `trueNegatives`
354
- # @return [Fixnum]
355
- attr_accessor :true_negatives
356
-
357
- # Number of true samples predicted as true.
358
- # Corresponds to the JSON property `truePositives`
359
- # @return [Fixnum]
360
- attr_accessor :true_positives
361
-
362
- def initialize(**args)
363
- update!(**args)
364
- end
365
-
366
- # Update properties of this object
367
- def update!(**args)
368
- @false_negatives = args[:false_negatives] if args.key?(:false_negatives)
369
- @false_positives = args[:false_positives] if args.key?(:false_positives)
370
- @positive_class_threshold = args[:positive_class_threshold] if args.key?(:positive_class_threshold)
371
- @precision = args[:precision] if args.key?(:precision)
372
- @recall = args[:recall] if args.key?(:recall)
373
- @true_negatives = args[:true_negatives] if args.key?(:true_negatives)
374
- @true_positives = args[:true_positives] if args.key?(:true_positives)
375
- end
376
- end
377
-
378
226
  #
379
227
  class BqmlIterationResult
380
228
  include Google::Apis::Core::Hashable
@@ -541,38 +389,6 @@ module Google
541
389
  end
542
390
  end
543
391
 
544
- # Information about a single cluster for clustering model.
545
- class ClusterInfo
546
- include Google::Apis::Core::Hashable
547
-
548
- # Centroid id.
549
- # Corresponds to the JSON property `centroidId`
550
- # @return [Fixnum]
551
- attr_accessor :centroid_id
552
-
553
- # Cluster radius, the average distance from centroid
554
- # to each point assigned to the cluster.
555
- # Corresponds to the JSON property `clusterRadius`
556
- # @return [Float]
557
- attr_accessor :cluster_radius
558
-
559
- # Cluster size, the total number of points assigned to the cluster.
560
- # Corresponds to the JSON property `clusterSize`
561
- # @return [Fixnum]
562
- attr_accessor :cluster_size
563
-
564
- def initialize(**args)
565
- update!(**args)
566
- end
567
-
568
- # Update properties of this object
569
- def update!(**args)
570
- @centroid_id = args[:centroid_id] if args.key?(:centroid_id)
571
- @cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius)
572
- @cluster_size = args[:cluster_size] if args.key?(:cluster_size)
573
- end
574
- end
575
-
576
392
  #
577
393
  class Clustering
578
394
  include Google::Apis::Core::Hashable
@@ -595,57 +411,6 @@ module Google
595
411
  end
596
412
  end
597
413
 
598
- # Evaluation metrics for clustering models.
599
- class ClusteringMetrics
600
- include Google::Apis::Core::Hashable
601
-
602
- # Davies-Bouldin index.
603
- # Corresponds to the JSON property `daviesBouldinIndex`
604
- # @return [Float]
605
- attr_accessor :davies_bouldin_index
606
-
607
- # Mean of squared distances between each sample to its cluster centroid.
608
- # Corresponds to the JSON property `meanSquaredDistance`
609
- # @return [Float]
610
- attr_accessor :mean_squared_distance
611
-
612
- def initialize(**args)
613
- update!(**args)
614
- end
615
-
616
- # Update properties of this object
617
- def update!(**args)
618
- @davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index)
619
- @mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance)
620
- end
621
- end
622
-
623
- # Confusion matrix for multi-class classification models.
624
- class ConfusionMatrix
625
- include Google::Apis::Core::Hashable
626
-
627
- # Confidence threshold used when computing the entries of the
628
- # confusion matrix.
629
- # Corresponds to the JSON property `confidenceThreshold`
630
- # @return [Float]
631
- attr_accessor :confidence_threshold
632
-
633
- # One row per actual label.
634
- # Corresponds to the JSON property `rows`
635
- # @return [Array<Google::Apis::BigqueryV2::Row>]
636
- attr_accessor :rows
637
-
638
- def initialize(**args)
639
- update!(**args)
640
- end
641
-
642
- # Update properties of this object
643
- def update!(**args)
644
- @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
645
- @rows = args[:rows] if args.key?(:rows)
646
- end
647
- end
648
-
649
414
  #
650
415
  class CsvOptions
651
416
  include Google::Apis::Core::Hashable
@@ -1102,33 +867,6 @@ module Google
1102
867
  end
1103
868
  end
1104
869
 
1105
- # A single entry in the confusion matrix.
1106
- class Entry
1107
- include Google::Apis::Core::Hashable
1108
-
1109
- # Number of items being predicted as this label.
1110
- # Corresponds to the JSON property `itemCount`
1111
- # @return [Fixnum]
1112
- attr_accessor :item_count
1113
-
1114
- # The predicted label. For confidence_threshold > 0, we will
1115
- # also add an entry indicating the number of items under the
1116
- # confidence threshold.
1117
- # Corresponds to the JSON property `predictedLabel`
1118
- # @return [String]
1119
- attr_accessor :predicted_label
1120
-
1121
- def initialize(**args)
1122
- update!(**args)
1123
- end
1124
-
1125
- # Update properties of this object
1126
- def update!(**args)
1127
- @item_count = args[:item_count] if args.key?(:item_count)
1128
- @predicted_label = args[:predicted_label] if args.key?(:predicted_label)
1129
- end
1130
- end
1131
-
1132
870
  #
1133
871
  class ErrorProto
1134
872
  include Google::Apis::Core::Hashable
@@ -1167,45 +905,6 @@ module Google
1167
905
  end
1168
906
  end
1169
907
 
1170
- # Evaluation metrics of a model. These are either computed on all
1171
- # training data or just the eval data based on whether eval data was used
1172
- # during training.
1173
- class EvaluationMetrics
1174
- include Google::Apis::Core::Hashable
1175
-
1176
- # Evaluation metrics for binary classification models.
1177
- # Corresponds to the JSON property `binaryClassificationMetrics`
1178
- # @return [Google::Apis::BigqueryV2::BinaryClassificationMetrics]
1179
- attr_accessor :binary_classification_metrics
1180
-
1181
- # Evaluation metrics for clustering models.
1182
- # Corresponds to the JSON property `clusteringMetrics`
1183
- # @return [Google::Apis::BigqueryV2::ClusteringMetrics]
1184
- attr_accessor :clustering_metrics
1185
-
1186
- # Evaluation metrics for multi-class classification models.
1187
- # Corresponds to the JSON property `multiClassClassificationMetrics`
1188
- # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
1189
- attr_accessor :multi_class_classification_metrics
1190
-
1191
- # Evaluation metrics for regression models.
1192
- # Corresponds to the JSON property `regressionMetrics`
1193
- # @return [Google::Apis::BigqueryV2::RegressionMetrics]
1194
- attr_accessor :regression_metrics
1195
-
1196
- def initialize(**args)
1197
- update!(**args)
1198
- end
1199
-
1200
- # Update properties of this object
1201
- def update!(**args)
1202
- @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
1203
- @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
1204
- @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
1205
- @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
1206
- end
1207
- end
1208
-
1209
908
  #
1210
909
  class ExplainQueryStage
1211
910
  include Google::Apis::Core::Hashable
@@ -1695,55 +1394,6 @@ module Google
1695
1394
  end
1696
1395
  end
1697
1396
 
1698
- # Information about a single iteration of the training run.
1699
- class IterationResult
1700
- include Google::Apis::Core::Hashable
1701
-
1702
- # [Beta] Information about top clusters for clustering models.
1703
- # Corresponds to the JSON property `clusterInfos`
1704
- # @return [Array<Google::Apis::BigqueryV2::ClusterInfo>]
1705
- attr_accessor :cluster_infos
1706
-
1707
- # Time taken to run the iteration in milliseconds.
1708
- # Corresponds to the JSON property `durationMs`
1709
- # @return [Fixnum]
1710
- attr_accessor :duration_ms
1711
-
1712
- # Loss computed on the eval data at the end of iteration.
1713
- # Corresponds to the JSON property `evalLoss`
1714
- # @return [Float]
1715
- attr_accessor :eval_loss
1716
-
1717
- # Index of the iteration, 0 based.
1718
- # Corresponds to the JSON property `index`
1719
- # @return [Fixnum]
1720
- attr_accessor :index
1721
-
1722
- # Learn rate used for this iteration.
1723
- # Corresponds to the JSON property `learnRate`
1724
- # @return [Float]
1725
- attr_accessor :learn_rate
1726
-
1727
- # Loss computed on the training data at the end of iteration.
1728
- # Corresponds to the JSON property `trainingLoss`
1729
- # @return [Float]
1730
- attr_accessor :training_loss
1731
-
1732
- def initialize(**args)
1733
- update!(**args)
1734
- end
1735
-
1736
- # Update properties of this object
1737
- def update!(**args)
1738
- @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos)
1739
- @duration_ms = args[:duration_ms] if args.key?(:duration_ms)
1740
- @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
1741
- @index = args[:index] if args.key?(:index)
1742
- @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
1743
- @training_loss = args[:training_loss] if args.key?(:training_loss)
1744
- end
1745
- end
1746
-
1747
1397
  #
1748
1398
  class Job
1749
1399
  include Google::Apis::Core::Hashable
@@ -3072,55 +2722,6 @@ module Google
3072
2722
  end
3073
2723
  end
3074
2724
 
3075
- #
3076
- class ListModelsResponse
3077
- include Google::Apis::Core::Hashable
3078
-
3079
- # Models in the requested dataset. Only the following fields are populated:
3080
- # model_reference, model_type, creation_time, last_modified_time and
3081
- # labels.
3082
- # Corresponds to the JSON property `models`
3083
- # @return [Array<Google::Apis::BigqueryV2::Model>]
3084
- attr_accessor :models
3085
-
3086
- # A token to request the next page of results.
3087
- # Corresponds to the JSON property `nextPageToken`
3088
- # @return [String]
3089
- attr_accessor :next_page_token
3090
-
3091
- def initialize(**args)
3092
- update!(**args)
3093
- end
3094
-
3095
- # Update properties of this object
3096
- def update!(**args)
3097
- @models = args[:models] if args.key?(:models)
3098
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3099
- end
3100
- end
3101
-
3102
- # BigQuery-specific metadata about a location. This will be set on
3103
- # google.cloud.location.Location.metadata in Cloud Location API
3104
- # responses.
3105
- class LocationMetadata
3106
- include Google::Apis::Core::Hashable
3107
-
3108
- # The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
3109
- # This is for any API consumers that need the legacy “US” and “EU” locations.
3110
- # Corresponds to the JSON property `legacyLocationId`
3111
- # @return [String]
3112
- attr_accessor :legacy_location_id
3113
-
3114
- def initialize(**args)
3115
- update!(**args)
3116
- end
3117
-
3118
- # Update properties of this object
3119
- def update!(**args)
3120
- @legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id)
3121
- end
3122
- end
3123
-
3124
2725
  #
3125
2726
  class MaterializedViewDefinition
3126
2727
  include Google::Apis::Core::Hashable
@@ -3147,115 +2748,6 @@ module Google
3147
2748
  end
3148
2749
  end
3149
2750
 
3150
- #
3151
- class Model
3152
- include Google::Apis::Core::Hashable
3153
-
3154
- # Output only. The time when this model was created, in millisecs since the
3155
- # epoch.
3156
- # Corresponds to the JSON property `creationTime`
3157
- # @return [Fixnum]
3158
- attr_accessor :creation_time
3159
-
3160
- # [Optional] A user-friendly description of this model.
3161
- # @mutable bigquery.models.patch
3162
- # Corresponds to the JSON property `description`
3163
- # @return [String]
3164
- attr_accessor :description
3165
-
3166
- # Output only. A hash of this resource.
3167
- # Corresponds to the JSON property `etag`
3168
- # @return [String]
3169
- attr_accessor :etag
3170
-
3171
- # [Optional] The time when this model expires, in milliseconds since the
3172
- # epoch. If not present, the model will persist indefinitely. Expired models
3173
- # will be deleted and their storage reclaimed. The defaultTableExpirationMs
3174
- # property of the encapsulating dataset can be used to set a default
3175
- # expirationTime on newly created models.
3176
- # @mutable bigquery.models.patch
3177
- # Corresponds to the JSON property `expirationTime`
3178
- # @return [Fixnum]
3179
- attr_accessor :expiration_time
3180
-
3181
- # Output only. Input feature columns that were used to train this model.
3182
- # Corresponds to the JSON property `featureColumns`
3183
- # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
3184
- attr_accessor :feature_columns
3185
-
3186
- # [Optional] A descriptive name for this model.
3187
- # @mutable bigquery.models.patch
3188
- # Corresponds to the JSON property `friendlyName`
3189
- # @return [String]
3190
- attr_accessor :friendly_name
3191
-
3192
- # Output only. Label columns that were used to train this model.
3193
- # The output of the model will have a “predicted_” prefix to these columns.
3194
- # Corresponds to the JSON property `labelColumns`
3195
- # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
3196
- attr_accessor :label_columns
3197
-
3198
- # [Optional] The labels associated with this model. You can use these to
3199
- # organize and group your models. Label keys and values can be no longer
3200
- # than 63 characters, can only contain lowercase letters, numeric
3201
- # characters, underscores and dashes. International characters are allowed.
3202
- # Label values are optional. Label keys must start with a letter and each
3203
- # label in the list must have a different key.
3204
- # @mutable bigquery.models.patch
3205
- # Corresponds to the JSON property `labels`
3206
- # @return [Hash<String,String>]
3207
- attr_accessor :labels
3208
-
3209
- # Output only. The time when this model was last modified, in millisecs
3210
- # since the epoch.
3211
- # Corresponds to the JSON property `lastModifiedTime`
3212
- # @return [Fixnum]
3213
- attr_accessor :last_modified_time
3214
-
3215
- # Output only. The geographic location where the model resides. This value
3216
- # is inherited from the dataset.
3217
- # Corresponds to the JSON property `location`
3218
- # @return [String]
3219
- attr_accessor :location
3220
-
3221
- # Id path of a model.
3222
- # Corresponds to the JSON property `modelReference`
3223
- # @return [Google::Apis::BigqueryV2::ModelReference]
3224
- attr_accessor :model_reference
3225
-
3226
- # Output only. Type of the model resource.
3227
- # Corresponds to the JSON property `modelType`
3228
- # @return [String]
3229
- attr_accessor :model_type
3230
-
3231
- # Output only. Information for all training runs in increasing order of
3232
- # start_time.
3233
- # Corresponds to the JSON property `trainingRuns`
3234
- # @return [Array<Google::Apis::BigqueryV2::TrainingRun>]
3235
- attr_accessor :training_runs
3236
-
3237
- def initialize(**args)
3238
- update!(**args)
3239
- end
3240
-
3241
- # Update properties of this object
3242
- def update!(**args)
3243
- @creation_time = args[:creation_time] if args.key?(:creation_time)
3244
- @description = args[:description] if args.key?(:description)
3245
- @etag = args[:etag] if args.key?(:etag)
3246
- @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
3247
- @feature_columns = args[:feature_columns] if args.key?(:feature_columns)
3248
- @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
3249
- @label_columns = args[:label_columns] if args.key?(:label_columns)
3250
- @labels = args[:labels] if args.key?(:labels)
3251
- @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
3252
- @location = args[:location] if args.key?(:location)
3253
- @model_reference = args[:model_reference] if args.key?(:model_reference)
3254
- @model_type = args[:model_type] if args.key?(:model_type)
3255
- @training_runs = args[:training_runs] if args.key?(:training_runs)
3256
- end
3257
- end
3258
-
3259
2751
  #
3260
2752
  class ModelDefinition
3261
2753
  include Google::Apis::Core::Hashable
@@ -3319,68 +2811,6 @@ module Google
3319
2811
  end
3320
2812
  end
3321
2813
 
3322
- # Id path of a model.
3323
- class ModelReference
3324
- include Google::Apis::Core::Hashable
3325
-
3326
- # [Required] The ID of the dataset containing this model.
3327
- # Corresponds to the JSON property `datasetId`
3328
- # @return [String]
3329
- attr_accessor :dataset_id
3330
-
3331
- # [Required] The ID of the model. The ID must contain only
3332
- # letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
3333
- # length is 1,024 characters.
3334
- # Corresponds to the JSON property `modelId`
3335
- # @return [String]
3336
- attr_accessor :model_id
3337
-
3338
- # [Required] The ID of the project containing this model.
3339
- # Corresponds to the JSON property `projectId`
3340
- # @return [String]
3341
- attr_accessor :project_id
3342
-
3343
- def initialize(**args)
3344
- update!(**args)
3345
- end
3346
-
3347
- # Update properties of this object
3348
- def update!(**args)
3349
- @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
3350
- @model_id = args[:model_id] if args.key?(:model_id)
3351
- @project_id = args[:project_id] if args.key?(:project_id)
3352
- end
3353
- end
3354
-
3355
- # Evaluation metrics for multi-class classification models.
3356
- class MultiClassClassificationMetrics
3357
- include Google::Apis::Core::Hashable
3358
-
3359
- # Aggregate metrics for classification models. For multi-class models,
3360
- # the metrics are either macro-averaged: metrics are calculated for each
3361
- # label and then an unweighted average is taken of those values or
3362
- # micro-averaged: the metric is calculated globally by counting the total
3363
- # number of correctly predicted rows.
3364
- # Corresponds to the JSON property `aggregateClassificationMetrics`
3365
- # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
3366
- attr_accessor :aggregate_classification_metrics
3367
-
3368
- # Confusion matrix at different thresholds.
3369
- # Corresponds to the JSON property `confusionMatrixList`
3370
- # @return [Array<Google::Apis::BigqueryV2::ConfusionMatrix>]
3371
- attr_accessor :confusion_matrix_list
3372
-
3373
- def initialize(**args)
3374
- update!(**args)
3375
- end
3376
-
3377
- # Update properties of this object
3378
- def update!(**args)
3379
- @aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
3380
- @confusion_matrix_list = args[:confusion_matrix_list] if args.key?(:confusion_matrix_list)
3381
- end
3382
- end
3383
-
3384
2814
  #
3385
2815
  class ProjectList
3386
2816
  include Google::Apis::Core::Hashable
@@ -3923,49 +3353,6 @@ module Google
3923
3353
  end
3924
3354
  end
3925
3355
 
3926
- # Evaluation metrics for regression models.
3927
- class RegressionMetrics
3928
- include Google::Apis::Core::Hashable
3929
-
3930
- # Mean absolute error.
3931
- # Corresponds to the JSON property `meanAbsoluteError`
3932
- # @return [Float]
3933
- attr_accessor :mean_absolute_error
3934
-
3935
- # Mean squared error.
3936
- # Corresponds to the JSON property `meanSquaredError`
3937
- # @return [Float]
3938
- attr_accessor :mean_squared_error
3939
-
3940
- # Mean squared log error.
3941
- # Corresponds to the JSON property `meanSquaredLogError`
3942
- # @return [Float]
3943
- attr_accessor :mean_squared_log_error
3944
-
3945
- # Median absolute error.
3946
- # Corresponds to the JSON property `medianAbsoluteError`
3947
- # @return [Float]
3948
- attr_accessor :median_absolute_error
3949
-
3950
- # R^2 score.
3951
- # Corresponds to the JSON property `rSquared`
3952
- # @return [Float]
3953
- attr_accessor :r_squared
3954
-
3955
- def initialize(**args)
3956
- update!(**args)
3957
- end
3958
-
3959
- # Update properties of this object
3960
- def update!(**args)
3961
- @mean_absolute_error = args[:mean_absolute_error] if args.key?(:mean_absolute_error)
3962
- @mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
3963
- @mean_squared_log_error = args[:mean_squared_log_error] if args.key?(:mean_squared_log_error)
3964
- @median_absolute_error = args[:median_absolute_error] if args.key?(:median_absolute_error)
3965
- @r_squared = args[:r_squared] if args.key?(:r_squared)
3966
- end
3967
- end
3968
-
3969
3356
  #
3970
3357
  class RoutineReference
3971
3358
  include Google::Apis::Core::Hashable
@@ -3998,134 +3385,6 @@ module Google
3998
3385
  end
3999
3386
  end
4000
3387
 
4001
- # A single row in the confusion matrix.
4002
- class Row
4003
- include Google::Apis::Core::Hashable
4004
-
4005
- # The original label of this row.
4006
- # Corresponds to the JSON property `actualLabel`
4007
- # @return [String]
4008
- attr_accessor :actual_label
4009
-
4010
- # Info describing predicted label distribution.
4011
- # Corresponds to the JSON property `entries`
4012
- # @return [Array<Google::Apis::BigqueryV2::Entry>]
4013
- attr_accessor :entries
4014
-
4015
- def initialize(**args)
4016
- update!(**args)
4017
- end
4018
-
4019
- # Update properties of this object
4020
- def update!(**args)
4021
- @actual_label = args[:actual_label] if args.key?(:actual_label)
4022
- @entries = args[:entries] if args.key?(:entries)
4023
- end
4024
- end
4025
-
4026
- # The type of a variable, e.g., a function argument.
4027
- # Examples:
4028
- # INT64: `type_kind="INT64"`
4029
- # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4030
- # STRUCT<x STRING, y ARRAY<DATE>>:
4031
- # `type_kind="STRUCT",
4032
- # struct_type=`fields=[
4033
- # `name="x", type=`type_kind="STRING"``,
4034
- # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4035
- # ]``
4036
- class StandardSqlDataType
4037
- include Google::Apis::Core::Hashable
4038
-
4039
- # The type of a variable, e.g., a function argument.
4040
- # Examples:
4041
- # INT64: `type_kind="INT64"`
4042
- # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4043
- # STRUCT<x STRING, y ARRAY<DATE>>:
4044
- # `type_kind="STRUCT",
4045
- # struct_type=`fields=[
4046
- # `name="x", type=`type_kind="STRING"``,
4047
- # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4048
- # ]``
4049
- # Corresponds to the JSON property `arrayElementType`
4050
- # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
4051
- attr_accessor :array_element_type
4052
-
4053
- # The fields of this struct, in order, if type_kind = "STRUCT".
4054
- # Corresponds to the JSON property `structType`
4055
- # @return [Google::Apis::BigqueryV2::StandardSqlStructType]
4056
- attr_accessor :struct_type
4057
-
4058
- # Required. The top level type of this field.
4059
- # Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
4060
- # Corresponds to the JSON property `typeKind`
4061
- # @return [String]
4062
- attr_accessor :type_kind
4063
-
4064
- def initialize(**args)
4065
- update!(**args)
4066
- end
4067
-
4068
- # Update properties of this object
4069
- def update!(**args)
4070
- @array_element_type = args[:array_element_type] if args.key?(:array_element_type)
4071
- @struct_type = args[:struct_type] if args.key?(:struct_type)
4072
- @type_kind = args[:type_kind] if args.key?(:type_kind)
4073
- end
4074
- end
4075
-
4076
- # A field or a column.
4077
- class StandardSqlField
4078
- include Google::Apis::Core::Hashable
4079
-
4080
- # Optional. The name of this field. Can be absent for struct fields.
4081
- # Corresponds to the JSON property `name`
4082
- # @return [String]
4083
- attr_accessor :name
4084
-
4085
- # The type of a variable, e.g., a function argument.
4086
- # Examples:
4087
- # INT64: `type_kind="INT64"`
4088
- # ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
4089
- # STRUCT<x STRING, y ARRAY<DATE>>:
4090
- # `type_kind="STRUCT",
4091
- # struct_type=`fields=[
4092
- # `name="x", type=`type_kind="STRING"``,
4093
- # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
4094
- # ]``
4095
- # Corresponds to the JSON property `type`
4096
- # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
4097
- attr_accessor :type
4098
-
4099
- def initialize(**args)
4100
- update!(**args)
4101
- end
4102
-
4103
- # Update properties of this object
4104
- def update!(**args)
4105
- @name = args[:name] if args.key?(:name)
4106
- @type = args[:type] if args.key?(:type)
4107
- end
4108
- end
4109
-
4110
- #
4111
- class StandardSqlStructType
4112
- include Google::Apis::Core::Hashable
4113
-
4114
- #
4115
- # Corresponds to the JSON property `fields`
4116
- # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
4117
- attr_accessor :fields
4118
-
4119
- def initialize(**args)
4120
- update!(**args)
4121
- end
4122
-
4123
- # Update properties of this object
4124
- def update!(**args)
4125
- @fields = args[:fields] if args.key?(:fields)
4126
- end
4127
- end
4128
-
4129
3388
  #
4130
3389
  class Streamingbuffer
4131
3390
  include Google::Apis::Core::Hashable
@@ -4907,179 +4166,6 @@ module Google
4907
4166
  end
4908
4167
  end
4909
4168
 
4910
- #
4911
- class TrainingOptions
4912
- include Google::Apis::Core::Hashable
4913
-
4914
- # The column to split data with. This column won't be used as a
4915
- # feature.
4916
- # 1. When data_split_method is CUSTOM, the corresponding column should
4917
- # be boolean. The rows with true value tag are eval data, and the false
4918
- # are training data.
4919
- # 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION
4920
- # rows (from smallest to largest) in the corresponding column are used
4921
- # as training data, and the rest are eval data. It respects the order
4922
- # in Orderable data types:
4923
- # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-
4924
- # type-properties
4925
- # Corresponds to the JSON property `dataSplitColumn`
4926
- # @return [String]
4927
- attr_accessor :data_split_column
4928
-
4929
- # The fraction of evaluation data over the whole input data. The rest
4930
- # of data will be used as training data. The format should be double.
4931
- # Accurate to two decimal places.
4932
- # Default value is 0.2.
4933
- # Corresponds to the JSON property `dataSplitEvalFraction`
4934
- # @return [Float]
4935
- attr_accessor :data_split_eval_fraction
4936
-
4937
- # The data split type for training and evaluation, e.g. RANDOM.
4938
- # Corresponds to the JSON property `dataSplitMethod`
4939
- # @return [String]
4940
- attr_accessor :data_split_method
4941
-
4942
- # [Beta] Distance type for clustering models.
4943
- # Corresponds to the JSON property `distanceType`
4944
- # @return [String]
4945
- attr_accessor :distance_type
4946
-
4947
- # Whether to stop early when the loss doesn't improve significantly
4948
- # any more (compared to min_relative_progress).
4949
- # Corresponds to the JSON property `earlyStop`
4950
- # @return [Boolean]
4951
- attr_accessor :early_stop
4952
- alias_method :early_stop?, :early_stop
4953
-
4954
- # Specifies the initial learning rate for line search to start at.
4955
- # Corresponds to the JSON property `initialLearnRate`
4956
- # @return [Float]
4957
- attr_accessor :initial_learn_rate
4958
-
4959
- # Name of input label columns in training data.
4960
- # Corresponds to the JSON property `inputLabelColumns`
4961
- # @return [Array<String>]
4962
- attr_accessor :input_label_columns
4963
-
4964
- # L1 regularization coefficient.
4965
- # Corresponds to the JSON property `l1Regularization`
4966
- # @return [Float]
4967
- attr_accessor :l1_regularization
4968
-
4969
- # L2 regularization coefficient.
4970
- # Corresponds to the JSON property `l2Regularization`
4971
- # @return [Float]
4972
- attr_accessor :l2_regularization
4973
-
4974
- # Weights associated with each label class, for rebalancing the
4975
- # training data.
4976
- # Corresponds to the JSON property `labelClassWeights`
4977
- # @return [Hash<String,Float>]
4978
- attr_accessor :label_class_weights
4979
-
4980
- # Learning rate in training.
4981
- # Corresponds to the JSON property `learnRate`
4982
- # @return [Float]
4983
- attr_accessor :learn_rate
4984
-
4985
- # The strategy to determine learning rate.
4986
- # Corresponds to the JSON property `learnRateStrategy`
4987
- # @return [String]
4988
- attr_accessor :learn_rate_strategy
4989
-
4990
- # Type of loss function used during training run.
4991
- # Corresponds to the JSON property `lossType`
4992
- # @return [String]
4993
- attr_accessor :loss_type
4994
-
4995
- # The maximum number of iterations in training.
4996
- # Corresponds to the JSON property `maxIterations`
4997
- # @return [Fixnum]
4998
- attr_accessor :max_iterations
4999
-
5000
- # When early_stop is true, stops training when accuracy improvement is
5001
- # less than 'min_relative_progress'.
5002
- # Corresponds to the JSON property `minRelativeProgress`
5003
- # @return [Float]
5004
- attr_accessor :min_relative_progress
5005
-
5006
- # [Beta] Number of clusters for clustering models.
5007
- # Corresponds to the JSON property `numClusters`
5008
- # @return [Fixnum]
5009
- attr_accessor :num_clusters
5010
-
5011
- # Whether to train a model from the last checkpoint.
5012
- # Corresponds to the JSON property `warmStart`
5013
- # @return [Boolean]
5014
- attr_accessor :warm_start
5015
- alias_method :warm_start?, :warm_start
5016
-
5017
- def initialize(**args)
5018
- update!(**args)
5019
- end
5020
-
5021
- # Update properties of this object
5022
- def update!(**args)
5023
- @data_split_column = args[:data_split_column] if args.key?(:data_split_column)
5024
- @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
5025
- @data_split_method = args[:data_split_method] if args.key?(:data_split_method)
5026
- @distance_type = args[:distance_type] if args.key?(:distance_type)
5027
- @early_stop = args[:early_stop] if args.key?(:early_stop)
5028
- @initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate)
5029
- @input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
5030
- @l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization)
5031
- @l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization)
5032
- @label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights)
5033
- @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
5034
- @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
5035
- @loss_type = args[:loss_type] if args.key?(:loss_type)
5036
- @max_iterations = args[:max_iterations] if args.key?(:max_iterations)
5037
- @min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress)
5038
- @num_clusters = args[:num_clusters] if args.key?(:num_clusters)
5039
- @warm_start = args[:warm_start] if args.key?(:warm_start)
5040
- end
5041
- end
5042
-
5043
- # Information about a single training query run for the model.
5044
- class TrainingRun
5045
- include Google::Apis::Core::Hashable
5046
-
5047
- # Evaluation metrics of a model. These are either computed on all
5048
- # training data or just the eval data based on whether eval data was used
5049
- # during training.
5050
- # Corresponds to the JSON property `evaluationMetrics`
5051
- # @return [Google::Apis::BigqueryV2::EvaluationMetrics]
5052
- attr_accessor :evaluation_metrics
5053
-
5054
- # Output of each iteration run, results.size() <= max_iterations.
5055
- # Corresponds to the JSON property `results`
5056
- # @return [Array<Google::Apis::BigqueryV2::IterationResult>]
5057
- attr_accessor :results
5058
-
5059
- # The start time of this training run.
5060
- # Corresponds to the JSON property `startTime`
5061
- # @return [String]
5062
- attr_accessor :start_time
5063
-
5064
- # Options that were used for this training run, includes
5065
- # user specified and default options that were used.
5066
- # Corresponds to the JSON property `trainingOptions`
5067
- # @return [Google::Apis::BigqueryV2::TrainingOptions]
5068
- attr_accessor :training_options
5069
-
5070
- def initialize(**args)
5071
- update!(**args)
5072
- end
5073
-
5074
- # Update properties of this object
5075
- def update!(**args)
5076
- @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
5077
- @results = args[:results] if args.key?(:results)
5078
- @start_time = args[:start_time] if args.key?(:start_time)
5079
- @training_options = args[:training_options] if args.key?(:training_options)
5080
- end
5081
- end
5082
-
5083
4169
  #
5084
4170
  class UserDefinedFunctionResource
5085
4171
  include Google::Apis::Core::Hashable