google-api-client 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- 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 +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.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 +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -54,11 +54,11 @@ module Google
|
|
54
54
|
# @param [String] name
|
55
55
|
# Required. The project name.
|
56
56
|
# Authorization: requires `Viewer` role on the specified project.
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
57
59
|
# @param [String] quota_user
|
58
60
|
# Available to use for quota purposes for server-side applications. Can be any
|
59
61
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
-
# @param [String] fields
|
61
|
-
# Selector specifying which fields to include in a partial response.
|
62
62
|
# @param [Google::Apis::RequestOptions] options
|
63
63
|
# Request-specific options
|
64
64
|
#
|
@@ -71,13 +71,13 @@ module Google
|
|
71
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def get_project_config(name,
|
74
|
+
def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
75
75
|
command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
|
76
76
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
|
77
77
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
|
78
78
|
command.params['name'] = name unless name.nil?
|
79
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
79
|
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
81
|
execute_or_queue_command(command, &block)
|
82
82
|
end
|
83
83
|
|
@@ -87,11 +87,11 @@ module Google
|
|
87
87
|
# Required. The resource name of a model or a version.
|
88
88
|
# Authorization: requires `Viewer` role on the parent project.
|
89
89
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
90
92
|
# @param [String] quota_user
|
91
93
|
# Available to use for quota purposes for server-side applications. Can be any
|
92
94
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
93
|
-
# @param [String] fields
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
95
95
|
# @param [Google::Apis::RequestOptions] options
|
96
96
|
# Request-specific options
|
97
97
|
#
|
@@ -104,15 +104,159 @@ module Google
|
|
104
104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
-
def predict_project(name, google_cloud_ml_v1__predict_request_object = nil,
|
107
|
+
def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
108
|
command = make_simple_command(:post, 'v1/{+name}:predict', options)
|
109
109
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
|
110
110
|
command.request_object = google_cloud_ml_v1__predict_request_object
|
111
111
|
command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
|
112
112
|
command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
|
113
113
|
command.params['name'] = name unless name.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Lists the jobs in the project.
|
120
|
+
# @param [String] parent
|
121
|
+
# Required. The name of the project for which to list jobs.
|
122
|
+
# Authorization: requires `Viewer` role on the specified project.
|
123
|
+
# @param [Fixnum] page_size
|
124
|
+
# Optional. The number of jobs to retrieve per "page" of results. If there
|
125
|
+
# are more remaining results than this number, the response message will
|
126
|
+
# contain a valid value in the `next_page_token` field.
|
127
|
+
# The default value is 20, and the maximum page size is 100.
|
128
|
+
# @param [String] filter
|
129
|
+
# Optional. Specifies the subset of jobs to retrieve.
|
130
|
+
# @param [String] page_token
|
131
|
+
# Optional. A page token to request the next page of results.
|
132
|
+
# You get the token from the `next_page_token` field of the response from
|
133
|
+
# the previous call.
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
153
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
|
154
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
|
155
|
+
command.params['parent'] = parent unless parent.nil?
|
156
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
157
|
+
command.query['filter'] = filter unless filter.nil?
|
158
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
159
|
+
command.query['fields'] = fields unless fields.nil?
|
160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
161
|
+
execute_or_queue_command(command, &block)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Describes a job.
|
165
|
+
# @param [String] name
|
166
|
+
# Required. The name of the job to get the description of.
|
167
|
+
# Authorization: requires `Viewer` role on the parent project.
|
168
|
+
# @param [String] fields
|
169
|
+
# Selector specifying which fields to include in a partial response.
|
170
|
+
# @param [String] quota_user
|
171
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
172
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
173
|
+
# @param [Google::Apis::RequestOptions] options
|
174
|
+
# Request-specific options
|
175
|
+
#
|
176
|
+
# @yield [result, err] Result & error if block supplied
|
177
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
178
|
+
# @yieldparam err [StandardError] error object if request failed
|
179
|
+
#
|
180
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
181
|
+
#
|
182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
+
def get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
186
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
187
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
188
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
189
|
+
command.params['name'] = name unless name.nil?
|
190
|
+
command.query['fields'] = fields unless fields.nil?
|
191
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
192
|
+
execute_or_queue_command(command, &block)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Creates a training or a batch prediction job.
|
196
|
+
# @param [String] parent
|
197
|
+
# Required. The project name.
|
198
|
+
# Authorization: requires `Editor` role on the specified project.
|
199
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
200
|
+
# @param [String] fields
|
201
|
+
# Selector specifying which fields to include in a partial response.
|
202
|
+
# @param [String] quota_user
|
203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
205
|
+
# @param [Google::Apis::RequestOptions] options
|
206
|
+
# Request-specific options
|
207
|
+
#
|
208
|
+
# @yield [result, err] Result & error if block supplied
|
209
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
210
|
+
# @yieldparam err [StandardError] error object if request failed
|
211
|
+
#
|
212
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
213
|
+
#
|
214
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
215
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
216
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
217
|
+
def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
218
|
+
command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
|
219
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
220
|
+
command.request_object = google_cloud_ml_v1__job_object
|
221
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
222
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
223
|
+
command.params['parent'] = parent unless parent.nil?
|
224
|
+
command.query['fields'] = fields unless fields.nil?
|
114
225
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
226
|
+
execute_or_queue_command(command, &block)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Cancels a running job.
|
230
|
+
# @param [String] name
|
231
|
+
# Required. The name of the job to cancel.
|
232
|
+
# Authorization: requires `Editor` role on the parent project.
|
233
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::MlV1::GoogleProtobufEmpty]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
253
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
|
254
|
+
command.request_object = google_cloud_ml_v1__cancel_job_request_object
|
255
|
+
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
256
|
+
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
257
|
+
command.params['name'] = name unless name.nil?
|
115
258
|
command.query['fields'] = fields unless fields.nil?
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
260
|
execute_or_queue_command(command, &block)
|
117
261
|
end
|
118
262
|
|
@@ -127,17 +271,17 @@ module Google
|
|
127
271
|
# is the parent resource, without the operations collection id.
|
128
272
|
# @param [String] name
|
129
273
|
# The name of the operation's parent resource.
|
274
|
+
# @param [String] filter
|
275
|
+
# The standard list filter.
|
130
276
|
# @param [String] page_token
|
131
277
|
# The standard list page token.
|
132
278
|
# @param [Fixnum] page_size
|
133
279
|
# The standard list page size.
|
134
|
-
# @param [String]
|
135
|
-
#
|
280
|
+
# @param [String] fields
|
281
|
+
# Selector specifying which fields to include in a partial response.
|
136
282
|
# @param [String] quota_user
|
137
283
|
# Available to use for quota purposes for server-side applications. Can be any
|
138
284
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
-
# @param [String] fields
|
140
|
-
# Selector specifying which fields to include in a partial response.
|
141
285
|
# @param [Google::Apis::RequestOptions] options
|
142
286
|
# Request-specific options
|
143
287
|
#
|
@@ -150,16 +294,16 @@ module Google
|
|
150
294
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
295
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
296
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
-
def list_project_operations(name,
|
297
|
+
def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
154
298
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
155
299
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
|
156
300
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
|
157
301
|
command.params['name'] = name unless name.nil?
|
302
|
+
command.query['filter'] = filter unless filter.nil?
|
158
303
|
command.query['pageToken'] = page_token unless page_token.nil?
|
159
304
|
command.query['pageSize'] = page_size unless page_size.nil?
|
160
|
-
command.query['filter'] = filter unless filter.nil?
|
161
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
305
|
command.query['fields'] = fields unless fields.nil?
|
306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
163
307
|
execute_or_queue_command(command, &block)
|
164
308
|
end
|
165
309
|
|
@@ -168,11 +312,11 @@ module Google
|
|
168
312
|
# service.
|
169
313
|
# @param [String] name
|
170
314
|
# The name of the operation resource.
|
315
|
+
# @param [String] fields
|
316
|
+
# Selector specifying which fields to include in a partial response.
|
171
317
|
# @param [String] quota_user
|
172
318
|
# Available to use for quota purposes for server-side applications. Can be any
|
173
319
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
-
# @param [String] fields
|
175
|
-
# Selector specifying which fields to include in a partial response.
|
176
320
|
# @param [Google::Apis::RequestOptions] options
|
177
321
|
# Request-specific options
|
178
322
|
#
|
@@ -185,13 +329,13 @@ module Google
|
|
185
329
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
330
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
331
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
|
-
def get_project_operation(name,
|
332
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
189
333
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
190
334
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
191
335
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
192
336
|
command.params['name'] = name unless name.nil?
|
193
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
337
|
command.query['fields'] = fields unless fields.nil?
|
338
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
339
|
execute_or_queue_command(command, &block)
|
196
340
|
end
|
197
341
|
|
@@ -207,11 +351,11 @@ module Google
|
|
207
351
|
# corresponding to `Code.CANCELLED`.
|
208
352
|
# @param [String] name
|
209
353
|
# The name of the operation resource to be cancelled.
|
354
|
+
# @param [String] fields
|
355
|
+
# Selector specifying which fields to include in a partial response.
|
210
356
|
# @param [String] quota_user
|
211
357
|
# Available to use for quota purposes for server-side applications. Can be any
|
212
358
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
213
|
-
# @param [String] fields
|
214
|
-
# Selector specifying which fields to include in a partial response.
|
215
359
|
# @param [Google::Apis::RequestOptions] options
|
216
360
|
# Request-specific options
|
217
361
|
#
|
@@ -224,13 +368,13 @@ module Google
|
|
224
368
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
369
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
370
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
-
def cancel_project_operation(name,
|
371
|
+
def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
228
372
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
229
373
|
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
230
374
|
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
231
375
|
command.params['name'] = name unless name.nil?
|
232
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
376
|
command.query['fields'] = fields unless fields.nil?
|
377
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
378
|
execute_or_queue_command(command, &block)
|
235
379
|
end
|
236
380
|
|
@@ -240,11 +384,11 @@ module Google
|
|
240
384
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
241
385
|
# @param [String] name
|
242
386
|
# The name of the operation resource to be deleted.
|
387
|
+
# @param [String] fields
|
388
|
+
# Selector specifying which fields to include in a partial response.
|
243
389
|
# @param [String] quota_user
|
244
390
|
# Available to use for quota purposes for server-side applications. Can be any
|
245
391
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
246
|
-
# @param [String] fields
|
247
|
-
# Selector specifying which fields to include in a partial response.
|
248
392
|
# @param [Google::Apis::RequestOptions] options
|
249
393
|
# Request-specific options
|
250
394
|
#
|
@@ -257,13 +401,87 @@ module Google
|
|
257
401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
258
402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
259
403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
260
|
-
def delete_project_operation(name,
|
404
|
+
def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
261
405
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
262
406
|
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
263
407
|
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
264
408
|
command.params['name'] = name unless name.nil?
|
409
|
+
command.query['fields'] = fields unless fields.nil?
|
410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
411
|
+
execute_or_queue_command(command, &block)
|
412
|
+
end
|
413
|
+
|
414
|
+
# Returns permissions that a caller has on the specified resource.
|
415
|
+
# If the resource does not exist, this will return an empty set of
|
416
|
+
# permissions, not a NOT_FOUND error.
|
417
|
+
# Note: This operation is designed to be used for building permission-aware
|
418
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
419
|
+
# may "fail open" without warning.
|
420
|
+
# @param [String] resource
|
421
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
422
|
+
# See the operation documentation for the appropriate value for this field.
|
423
|
+
# @param [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1__test_iam_permissions_request_object
|
424
|
+
# @param [String] fields
|
425
|
+
# Selector specifying which fields to include in a partial response.
|
426
|
+
# @param [String] quota_user
|
427
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
428
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
429
|
+
# @param [Google::Apis::RequestOptions] options
|
430
|
+
# Request-specific options
|
431
|
+
#
|
432
|
+
# @yield [result, err] Result & error if block supplied
|
433
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
434
|
+
# @yieldparam err [StandardError] error object if request failed
|
435
|
+
#
|
436
|
+
# @return [Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse]
|
437
|
+
#
|
438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
|
+
def test_project_model_iam_permissions(resource, google_iam_v1__test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
442
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
443
|
+
command.request_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsRequest::Representation
|
444
|
+
command.request_object = google_iam_v1__test_iam_permissions_request_object
|
445
|
+
command.response_representation = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
446
|
+
command.response_class = Google::Apis::MlV1::GoogleIamV1TestIamPermissionsResponse
|
447
|
+
command.params['resource'] = resource unless resource.nil?
|
448
|
+
command.query['fields'] = fields unless fields.nil?
|
265
449
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
450
|
+
execute_or_queue_command(command, &block)
|
451
|
+
end
|
452
|
+
|
453
|
+
# Deletes a model.
|
454
|
+
# You can only delete a model if there are no versions in it. You can delete
|
455
|
+
# versions by calling
|
456
|
+
# [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models.
|
457
|
+
# versions/delete).
|
458
|
+
# @param [String] name
|
459
|
+
# Required. The name of the model.
|
460
|
+
# Authorization: requires `Editor` role on the parent project.
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def delete_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
480
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
481
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
482
|
+
command.params['name'] = name unless name.nil?
|
266
483
|
command.query['fields'] = fields unless fields.nil?
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
267
485
|
execute_or_queue_command(command, &block)
|
268
486
|
end
|
269
487
|
|
@@ -273,20 +491,20 @@ module Google
|
|
273
491
|
# @param [String] parent
|
274
492
|
# Required. The name of the project whose models are to be listed.
|
275
493
|
# Authorization: requires `Viewer` role on the specified project.
|
494
|
+
# @param [String] page_token
|
495
|
+
# Optional. A page token to request the next page of results.
|
496
|
+
# You get the token from the `next_page_token` field of the response from
|
497
|
+
# the previous call.
|
276
498
|
# @param [Fixnum] page_size
|
277
499
|
# Optional. The number of models to retrieve per "page" of results. If there
|
278
500
|
# are more remaining results than this number, the response message will
|
279
501
|
# contain a valid value in the `next_page_token` field.
|
280
502
|
# The default value is 20, and the maximum page size is 100.
|
281
|
-
# @param [String]
|
282
|
-
#
|
283
|
-
# You get the token from the `next_page_token` field of the response from
|
284
|
-
# the previous call.
|
503
|
+
# @param [String] fields
|
504
|
+
# Selector specifying which fields to include in a partial response.
|
285
505
|
# @param [String] quota_user
|
286
506
|
# Available to use for quota purposes for server-side applications. Can be any
|
287
507
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
288
|
-
# @param [String] fields
|
289
|
-
# Selector specifying which fields to include in a partial response.
|
290
508
|
# @param [Google::Apis::RequestOptions] options
|
291
509
|
# Request-specific options
|
292
510
|
#
|
@@ -299,48 +517,50 @@ module Google
|
|
299
517
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
300
518
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
301
519
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
302
|
-
def list_project_models(parent,
|
520
|
+
def list_project_models(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
303
521
|
command = make_simple_command(:get, 'v1/{+parent}/models', options)
|
304
522
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
|
305
523
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
|
306
524
|
command.params['parent'] = parent unless parent.nil?
|
307
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
308
525
|
command.query['pageToken'] = page_token unless page_token.nil?
|
309
|
-
command.query['
|
526
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
310
527
|
command.query['fields'] = fields unless fields.nil?
|
528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
311
529
|
execute_or_queue_command(command, &block)
|
312
530
|
end
|
313
531
|
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
532
|
+
# Sets the access control policy on the specified resource. Replaces any
|
533
|
+
# existing policy.
|
534
|
+
# @param [String] resource
|
535
|
+
# REQUIRED: The resource for which the policy is being specified.
|
536
|
+
# See the operation documentation for the appropriate value for this field.
|
537
|
+
# @param [Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1__set_iam_policy_request_object
|
538
|
+
# @param [String] fields
|
539
|
+
# Selector specifying which fields to include in a partial response.
|
320
540
|
# @param [String] quota_user
|
321
541
|
# Available to use for quota purposes for server-side applications. Can be any
|
322
542
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
-
# @param [String] fields
|
324
|
-
# Selector specifying which fields to include in a partial response.
|
325
543
|
# @param [Google::Apis::RequestOptions] options
|
326
544
|
# Request-specific options
|
327
545
|
#
|
328
546
|
# @yield [result, err] Result & error if block supplied
|
329
|
-
# @yieldparam result [Google::Apis::MlV1::
|
547
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
|
330
548
|
# @yieldparam err [StandardError] error object if request failed
|
331
549
|
#
|
332
|
-
# @return [Google::Apis::MlV1::
|
550
|
+
# @return [Google::Apis::MlV1::GoogleIamV1Policy]
|
333
551
|
#
|
334
552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
-
def
|
338
|
-
command = make_simple_command(:
|
339
|
-
command.
|
340
|
-
command.
|
341
|
-
command.
|
342
|
-
command.
|
555
|
+
def set_project_model_iam_policy(resource, google_iam_v1__set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
556
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
557
|
+
command.request_representation = Google::Apis::MlV1::GoogleIamV1SetIamPolicyRequest::Representation
|
558
|
+
command.request_object = google_iam_v1__set_iam_policy_request_object
|
559
|
+
command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
|
560
|
+
command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
|
561
|
+
command.params['resource'] = resource unless resource.nil?
|
343
562
|
command.query['fields'] = fields unless fields.nil?
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
344
564
|
execute_or_queue_command(command, &block)
|
345
565
|
end
|
346
566
|
|
@@ -353,11 +573,11 @@ module Google
|
|
353
573
|
# Required. The project name.
|
354
574
|
# Authorization: requires `Editor` role on the specified project.
|
355
575
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
|
576
|
+
# @param [String] fields
|
577
|
+
# Selector specifying which fields to include in a partial response.
|
356
578
|
# @param [String] quota_user
|
357
579
|
# Available to use for quota purposes for server-side applications. Can be any
|
358
580
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
359
|
-
# @param [String] fields
|
360
|
-
# Selector specifying which fields to include in a partial response.
|
361
581
|
# @param [Google::Apis::RequestOptions] options
|
362
582
|
# Request-specific options
|
363
583
|
#
|
@@ -370,31 +590,100 @@ module Google
|
|
370
590
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
371
591
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
372
592
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
373
|
-
def create_project_model(parent, google_cloud_ml_v1__model_object = nil,
|
593
|
+
def create_project_model(parent, google_cloud_ml_v1__model_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
374
594
|
command = make_simple_command(:post, 'v1/{+parent}/models', options)
|
375
595
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
376
596
|
command.request_object = google_cloud_ml_v1__model_object
|
377
597
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
378
598
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
379
599
|
command.params['parent'] = parent unless parent.nil?
|
600
|
+
command.query['fields'] = fields unless fields.nil?
|
380
601
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
602
|
+
execute_or_queue_command(command, &block)
|
603
|
+
end
|
604
|
+
|
605
|
+
# Gets the access control policy for a resource.
|
606
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
607
|
+
# set.
|
608
|
+
# @param [String] resource
|
609
|
+
# REQUIRED: The resource for which the policy is being requested.
|
610
|
+
# See the operation documentation for the appropriate value for this field.
|
611
|
+
# @param [String] fields
|
612
|
+
# Selector specifying which fields to include in a partial response.
|
613
|
+
# @param [String] quota_user
|
614
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
615
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
616
|
+
# @param [Google::Apis::RequestOptions] options
|
617
|
+
# Request-specific options
|
618
|
+
#
|
619
|
+
# @yield [result, err] Result & error if block supplied
|
620
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleIamV1Policy] parsed result object
|
621
|
+
# @yieldparam err [StandardError] error object if request failed
|
622
|
+
#
|
623
|
+
# @return [Google::Apis::MlV1::GoogleIamV1Policy]
|
624
|
+
#
|
625
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
626
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
627
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
628
|
+
def get_project_model_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
630
|
+
command.response_representation = Google::Apis::MlV1::GoogleIamV1Policy::Representation
|
631
|
+
command.response_class = Google::Apis::MlV1::GoogleIamV1Policy
|
632
|
+
command.params['resource'] = resource unless resource.nil?
|
381
633
|
command.query['fields'] = fields unless fields.nil?
|
634
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
382
635
|
execute_or_queue_command(command, &block)
|
383
636
|
end
|
384
637
|
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
# [projects.models.versions.delete](/ml-engine/reference/rest/v1/projects.models.
|
389
|
-
# versions/delete).
|
638
|
+
# Gets information about a model, including its name, the description (if
|
639
|
+
# set), and the default version (if at least one version of the model has
|
640
|
+
# been deployed).
|
390
641
|
# @param [String] name
|
391
642
|
# Required. The name of the model.
|
392
|
-
# Authorization: requires `
|
643
|
+
# Authorization: requires `Viewer` role on the parent project.
|
644
|
+
# @param [String] fields
|
645
|
+
# Selector specifying which fields to include in a partial response.
|
393
646
|
# @param [String] quota_user
|
394
647
|
# Available to use for quota purposes for server-side applications. Can be any
|
395
648
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Model] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Model]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def get_project_model(name, fields: nil, quota_user: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
663
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
664
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
665
|
+
command.params['name'] = name unless name.nil?
|
666
|
+
command.query['fields'] = fields unless fields.nil?
|
667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
668
|
+
execute_or_queue_command(command, &block)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Deletes a model version.
|
672
|
+
# Each model can have multiple versions deployed and in use at any given
|
673
|
+
# time. Use this method to remove a single version.
|
674
|
+
# Note: You cannot delete the version that is set as the default version
|
675
|
+
# of the model unless it is the only remaining version.
|
676
|
+
# @param [String] name
|
677
|
+
# Required. The name of the version. You can get the names of all the
|
678
|
+
# versions of a model by calling
|
679
|
+
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
680
|
+
# versions/list).
|
681
|
+
# Authorization: requires `Editor` role on the parent project.
|
396
682
|
# @param [String] fields
|
397
683
|
# Selector specifying which fields to include in a partial response.
|
684
|
+
# @param [String] quota_user
|
685
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
686
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
398
687
|
# @param [Google::Apis::RequestOptions] options
|
399
688
|
# Request-specific options
|
400
689
|
#
|
@@ -407,13 +696,13 @@ module Google
|
|
407
696
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
408
697
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
409
698
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
410
|
-
def
|
699
|
+
def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
411
700
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
412
701
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
413
702
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
414
703
|
command.params['name'] = name unless name.nil?
|
415
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
704
|
command.query['fields'] = fields unless fields.nil?
|
705
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
417
706
|
execute_or_queue_command(command, &block)
|
418
707
|
end
|
419
708
|
|
@@ -433,11 +722,11 @@ module Google
|
|
433
722
|
# there are more remaining results than this number, the response message
|
434
723
|
# will contain a valid value in the `next_page_token` field.
|
435
724
|
# The default value is 20, and the maximum page size is 100.
|
725
|
+
# @param [String] fields
|
726
|
+
# Selector specifying which fields to include in a partial response.
|
436
727
|
# @param [String] quota_user
|
437
728
|
# Available to use for quota purposes for server-side applications. Can be any
|
438
729
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
439
|
-
# @param [String] fields
|
440
|
-
# Selector specifying which fields to include in a partial response.
|
441
730
|
# @param [Google::Apis::RequestOptions] options
|
442
731
|
# Request-specific options
|
443
732
|
#
|
@@ -450,15 +739,15 @@ module Google
|
|
450
739
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
451
740
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
452
741
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
453
|
-
def list_project_model_versions(parent, page_token: nil, page_size: nil,
|
742
|
+
def list_project_model_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
454
743
|
command = make_simple_command(:get, 'v1/{+parent}/versions', options)
|
455
744
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
|
456
745
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
|
457
746
|
command.params['parent'] = parent unless parent.nil?
|
458
747
|
command.query['pageToken'] = page_token unless page_token.nil?
|
459
748
|
command.query['pageSize'] = page_size unless page_size.nil?
|
460
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
749
|
command.query['fields'] = fields unless fields.nil?
|
750
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
462
751
|
execute_or_queue_command(command, &block)
|
463
752
|
end
|
464
753
|
|
@@ -471,11 +760,11 @@ module Google
|
|
471
760
|
# @param [String] name
|
472
761
|
# Required. The name of the version.
|
473
762
|
# Authorization: requires `Viewer` role on the parent project.
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
474
765
|
# @param [String] quota_user
|
475
766
|
# Available to use for quota purposes for server-side applications. Can be any
|
476
767
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
477
|
-
# @param [String] fields
|
478
|
-
# Selector specifying which fields to include in a partial response.
|
479
768
|
# @param [Google::Apis::RequestOptions] options
|
480
769
|
# Request-specific options
|
481
770
|
#
|
@@ -488,13 +777,13 @@ module Google
|
|
488
777
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
489
778
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
490
779
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
491
|
-
def get_project_model_version(name,
|
780
|
+
def get_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
492
781
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
493
782
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
494
783
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
495
784
|
command.params['name'] = name unless name.nil?
|
496
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
497
785
|
command.query['fields'] = fields unless fields.nil?
|
786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
498
787
|
execute_or_queue_command(command, &block)
|
499
788
|
end
|
500
789
|
|
@@ -510,11 +799,11 @@ module Google
|
|
510
799
|
# Required. The name of the model.
|
511
800
|
# Authorization: requires `Editor` role on the parent project.
|
512
801
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
|
802
|
+
# @param [String] fields
|
803
|
+
# Selector specifying which fields to include in a partial response.
|
513
804
|
# @param [String] quota_user
|
514
805
|
# Available to use for quota purposes for server-side applications. Can be any
|
515
806
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
-
# @param [String] fields
|
517
|
-
# Selector specifying which fields to include in a partial response.
|
518
807
|
# @param [Google::Apis::RequestOptions] options
|
519
808
|
# Request-specific options
|
520
809
|
#
|
@@ -527,15 +816,15 @@ module Google
|
|
527
816
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
528
817
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
529
818
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
530
|
-
def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil,
|
819
|
+
def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
531
820
|
command = make_simple_command(:post, 'v1/{+parent}/versions', options)
|
532
821
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
533
822
|
command.request_object = google_cloud_ml_v1__version_object
|
534
823
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
535
824
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
536
825
|
command.params['parent'] = parent unless parent.nil?
|
537
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
826
|
command.query['fields'] = fields unless fields.nil?
|
827
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
539
828
|
execute_or_queue_command(command, &block)
|
540
829
|
end
|
541
830
|
|
@@ -552,11 +841,11 @@ module Google
|
|
552
841
|
# versions/list).
|
553
842
|
# Authorization: requires `Editor` role on the parent project.
|
554
843
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
|
844
|
+
# @param [String] fields
|
845
|
+
# Selector specifying which fields to include in a partial response.
|
555
846
|
# @param [String] quota_user
|
556
847
|
# Available to use for quota purposes for server-side applications. Can be any
|
557
848
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
558
|
-
# @param [String] fields
|
559
|
-
# Selector specifying which fields to include in a partial response.
|
560
849
|
# @param [Google::Apis::RequestOptions] options
|
561
850
|
# Request-specific options
|
562
851
|
#
|
@@ -569,197 +858,15 @@ module Google
|
|
569
858
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
570
859
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
571
860
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
572
|
-
def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil,
|
861
|
+
def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
573
862
|
command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
|
574
863
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
|
575
864
|
command.request_object = google_cloud_ml_v1__set_default_version_request_object
|
576
865
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
577
866
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
578
867
|
command.params['name'] = name unless name.nil?
|
579
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
-
command.query['fields'] = fields unless fields.nil?
|
581
|
-
execute_or_queue_command(command, &block)
|
582
|
-
end
|
583
|
-
|
584
|
-
# Deletes a model version.
|
585
|
-
# Each model can have multiple versions deployed and in use at any given
|
586
|
-
# time. Use this method to remove a single version.
|
587
|
-
# Note: You cannot delete the version that is set as the default version
|
588
|
-
# of the model unless it is the only remaining version.
|
589
|
-
# @param [String] name
|
590
|
-
# Required. The name of the version. You can get the names of all the
|
591
|
-
# versions of a model by calling
|
592
|
-
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
593
|
-
# versions/list).
|
594
|
-
# Authorization: requires `Editor` role on the parent project.
|
595
|
-
# @param [String] quota_user
|
596
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
597
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
598
|
-
# @param [String] fields
|
599
|
-
# Selector specifying which fields to include in a partial response.
|
600
|
-
# @param [Google::Apis::RequestOptions] options
|
601
|
-
# Request-specific options
|
602
|
-
#
|
603
|
-
# @yield [result, err] Result & error if block supplied
|
604
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
605
|
-
# @yieldparam err [StandardError] error object if request failed
|
606
|
-
#
|
607
|
-
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
608
|
-
#
|
609
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
610
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
611
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
612
|
-
def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
613
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
614
|
-
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
615
|
-
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
616
|
-
command.params['name'] = name unless name.nil?
|
617
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
618
868
|
command.query['fields'] = fields unless fields.nil?
|
619
|
-
execute_or_queue_command(command, &block)
|
620
|
-
end
|
621
|
-
|
622
|
-
# Lists the jobs in the project.
|
623
|
-
# @param [String] parent
|
624
|
-
# Required. The name of the project for which to list jobs.
|
625
|
-
# Authorization: requires `Viewer` role on the specified project.
|
626
|
-
# @param [String] filter
|
627
|
-
# Optional. Specifies the subset of jobs to retrieve.
|
628
|
-
# @param [String] page_token
|
629
|
-
# Optional. A page token to request the next page of results.
|
630
|
-
# You get the token from the `next_page_token` field of the response from
|
631
|
-
# the previous call.
|
632
|
-
# @param [Fixnum] page_size
|
633
|
-
# Optional. The number of jobs to retrieve per "page" of results. If there
|
634
|
-
# are more remaining results than this number, the response message will
|
635
|
-
# contain a valid value in the `next_page_token` field.
|
636
|
-
# The default value is 20, and the maximum page size is 100.
|
637
|
-
# @param [String] quota_user
|
638
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
639
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
640
|
-
# @param [String] fields
|
641
|
-
# Selector specifying which fields to include in a partial response.
|
642
|
-
# @param [Google::Apis::RequestOptions] options
|
643
|
-
# Request-specific options
|
644
|
-
#
|
645
|
-
# @yield [result, err] Result & error if block supplied
|
646
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
|
647
|
-
# @yieldparam err [StandardError] error object if request failed
|
648
|
-
#
|
649
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
|
650
|
-
#
|
651
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
652
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
653
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
654
|
-
def list_project_jobs(parent, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
655
|
-
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
656
|
-
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
|
657
|
-
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
|
658
|
-
command.params['parent'] = parent unless parent.nil?
|
659
|
-
command.query['filter'] = filter unless filter.nil?
|
660
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
661
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
662
869
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
663
|
-
command.query['fields'] = fields unless fields.nil?
|
664
|
-
execute_or_queue_command(command, &block)
|
665
|
-
end
|
666
|
-
|
667
|
-
# Describes a job.
|
668
|
-
# @param [String] name
|
669
|
-
# Required. The name of the job to get the description of.
|
670
|
-
# Authorization: requires `Viewer` role on the parent project.
|
671
|
-
# @param [String] quota_user
|
672
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
673
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
674
|
-
# @param [String] fields
|
675
|
-
# Selector specifying which fields to include in a partial response.
|
676
|
-
# @param [Google::Apis::RequestOptions] options
|
677
|
-
# Request-specific options
|
678
|
-
#
|
679
|
-
# @yield [result, err] Result & error if block supplied
|
680
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
681
|
-
# @yieldparam err [StandardError] error object if request failed
|
682
|
-
#
|
683
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
684
|
-
#
|
685
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
686
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
687
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
688
|
-
def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
|
689
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
690
|
-
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
691
|
-
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
692
|
-
command.params['name'] = name unless name.nil?
|
693
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
694
|
-
command.query['fields'] = fields unless fields.nil?
|
695
|
-
execute_or_queue_command(command, &block)
|
696
|
-
end
|
697
|
-
|
698
|
-
# Creates a training or a batch prediction job.
|
699
|
-
# @param [String] parent
|
700
|
-
# Required. The project name.
|
701
|
-
# Authorization: requires `Editor` role on the specified project.
|
702
|
-
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
703
|
-
# @param [String] quota_user
|
704
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
705
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
706
|
-
# @param [String] fields
|
707
|
-
# Selector specifying which fields to include in a partial response.
|
708
|
-
# @param [Google::Apis::RequestOptions] options
|
709
|
-
# Request-specific options
|
710
|
-
#
|
711
|
-
# @yield [result, err] Result & error if block supplied
|
712
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
713
|
-
# @yieldparam err [StandardError] error object if request failed
|
714
|
-
#
|
715
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
716
|
-
#
|
717
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
718
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
719
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
720
|
-
def create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
721
|
-
command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
|
722
|
-
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
723
|
-
command.request_object = google_cloud_ml_v1__job_object
|
724
|
-
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
725
|
-
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
726
|
-
command.params['parent'] = parent unless parent.nil?
|
727
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
728
|
-
command.query['fields'] = fields unless fields.nil?
|
729
|
-
execute_or_queue_command(command, &block)
|
730
|
-
end
|
731
|
-
|
732
|
-
# Cancels a running job.
|
733
|
-
# @param [String] name
|
734
|
-
# Required. The name of the job to cancel.
|
735
|
-
# Authorization: requires `Editor` role on the parent project.
|
736
|
-
# @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
|
737
|
-
# @param [String] quota_user
|
738
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
739
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
740
|
-
# @param [String] fields
|
741
|
-
# Selector specifying which fields to include in a partial response.
|
742
|
-
# @param [Google::Apis::RequestOptions] options
|
743
|
-
# Request-specific options
|
744
|
-
#
|
745
|
-
# @yield [result, err] Result & error if block supplied
|
746
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
|
747
|
-
# @yieldparam err [StandardError] error object if request failed
|
748
|
-
#
|
749
|
-
# @return [Google::Apis::MlV1::GoogleProtobufEmpty]
|
750
|
-
#
|
751
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
752
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
753
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
754
|
-
def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
755
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
756
|
-
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
|
757
|
-
command.request_object = google_cloud_ml_v1__cancel_job_request_object
|
758
|
-
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
759
|
-
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
760
|
-
command.params['name'] = name unless name.nil?
|
761
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
762
|
-
command.query['fields'] = fields unless fields.nil?
|
763
870
|
execute_or_queue_command(command, &block)
|
764
871
|
end
|
765
872
|
|