google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -22,66 +22,133 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ManufacturersV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Capacity
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class ListProductsResponse
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class ProductDetail
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class FeatureDescription
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class Issue
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Empty
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class Price
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class Image
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class Attributes
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class Count
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Product
|
80
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
87
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
83
89
|
end
|
84
90
|
|
91
|
+
class Capacity
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :unit, as: 'unit'
|
95
|
+
property :value, :numeric_string => true, as: 'value'
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class ListProductsResponse
|
100
|
+
# @private
|
101
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
102
|
+
property :next_page_token, as: 'nextPageToken'
|
103
|
+
collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
class ProductDetail
|
109
|
+
# @private
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
111
|
+
property :section_name, as: 'sectionName'
|
112
|
+
property :attribute_name, as: 'attributeName'
|
113
|
+
property :attribute_value, as: 'attributeValue'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class FeatureDescription
|
118
|
+
# @private
|
119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
120
|
+
property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
121
|
+
|
122
|
+
property :headline, as: 'headline'
|
123
|
+
property :text, as: 'text'
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class Issue
|
128
|
+
# @private
|
129
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
+
property :type, as: 'type'
|
131
|
+
property :attribute, as: 'attribute'
|
132
|
+
property :timestamp, as: 'timestamp'
|
133
|
+
property :severity, as: 'severity'
|
134
|
+
property :description, as: 'description'
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
class Empty
|
139
|
+
# @private
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class Price
|
145
|
+
# @private
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
147
|
+
property :amount, as: 'amount'
|
148
|
+
property :currency, as: 'currency'
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
85
152
|
class Image
|
86
153
|
# @private
|
87
154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -94,16 +161,6 @@ module Google
|
|
94
161
|
class Attributes
|
95
162
|
# @private
|
96
163
|
class Representation < Google::Apis::Core::JsonRepresentation
|
97
|
-
property :size_system, as: 'sizeSystem'
|
98
|
-
property :theme, as: 'theme'
|
99
|
-
property :pattern, as: 'pattern'
|
100
|
-
property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
101
|
-
|
102
|
-
collection :product_type, as: 'productType'
|
103
|
-
property :format, as: 'format'
|
104
|
-
collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
105
|
-
|
106
|
-
collection :video_link, as: 'videoLink'
|
107
164
|
property :color, as: 'color'
|
108
165
|
property :product_name, as: 'productName'
|
109
166
|
property :size_type, as: 'sizeType'
|
@@ -116,106 +173,61 @@ module Google
|
|
116
173
|
property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
|
117
174
|
|
118
175
|
property :brand, as: 'brand'
|
119
|
-
property :material, as: 'material'
|
120
176
|
property :disclosure_date, as: 'disclosureDate'
|
177
|
+
property :material, as: 'material'
|
121
178
|
property :scent, as: 'scent'
|
122
|
-
property :
|
179
|
+
property :flavor, as: 'flavor'
|
123
180
|
collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
|
124
181
|
|
125
|
-
property :
|
126
|
-
property :product_page_url, as: 'productPageUrl'
|
182
|
+
property :age_group, as: 'ageGroup'
|
127
183
|
property :mpn, as: 'mpn'
|
184
|
+
property :product_page_url, as: 'productPageUrl'
|
128
185
|
property :release_date, as: 'releaseDate'
|
129
|
-
collection :gtin, as: 'gtin'
|
130
186
|
property :item_group_id, as: 'itemGroupId'
|
187
|
+
collection :gtin, as: 'gtin'
|
131
188
|
property :product_line, as: 'productLine'
|
132
189
|
property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
|
133
190
|
|
134
191
|
property :description, as: 'description'
|
135
192
|
property :gender, as: 'gender'
|
193
|
+
property :size_system, as: 'sizeSystem'
|
194
|
+
property :theme, as: 'theme'
|
195
|
+
property :pattern, as: 'pattern'
|
196
|
+
property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
197
|
+
|
198
|
+
collection :product_type, as: 'productType'
|
199
|
+
property :format, as: 'format'
|
200
|
+
collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
201
|
+
|
202
|
+
collection :video_link, as: 'videoLink'
|
136
203
|
end
|
137
204
|
end
|
138
205
|
|
139
206
|
class Count
|
140
207
|
# @private
|
141
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
-
property :value, :numeric_string => true, as: 'value'
|
143
209
|
property :unit, as: 'unit'
|
210
|
+
property :value, :numeric_string => true, as: 'value'
|
144
211
|
end
|
145
212
|
end
|
146
213
|
|
147
214
|
class Product
|
148
215
|
# @private
|
149
216
|
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
-
property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
151
|
-
|
152
|
-
property :content_language, as: 'contentLanguage'
|
153
|
-
property :target_country, as: 'targetCountry'
|
154
|
-
property :name, as: 'name'
|
155
|
-
collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
|
156
|
-
|
157
|
-
collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
|
158
217
|
property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
159
218
|
|
160
219
|
property :product_id, as: 'productId'
|
161
220
|
property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
162
221
|
|
163
222
|
property :parent, as: 'parent'
|
164
|
-
|
165
|
-
end
|
166
|
-
|
167
|
-
class Capacity
|
168
|
-
# @private
|
169
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
-
property :value, :numeric_string => true, as: 'value'
|
171
|
-
property :unit, as: 'unit'
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
class ListProductsResponse
|
176
|
-
# @private
|
177
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
-
collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
|
179
|
-
|
180
|
-
property :next_page_token, as: 'nextPageToken'
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
class ProductDetail
|
185
|
-
# @private
|
186
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
-
property :attribute_value, as: 'attributeValue'
|
188
|
-
property :section_name, as: 'sectionName'
|
189
|
-
property :attribute_name, as: 'attributeName'
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
|
-
class Issue
|
194
|
-
# @private
|
195
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
-
property :description, as: 'description'
|
197
|
-
property :type, as: 'type'
|
198
|
-
property :attribute, as: 'attribute'
|
199
|
-
property :timestamp, as: 'timestamp'
|
200
|
-
property :severity, as: 'severity'
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
class FeatureDescription
|
205
|
-
# @private
|
206
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
-
property :text, as: 'text'
|
208
|
-
property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
223
|
+
property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
209
224
|
|
210
|
-
property :
|
211
|
-
|
212
|
-
|
225
|
+
property :target_country, as: 'targetCountry'
|
226
|
+
property :content_language, as: 'contentLanguage'
|
227
|
+
property :name, as: 'name'
|
228
|
+
collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
|
213
229
|
|
214
|
-
|
215
|
-
# @private
|
216
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
-
property :amount, as: 'amount'
|
218
|
-
property :currency, as: 'currency'
|
230
|
+
collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
|
219
231
|
end
|
220
232
|
end
|
221
233
|
end
|
@@ -47,6 +47,92 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
+
# Deletes the product from a Manufacturer Center account.
|
51
|
+
# @param [String] parent
|
52
|
+
# Parent ID in the format `accounts/`account_id``.
|
53
|
+
# `account_id` - The ID of the Manufacturer Center account.
|
54
|
+
# @param [String] name
|
55
|
+
# Name in the format ``target_country`:`content_language`:`product_id``.
|
56
|
+
# `target_country` - The target country of the product as a CLDR territory
|
57
|
+
# code (for example, US).
|
58
|
+
# `content_language` - The content language of the product as a two-letter
|
59
|
+
# ISO 639-1 language code (for example, en).
|
60
|
+
# `product_id` - The ID of the product. For more information, see
|
61
|
+
# https://support.google.com/manufacturers/answer/6124116#
|
62
|
+
# id.
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::Empty] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::ManufacturersV1::Empty]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def delete_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:delete, 'v1/{+parent}/products/{+name}', options)
|
82
|
+
command.response_representation = Google::Apis::ManufacturersV1::Empty::Representation
|
83
|
+
command.response_class = Google::Apis::ManufacturersV1::Empty
|
84
|
+
command.params['parent'] = parent unless parent.nil?
|
85
|
+
command.params['name'] = name unless name.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Gets the product from a Manufacturer Center account, including product
|
92
|
+
# issues.
|
93
|
+
# A recently updated product takes some time to be processed before any
|
94
|
+
# changes are visible. While some issues may be available once the product
|
95
|
+
# has been processed, other issues may take days to appear.
|
96
|
+
# @param [String] parent
|
97
|
+
# Parent ID in the format `accounts/`account_id``.
|
98
|
+
# `account_id` - The ID of the Manufacturer Center account.
|
99
|
+
# @param [String] name
|
100
|
+
# Name in the format ``target_country`:`content_language`:`product_id``.
|
101
|
+
# `target_country` - The target country of the product as a CLDR territory
|
102
|
+
# code (for example, US).
|
103
|
+
# `content_language` - The content language of the product as a two-letter
|
104
|
+
# ISO 639-1 language code (for example, en).
|
105
|
+
# `product_id` - The ID of the product. For more information, see
|
106
|
+
# https://support.google.com/manufacturers/answer/6124116#
|
107
|
+
# id.
|
108
|
+
# @param [String] fields
|
109
|
+
# Selector specifying which fields to include in a partial response.
|
110
|
+
# @param [String] quota_user
|
111
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
112
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
113
|
+
# @param [Google::Apis::RequestOptions] options
|
114
|
+
# Request-specific options
|
115
|
+
#
|
116
|
+
# @yield [result, err] Result & error if block supplied
|
117
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::Product] parsed result object
|
118
|
+
# @yieldparam err [StandardError] error object if request failed
|
119
|
+
#
|
120
|
+
# @return [Google::Apis::ManufacturersV1::Product]
|
121
|
+
#
|
122
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
123
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
124
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
125
|
+
def get_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block)
|
126
|
+
command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
|
127
|
+
command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
|
128
|
+
command.response_class = Google::Apis::ManufacturersV1::Product
|
129
|
+
command.params['parent'] = parent unless parent.nil?
|
130
|
+
command.params['name'] = name unless name.nil?
|
131
|
+
command.query['fields'] = fields unless fields.nil?
|
132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
133
|
+
execute_or_queue_command(command, &block)
|
134
|
+
end
|
135
|
+
|
50
136
|
# Lists all the products in a Manufacturer Center account.
|
51
137
|
# @param [String] parent
|
52
138
|
# Parent ID in the format `accounts/`account_id``.
|
@@ -85,8 +171,16 @@ module Google
|
|
85
171
|
execute_or_queue_command(command, &block)
|
86
172
|
end
|
87
173
|
|
88
|
-
#
|
89
|
-
#
|
174
|
+
# Inserts or updates the product in a Manufacturer Center account.
|
175
|
+
# The checks at upload time are minimal. All required attributes need to be
|
176
|
+
# present for a product to be valid. Issues may show up later
|
177
|
+
# after the API has accepted an update for a product and it is possible to
|
178
|
+
# overwrite an existing valid product with an invalid product. To detect
|
179
|
+
# this, you should retrieve the product and check it for issues once the
|
180
|
+
# updated version is available.
|
181
|
+
# Inserted or updated products first need to be processed before they can be
|
182
|
+
# retrieved. Until then, new products will be unavailable, and retrieval
|
183
|
+
# of updated products will return the original state of the product.
|
90
184
|
# @param [String] parent
|
91
185
|
# Parent ID in the format `accounts/`account_id``.
|
92
186
|
# `account_id` - The ID of the Manufacturer Center account.
|
@@ -99,6 +193,7 @@ module Google
|
|
99
193
|
# `product_id` - The ID of the product. For more information, see
|
100
194
|
# https://support.google.com/manufacturers/answer/6124116#
|
101
195
|
# id.
|
196
|
+
# @param [Google::Apis::ManufacturersV1::Product] product_object
|
102
197
|
# @param [String] fields
|
103
198
|
# Selector specifying which fields to include in a partial response.
|
104
199
|
# @param [String] quota_user
|
@@ -116,8 +211,10 @@ module Google
|
|
116
211
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
117
212
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
118
213
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
119
|
-
def
|
120
|
-
command = make_simple_command(:
|
214
|
+
def update_account_product(parent, name, product_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
215
|
+
command = make_simple_command(:put, 'v1/{+parent}/products/{+name}', options)
|
216
|
+
command.request_representation = Google::Apis::ManufacturersV1::Product::Representation
|
217
|
+
command.request_object = product_object
|
121
218
|
command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
|
122
219
|
command.response_class = Google::Apis::ManufacturersV1::Product
|
123
220
|
command.params['parent'] = parent unless parent.nil?
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/ml/
|
26
26
|
module MlV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170707'
|
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'
|
@@ -22,6 +22,238 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module MlV1
|
24
24
|
|
25
|
+
# Options for manually scaling a model.
|
26
|
+
class GoogleCloudMlV1ManualScaling
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The number of nodes to allocate for this model. These nodes are always up,
|
30
|
+
# starting from the time the model is deployed, so the cost of operating
|
31
|
+
# this model will be proportional to `nodes` * number of hours since
|
32
|
+
# last billing cycle plus the cost for each prediction performed.
|
33
|
+
# Corresponds to the JSON property `nodes`
|
34
|
+
# @return [Fixnum]
|
35
|
+
attr_accessor :nodes
|
36
|
+
|
37
|
+
def initialize(**args)
|
38
|
+
update!(**args)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Update properties of this object
|
42
|
+
def update!(**args)
|
43
|
+
@nodes = args[:nodes] if args.key?(:nodes)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Associates `members` with a `role`.
|
48
|
+
class GoogleIamV1Binding
|
49
|
+
include Google::Apis::Core::Hashable
|
50
|
+
|
51
|
+
# Represents an expression text. Example:
|
52
|
+
# title: "User account presence"
|
53
|
+
# description: "Determines whether the request has a user account"
|
54
|
+
# expression: "size(request.user) > 0"
|
55
|
+
# Corresponds to the JSON property `condition`
|
56
|
+
# @return [Google::Apis::MlV1::GoogleTypeExpr]
|
57
|
+
attr_accessor :condition
|
58
|
+
|
59
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
60
|
+
# `members` can have the following values:
|
61
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
62
|
+
# on the internet; with or without a Google account.
|
63
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
64
|
+
# who is authenticated with a Google account or a service account.
|
65
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
66
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
67
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
68
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
69
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
70
|
+
# For example, `admins@example.com`.
|
71
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
72
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
73
|
+
# Corresponds to the JSON property `members`
|
74
|
+
# @return [Array<String>]
|
75
|
+
attr_accessor :members
|
76
|
+
|
77
|
+
# Role that is assigned to `members`.
|
78
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
79
|
+
# Required
|
80
|
+
# Corresponds to the JSON property `role`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :role
|
83
|
+
|
84
|
+
def initialize(**args)
|
85
|
+
update!(**args)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Update properties of this object
|
89
|
+
def update!(**args)
|
90
|
+
@condition = args[:condition] if args.key?(:condition)
|
91
|
+
@members = args[:members] if args.key?(:members)
|
92
|
+
@role = args[:role] if args.key?(:role)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Represents results of a training job. Output only.
|
97
|
+
class GoogleCloudMlV1TrainingOutput
|
98
|
+
include Google::Apis::Core::Hashable
|
99
|
+
|
100
|
+
# Results for individual Hyperparameter trials.
|
101
|
+
# Only set for hyperparameter tuning jobs.
|
102
|
+
# Corresponds to the JSON property `trials`
|
103
|
+
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
|
104
|
+
attr_accessor :trials
|
105
|
+
|
106
|
+
# The number of hyperparameter tuning trials that completed successfully.
|
107
|
+
# Only set for hyperparameter tuning jobs.
|
108
|
+
# Corresponds to the JSON property `completedTrialCount`
|
109
|
+
# @return [Fixnum]
|
110
|
+
attr_accessor :completed_trial_count
|
111
|
+
|
112
|
+
# Whether this job is a hyperparameter tuning job.
|
113
|
+
# Corresponds to the JSON property `isHyperparameterTuningJob`
|
114
|
+
# @return [Boolean]
|
115
|
+
attr_accessor :is_hyperparameter_tuning_job
|
116
|
+
alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
|
117
|
+
|
118
|
+
# The amount of ML units consumed by the job.
|
119
|
+
# Corresponds to the JSON property `consumedMLUnits`
|
120
|
+
# @return [Float]
|
121
|
+
attr_accessor :consumed_ml_units
|
122
|
+
|
123
|
+
def initialize(**args)
|
124
|
+
update!(**args)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Update properties of this object
|
128
|
+
def update!(**args)
|
129
|
+
@trials = args[:trials] if args.key?(:trials)
|
130
|
+
@completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
|
131
|
+
@is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
|
132
|
+
@consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# Options for automatically scaling a model.
|
137
|
+
class GoogleCloudMlV1beta1AutoScaling
|
138
|
+
include Google::Apis::Core::Hashable
|
139
|
+
|
140
|
+
# Optional. The minimum number of nodes to allocate for this model. These
|
141
|
+
# nodes are always up, starting from the time the model is deployed, so the
|
142
|
+
# cost of operating this model will be at least
|
143
|
+
# `rate` * `min_nodes` * number of hours since last billing cycle,
|
144
|
+
# where `rate` is the cost per node-hour as documented in
|
145
|
+
# [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
|
146
|
+
# even if no predictions are performed. There is additional cost for each
|
147
|
+
# prediction performed.
|
148
|
+
# Unlike manual scaling, if the load gets too heavy for the nodes
|
149
|
+
# that are up, the service will automatically add nodes to handle the
|
150
|
+
# increased load as well as scale back as traffic drops, always maintaining
|
151
|
+
# at least `min_nodes`. You will be charged for the time in which additional
|
152
|
+
# nodes are used.
|
153
|
+
# If not specified, `min_nodes` defaults to 0, in which case, when traffic
|
154
|
+
# to a model stops (and after a cool-down period), nodes will be shut down
|
155
|
+
# and no charges will be incurred until traffic to the model resumes.
|
156
|
+
# Corresponds to the JSON property `minNodes`
|
157
|
+
# @return [Fixnum]
|
158
|
+
attr_accessor :min_nodes
|
159
|
+
|
160
|
+
def initialize(**args)
|
161
|
+
update!(**args)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Update properties of this object
|
165
|
+
def update!(**args)
|
166
|
+
@min_nodes = args[:min_nodes] if args.key?(:min_nodes)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# A rule to be applied in a Policy.
|
171
|
+
class GoogleIamV1Rule
|
172
|
+
include Google::Apis::Core::Hashable
|
173
|
+
|
174
|
+
# Human-readable description of the rule.
|
175
|
+
# Corresponds to the JSON property `description`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :description
|
178
|
+
|
179
|
+
# Additional restrictions that must be met
|
180
|
+
# Corresponds to the JSON property `conditions`
|
181
|
+
# @return [Array<Google::Apis::MlV1::GoogleIamV1Condition>]
|
182
|
+
attr_accessor :conditions
|
183
|
+
|
184
|
+
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
185
|
+
# that match the LOG action.
|
186
|
+
# Corresponds to the JSON property `logConfig`
|
187
|
+
# @return [Array<Google::Apis::MlV1::GoogleIamV1LogConfig>]
|
188
|
+
attr_accessor :log_config
|
189
|
+
|
190
|
+
# If one or more 'in' clauses are specified, the rule matches if
|
191
|
+
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
192
|
+
# Corresponds to the JSON property `in`
|
193
|
+
# @return [Array<String>]
|
194
|
+
attr_accessor :in
|
195
|
+
|
196
|
+
# A permission is a string of form '<service>.<resource type>.<verb>'
|
197
|
+
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
198
|
+
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
199
|
+
# Corresponds to the JSON property `permissions`
|
200
|
+
# @return [Array<String>]
|
201
|
+
attr_accessor :permissions
|
202
|
+
|
203
|
+
# Required
|
204
|
+
# Corresponds to the JSON property `action`
|
205
|
+
# @return [String]
|
206
|
+
attr_accessor :action
|
207
|
+
|
208
|
+
# If one or more 'not_in' clauses are specified, the rule matches
|
209
|
+
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
210
|
+
# The format for in and not_in entries is the same as for members in a
|
211
|
+
# Binding (see google/iam/v1/policy.proto).
|
212
|
+
# Corresponds to the JSON property `notIn`
|
213
|
+
# @return [Array<String>]
|
214
|
+
attr_accessor :not_in
|
215
|
+
|
216
|
+
def initialize(**args)
|
217
|
+
update!(**args)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Update properties of this object
|
221
|
+
def update!(**args)
|
222
|
+
@description = args[:description] if args.key?(:description)
|
223
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
224
|
+
@log_config = args[:log_config] if args.key?(:log_config)
|
225
|
+
@in = args[:in] if args.key?(:in)
|
226
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
227
|
+
@action = args[:action] if args.key?(:action)
|
228
|
+
@not_in = args[:not_in] if args.key?(:not_in)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# Options for counters
|
233
|
+
class GoogleIamV1LogConfigCounterOptions
|
234
|
+
include Google::Apis::Core::Hashable
|
235
|
+
|
236
|
+
# The field value to attribute.
|
237
|
+
# Corresponds to the JSON property `field`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :field
|
240
|
+
|
241
|
+
# The metric to update.
|
242
|
+
# Corresponds to the JSON property `metric`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :metric
|
245
|
+
|
246
|
+
def initialize(**args)
|
247
|
+
update!(**args)
|
248
|
+
end
|
249
|
+
|
250
|
+
# Update properties of this object
|
251
|
+
def update!(**args)
|
252
|
+
@field = args[:field] if args.key?(:field)
|
253
|
+
@metric = args[:metric] if args.key?(:metric)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
25
257
|
# Request for predictions to be issued against a trained model.
|
26
258
|
# The body of the request is a single JSON object with a single top-level
|
27
259
|
# field:
|
@@ -249,24 +481,24 @@ module Google
|
|
249
481
|
class GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
|
250
482
|
include Google::Apis::Core::Hashable
|
251
483
|
|
252
|
-
# The global training step for this metric.
|
253
|
-
# Corresponds to the JSON property `trainingStep`
|
254
|
-
# @return [Fixnum]
|
255
|
-
attr_accessor :training_step
|
256
|
-
|
257
484
|
# The objective value at this training step.
|
258
485
|
# Corresponds to the JSON property `objectiveValue`
|
259
486
|
# @return [Float]
|
260
487
|
attr_accessor :objective_value
|
261
488
|
|
489
|
+
# The global training step for this metric.
|
490
|
+
# Corresponds to the JSON property `trainingStep`
|
491
|
+
# @return [Fixnum]
|
492
|
+
attr_accessor :training_step
|
493
|
+
|
262
494
|
def initialize(**args)
|
263
495
|
update!(**args)
|
264
496
|
end
|
265
497
|
|
266
498
|
# Update properties of this object
|
267
499
|
def update!(**args)
|
268
|
-
@training_step = args[:training_step] if args.key?(:training_step)
|
269
500
|
@objective_value = args[:objective_value] if args.key?(:objective_value)
|
501
|
+
@training_step = args[:training_step] if args.key?(:training_step)
|
270
502
|
end
|
271
503
|
end
|
272
504
|
|
@@ -279,6 +511,12 @@ module Google
|
|
279
511
|
# @return [String]
|
280
512
|
attr_accessor :log_name
|
281
513
|
|
514
|
+
# True if the log is for a permission of type DATA_READ or ADMIN_READ.
|
515
|
+
# Corresponds to the JSON property `isReadPermissionType`
|
516
|
+
# @return [Boolean]
|
517
|
+
attr_accessor :is_read_permission_type
|
518
|
+
alias_method :is_read_permission_type?, :is_read_permission_type
|
519
|
+
|
282
520
|
def initialize(**args)
|
283
521
|
update!(**args)
|
284
522
|
end
|
@@ -286,6 +524,7 @@ module Google
|
|
286
524
|
# Update properties of this object
|
287
525
|
def update!(**args)
|
288
526
|
@log_name = args[:log_name] if args.key?(:log_name)
|
527
|
+
@is_read_permission_type = args[:is_read_permission_type] if args.key?(:is_read_permission_type)
|
289
528
|
end
|
290
529
|
end
|
291
530
|
|
@@ -298,30 +537,9 @@ module Google
|
|
298
537
|
class GoogleCloudMlV1Version
|
299
538
|
include Google::Apis::Core::Hashable
|
300
539
|
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
attr_accessor :manual_scaling
|
305
|
-
|
306
|
-
# Output only. The state of a version.
|
307
|
-
# Corresponds to the JSON property `state`
|
308
|
-
# @return [String]
|
309
|
-
attr_accessor :state
|
310
|
-
|
311
|
-
# Required.The name specified for the version when it was created.
|
312
|
-
# The version name must be unique within the model it is created in.
|
313
|
-
# Corresponds to the JSON property `name`
|
314
|
-
# @return [String]
|
315
|
-
attr_accessor :name
|
316
|
-
|
317
|
-
# Options for automatically scaling a model.
|
318
|
-
# Corresponds to the JSON property `automaticScaling`
|
319
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1AutomaticScaling]
|
320
|
-
attr_accessor :automatic_scaling
|
321
|
-
|
322
|
-
# Optional. The Google Cloud ML runtime version to use for this deployment.
|
323
|
-
# If not set, Google Cloud ML will choose a version.
|
324
|
-
# Corresponds to the JSON property `runtimeVersion`
|
540
|
+
# Optional. The Google Cloud ML runtime version to use for this deployment.
|
541
|
+
# If not set, Google Cloud ML will choose a version.
|
542
|
+
# Corresponds to the JSON property `runtimeVersion`
|
325
543
|
# @return [String]
|
326
544
|
attr_accessor :runtime_version
|
327
545
|
|
@@ -339,7 +557,7 @@ module Google
|
|
339
557
|
# create the version. See the
|
340
558
|
# [overview of model
|
341
559
|
# deployment](/ml-engine/docs/concepts/deployment-overview) for more
|
342
|
-
#
|
560
|
+
# information.
|
343
561
|
# When passing Version to
|
344
562
|
# [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.
|
345
563
|
# versions/create)
|
@@ -351,6 +569,11 @@ module Google
|
|
351
569
|
# @return [String]
|
352
570
|
attr_accessor :deployment_uri
|
353
571
|
|
572
|
+
# Options for automatically scaling a model.
|
573
|
+
# Corresponds to the JSON property `autoScaling`
|
574
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1AutoScaling]
|
575
|
+
attr_accessor :auto_scaling
|
576
|
+
|
354
577
|
# Output only. If true, this version will be used to handle prediction
|
355
578
|
# requests that do not specify a version.
|
356
579
|
# You can change the default version by calling
|
@@ -366,22 +589,44 @@ module Google
|
|
366
589
|
# @return [String]
|
367
590
|
attr_accessor :create_time
|
368
591
|
|
592
|
+
# Output only. The state of a version.
|
593
|
+
# Corresponds to the JSON property `state`
|
594
|
+
# @return [String]
|
595
|
+
attr_accessor :state
|
596
|
+
|
597
|
+
# Options for manually scaling a model.
|
598
|
+
# Corresponds to the JSON property `manualScaling`
|
599
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
|
600
|
+
attr_accessor :manual_scaling
|
601
|
+
|
602
|
+
# Required.The name specified for the version when it was created.
|
603
|
+
# The version name must be unique within the model it is created in.
|
604
|
+
# Corresponds to the JSON property `name`
|
605
|
+
# @return [String]
|
606
|
+
attr_accessor :name
|
607
|
+
|
608
|
+
# Output only. The details of a failure or a cancellation.
|
609
|
+
# Corresponds to the JSON property `errorMessage`
|
610
|
+
# @return [String]
|
611
|
+
attr_accessor :error_message
|
612
|
+
|
369
613
|
def initialize(**args)
|
370
614
|
update!(**args)
|
371
615
|
end
|
372
616
|
|
373
617
|
# Update properties of this object
|
374
618
|
def update!(**args)
|
375
|
-
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
376
|
-
@state = args[:state] if args.key?(:state)
|
377
|
-
@name = args[:name] if args.key?(:name)
|
378
|
-
@automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
|
379
619
|
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
380
620
|
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
|
381
621
|
@description = args[:description] if args.key?(:description)
|
382
622
|
@deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
|
623
|
+
@auto_scaling = args[:auto_scaling] if args.key?(:auto_scaling)
|
383
624
|
@is_default = args[:is_default] if args.key?(:is_default)
|
384
625
|
@create_time = args[:create_time] if args.key?(:create_time)
|
626
|
+
@state = args[:state] if args.key?(:state)
|
627
|
+
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
628
|
+
@name = args[:name] if args.key?(:name)
|
629
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
385
630
|
end
|
386
631
|
end
|
387
632
|
|
@@ -389,26 +634,6 @@ module Google
|
|
389
634
|
class GoogleCloudMlV1ParameterSpec
|
390
635
|
include Google::Apis::Core::Hashable
|
391
636
|
|
392
|
-
# Optional. How the parameter should be scaled to the hypercube.
|
393
|
-
# Leave unset for categorical parameters.
|
394
|
-
# Some kind of scaling is strongly recommended for real or integral
|
395
|
-
# parameters (e.g., `UNIT_LINEAR_SCALE`).
|
396
|
-
# Corresponds to the JSON property `scaleType`
|
397
|
-
# @return [String]
|
398
|
-
attr_accessor :scale_type
|
399
|
-
|
400
|
-
# Required if typeis `DOUBLE` or `INTEGER`. This field
|
401
|
-
# should be unset if type is `CATEGORICAL`. This value should be integers if
|
402
|
-
# type is `INTEGER`.
|
403
|
-
# Corresponds to the JSON property `maxValue`
|
404
|
-
# @return [Float]
|
405
|
-
attr_accessor :max_value
|
406
|
-
|
407
|
-
# Required. The type of the parameter.
|
408
|
-
# Corresponds to the JSON property `type`
|
409
|
-
# @return [String]
|
410
|
-
attr_accessor :type
|
411
|
-
|
412
637
|
# Required if type is `CATEGORICAL`. The list of possible categories.
|
413
638
|
# Corresponds to the JSON property `categoricalValues`
|
414
639
|
# @return [Array<String>]
|
@@ -436,19 +661,39 @@ module Google
|
|
436
661
|
# @return [Array<Float>]
|
437
662
|
attr_accessor :discrete_values
|
438
663
|
|
664
|
+
# Required if typeis `DOUBLE` or `INTEGER`. This field
|
665
|
+
# should be unset if type is `CATEGORICAL`. This value should be integers if
|
666
|
+
# type is `INTEGER`.
|
667
|
+
# Corresponds to the JSON property `maxValue`
|
668
|
+
# @return [Float]
|
669
|
+
attr_accessor :max_value
|
670
|
+
|
671
|
+
# Optional. How the parameter should be scaled to the hypercube.
|
672
|
+
# Leave unset for categorical parameters.
|
673
|
+
# Some kind of scaling is strongly recommended for real or integral
|
674
|
+
# parameters (e.g., `UNIT_LINEAR_SCALE`).
|
675
|
+
# Corresponds to the JSON property `scaleType`
|
676
|
+
# @return [String]
|
677
|
+
attr_accessor :scale_type
|
678
|
+
|
679
|
+
# Required. The type of the parameter.
|
680
|
+
# Corresponds to the JSON property `type`
|
681
|
+
# @return [String]
|
682
|
+
attr_accessor :type
|
683
|
+
|
439
684
|
def initialize(**args)
|
440
685
|
update!(**args)
|
441
686
|
end
|
442
687
|
|
443
688
|
# Update properties of this object
|
444
689
|
def update!(**args)
|
445
|
-
@scale_type = args[:scale_type] if args.key?(:scale_type)
|
446
|
-
@max_value = args[:max_value] if args.key?(:max_value)
|
447
|
-
@type = args[:type] if args.key?(:type)
|
448
690
|
@categorical_values = args[:categorical_values] if args.key?(:categorical_values)
|
449
691
|
@parameter_name = args[:parameter_name] if args.key?(:parameter_name)
|
450
692
|
@min_value = args[:min_value] if args.key?(:min_value)
|
451
693
|
@discrete_values = args[:discrete_values] if args.key?(:discrete_values)
|
694
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
695
|
+
@scale_type = args[:scale_type] if args.key?(:scale_type)
|
696
|
+
@type = args[:type] if args.key?(:type)
|
452
697
|
end
|
453
698
|
end
|
454
699
|
|
@@ -495,18 +740,18 @@ module Google
|
|
495
740
|
# @return [String]
|
496
741
|
attr_accessor :output_path
|
497
742
|
|
498
|
-
# Use this field if you want to specify a Google Cloud Storage path for
|
499
|
-
# the model to use.
|
500
|
-
# Corresponds to the JSON property `uri`
|
501
|
-
# @return [String]
|
502
|
-
attr_accessor :uri
|
503
|
-
|
504
743
|
# Optional. The maximum number of workers to be used for parallel processing.
|
505
744
|
# Defaults to 10 if not specified.
|
506
745
|
# Corresponds to the JSON property `maxWorkerCount`
|
507
746
|
# @return [Fixnum]
|
508
747
|
attr_accessor :max_worker_count
|
509
748
|
|
749
|
+
# Use this field if you want to specify a Google Cloud Storage path for
|
750
|
+
# the model to use.
|
751
|
+
# Corresponds to the JSON property `uri`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :uri
|
754
|
+
|
510
755
|
# Required. The format of the input data files.
|
511
756
|
# Corresponds to the JSON property `dataFormat`
|
512
757
|
# @return [String]
|
@@ -537,8 +782,8 @@ module Google
|
|
537
782
|
@version_name = args[:version_name] if args.key?(:version_name)
|
538
783
|
@model_name = args[:model_name] if args.key?(:model_name)
|
539
784
|
@output_path = args[:output_path] if args.key?(:output_path)
|
540
|
-
@uri = args[:uri] if args.key?(:uri)
|
541
785
|
@max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
|
786
|
+
@uri = args[:uri] if args.key?(:uri)
|
542
787
|
@data_format = args[:data_format] if args.key?(:data_format)
|
543
788
|
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
544
789
|
@input_paths = args[:input_paths] if args.key?(:input_paths)
|
@@ -552,12 +797,13 @@ module Google
|
|
552
797
|
class GoogleTypeExpr
|
553
798
|
include Google::Apis::Core::Hashable
|
554
799
|
|
555
|
-
#
|
556
|
-
#
|
557
|
-
#
|
558
|
-
#
|
800
|
+
# Textual representation of an expression in
|
801
|
+
# Common Expression Language syntax.
|
802
|
+
# The application context of the containing message determines which
|
803
|
+
# well-known feature set of CEL is supported.
|
804
|
+
# Corresponds to the JSON property `expression`
|
559
805
|
# @return [String]
|
560
|
-
attr_accessor :
|
806
|
+
attr_accessor :expression
|
561
807
|
|
562
808
|
# An optional string indicating the location of the expression for error
|
563
809
|
# reporting, e.g. a file name and a position in the file.
|
@@ -565,30 +811,29 @@ module Google
|
|
565
811
|
# @return [String]
|
566
812
|
attr_accessor :location
|
567
813
|
|
814
|
+
# An optional title for the expression, i.e. a short string describing
|
815
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
816
|
+
# expression.
|
817
|
+
# Corresponds to the JSON property `title`
|
818
|
+
# @return [String]
|
819
|
+
attr_accessor :title
|
820
|
+
|
568
821
|
# An optional description of the expression. This is a longer text which
|
569
822
|
# describes the expression, e.g. when hovered over it in a UI.
|
570
823
|
# Corresponds to the JSON property `description`
|
571
824
|
# @return [String]
|
572
825
|
attr_accessor :description
|
573
826
|
|
574
|
-
# Textual representation of an expression in
|
575
|
-
# Common Expression Language syntax.
|
576
|
-
# The application context of the containing message determines which
|
577
|
-
# well-known feature set of CEL is supported.
|
578
|
-
# Corresponds to the JSON property `expression`
|
579
|
-
# @return [String]
|
580
|
-
attr_accessor :expression
|
581
|
-
|
582
827
|
def initialize(**args)
|
583
828
|
update!(**args)
|
584
829
|
end
|
585
830
|
|
586
831
|
# Update properties of this object
|
587
832
|
def update!(**args)
|
588
|
-
@
|
833
|
+
@expression = args[:expression] if args.key?(:expression)
|
589
834
|
@location = args[:location] if args.key?(:location)
|
835
|
+
@title = args[:title] if args.key?(:title)
|
590
836
|
@description = args[:description] if args.key?(:description)
|
591
|
-
@expression = args[:expression] if args.key?(:expression)
|
592
837
|
end
|
593
838
|
end
|
594
839
|
|
@@ -612,11 +857,6 @@ module Google
|
|
612
857
|
class GoogleIamV1AuditLogConfig
|
613
858
|
include Google::Apis::Core::Hashable
|
614
859
|
|
615
|
-
# The log type that this config enables.
|
616
|
-
# Corresponds to the JSON property `logType`
|
617
|
-
# @return [String]
|
618
|
-
attr_accessor :log_type
|
619
|
-
|
620
860
|
# Specifies the identities that do not cause logging for this type of
|
621
861
|
# permission.
|
622
862
|
# Follows the same format of Binding.members.
|
@@ -624,14 +864,19 @@ module Google
|
|
624
864
|
# @return [Array<String>]
|
625
865
|
attr_accessor :exempted_members
|
626
866
|
|
867
|
+
# The log type that this config enables.
|
868
|
+
# Corresponds to the JSON property `logType`
|
869
|
+
# @return [String]
|
870
|
+
attr_accessor :log_type
|
871
|
+
|
627
872
|
def initialize(**args)
|
628
873
|
update!(**args)
|
629
874
|
end
|
630
875
|
|
631
876
|
# Update properties of this object
|
632
877
|
def update!(**args)
|
633
|
-
@log_type = args[:log_type] if args.key?(:log_type)
|
634
878
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
879
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
635
880
|
end
|
636
881
|
end
|
637
882
|
|
@@ -639,16 +884,6 @@ module Google
|
|
639
884
|
class GoogleCloudMlV1OperationMetadata
|
640
885
|
include Google::Apis::Core::Hashable
|
641
886
|
|
642
|
-
# Represents a version of the model.
|
643
|
-
# Each version is a trained model deployed in the cloud, ready to handle
|
644
|
-
# prediction requests. A model can have multiple versions. You can get
|
645
|
-
# information about all of the versions of a given model by calling
|
646
|
-
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
647
|
-
# versions/list).
|
648
|
-
# Corresponds to the JSON property `version`
|
649
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
650
|
-
attr_accessor :version
|
651
|
-
|
652
887
|
# The time operation processing completed.
|
653
888
|
# Corresponds to the JSON property `endTime`
|
654
889
|
# @return [String]
|
@@ -680,19 +915,29 @@ module Google
|
|
680
915
|
# @return [String]
|
681
916
|
attr_accessor :model_name
|
682
917
|
|
918
|
+
# Represents a version of the model.
|
919
|
+
# Each version is a trained model deployed in the cloud, ready to handle
|
920
|
+
# prediction requests. A model can have multiple versions. You can get
|
921
|
+
# information about all of the versions of a given model by calling
|
922
|
+
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
923
|
+
# versions/list).
|
924
|
+
# Corresponds to the JSON property `version`
|
925
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
926
|
+
attr_accessor :version
|
927
|
+
|
683
928
|
def initialize(**args)
|
684
929
|
update!(**args)
|
685
930
|
end
|
686
931
|
|
687
932
|
# Update properties of this object
|
688
933
|
def update!(**args)
|
689
|
-
@version = args[:version] if args.key?(:version)
|
690
934
|
@end_time = args[:end_time] if args.key?(:end_time)
|
691
935
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
692
936
|
@start_time = args[:start_time] if args.key?(:start_time)
|
693
937
|
@is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
|
694
938
|
@create_time = args[:create_time] if args.key?(:create_time)
|
695
939
|
@model_name = args[:model_name] if args.key?(:model_name)
|
940
|
+
@version = args[:version] if args.key?(:version)
|
696
941
|
end
|
697
942
|
end
|
698
943
|
|
@@ -761,6 +1006,18 @@ module Google
|
|
761
1006
|
class GoogleCloudMlV1HyperparameterSpec
|
762
1007
|
include Google::Apis::Core::Hashable
|
763
1008
|
|
1009
|
+
# Optional. How many training trials should be attempted to optimize
|
1010
|
+
# the specified hyperparameters.
|
1011
|
+
# Defaults to one.
|
1012
|
+
# Corresponds to the JSON property `maxTrials`
|
1013
|
+
# @return [Fixnum]
|
1014
|
+
attr_accessor :max_trials
|
1015
|
+
|
1016
|
+
# Required. The set of parameters to tune.
|
1017
|
+
# Corresponds to the JSON property `params`
|
1018
|
+
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1ParameterSpec>]
|
1019
|
+
attr_accessor :params
|
1020
|
+
|
764
1021
|
# Optional. The number of training trials to run concurrently.
|
765
1022
|
# You can reduce the time it takes to perform hyperparameter tuning by adding
|
766
1023
|
# trials in parallel. However, each trail only benefits from the information
|
@@ -773,13 +1030,6 @@ module Google
|
|
773
1030
|
# @return [Fixnum]
|
774
1031
|
attr_accessor :max_parallel_trials
|
775
1032
|
|
776
|
-
# Required. The type of goal to use for tuning. Available types are
|
777
|
-
# `MAXIMIZE` and `MINIMIZE`.
|
778
|
-
# Defaults to `MAXIMIZE`.
|
779
|
-
# Corresponds to the JSON property `goal`
|
780
|
-
# @return [String]
|
781
|
-
attr_accessor :goal
|
782
|
-
|
783
1033
|
# Optional. The Tensorflow summary tag name to use for optimizing trials. For
|
784
1034
|
# current versions of Tensorflow, this tag name should exactly match what is
|
785
1035
|
# shown in Tensorboard, including all scopes. For versions of Tensorflow
|
@@ -789,17 +1039,12 @@ module Google
|
|
789
1039
|
# @return [String]
|
790
1040
|
attr_accessor :hyperparameter_metric_tag
|
791
1041
|
|
792
|
-
# Required. The
|
793
|
-
#
|
794
|
-
#
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
# the specified hyperparameters.
|
799
|
-
# Defaults to one.
|
800
|
-
# Corresponds to the JSON property `maxTrials`
|
801
|
-
# @return [Fixnum]
|
802
|
-
attr_accessor :max_trials
|
1042
|
+
# Required. The type of goal to use for tuning. Available types are
|
1043
|
+
# `MAXIMIZE` and `MINIMIZE`.
|
1044
|
+
# Defaults to `MAXIMIZE`.
|
1045
|
+
# Corresponds to the JSON property `goal`
|
1046
|
+
# @return [String]
|
1047
|
+
attr_accessor :goal
|
803
1048
|
|
804
1049
|
def initialize(**args)
|
805
1050
|
update!(**args)
|
@@ -807,11 +1052,11 @@ module Google
|
|
807
1052
|
|
808
1053
|
# Update properties of this object
|
809
1054
|
def update!(**args)
|
1055
|
+
@max_trials = args[:max_trials] if args.key?(:max_trials)
|
1056
|
+
@params = args[:params] if args.key?(:params)
|
810
1057
|
@max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
|
811
|
-
@goal = args[:goal] if args.key?(:goal)
|
812
1058
|
@hyperparameter_metric_tag = args[:hyperparameter_metric_tag] if args.key?(:hyperparameter_metric_tag)
|
813
|
-
@
|
814
|
-
@max_trials = args[:max_trials] if args.key?(:max_trials)
|
1059
|
+
@goal = args[:goal] if args.key?(:goal)
|
815
1060
|
end
|
816
1061
|
end
|
817
1062
|
|
@@ -951,86 +1196,6 @@ module Google
|
|
951
1196
|
end
|
952
1197
|
end
|
953
1198
|
|
954
|
-
# Specifies the audit configuration for a service.
|
955
|
-
# The configuration determines which permission types are logged, and what
|
956
|
-
# identities, if any, are exempted from logging.
|
957
|
-
# An AuditConfig must have one or more AuditLogConfigs.
|
958
|
-
# If there are AuditConfigs for both `allServices` and a specific service,
|
959
|
-
# the union of the two AuditConfigs is used for that service: the log_types
|
960
|
-
# specified in each AuditConfig are enabled, and the exempted_members in each
|
961
|
-
# AuditConfig are exempted.
|
962
|
-
# Example Policy with multiple AuditConfigs:
|
963
|
-
# `
|
964
|
-
# "audit_configs": [
|
965
|
-
# `
|
966
|
-
# "service": "allServices"
|
967
|
-
# "audit_log_configs": [
|
968
|
-
# `
|
969
|
-
# "log_type": "DATA_READ",
|
970
|
-
# "exempted_members": [
|
971
|
-
# "user:foo@gmail.com"
|
972
|
-
# ]
|
973
|
-
# `,
|
974
|
-
# `
|
975
|
-
# "log_type": "DATA_WRITE",
|
976
|
-
# `,
|
977
|
-
# `
|
978
|
-
# "log_type": "ADMIN_READ",
|
979
|
-
# `
|
980
|
-
# ]
|
981
|
-
# `,
|
982
|
-
# `
|
983
|
-
# "service": "fooservice.googleapis.com"
|
984
|
-
# "audit_log_configs": [
|
985
|
-
# `
|
986
|
-
# "log_type": "DATA_READ",
|
987
|
-
# `,
|
988
|
-
# `
|
989
|
-
# "log_type": "DATA_WRITE",
|
990
|
-
# "exempted_members": [
|
991
|
-
# "user:bar@gmail.com"
|
992
|
-
# ]
|
993
|
-
# `
|
994
|
-
# ]
|
995
|
-
# `
|
996
|
-
# ]
|
997
|
-
# `
|
998
|
-
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
999
|
-
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
|
1000
|
-
# bar@gmail.com from DATA_WRITE logging.
|
1001
|
-
class GoogleIamV1AuditConfig
|
1002
|
-
include Google::Apis::Core::Hashable
|
1003
|
-
|
1004
|
-
#
|
1005
|
-
# Corresponds to the JSON property `exemptedMembers`
|
1006
|
-
# @return [Array<String>]
|
1007
|
-
attr_accessor :exempted_members
|
1008
|
-
|
1009
|
-
# Specifies a service that will be enabled for audit logging.
|
1010
|
-
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
1011
|
-
# `allServices` is a special value that covers all services.
|
1012
|
-
# Corresponds to the JSON property `service`
|
1013
|
-
# @return [String]
|
1014
|
-
attr_accessor :service
|
1015
|
-
|
1016
|
-
# The configuration for logging of each type of permission.
|
1017
|
-
# Next ID: 4
|
1018
|
-
# Corresponds to the JSON property `auditLogConfigs`
|
1019
|
-
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditLogConfig>]
|
1020
|
-
attr_accessor :audit_log_configs
|
1021
|
-
|
1022
|
-
def initialize(**args)
|
1023
|
-
update!(**args)
|
1024
|
-
end
|
1025
|
-
|
1026
|
-
# Update properties of this object
|
1027
|
-
def update!(**args)
|
1028
|
-
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
1029
|
-
@service = args[:service] if args.key?(:service)
|
1030
|
-
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
1031
|
-
end
|
1032
|
-
end
|
1033
|
-
|
1034
1199
|
# Represents a machine learning solution.
|
1035
1200
|
# A model can have multiple versions, each of which is a deployed, trained
|
1036
1201
|
# model ready to receive prediction requests. The model itself is just a
|
@@ -1093,6 +1258,86 @@ module Google
|
|
1093
1258
|
end
|
1094
1259
|
end
|
1095
1260
|
|
1261
|
+
# Specifies the audit configuration for a service.
|
1262
|
+
# The configuration determines which permission types are logged, and what
|
1263
|
+
# identities, if any, are exempted from logging.
|
1264
|
+
# An AuditConfig must have one or more AuditLogConfigs.
|
1265
|
+
# If there are AuditConfigs for both `allServices` and a specific service,
|
1266
|
+
# the union of the two AuditConfigs is used for that service: the log_types
|
1267
|
+
# specified in each AuditConfig are enabled, and the exempted_members in each
|
1268
|
+
# AuditConfig are exempted.
|
1269
|
+
# Example Policy with multiple AuditConfigs:
|
1270
|
+
# `
|
1271
|
+
# "audit_configs": [
|
1272
|
+
# `
|
1273
|
+
# "service": "allServices"
|
1274
|
+
# "audit_log_configs": [
|
1275
|
+
# `
|
1276
|
+
# "log_type": "DATA_READ",
|
1277
|
+
# "exempted_members": [
|
1278
|
+
# "user:foo@gmail.com"
|
1279
|
+
# ]
|
1280
|
+
# `,
|
1281
|
+
# `
|
1282
|
+
# "log_type": "DATA_WRITE",
|
1283
|
+
# `,
|
1284
|
+
# `
|
1285
|
+
# "log_type": "ADMIN_READ",
|
1286
|
+
# `
|
1287
|
+
# ]
|
1288
|
+
# `,
|
1289
|
+
# `
|
1290
|
+
# "service": "fooservice.googleapis.com"
|
1291
|
+
# "audit_log_configs": [
|
1292
|
+
# `
|
1293
|
+
# "log_type": "DATA_READ",
|
1294
|
+
# `,
|
1295
|
+
# `
|
1296
|
+
# "log_type": "DATA_WRITE",
|
1297
|
+
# "exempted_members": [
|
1298
|
+
# "user:bar@gmail.com"
|
1299
|
+
# ]
|
1300
|
+
# `
|
1301
|
+
# ]
|
1302
|
+
# `
|
1303
|
+
# ]
|
1304
|
+
# `
|
1305
|
+
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
1306
|
+
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
|
1307
|
+
# bar@gmail.com from DATA_WRITE logging.
|
1308
|
+
class GoogleIamV1AuditConfig
|
1309
|
+
include Google::Apis::Core::Hashable
|
1310
|
+
|
1311
|
+
#
|
1312
|
+
# Corresponds to the JSON property `exemptedMembers`
|
1313
|
+
# @return [Array<String>]
|
1314
|
+
attr_accessor :exempted_members
|
1315
|
+
|
1316
|
+
# Specifies a service that will be enabled for audit logging.
|
1317
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
1318
|
+
# `allServices` is a special value that covers all services.
|
1319
|
+
# Corresponds to the JSON property `service`
|
1320
|
+
# @return [String]
|
1321
|
+
attr_accessor :service
|
1322
|
+
|
1323
|
+
# The configuration for logging of each type of permission.
|
1324
|
+
# Next ID: 4
|
1325
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
1326
|
+
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditLogConfig>]
|
1327
|
+
attr_accessor :audit_log_configs
|
1328
|
+
|
1329
|
+
def initialize(**args)
|
1330
|
+
update!(**args)
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# Update properties of this object
|
1334
|
+
def update!(**args)
|
1335
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
1336
|
+
@service = args[:service] if args.key?(:service)
|
1337
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
1338
|
+
end
|
1339
|
+
end
|
1340
|
+
|
1096
1341
|
# A generic empty message that you can re-use to avoid defining duplicated
|
1097
1342
|
# empty messages in your APIs. A typical example is to use it as the request
|
1098
1343
|
# or the response type of an API method. For instance:
|
@@ -1116,25 +1361,25 @@ module Google
|
|
1116
1361
|
class GoogleCloudMlV1ListVersionsResponse
|
1117
1362
|
include Google::Apis::Core::Hashable
|
1118
1363
|
|
1119
|
-
# The list of versions.
|
1120
|
-
# Corresponds to the JSON property `versions`
|
1121
|
-
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
|
1122
|
-
attr_accessor :versions
|
1123
|
-
|
1124
1364
|
# Optional. Pass this token as the `page_token` field of the request for a
|
1125
1365
|
# subsequent call.
|
1126
1366
|
# Corresponds to the JSON property `nextPageToken`
|
1127
1367
|
# @return [String]
|
1128
1368
|
attr_accessor :next_page_token
|
1129
1369
|
|
1370
|
+
# The list of versions.
|
1371
|
+
# Corresponds to the JSON property `versions`
|
1372
|
+
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Version>]
|
1373
|
+
attr_accessor :versions
|
1374
|
+
|
1130
1375
|
def initialize(**args)
|
1131
1376
|
update!(**args)
|
1132
1377
|
end
|
1133
1378
|
|
1134
1379
|
# Update properties of this object
|
1135
1380
|
def update!(**args)
|
1136
|
-
@versions = args[:versions] if args.key?(:versions)
|
1137
1381
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1382
|
+
@versions = args[:versions] if args.key?(:versions)
|
1138
1383
|
end
|
1139
1384
|
end
|
1140
1385
|
|
@@ -1180,7 +1425,7 @@ module Google
|
|
1180
1425
|
# The number of nodes to allocate for this model. These nodes are always up,
|
1181
1426
|
# starting from the time the model is deployed, so the cost of operating
|
1182
1427
|
# this model will be proportional to `nodes` * number of hours since
|
1183
|
-
# last billing cycle.
|
1428
|
+
# last billing cycle plus the cost for each prediction performed.
|
1184
1429
|
# Corresponds to the JSON property `nodes`
|
1185
1430
|
# @return [Fixnum]
|
1186
1431
|
attr_accessor :nodes
|
@@ -1196,14 +1441,26 @@ module Google
|
|
1196
1441
|
end
|
1197
1442
|
|
1198
1443
|
# Specifies what kind of log the caller must write
|
1444
|
+
# Increment a streamz counter with the specified metric and field names.
|
1445
|
+
# Metric names should start with a '/', generally be lowercase-only,
|
1446
|
+
# and end in "_count". Field names should not contain an initial slash.
|
1447
|
+
# The actual exported metric names will have "/iam/policy" prepended.
|
1448
|
+
# Field names correspond to IAM request parameters and field values are
|
1449
|
+
# their respective values.
|
1450
|
+
# At present the only supported field names are
|
1451
|
+
# - "iam_principal", corresponding to IAMContext.principal;
|
1452
|
+
# - "" (empty string), resulting in one aggretated counter with no field.
|
1453
|
+
# Examples:
|
1454
|
+
# counter ` metric: "/debug_access_count" field: "iam_principal" `
|
1455
|
+
# ==> increment counter /iam/policy/backend_debug_access_count
|
1456
|
+
# `iam_principal=[value of IAMContext.principal]`
|
1457
|
+
# At this time we do not support:
|
1458
|
+
# * multiple field names (though this may be supported in the future)
|
1459
|
+
# * decrementing the counter
|
1460
|
+
# * incrementing it by anything other than 1
|
1199
1461
|
class GoogleIamV1LogConfig
|
1200
1462
|
include Google::Apis::Core::Hashable
|
1201
1463
|
|
1202
|
-
# Options for counters
|
1203
|
-
# Corresponds to the JSON property `counter`
|
1204
|
-
# @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions]
|
1205
|
-
attr_accessor :counter
|
1206
|
-
|
1207
1464
|
# Write a Data Access (Gin) log
|
1208
1465
|
# Corresponds to the JSON property `dataAccess`
|
1209
1466
|
# @return [Google::Apis::MlV1::GoogleIamV1LogConfigDataAccessOptions]
|
@@ -1214,15 +1471,54 @@ module Google
|
|
1214
1471
|
# @return [Google::Apis::MlV1::GoogleIamV1LogConfigCloudAuditOptions]
|
1215
1472
|
attr_accessor :cloud_audit
|
1216
1473
|
|
1474
|
+
# Options for counters
|
1475
|
+
# Corresponds to the JSON property `counter`
|
1476
|
+
# @return [Google::Apis::MlV1::GoogleIamV1LogConfigCounterOptions]
|
1477
|
+
attr_accessor :counter
|
1478
|
+
|
1217
1479
|
def initialize(**args)
|
1218
1480
|
update!(**args)
|
1219
1481
|
end
|
1220
1482
|
|
1221
1483
|
# Update properties of this object
|
1222
1484
|
def update!(**args)
|
1223
|
-
@counter = args[:counter] if args.key?(:counter)
|
1224
1485
|
@data_access = args[:data_access] if args.key?(:data_access)
|
1225
1486
|
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
|
1487
|
+
@counter = args[:counter] if args.key?(:counter)
|
1488
|
+
end
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
# Options for automatically scaling a model.
|
1492
|
+
class GoogleCloudMlV1AutoScaling
|
1493
|
+
include Google::Apis::Core::Hashable
|
1494
|
+
|
1495
|
+
# Optional. The minimum number of nodes to allocate for this model. These
|
1496
|
+
# nodes are always up, starting from the time the model is deployed, so the
|
1497
|
+
# cost of operating this model will be at least
|
1498
|
+
# `rate` * `min_nodes` * number of hours since last billing cycle,
|
1499
|
+
# where `rate` is the cost per node-hour as documented in
|
1500
|
+
# [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
|
1501
|
+
# even if no predictions are performed. There is additional cost for each
|
1502
|
+
# prediction performed.
|
1503
|
+
# Unlike manual scaling, if the load gets too heavy for the nodes
|
1504
|
+
# that are up, the service will automatically add nodes to handle the
|
1505
|
+
# increased load as well as scale back as traffic drops, always maintaining
|
1506
|
+
# at least `min_nodes`. You will be charged for the time in which additional
|
1507
|
+
# nodes are used.
|
1508
|
+
# If not specified, `min_nodes` defaults to 0, in which case, when traffic
|
1509
|
+
# to a model stops (and after a cool-down period), nodes will be shut down
|
1510
|
+
# and no charges will be incurred until traffic to the model resumes.
|
1511
|
+
# Corresponds to the JSON property `minNodes`
|
1512
|
+
# @return [Fixnum]
|
1513
|
+
attr_accessor :min_nodes
|
1514
|
+
|
1515
|
+
def initialize(**args)
|
1516
|
+
update!(**args)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# Update properties of this object
|
1520
|
+
def update!(**args)
|
1521
|
+
@min_nodes = args[:min_nodes] if args.key?(:min_nodes)
|
1226
1522
|
end
|
1227
1523
|
end
|
1228
1524
|
|
@@ -1280,8 +1576,8 @@ module Google
|
|
1280
1576
|
# @return [String]
|
1281
1577
|
attr_accessor :message
|
1282
1578
|
|
1283
|
-
# A list of messages that carry the error details. There
|
1284
|
-
#
|
1579
|
+
# A list of messages that carry the error details. There is a common set of
|
1580
|
+
# message types for APIs to use.
|
1285
1581
|
# Corresponds to the JSON property `details`
|
1286
1582
|
# @return [Array<Hash<String,Object>>]
|
1287
1583
|
attr_accessor :details
|
@@ -1302,25 +1598,25 @@ module Google
|
|
1302
1598
|
class GoogleCloudMlV1ListModelsResponse
|
1303
1599
|
include Google::Apis::Core::Hashable
|
1304
1600
|
|
1601
|
+
# The list of models.
|
1602
|
+
# Corresponds to the JSON property `models`
|
1603
|
+
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
|
1604
|
+
attr_accessor :models
|
1605
|
+
|
1305
1606
|
# Optional. Pass this token as the `page_token` field of the request for a
|
1306
1607
|
# subsequent call.
|
1307
1608
|
# Corresponds to the JSON property `nextPageToken`
|
1308
1609
|
# @return [String]
|
1309
1610
|
attr_accessor :next_page_token
|
1310
1611
|
|
1311
|
-
# The list of models.
|
1312
|
-
# Corresponds to the JSON property `models`
|
1313
|
-
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1Model>]
|
1314
|
-
attr_accessor :models
|
1315
|
-
|
1316
1612
|
def initialize(**args)
|
1317
1613
|
update!(**args)
|
1318
1614
|
end
|
1319
1615
|
|
1320
1616
|
# Update properties of this object
|
1321
1617
|
def update!(**args)
|
1322
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1323
1618
|
@models = args[:models] if args.key?(:models)
|
1619
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1324
1620
|
end
|
1325
1621
|
end
|
1326
1622
|
|
@@ -1328,6 +1624,71 @@ module Google
|
|
1328
1624
|
class GoogleCloudMlV1TrainingInput
|
1329
1625
|
include Google::Apis::Core::Hashable
|
1330
1626
|
|
1627
|
+
# Required. The Google Compute Engine region to run the training job in.
|
1628
|
+
# Corresponds to the JSON property `region`
|
1629
|
+
# @return [String]
|
1630
|
+
attr_accessor :region
|
1631
|
+
|
1632
|
+
# Optional. Specifies the type of virtual machine to use for your training
|
1633
|
+
# job's worker nodes.
|
1634
|
+
# The supported values are the same as those described in the entry for
|
1635
|
+
# `masterType`.
|
1636
|
+
# This value must be present when `scaleTier` is set to `CUSTOM` and
|
1637
|
+
# `workerCount` is greater than zero.
|
1638
|
+
# Corresponds to the JSON property `workerType`
|
1639
|
+
# @return [String]
|
1640
|
+
attr_accessor :worker_type
|
1641
|
+
|
1642
|
+
# Optional. Command line arguments to pass to the program.
|
1643
|
+
# Corresponds to the JSON property `args`
|
1644
|
+
# @return [Array<String>]
|
1645
|
+
attr_accessor :args
|
1646
|
+
|
1647
|
+
# Optional. Specifies the type of virtual machine to use for your training
|
1648
|
+
# job's parameter server.
|
1649
|
+
# The supported values are the same as those described in the entry for
|
1650
|
+
# `master_type`.
|
1651
|
+
# This value must be present when `scaleTier` is set to `CUSTOM` and
|
1652
|
+
# `parameter_server_count` is greater than zero.
|
1653
|
+
# Corresponds to the JSON property `parameterServerType`
|
1654
|
+
# @return [String]
|
1655
|
+
attr_accessor :parameter_server_type
|
1656
|
+
|
1657
|
+
# Required. Specifies the machine types, the number of replicas for workers
|
1658
|
+
# and parameter servers.
|
1659
|
+
# Corresponds to the JSON property `scaleTier`
|
1660
|
+
# @return [String]
|
1661
|
+
attr_accessor :scale_tier
|
1662
|
+
|
1663
|
+
# Optional. A Google Cloud Storage path in which to store training outputs
|
1664
|
+
# and other data needed for training. This path is passed to your TensorFlow
|
1665
|
+
# program as the 'job_dir' command-line argument. The benefit of specifying
|
1666
|
+
# this field is that Cloud ML validates the path for use in training.
|
1667
|
+
# Corresponds to the JSON property `jobDir`
|
1668
|
+
# @return [String]
|
1669
|
+
attr_accessor :job_dir
|
1670
|
+
|
1671
|
+
# Represents a set of hyperparameters to optimize.
|
1672
|
+
# Corresponds to the JSON property `hyperparameters`
|
1673
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
|
1674
|
+
attr_accessor :hyperparameters
|
1675
|
+
|
1676
|
+
# Optional. The number of parameter server replicas to use for the training
|
1677
|
+
# job. Each replica in the cluster will be of the type specified in
|
1678
|
+
# `parameter_server_type`.
|
1679
|
+
# This value can only be used when `scale_tier` is set to `CUSTOM`.If you
|
1680
|
+
# set this value, you must also set `parameter_server_type`.
|
1681
|
+
# Corresponds to the JSON property `parameterServerCount`
|
1682
|
+
# @return [Fixnum]
|
1683
|
+
attr_accessor :parameter_server_count
|
1684
|
+
|
1685
|
+
# Required. The Google Cloud Storage location of the packages with
|
1686
|
+
# the training program and any additional dependencies.
|
1687
|
+
# The maximum number of package URIs is 100.
|
1688
|
+
# Corresponds to the JSON property `packageUris`
|
1689
|
+
# @return [Array<String>]
|
1690
|
+
attr_accessor :package_uris
|
1691
|
+
|
1331
1692
|
# Optional. The number of worker replicas to use for the training job. Each
|
1332
1693
|
# replica in the cluster will be of the type specified in `worker_type`.
|
1333
1694
|
# This value can only be used when `scale_tier` is set to `CUSTOM`. If you
|
@@ -1397,90 +1758,25 @@ module Google
|
|
1397
1758
|
# @return [String]
|
1398
1759
|
attr_accessor :python_module
|
1399
1760
|
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
attr_accessor :region
|
1404
|
-
|
1405
|
-
# Optional. Command line arguments to pass to the program.
|
1406
|
-
# Corresponds to the JSON property `args`
|
1407
|
-
# @return [Array<String>]
|
1408
|
-
attr_accessor :args
|
1409
|
-
|
1410
|
-
# Optional. Specifies the type of virtual machine to use for your training
|
1411
|
-
# job's worker nodes.
|
1412
|
-
# The supported values are the same as those described in the entry for
|
1413
|
-
# `masterType`.
|
1414
|
-
# This value must be present when `scaleTier` is set to `CUSTOM` and
|
1415
|
-
# `workerCount` is greater than zero.
|
1416
|
-
# Corresponds to the JSON property `workerType`
|
1417
|
-
# @return [String]
|
1418
|
-
attr_accessor :worker_type
|
1419
|
-
|
1420
|
-
# Optional. Specifies the type of virtual machine to use for your training
|
1421
|
-
# job's parameter server.
|
1422
|
-
# The supported values are the same as those described in the entry for
|
1423
|
-
# `master_type`.
|
1424
|
-
# This value must be present when `scaleTier` is set to `CUSTOM` and
|
1425
|
-
# `parameter_server_count` is greater than zero.
|
1426
|
-
# Corresponds to the JSON property `parameterServerType`
|
1427
|
-
# @return [String]
|
1428
|
-
attr_accessor :parameter_server_type
|
1429
|
-
|
1430
|
-
# Required. Specifies the machine types, the number of replicas for workers
|
1431
|
-
# and parameter servers.
|
1432
|
-
# Corresponds to the JSON property `scaleTier`
|
1433
|
-
# @return [String]
|
1434
|
-
attr_accessor :scale_tier
|
1435
|
-
|
1436
|
-
# Optional. A Google Cloud Storage path in which to store training outputs
|
1437
|
-
# and other data needed for training. This path is passed to your TensorFlow
|
1438
|
-
# program as the 'job_dir' command-line argument. The benefit of specifying
|
1439
|
-
# this field is that Cloud ML validates the path for use in training.
|
1440
|
-
# Corresponds to the JSON property `jobDir`
|
1441
|
-
# @return [String]
|
1442
|
-
attr_accessor :job_dir
|
1443
|
-
|
1444
|
-
# Represents a set of hyperparameters to optimize.
|
1445
|
-
# Corresponds to the JSON property `hyperparameters`
|
1446
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec]
|
1447
|
-
attr_accessor :hyperparameters
|
1448
|
-
|
1449
|
-
# Optional. The number of parameter server replicas to use for the training
|
1450
|
-
# job. Each replica in the cluster will be of the type specified in
|
1451
|
-
# `parameter_server_type`.
|
1452
|
-
# This value can only be used when `scale_tier` is set to `CUSTOM`.If you
|
1453
|
-
# set this value, you must also set `parameter_server_type`.
|
1454
|
-
# Corresponds to the JSON property `parameterServerCount`
|
1455
|
-
# @return [Fixnum]
|
1456
|
-
attr_accessor :parameter_server_count
|
1457
|
-
|
1458
|
-
# Required. The Google Cloud Storage location of the packages with
|
1459
|
-
# the training program and any additional dependencies.
|
1460
|
-
# The maximum number of package URIs is 100.
|
1461
|
-
# Corresponds to the JSON property `packageUris`
|
1462
|
-
# @return [Array<String>]
|
1463
|
-
attr_accessor :package_uris
|
1464
|
-
|
1465
|
-
def initialize(**args)
|
1466
|
-
update!(**args)
|
1467
|
-
end
|
1761
|
+
def initialize(**args)
|
1762
|
+
update!(**args)
|
1763
|
+
end
|
1468
1764
|
|
1469
1765
|
# Update properties of this object
|
1470
1766
|
def update!(**args)
|
1471
|
-
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
1472
|
-
@master_type = args[:master_type] if args.key?(:master_type)
|
1473
|
-
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
1474
|
-
@python_module = args[:python_module] if args.key?(:python_module)
|
1475
1767
|
@region = args[:region] if args.key?(:region)
|
1476
|
-
@args = args[:args] if args.key?(:args)
|
1477
1768
|
@worker_type = args[:worker_type] if args.key?(:worker_type)
|
1769
|
+
@args = args[:args] if args.key?(:args)
|
1478
1770
|
@parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
|
1479
1771
|
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
1480
1772
|
@job_dir = args[:job_dir] if args.key?(:job_dir)
|
1481
1773
|
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
|
1482
1774
|
@parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
|
1483
1775
|
@package_uris = args[:package_uris] if args.key?(:package_uris)
|
1776
|
+
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
1777
|
+
@master_type = args[:master_type] if args.key?(:master_type)
|
1778
|
+
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
1779
|
+
@python_module = args[:python_module] if args.key?(:python_module)
|
1484
1780
|
end
|
1485
1781
|
end
|
1486
1782
|
|
@@ -1488,6 +1784,26 @@ module Google
|
|
1488
1784
|
class GoogleCloudMlV1Job
|
1489
1785
|
include Google::Apis::Core::Hashable
|
1490
1786
|
|
1787
|
+
# Output only. The detailed state of a job.
|
1788
|
+
# Corresponds to the JSON property `state`
|
1789
|
+
# @return [String]
|
1790
|
+
attr_accessor :state
|
1791
|
+
|
1792
|
+
# Represents input parameters for a prediction job.
|
1793
|
+
# Corresponds to the JSON property `predictionInput`
|
1794
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
|
1795
|
+
attr_accessor :prediction_input
|
1796
|
+
|
1797
|
+
# Output only. The details of a failure or a cancellation.
|
1798
|
+
# Corresponds to the JSON property `errorMessage`
|
1799
|
+
# @return [String]
|
1800
|
+
attr_accessor :error_message
|
1801
|
+
|
1802
|
+
# Required. The user-specified id of the job.
|
1803
|
+
# Corresponds to the JSON property `jobId`
|
1804
|
+
# @return [String]
|
1805
|
+
attr_accessor :job_id
|
1806
|
+
|
1491
1807
|
# Output only. When the job processing was completed.
|
1492
1808
|
# Corresponds to the JSON property `endTime`
|
1493
1809
|
# @return [String]
|
@@ -1518,42 +1834,22 @@ module Google
|
|
1518
1834
|
# @return [Google::Apis::MlV1::GoogleCloudMlV1TrainingInput]
|
1519
1835
|
attr_accessor :training_input
|
1520
1836
|
|
1521
|
-
# Represents input parameters for a prediction job.
|
1522
|
-
# Corresponds to the JSON property `predictionInput`
|
1523
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
|
1524
|
-
attr_accessor :prediction_input
|
1525
|
-
|
1526
|
-
# Output only. The detailed state of a job.
|
1527
|
-
# Corresponds to the JSON property `state`
|
1528
|
-
# @return [String]
|
1529
|
-
attr_accessor :state
|
1530
|
-
|
1531
|
-
# Output only. The details of a failure or a cancellation.
|
1532
|
-
# Corresponds to the JSON property `errorMessage`
|
1533
|
-
# @return [String]
|
1534
|
-
attr_accessor :error_message
|
1535
|
-
|
1536
|
-
# Required. The user-specified id of the job.
|
1537
|
-
# Corresponds to the JSON property `jobId`
|
1538
|
-
# @return [String]
|
1539
|
-
attr_accessor :job_id
|
1540
|
-
|
1541
1837
|
def initialize(**args)
|
1542
1838
|
update!(**args)
|
1543
1839
|
end
|
1544
1840
|
|
1545
1841
|
# Update properties of this object
|
1546
1842
|
def update!(**args)
|
1843
|
+
@state = args[:state] if args.key?(:state)
|
1844
|
+
@prediction_input = args[:prediction_input] if args.key?(:prediction_input)
|
1845
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
1846
|
+
@job_id = args[:job_id] if args.key?(:job_id)
|
1547
1847
|
@end_time = args[:end_time] if args.key?(:end_time)
|
1548
1848
|
@start_time = args[:start_time] if args.key?(:start_time)
|
1549
1849
|
@prediction_output = args[:prediction_output] if args.key?(:prediction_output)
|
1550
1850
|
@training_output = args[:training_output] if args.key?(:training_output)
|
1551
1851
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1552
1852
|
@training_input = args[:training_input] if args.key?(:training_input)
|
1553
|
-
@prediction_input = args[:prediction_input] if args.key?(:prediction_input)
|
1554
|
-
@state = args[:state] if args.key?(:state)
|
1555
|
-
@error_message = args[:error_message] if args.key?(:error_message)
|
1556
|
-
@job_id = args[:job_id] if args.key?(:job_id)
|
1557
1853
|
end
|
1558
1854
|
end
|
1559
1855
|
|
@@ -1588,12 +1884,6 @@ module Google
|
|
1588
1884
|
class GoogleApiHttpBody
|
1589
1885
|
include Google::Apis::Core::Hashable
|
1590
1886
|
|
1591
|
-
# Application specific response metadata. Must be set in the first response
|
1592
|
-
# for streaming APIs.
|
1593
|
-
# Corresponds to the JSON property `extensions`
|
1594
|
-
# @return [Array<Hash<String,Object>>]
|
1595
|
-
attr_accessor :extensions
|
1596
|
-
|
1597
1887
|
# HTTP body binary data.
|
1598
1888
|
# Corresponds to the JSON property `data`
|
1599
1889
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
@@ -1605,15 +1895,21 @@ module Google
|
|
1605
1895
|
# @return [String]
|
1606
1896
|
attr_accessor :content_type
|
1607
1897
|
|
1898
|
+
# Application specific response metadata. Must be set in the first response
|
1899
|
+
# for streaming APIs.
|
1900
|
+
# Corresponds to the JSON property `extensions`
|
1901
|
+
# @return [Array<Hash<String,Object>>]
|
1902
|
+
attr_accessor :extensions
|
1903
|
+
|
1608
1904
|
def initialize(**args)
|
1609
1905
|
update!(**args)
|
1610
1906
|
end
|
1611
1907
|
|
1612
1908
|
# Update properties of this object
|
1613
1909
|
def update!(**args)
|
1614
|
-
@extensions = args[:extensions] if args.key?(:extensions)
|
1615
1910
|
@data = args[:data] if args.key?(:data)
|
1616
1911
|
@content_type = args[:content_type] if args.key?(:content_type)
|
1912
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
1617
1913
|
end
|
1618
1914
|
end
|
1619
1915
|
|
@@ -1626,22 +1922,6 @@ module Google
|
|
1626
1922
|
class GoogleCloudMlV1beta1Version
|
1627
1923
|
include Google::Apis::Core::Hashable
|
1628
1924
|
|
1629
|
-
# Options for automatically scaling a model.
|
1630
|
-
# Corresponds to the JSON property `automaticScaling`
|
1631
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1beta1AutomaticScaling]
|
1632
|
-
attr_accessor :automatic_scaling
|
1633
|
-
|
1634
|
-
# Optional. The Google Cloud ML runtime version to use for this deployment.
|
1635
|
-
# If not set, Google Cloud ML will choose a version.
|
1636
|
-
# Corresponds to the JSON property `runtimeVersion`
|
1637
|
-
# @return [String]
|
1638
|
-
attr_accessor :runtime_version
|
1639
|
-
|
1640
|
-
# Output only. The time the version was last used for prediction.
|
1641
|
-
# Corresponds to the JSON property `lastUseTime`
|
1642
|
-
# @return [String]
|
1643
|
-
attr_accessor :last_use_time
|
1644
|
-
|
1645
1925
|
# Optional. The description specified for the version when it was created.
|
1646
1926
|
# Corresponds to the JSON property `description`
|
1647
1927
|
# @return [String]
|
@@ -1651,7 +1931,7 @@ module Google
|
|
1651
1931
|
# create the version. See the
|
1652
1932
|
# [overview of model
|
1653
1933
|
# deployment](/ml-engine/docs/concepts/deployment-overview) for more
|
1654
|
-
#
|
1934
|
+
# information.
|
1655
1935
|
# When passing Version to
|
1656
1936
|
# [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.
|
1657
1937
|
# models.versions/create)
|
@@ -1663,6 +1943,11 @@ module Google
|
|
1663
1943
|
# @return [String]
|
1664
1944
|
attr_accessor :deployment_uri
|
1665
1945
|
|
1946
|
+
# Options for automatically scaling a model.
|
1947
|
+
# Corresponds to the JSON property `autoScaling`
|
1948
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1beta1AutoScaling]
|
1949
|
+
attr_accessor :auto_scaling
|
1950
|
+
|
1666
1951
|
# Output only. If true, this version will be used to handle prediction
|
1667
1952
|
# requests that do not specify a version.
|
1668
1953
|
# You can change the default version by calling
|
@@ -1678,38 +1963,55 @@ module Google
|
|
1678
1963
|
# @return [String]
|
1679
1964
|
attr_accessor :create_time
|
1680
1965
|
|
1681
|
-
# Options for manually scaling a model.
|
1682
|
-
# Corresponds to the JSON property `manualScaling`
|
1683
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
|
1684
|
-
attr_accessor :manual_scaling
|
1685
|
-
|
1686
1966
|
# Output only. The state of a version.
|
1687
1967
|
# Corresponds to the JSON property `state`
|
1688
1968
|
# @return [String]
|
1689
1969
|
attr_accessor :state
|
1690
1970
|
|
1971
|
+
# Options for manually scaling a model.
|
1972
|
+
# Corresponds to the JSON property `manualScaling`
|
1973
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1beta1ManualScaling]
|
1974
|
+
attr_accessor :manual_scaling
|
1975
|
+
|
1691
1976
|
# Required.The name specified for the version when it was created.
|
1692
1977
|
# The version name must be unique within the model it is created in.
|
1693
1978
|
# Corresponds to the JSON property `name`
|
1694
1979
|
# @return [String]
|
1695
1980
|
attr_accessor :name
|
1696
1981
|
|
1982
|
+
# Output only. The details of a failure or a cancellation.
|
1983
|
+
# Corresponds to the JSON property `errorMessage`
|
1984
|
+
# @return [String]
|
1985
|
+
attr_accessor :error_message
|
1986
|
+
|
1987
|
+
# Optional. The Google Cloud ML runtime version to use for this deployment.
|
1988
|
+
# If not set, Google Cloud ML will choose a version.
|
1989
|
+
# Corresponds to the JSON property `runtimeVersion`
|
1990
|
+
# @return [String]
|
1991
|
+
attr_accessor :runtime_version
|
1992
|
+
|
1993
|
+
# Output only. The time the version was last used for prediction.
|
1994
|
+
# Corresponds to the JSON property `lastUseTime`
|
1995
|
+
# @return [String]
|
1996
|
+
attr_accessor :last_use_time
|
1997
|
+
|
1697
1998
|
def initialize(**args)
|
1698
1999
|
update!(**args)
|
1699
2000
|
end
|
1700
2001
|
|
1701
2002
|
# Update properties of this object
|
1702
2003
|
def update!(**args)
|
1703
|
-
@automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling)
|
1704
|
-
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
1705
|
-
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
|
1706
2004
|
@description = args[:description] if args.key?(:description)
|
1707
2005
|
@deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
|
2006
|
+
@auto_scaling = args[:auto_scaling] if args.key?(:auto_scaling)
|
1708
2007
|
@is_default = args[:is_default] if args.key?(:is_default)
|
1709
2008
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1710
|
-
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
1711
2009
|
@state = args[:state] if args.key?(:state)
|
2010
|
+
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
1712
2011
|
@name = args[:name] if args.key?(:name)
|
2012
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
2013
|
+
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
2014
|
+
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
|
1713
2015
|
end
|
1714
2016
|
end
|
1715
2017
|
|
@@ -1765,11 +2067,6 @@ module Google
|
|
1765
2067
|
class GoogleCloudMlV1HyperparameterOutput
|
1766
2068
|
include Google::Apis::Core::Hashable
|
1767
2069
|
|
1768
|
-
# An observed value of a metric.
|
1769
|
-
# Corresponds to the JSON property `finalMetric`
|
1770
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
|
1771
|
-
attr_accessor :final_metric
|
1772
|
-
|
1773
2070
|
# The hyperparameters given to this trial.
|
1774
2071
|
# Corresponds to the JSON property `hyperparameters`
|
1775
2072
|
# @return [Hash<String,String>]
|
@@ -1785,16 +2082,21 @@ module Google
|
|
1785
2082
|
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>]
|
1786
2083
|
attr_accessor :all_metrics
|
1787
2084
|
|
2085
|
+
# An observed value of a metric.
|
2086
|
+
# Corresponds to the JSON property `finalMetric`
|
2087
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric]
|
2088
|
+
attr_accessor :final_metric
|
2089
|
+
|
1788
2090
|
def initialize(**args)
|
1789
2091
|
update!(**args)
|
1790
2092
|
end
|
1791
2093
|
|
1792
2094
|
# Update properties of this object
|
1793
2095
|
def update!(**args)
|
1794
|
-
@final_metric = args[:final_metric] if args.key?(:final_metric)
|
1795
2096
|
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
|
1796
2097
|
@trial_id = args[:trial_id] if args.key?(:trial_id)
|
1797
2098
|
@all_metrics = args[:all_metrics] if args.key?(:all_metrics)
|
2099
|
+
@final_metric = args[:final_metric] if args.key?(:final_metric)
|
1798
2100
|
end
|
1799
2101
|
end
|
1800
2102
|
|
@@ -1802,6 +2104,15 @@ module Google
|
|
1802
2104
|
class GoogleIamV1SetIamPolicyRequest
|
1803
2105
|
include Google::Apis::Core::Hashable
|
1804
2106
|
|
2107
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
2108
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
2109
|
+
# following default mask is used:
|
2110
|
+
# paths: "bindings, etag"
|
2111
|
+
# This field is only used by Cloud IAM.
|
2112
|
+
# Corresponds to the JSON property `updateMask`
|
2113
|
+
# @return [String]
|
2114
|
+
attr_accessor :update_mask
|
2115
|
+
|
1805
2116
|
# Defines an Identity and Access Management (IAM) policy. It is used to
|
1806
2117
|
# specify access control policies for Cloud Platform resources.
|
1807
2118
|
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
@@ -1832,57 +2143,14 @@ module Google
|
|
1832
2143
|
# @return [Google::Apis::MlV1::GoogleIamV1Policy]
|
1833
2144
|
attr_accessor :policy
|
1834
2145
|
|
1835
|
-
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1836
|
-
# the fields in the mask will be modified. If no mask is provided, the
|
1837
|
-
# following default mask is used:
|
1838
|
-
# paths: "bindings, etag"
|
1839
|
-
# This field is only used by Cloud IAM.
|
1840
|
-
# Corresponds to the JSON property `updateMask`
|
1841
|
-
# @return [String]
|
1842
|
-
attr_accessor :update_mask
|
1843
|
-
|
1844
2146
|
def initialize(**args)
|
1845
2147
|
update!(**args)
|
1846
2148
|
end
|
1847
2149
|
|
1848
2150
|
# Update properties of this object
|
1849
2151
|
def update!(**args)
|
1850
|
-
@policy = args[:policy] if args.key?(:policy)
|
1851
2152
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1852
|
-
|
1853
|
-
end
|
1854
|
-
|
1855
|
-
# Options for automatically scaling a model.
|
1856
|
-
class GoogleCloudMlV1AutomaticScaling
|
1857
|
-
include Google::Apis::Core::Hashable
|
1858
|
-
|
1859
|
-
# Optional. The minimum number of nodes to allocate for this model. These
|
1860
|
-
# nodes are always up, starting from the time the model is deployed, so the
|
1861
|
-
# cost of operating this model will be at least
|
1862
|
-
# `rate` * `min_nodes` * number of hours since last billing cycle,
|
1863
|
-
# where `rate` is the cost per node-hour as documented in
|
1864
|
-
# [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
|
1865
|
-
# even if no predictions are performed. There is additional cost for each
|
1866
|
-
# prediction performed.
|
1867
|
-
# Unlike manual scaling, if the load gets too heavy for the nodes
|
1868
|
-
# that are up, the service will automatically add nodes to handle the
|
1869
|
-
# increased load as well as scale back as traffic drops, always maintaining
|
1870
|
-
# at least `min_nodes`. You will be charged for the time in which additional
|
1871
|
-
# nodes are used.
|
1872
|
-
# If not specified, `min_nodes` defaults to 0, in which case, when traffic
|
1873
|
-
# to a model stops (and after a cool-down period), nodes will be shut down
|
1874
|
-
# and no charges will be incurred until traffic to the model resumes.
|
1875
|
-
# Corresponds to the JSON property `minNodes`
|
1876
|
-
# @return [Fixnum]
|
1877
|
-
attr_accessor :min_nodes
|
1878
|
-
|
1879
|
-
def initialize(**args)
|
1880
|
-
update!(**args)
|
1881
|
-
end
|
1882
|
-
|
1883
|
-
# Update properties of this object
|
1884
|
-
def update!(**args)
|
1885
|
-
@min_nodes = args[:min_nodes] if args.key?(:min_nodes)
|
2153
|
+
@policy = args[:policy] if args.key?(:policy)
|
1886
2154
|
end
|
1887
2155
|
end
|
1888
2156
|
|
@@ -1890,36 +2158,36 @@ module Google
|
|
1890
2158
|
class GoogleCloudMlV1PredictionOutput
|
1891
2159
|
include Google::Apis::Core::Hashable
|
1892
2160
|
|
1893
|
-
#
|
1894
|
-
# Corresponds to the JSON property `
|
1895
|
-
# @return [
|
1896
|
-
attr_accessor :
|
2161
|
+
# Node hours used by the batch prediction job.
|
2162
|
+
# Corresponds to the JSON property `nodeHours`
|
2163
|
+
# @return [Float]
|
2164
|
+
attr_accessor :node_hours
|
1897
2165
|
|
1898
2166
|
# The output Google Cloud Storage location provided at the job creation time.
|
1899
2167
|
# Corresponds to the JSON property `outputPath`
|
1900
2168
|
# @return [String]
|
1901
2169
|
attr_accessor :output_path
|
1902
2170
|
|
1903
|
-
# Node hours used by the batch prediction job.
|
1904
|
-
# Corresponds to the JSON property `nodeHours`
|
1905
|
-
# @return [Float]
|
1906
|
-
attr_accessor :node_hours
|
1907
|
-
|
1908
2171
|
# The number of generated predictions.
|
1909
2172
|
# Corresponds to the JSON property `predictionCount`
|
1910
2173
|
# @return [Fixnum]
|
1911
2174
|
attr_accessor :prediction_count
|
1912
2175
|
|
2176
|
+
# The number of data instances which resulted in errors.
|
2177
|
+
# Corresponds to the JSON property `errorCount`
|
2178
|
+
# @return [Fixnum]
|
2179
|
+
attr_accessor :error_count
|
2180
|
+
|
1913
2181
|
def initialize(**args)
|
1914
2182
|
update!(**args)
|
1915
2183
|
end
|
1916
2184
|
|
1917
2185
|
# Update properties of this object
|
1918
2186
|
def update!(**args)
|
1919
|
-
@error_count = args[:error_count] if args.key?(:error_count)
|
1920
|
-
@output_path = args[:output_path] if args.key?(:output_path)
|
1921
2187
|
@node_hours = args[:node_hours] if args.key?(:node_hours)
|
2188
|
+
@output_path = args[:output_path] if args.key?(:output_path)
|
1922
2189
|
@prediction_count = args[:prediction_count] if args.key?(:prediction_count)
|
2190
|
+
@error_count = args[:error_count] if args.key?(:error_count)
|
1923
2191
|
end
|
1924
2192
|
end
|
1925
2193
|
|
@@ -1952,6 +2220,22 @@ module Google
|
|
1952
2220
|
class GoogleIamV1Policy
|
1953
2221
|
include Google::Apis::Core::Hashable
|
1954
2222
|
|
2223
|
+
# Version of the `Policy`. The default version is 0.
|
2224
|
+
# Corresponds to the JSON property `version`
|
2225
|
+
# @return [Fixnum]
|
2226
|
+
attr_accessor :version
|
2227
|
+
|
2228
|
+
# Specifies cloud audit logging configuration for this policy.
|
2229
|
+
# Corresponds to the JSON property `auditConfigs`
|
2230
|
+
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
|
2231
|
+
attr_accessor :audit_configs
|
2232
|
+
|
2233
|
+
# Associates a list of `members` to a `role`.
|
2234
|
+
# `bindings` with no members will result in an error.
|
2235
|
+
# Corresponds to the JSON property `bindings`
|
2236
|
+
# @return [Array<Google::Apis::MlV1::GoogleIamV1Binding>]
|
2237
|
+
attr_accessor :bindings
|
2238
|
+
|
1955
2239
|
# `etag` is used for optimistic concurrency control as a way to help
|
1956
2240
|
# prevent simultaneous updates of a policy from overwriting each other.
|
1957
2241
|
# It is strongly suggested that systems make use of the `etag` in the
|
@@ -1985,68 +2269,18 @@ module Google
|
|
1985
2269
|
# @return [Array<Google::Apis::MlV1::GoogleIamV1Rule>]
|
1986
2270
|
attr_accessor :rules
|
1987
2271
|
|
1988
|
-
# Version of the `Policy`. The default version is 0.
|
1989
|
-
# Corresponds to the JSON property `version`
|
1990
|
-
# @return [Fixnum]
|
1991
|
-
attr_accessor :version
|
1992
|
-
|
1993
|
-
# Specifies cloud audit logging configuration for this policy.
|
1994
|
-
# Corresponds to the JSON property `auditConfigs`
|
1995
|
-
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
|
1996
|
-
attr_accessor :audit_configs
|
1997
|
-
|
1998
|
-
# Associates a list of `members` to a `role`.
|
1999
|
-
# `bindings` with no members will result in an error.
|
2000
|
-
# Corresponds to the JSON property `bindings`
|
2001
|
-
# @return [Array<Google::Apis::MlV1::GoogleIamV1Binding>]
|
2002
|
-
attr_accessor :bindings
|
2003
|
-
|
2004
2272
|
def initialize(**args)
|
2005
2273
|
update!(**args)
|
2006
2274
|
end
|
2007
2275
|
|
2008
2276
|
# Update properties of this object
|
2009
2277
|
def update!(**args)
|
2010
|
-
@etag = args[:etag] if args.key?(:etag)
|
2011
|
-
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
2012
|
-
@rules = args[:rules] if args.key?(:rules)
|
2013
2278
|
@version = args[:version] if args.key?(:version)
|
2014
2279
|
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
2015
2280
|
@bindings = args[:bindings] if args.key?(:bindings)
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
# Options for automatically scaling a model.
|
2020
|
-
class GoogleCloudMlV1beta1AutomaticScaling
|
2021
|
-
include Google::Apis::Core::Hashable
|
2022
|
-
|
2023
|
-
# Optional. The minimum number of nodes to allocate for this model. These
|
2024
|
-
# nodes are always up, starting from the time the model is deployed, so the
|
2025
|
-
# cost of operating this model will be at least
|
2026
|
-
# `rate` * `min_nodes` * number of hours since last billing cycle,
|
2027
|
-
# where `rate` is the cost per node-hour as documented in
|
2028
|
-
# [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing),
|
2029
|
-
# even if no predictions are performed. There is additional cost for each
|
2030
|
-
# prediction performed.
|
2031
|
-
# Unlike manual scaling, if the load gets too heavy for the nodes
|
2032
|
-
# that are up, the service will automatically add nodes to handle the
|
2033
|
-
# increased load as well as scale back as traffic drops, always maintaining
|
2034
|
-
# at least `min_nodes`. You will be charged for the time in which additional
|
2035
|
-
# nodes are used.
|
2036
|
-
# If not specified, `min_nodes` defaults to 0, in which case, when traffic
|
2037
|
-
# to a model stops (and after a cool-down period), nodes will be shut down
|
2038
|
-
# and no charges will be incurred until traffic to the model resumes.
|
2039
|
-
# Corresponds to the JSON property `minNodes`
|
2040
|
-
# @return [Fixnum]
|
2041
|
-
attr_accessor :min_nodes
|
2042
|
-
|
2043
|
-
def initialize(**args)
|
2044
|
-
update!(**args)
|
2045
|
-
end
|
2046
|
-
|
2047
|
-
# Update properties of this object
|
2048
|
-
def update!(**args)
|
2049
|
-
@min_nodes = args[:min_nodes] if args.key?(:min_nodes)
|
2281
|
+
@etag = args[:etag] if args.key?(:etag)
|
2282
|
+
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
2283
|
+
@rules = args[:rules] if args.key?(:rules)
|
2050
2284
|
end
|
2051
2285
|
end
|
2052
2286
|
|
@@ -2054,24 +2288,24 @@ module Google
|
|
2054
2288
|
class GoogleLongrunningListOperationsResponse
|
2055
2289
|
include Google::Apis::Core::Hashable
|
2056
2290
|
|
2057
|
-
# A list of operations that matches the specified filter in the request.
|
2058
|
-
# Corresponds to the JSON property `operations`
|
2059
|
-
# @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
|
2060
|
-
attr_accessor :operations
|
2061
|
-
|
2062
2291
|
# The standard List next-page token.
|
2063
2292
|
# Corresponds to the JSON property `nextPageToken`
|
2064
2293
|
# @return [String]
|
2065
2294
|
attr_accessor :next_page_token
|
2066
2295
|
|
2296
|
+
# A list of operations that matches the specified filter in the request.
|
2297
|
+
# Corresponds to the JSON property `operations`
|
2298
|
+
# @return [Array<Google::Apis::MlV1::GoogleLongrunningOperation>]
|
2299
|
+
attr_accessor :operations
|
2300
|
+
|
2067
2301
|
def initialize(**args)
|
2068
2302
|
update!(**args)
|
2069
2303
|
end
|
2070
2304
|
|
2071
2305
|
# Update properties of this object
|
2072
2306
|
def update!(**args)
|
2073
|
-
@operations = args[:operations] if args.key?(:operations)
|
2074
2307
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2308
|
+
@operations = args[:operations] if args.key?(:operations)
|
2075
2309
|
end
|
2076
2310
|
end
|
2077
2311
|
|
@@ -2089,17 +2323,17 @@ module Google
|
|
2089
2323
|
# @return [String]
|
2090
2324
|
attr_accessor :svc
|
2091
2325
|
|
2092
|
-
# DEPRECATED. Use 'values' instead.
|
2093
|
-
# Corresponds to the JSON property `value`
|
2094
|
-
# @return [String]
|
2095
|
-
attr_accessor :value
|
2096
|
-
|
2097
2326
|
# Trusted attributes supplied by any service that owns resources and uses
|
2098
2327
|
# the IAM system for access control.
|
2099
2328
|
# Corresponds to the JSON property `sys`
|
2100
2329
|
# @return [String]
|
2101
2330
|
attr_accessor :sys
|
2102
2331
|
|
2332
|
+
# DEPRECATED. Use 'values' instead.
|
2333
|
+
# Corresponds to the JSON property `value`
|
2334
|
+
# @return [String]
|
2335
|
+
attr_accessor :value
|
2336
|
+
|
2103
2337
|
# The objects of the condition. This is mutually exclusive with 'value'.
|
2104
2338
|
# Corresponds to the JSON property `values`
|
2105
2339
|
# @return [Array<String>]
|
@@ -2118,210 +2352,12 @@ module Google
|
|
2118
2352
|
def update!(**args)
|
2119
2353
|
@op = args[:op] if args.key?(:op)
|
2120
2354
|
@svc = args[:svc] if args.key?(:svc)
|
2121
|
-
@value = args[:value] if args.key?(:value)
|
2122
2355
|
@sys = args[:sys] if args.key?(:sys)
|
2356
|
+
@value = args[:value] if args.key?(:value)
|
2123
2357
|
@values = args[:values] if args.key?(:values)
|
2124
2358
|
@iam = args[:iam] if args.key?(:iam)
|
2125
2359
|
end
|
2126
2360
|
end
|
2127
|
-
|
2128
|
-
# Options for manually scaling a model.
|
2129
|
-
class GoogleCloudMlV1ManualScaling
|
2130
|
-
include Google::Apis::Core::Hashable
|
2131
|
-
|
2132
|
-
# The number of nodes to allocate for this model. These nodes are always up,
|
2133
|
-
# starting from the time the model is deployed, so the cost of operating
|
2134
|
-
# this model will be proportional to `nodes` * number of hours since
|
2135
|
-
# last billing cycle plus the cost for each prediction performed.
|
2136
|
-
# Corresponds to the JSON property `nodes`
|
2137
|
-
# @return [Fixnum]
|
2138
|
-
attr_accessor :nodes
|
2139
|
-
|
2140
|
-
def initialize(**args)
|
2141
|
-
update!(**args)
|
2142
|
-
end
|
2143
|
-
|
2144
|
-
# Update properties of this object
|
2145
|
-
def update!(**args)
|
2146
|
-
@nodes = args[:nodes] if args.key?(:nodes)
|
2147
|
-
end
|
2148
|
-
end
|
2149
|
-
|
2150
|
-
# Associates `members` with a `role`.
|
2151
|
-
class GoogleIamV1Binding
|
2152
|
-
include Google::Apis::Core::Hashable
|
2153
|
-
|
2154
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
2155
|
-
# `members` can have the following values:
|
2156
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
2157
|
-
# on the internet; with or without a Google account.
|
2158
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
2159
|
-
# who is authenticated with a Google account or a service account.
|
2160
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
2161
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
2162
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
2163
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
2164
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
2165
|
-
# For example, `admins@example.com`.
|
2166
|
-
# * `domain:`domain``: A Google Apps domain name that represents all the
|
2167
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
2168
|
-
# Corresponds to the JSON property `members`
|
2169
|
-
# @return [Array<String>]
|
2170
|
-
attr_accessor :members
|
2171
|
-
|
2172
|
-
# Role that is assigned to `members`.
|
2173
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
2174
|
-
# Required
|
2175
|
-
# Corresponds to the JSON property `role`
|
2176
|
-
# @return [String]
|
2177
|
-
attr_accessor :role
|
2178
|
-
|
2179
|
-
# Represents an expression text. Example:
|
2180
|
-
# title: "User account presence"
|
2181
|
-
# description: "Determines whether the request has a user account"
|
2182
|
-
# expression: "size(request.user) > 0"
|
2183
|
-
# Corresponds to the JSON property `condition`
|
2184
|
-
# @return [Google::Apis::MlV1::GoogleTypeExpr]
|
2185
|
-
attr_accessor :condition
|
2186
|
-
|
2187
|
-
def initialize(**args)
|
2188
|
-
update!(**args)
|
2189
|
-
end
|
2190
|
-
|
2191
|
-
# Update properties of this object
|
2192
|
-
def update!(**args)
|
2193
|
-
@members = args[:members] if args.key?(:members)
|
2194
|
-
@role = args[:role] if args.key?(:role)
|
2195
|
-
@condition = args[:condition] if args.key?(:condition)
|
2196
|
-
end
|
2197
|
-
end
|
2198
|
-
|
2199
|
-
# Represents results of a training job. Output only.
|
2200
|
-
class GoogleCloudMlV1TrainingOutput
|
2201
|
-
include Google::Apis::Core::Hashable
|
2202
|
-
|
2203
|
-
# The number of hyperparameter tuning trials that completed successfully.
|
2204
|
-
# Only set for hyperparameter tuning jobs.
|
2205
|
-
# Corresponds to the JSON property `completedTrialCount`
|
2206
|
-
# @return [Fixnum]
|
2207
|
-
attr_accessor :completed_trial_count
|
2208
|
-
|
2209
|
-
# Whether this job is a hyperparameter tuning job.
|
2210
|
-
# Corresponds to the JSON property `isHyperparameterTuningJob`
|
2211
|
-
# @return [Boolean]
|
2212
|
-
attr_accessor :is_hyperparameter_tuning_job
|
2213
|
-
alias_method :is_hyperparameter_tuning_job?, :is_hyperparameter_tuning_job
|
2214
|
-
|
2215
|
-
# The amount of ML units consumed by the job.
|
2216
|
-
# Corresponds to the JSON property `consumedMLUnits`
|
2217
|
-
# @return [Float]
|
2218
|
-
attr_accessor :consumed_ml_units
|
2219
|
-
|
2220
|
-
# Results for individual Hyperparameter trials.
|
2221
|
-
# Only set for hyperparameter tuning jobs.
|
2222
|
-
# Corresponds to the JSON property `trials`
|
2223
|
-
# @return [Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>]
|
2224
|
-
attr_accessor :trials
|
2225
|
-
|
2226
|
-
def initialize(**args)
|
2227
|
-
update!(**args)
|
2228
|
-
end
|
2229
|
-
|
2230
|
-
# Update properties of this object
|
2231
|
-
def update!(**args)
|
2232
|
-
@completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
|
2233
|
-
@is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
|
2234
|
-
@consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
|
2235
|
-
@trials = args[:trials] if args.key?(:trials)
|
2236
|
-
end
|
2237
|
-
end
|
2238
|
-
|
2239
|
-
# A rule to be applied in a Policy.
|
2240
|
-
class GoogleIamV1Rule
|
2241
|
-
include Google::Apis::Core::Hashable
|
2242
|
-
|
2243
|
-
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
2244
|
-
# that match the LOG action.
|
2245
|
-
# Corresponds to the JSON property `logConfig`
|
2246
|
-
# @return [Array<Google::Apis::MlV1::GoogleIamV1LogConfig>]
|
2247
|
-
attr_accessor :log_config
|
2248
|
-
|
2249
|
-
# If one or more 'in' clauses are specified, the rule matches if
|
2250
|
-
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
2251
|
-
# Corresponds to the JSON property `in`
|
2252
|
-
# @return [Array<String>]
|
2253
|
-
attr_accessor :in
|
2254
|
-
|
2255
|
-
# A permission is a string of form '<service>.<resource type>.<verb>'
|
2256
|
-
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
2257
|
-
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
2258
|
-
# Corresponds to the JSON property `permissions`
|
2259
|
-
# @return [Array<String>]
|
2260
|
-
attr_accessor :permissions
|
2261
|
-
|
2262
|
-
# Required
|
2263
|
-
# Corresponds to the JSON property `action`
|
2264
|
-
# @return [String]
|
2265
|
-
attr_accessor :action
|
2266
|
-
|
2267
|
-
# If one or more 'not_in' clauses are specified, the rule matches
|
2268
|
-
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
2269
|
-
# The format for in and not_in entries is the same as for members in a
|
2270
|
-
# Binding (see google/iam/v1/policy.proto).
|
2271
|
-
# Corresponds to the JSON property `notIn`
|
2272
|
-
# @return [Array<String>]
|
2273
|
-
attr_accessor :not_in
|
2274
|
-
|
2275
|
-
# Human-readable description of the rule.
|
2276
|
-
# Corresponds to the JSON property `description`
|
2277
|
-
# @return [String]
|
2278
|
-
attr_accessor :description
|
2279
|
-
|
2280
|
-
# Additional restrictions that must be met
|
2281
|
-
# Corresponds to the JSON property `conditions`
|
2282
|
-
# @return [Array<Google::Apis::MlV1::GoogleIamV1Condition>]
|
2283
|
-
attr_accessor :conditions
|
2284
|
-
|
2285
|
-
def initialize(**args)
|
2286
|
-
update!(**args)
|
2287
|
-
end
|
2288
|
-
|
2289
|
-
# Update properties of this object
|
2290
|
-
def update!(**args)
|
2291
|
-
@log_config = args[:log_config] if args.key?(:log_config)
|
2292
|
-
@in = args[:in] if args.key?(:in)
|
2293
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
2294
|
-
@action = args[:action] if args.key?(:action)
|
2295
|
-
@not_in = args[:not_in] if args.key?(:not_in)
|
2296
|
-
@description = args[:description] if args.key?(:description)
|
2297
|
-
@conditions = args[:conditions] if args.key?(:conditions)
|
2298
|
-
end
|
2299
|
-
end
|
2300
|
-
|
2301
|
-
# Options for counters
|
2302
|
-
class GoogleIamV1LogConfigCounterOptions
|
2303
|
-
include Google::Apis::Core::Hashable
|
2304
|
-
|
2305
|
-
# The metric to update.
|
2306
|
-
# Corresponds to the JSON property `metric`
|
2307
|
-
# @return [String]
|
2308
|
-
attr_accessor :metric
|
2309
|
-
|
2310
|
-
# The field value to attribute.
|
2311
|
-
# Corresponds to the JSON property `field`
|
2312
|
-
# @return [String]
|
2313
|
-
attr_accessor :field
|
2314
|
-
|
2315
|
-
def initialize(**args)
|
2316
|
-
update!(**args)
|
2317
|
-
end
|
2318
|
-
|
2319
|
-
# Update properties of this object
|
2320
|
-
def update!(**args)
|
2321
|
-
@metric = args[:metric] if args.key?(:metric)
|
2322
|
-
@field = args[:field] if args.key?(:field)
|
2323
|
-
end
|
2324
|
-
end
|
2325
2361
|
end
|
2326
2362
|
end
|
2327
2363
|
end
|