google-api-client 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- 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 +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- 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 +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -32,52 +32,19 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/ml/
|
34
34
|
class CloudMachineLearningEngineService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# Available to use for quota purposes for server-side applications. Can be any
|
42
37
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
38
|
attr_accessor :quota_user
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# API key. Your API key identifies your project and provides you with API access,
|
42
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
|
+
attr_accessor :key
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://ml.googleapis.com/', '')
|
47
|
-
|
48
|
-
|
49
|
-
# Get the service account information associated with your project. You need
|
50
|
-
# this information in order to grant the service account persmissions for
|
51
|
-
# the Google Cloud Storage location where you put your model training code
|
52
|
-
# for training the model with Google Cloud Machine Learning.
|
53
|
-
# @param [String] name
|
54
|
-
# Required. The project name.
|
55
|
-
# Authorization: requires `Viewer` role on the specified project.
|
56
|
-
# @param [String] fields
|
57
|
-
# Selector specifying which fields to include in a partial response.
|
58
|
-
# @param [String] quota_user
|
59
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
-
# @param [Google::Apis::RequestOptions] options
|
62
|
-
# Request-specific options
|
63
|
-
#
|
64
|
-
# @yield [result, err] Result & error if block supplied
|
65
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
|
66
|
-
# @yieldparam err [StandardError] error object if request failed
|
67
|
-
#
|
68
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
|
69
|
-
#
|
70
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def get_project_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
-
command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
|
75
|
-
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
|
76
|
-
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
|
77
|
-
command.params['name'] = name unless name.nil?
|
78
|
-
command.query['fields'] = fields unless fields.nil?
|
79
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
-
execute_or_queue_command(command, &block)
|
47
|
+
@batch_path = 'batch'
|
81
48
|
end
|
82
49
|
|
83
50
|
# Performs prediction on the data in the request.
|
@@ -86,11 +53,11 @@ module Google
|
|
86
53
|
# Required. The resource name of a model or a version.
|
87
54
|
# Authorization: requires `Viewer` role on the parent project.
|
88
55
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1PredictRequest] google_cloud_ml_v1__predict_request_object
|
89
|
-
# @param [String] fields
|
90
|
-
# Selector specifying which fields to include in a partial response.
|
91
56
|
# @param [String] quota_user
|
92
57
|
# Available to use for quota purposes for server-side applications. Can be any
|
93
58
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
94
61
|
# @param [Google::Apis::RequestOptions] options
|
95
62
|
# Request-specific options
|
96
63
|
#
|
@@ -103,159 +70,123 @@ module Google
|
|
103
70
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
71
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
72
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
-
def predict_project(name, google_cloud_ml_v1__predict_request_object = nil,
|
73
|
+
def predict_project(name, google_cloud_ml_v1__predict_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
107
74
|
command = make_simple_command(:post, 'v1/{+name}:predict', options)
|
108
75
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1PredictRequest::Representation
|
109
76
|
command.request_object = google_cloud_ml_v1__predict_request_object
|
110
77
|
command.response_representation = Google::Apis::MlV1::GoogleApiHttpBody::Representation
|
111
78
|
command.response_class = Google::Apis::MlV1::GoogleApiHttpBody
|
112
79
|
command.params['name'] = name unless name.nil?
|
113
|
-
command.query['fields'] = fields unless fields.nil?
|
114
80
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
115
82
|
execute_or_queue_command(command, &block)
|
116
83
|
end
|
117
84
|
|
118
|
-
#
|
85
|
+
# Get the service account information associated with your project. You need
|
86
|
+
# this information in order to grant the service account persmissions for
|
87
|
+
# the Google Cloud Storage location where you put your model training code
|
88
|
+
# for training the model with Google Cloud Machine Learning.
|
119
89
|
# @param [String] name
|
120
|
-
# Required. The name
|
121
|
-
# Authorization: requires `
|
122
|
-
# @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
|
123
|
-
# @param [String] fields
|
124
|
-
# Selector specifying which fields to include in a partial response.
|
90
|
+
# Required. The project name.
|
91
|
+
# Authorization: requires `Viewer` role on the specified project.
|
125
92
|
# @param [String] quota_user
|
126
93
|
# Available to use for quota purposes for server-side applications. Can be any
|
127
94
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
128
97
|
# @param [Google::Apis::RequestOptions] options
|
129
98
|
# Request-specific options
|
130
99
|
#
|
131
100
|
# @yield [result, err] Result & error if block supplied
|
132
|
-
# @yieldparam result [Google::Apis::MlV1::
|
101
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse] parsed result object
|
133
102
|
# @yieldparam err [StandardError] error object if request failed
|
134
103
|
#
|
135
|
-
# @return [Google::Apis::MlV1::
|
104
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse]
|
136
105
|
#
|
137
106
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
138
107
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
139
108
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
140
|
-
def
|
141
|
-
command = make_simple_command(:
|
142
|
-
command.
|
143
|
-
command.
|
144
|
-
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
145
|
-
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
109
|
+
def get_project_config(name, quota_user: nil, fields: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v1/{+name}:getConfig', options)
|
111
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse::Representation
|
112
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1GetConfigResponse
|
146
113
|
command.params['name'] = name unless name.nil?
|
147
|
-
command.query['fields'] = fields unless fields.nil?
|
148
114
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
149
116
|
execute_or_queue_command(command, &block)
|
150
117
|
end
|
151
118
|
|
152
|
-
# Lists the
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
119
|
+
# Lists operations that match the specified filter in the request. If the
|
120
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
121
|
+
# NOTE: the `name` binding below allows API services to override the binding
|
122
|
+
# to use different resource name schemes, such as `users/*/operations`.
|
123
|
+
# @param [String] name
|
124
|
+
# The name of the operation collection.
|
125
|
+
# @param [String] filter
|
126
|
+
# The standard list filter.
|
156
127
|
# @param [String] page_token
|
157
|
-
#
|
158
|
-
# You get the token from the `next_page_token` field of the response from
|
159
|
-
# the previous call.
|
128
|
+
# The standard list page token.
|
160
129
|
# @param [Fixnum] page_size
|
161
|
-
#
|
162
|
-
# are more remaining results than this number, the response message will
|
163
|
-
# contain a valid value in the `next_page_token` field.
|
164
|
-
# The default value is 20, and the maximum page size is 100.
|
165
|
-
# @param [String] filter
|
166
|
-
# Optional. Specifies the subset of jobs to retrieve.
|
167
|
-
# @param [String] fields
|
168
|
-
# Selector specifying which fields to include in a partial response.
|
130
|
+
# The standard list page size.
|
169
131
|
# @param [String] quota_user
|
170
132
|
# Available to use for quota purposes for server-side applications. Can be any
|
171
133
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
172
136
|
# @param [Google::Apis::RequestOptions] options
|
173
137
|
# Request-specific options
|
174
138
|
#
|
175
139
|
# @yield [result, err] Result & error if block supplied
|
176
|
-
# @yieldparam result [Google::Apis::MlV1::
|
140
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
|
177
141
|
# @yieldparam err [StandardError] error object if request failed
|
178
142
|
#
|
179
|
-
# @return [Google::Apis::MlV1::
|
143
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
|
180
144
|
#
|
181
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
|
-
def
|
185
|
-
command = make_simple_command(:get, 'v1/{+
|
186
|
-
command.response_representation = Google::Apis::MlV1::
|
187
|
-
command.response_class = Google::Apis::MlV1::
|
188
|
-
command.params['
|
148
|
+
def list_project_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
150
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
|
151
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['filter'] = filter unless filter.nil?
|
189
154
|
command.query['pageToken'] = page_token unless page_token.nil?
|
190
155
|
command.query['pageSize'] = page_size unless page_size.nil?
|
191
|
-
command.query['filter'] = filter unless filter.nil?
|
192
|
-
command.query['fields'] = fields unless fields.nil?
|
193
156
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
194
158
|
execute_or_queue_command(command, &block)
|
195
159
|
end
|
196
160
|
|
197
|
-
#
|
161
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
162
|
+
# method to poll the operation result at intervals as recommended by the API
|
163
|
+
# service.
|
198
164
|
# @param [String] name
|
199
|
-
#
|
200
|
-
# Authorization: requires `Viewer` role on the parent project.
|
201
|
-
# @param [String] fields
|
202
|
-
# Selector specifying which fields to include in a partial response.
|
165
|
+
# The name of the operation resource.
|
203
166
|
# @param [String] quota_user
|
204
167
|
# Available to use for quota purposes for server-side applications. Can be any
|
205
168
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
206
171
|
# @param [Google::Apis::RequestOptions] options
|
207
172
|
# Request-specific options
|
208
173
|
#
|
209
174
|
# @yield [result, err] Result & error if block supplied
|
210
|
-
# @yieldparam result [Google::Apis::MlV1::
|
175
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
211
176
|
# @yieldparam err [StandardError] error object if request failed
|
212
177
|
#
|
213
|
-
# @return [Google::Apis::MlV1::
|
178
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
214
179
|
#
|
215
180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
-
def
|
183
|
+
def get_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
219
184
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
220
|
-
command.response_representation = Google::Apis::MlV1::
|
221
|
-
command.response_class = Google::Apis::MlV1::
|
185
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
186
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
222
187
|
command.params['name'] = name unless name.nil?
|
223
|
-
command.query['fields'] = fields unless fields.nil?
|
224
188
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
|
-
execute_or_queue_command(command, &block)
|
226
|
-
end
|
227
|
-
|
228
|
-
# Creates a training or a batch prediction job.
|
229
|
-
# @param [String] parent
|
230
|
-
# Required. The project name.
|
231
|
-
# Authorization: requires `Editor` role on the specified project.
|
232
|
-
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
233
|
-
# @param [String] fields
|
234
|
-
# Selector specifying which fields to include in a partial response.
|
235
|
-
# @param [String] quota_user
|
236
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
237
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
238
|
-
# @param [Google::Apis::RequestOptions] options
|
239
|
-
# Request-specific options
|
240
|
-
#
|
241
|
-
# @yield [result, err] Result & error if block supplied
|
242
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
243
|
-
# @yieldparam err [StandardError] error object if request failed
|
244
|
-
#
|
245
|
-
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
246
|
-
#
|
247
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
-
def create_project_job(parent, google_cloud_ml_v1__job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
251
|
-
command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
|
252
|
-
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
253
|
-
command.request_object = google_cloud_ml_v1__job_object
|
254
|
-
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
255
|
-
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
256
|
-
command.params['parent'] = parent unless parent.nil?
|
257
189
|
command.query['fields'] = fields unless fields.nil?
|
258
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
259
190
|
execute_or_queue_command(command, &block)
|
260
191
|
end
|
261
192
|
|
@@ -271,11 +202,11 @@ module Google
|
|
271
202
|
# corresponding to `Code.CANCELLED`.
|
272
203
|
# @param [String] name
|
273
204
|
# The name of the operation resource to be cancelled.
|
274
|
-
# @param [String] fields
|
275
|
-
# Selector specifying which fields to include in a partial response.
|
276
205
|
# @param [String] quota_user
|
277
206
|
# Available to use for quota purposes for server-side applications. Can be any
|
278
207
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
279
210
|
# @param [Google::Apis::RequestOptions] options
|
280
211
|
# Request-specific options
|
281
212
|
#
|
@@ -288,13 +219,13 @@ module Google
|
|
288
219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
289
220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
290
221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
291
|
-
def cancel_project_operation(name,
|
222
|
+
def cancel_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
292
223
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
293
224
|
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
294
225
|
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
295
226
|
command.params['name'] = name unless name.nil?
|
296
|
-
command.query['fields'] = fields unless fields.nil?
|
297
227
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
228
|
+
command.query['fields'] = fields unless fields.nil?
|
298
229
|
execute_or_queue_command(command, &block)
|
299
230
|
end
|
300
231
|
|
@@ -304,11 +235,11 @@ module Google
|
|
304
235
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
305
236
|
# @param [String] name
|
306
237
|
# The name of the operation resource to be deleted.
|
307
|
-
# @param [String] fields
|
308
|
-
# Selector specifying which fields to include in a partial response.
|
309
238
|
# @param [String] quota_user
|
310
239
|
# Available to use for quota purposes for server-side applications. Can be any
|
311
240
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
312
243
|
# @param [Google::Apis::RequestOptions] options
|
313
244
|
# Request-specific options
|
314
245
|
#
|
@@ -321,87 +252,13 @@ module Google
|
|
321
252
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
322
253
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
323
254
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
324
|
-
def delete_project_operation(name,
|
255
|
+
def delete_project_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
325
256
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
326
257
|
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
327
258
|
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
328
259
|
command.params['name'] = name unless name.nil?
|
329
|
-
command.query['fields'] = fields unless fields.nil?
|
330
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
331
|
-
execute_or_queue_command(command, &block)
|
332
|
-
end
|
333
|
-
|
334
|
-
# Lists operations that match the specified filter in the request. If the
|
335
|
-
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
336
|
-
# NOTE: the `name` binding below allows API services to override the binding
|
337
|
-
# to use different resource name schemes, such as `users/*/operations`.
|
338
|
-
# @param [String] name
|
339
|
-
# The name of the operation collection.
|
340
|
-
# @param [String] page_token
|
341
|
-
# The standard list page token.
|
342
|
-
# @param [Fixnum] page_size
|
343
|
-
# The standard list page size.
|
344
|
-
# @param [String] filter
|
345
|
-
# The standard list filter.
|
346
|
-
# @param [String] fields
|
347
|
-
# Selector specifying which fields to include in a partial response.
|
348
|
-
# @param [String] quota_user
|
349
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
350
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
351
|
-
# @param [Google::Apis::RequestOptions] options
|
352
|
-
# Request-specific options
|
353
|
-
#
|
354
|
-
# @yield [result, err] Result & error if block supplied
|
355
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse] parsed result object
|
356
|
-
# @yieldparam err [StandardError] error object if request failed
|
357
|
-
#
|
358
|
-
# @return [Google::Apis::MlV1::GoogleLongrunningListOperationsResponse]
|
359
|
-
#
|
360
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
361
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
362
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
363
|
-
def list_project_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
364
|
-
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
365
|
-
command.response_representation = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse::Representation
|
366
|
-
command.response_class = Google::Apis::MlV1::GoogleLongrunningListOperationsResponse
|
367
|
-
command.params['name'] = name unless name.nil?
|
368
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
369
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
370
|
-
command.query['filter'] = filter unless filter.nil?
|
371
|
-
command.query['fields'] = fields unless fields.nil?
|
372
260
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
|
-
execute_or_queue_command(command, &block)
|
374
|
-
end
|
375
|
-
|
376
|
-
# Gets the latest state of a long-running operation. Clients can use this
|
377
|
-
# method to poll the operation result at intervals as recommended by the API
|
378
|
-
# service.
|
379
|
-
# @param [String] name
|
380
|
-
# The name of the operation resource.
|
381
|
-
# @param [String] fields
|
382
|
-
# Selector specifying which fields to include in a partial response.
|
383
|
-
# @param [String] quota_user
|
384
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
385
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
386
|
-
# @param [Google::Apis::RequestOptions] options
|
387
|
-
# Request-specific options
|
388
|
-
#
|
389
|
-
# @yield [result, err] Result & error if block supplied
|
390
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
391
|
-
# @yieldparam err [StandardError] error object if request failed
|
392
|
-
#
|
393
|
-
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
394
|
-
#
|
395
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
-
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
399
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
400
|
-
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
401
|
-
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
402
|
-
command.params['name'] = name unless name.nil?
|
403
261
|
command.query['fields'] = fields unless fields.nil?
|
404
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
262
|
execute_or_queue_command(command, &block)
|
406
263
|
end
|
407
264
|
|
@@ -413,11 +270,11 @@ module Google
|
|
413
270
|
# @param [String] name
|
414
271
|
# Required. The name of the model.
|
415
272
|
# Authorization: requires `Editor` role on the parent project.
|
416
|
-
# @param [String] fields
|
417
|
-
# Selector specifying which fields to include in a partial response.
|
418
273
|
# @param [String] quota_user
|
419
274
|
# Available to use for quota purposes for server-side applications. Can be any
|
420
275
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
+
# @param [String] fields
|
277
|
+
# Selector specifying which fields to include in a partial response.
|
421
278
|
# @param [Google::Apis::RequestOptions] options
|
422
279
|
# Request-specific options
|
423
280
|
#
|
@@ -430,13 +287,13 @@ module Google
|
|
430
287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
431
288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
432
289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
433
|
-
def delete_project_model(name,
|
290
|
+
def delete_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
|
434
291
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
435
292
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
436
293
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
437
294
|
command.params['name'] = name unless name.nil?
|
438
|
-
command.query['fields'] = fields unless fields.nil?
|
439
295
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
296
|
+
command.query['fields'] = fields unless fields.nil?
|
440
297
|
execute_or_queue_command(command, &block)
|
441
298
|
end
|
442
299
|
|
@@ -446,20 +303,20 @@ module Google
|
|
446
303
|
# @param [String] parent
|
447
304
|
# Required. The name of the project whose models are to be listed.
|
448
305
|
# Authorization: requires `Viewer` role on the specified project.
|
449
|
-
# @param [String] page_token
|
450
|
-
# Optional. A page token to request the next page of results.
|
451
|
-
# You get the token from the `next_page_token` field of the response from
|
452
|
-
# the previous call.
|
453
306
|
# @param [Fixnum] page_size
|
454
307
|
# Optional. The number of models to retrieve per "page" of results. If there
|
455
308
|
# are more remaining results than this number, the response message will
|
456
309
|
# contain a valid value in the `next_page_token` field.
|
457
310
|
# The default value is 20, and the maximum page size is 100.
|
458
|
-
# @param [String]
|
459
|
-
#
|
311
|
+
# @param [String] page_token
|
312
|
+
# Optional. A page token to request the next page of results.
|
313
|
+
# You get the token from the `next_page_token` field of the response from
|
314
|
+
# the previous call.
|
460
315
|
# @param [String] quota_user
|
461
316
|
# Available to use for quota purposes for server-side applications. Can be any
|
462
317
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
463
320
|
# @param [Google::Apis::RequestOptions] options
|
464
321
|
# Request-specific options
|
465
322
|
#
|
@@ -472,15 +329,15 @@ module Google
|
|
472
329
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
473
330
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
474
331
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
475
|
-
def list_project_models(parent,
|
332
|
+
def list_project_models(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
476
333
|
command = make_simple_command(:get, 'v1/{+parent}/models', options)
|
477
334
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse::Representation
|
478
335
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListModelsResponse
|
479
336
|
command.params['parent'] = parent unless parent.nil?
|
480
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
481
337
|
command.query['pageSize'] = page_size unless page_size.nil?
|
482
|
-
command.query['
|
338
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
483
339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
+
command.query['fields'] = fields unless fields.nil?
|
484
341
|
execute_or_queue_command(command, &block)
|
485
342
|
end
|
486
343
|
|
@@ -490,11 +347,11 @@ module Google
|
|
490
347
|
# @param [String] name
|
491
348
|
# Required. The name of the model.
|
492
349
|
# Authorization: requires `Viewer` role on the parent project.
|
493
|
-
# @param [String] fields
|
494
|
-
# Selector specifying which fields to include in a partial response.
|
495
350
|
# @param [String] quota_user
|
496
351
|
# Available to use for quota purposes for server-side applications. Can be any
|
497
352
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
353
|
+
# @param [String] fields
|
354
|
+
# Selector specifying which fields to include in a partial response.
|
498
355
|
# @param [Google::Apis::RequestOptions] options
|
499
356
|
# Request-specific options
|
500
357
|
#
|
@@ -507,13 +364,13 @@ module Google
|
|
507
364
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
508
365
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
509
366
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
510
|
-
def get_project_model(name,
|
367
|
+
def get_project_model(name, quota_user: nil, fields: nil, options: nil, &block)
|
511
368
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
512
369
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
513
370
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
514
371
|
command.params['name'] = name unless name.nil?
|
515
|
-
command.query['fields'] = fields unless fields.nil?
|
516
372
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
|
+
command.query['fields'] = fields unless fields.nil?
|
517
374
|
execute_or_queue_command(command, &block)
|
518
375
|
end
|
519
376
|
|
@@ -526,11 +383,11 @@ module Google
|
|
526
383
|
# Required. The project name.
|
527
384
|
# Authorization: requires `Editor` role on the specified project.
|
528
385
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1Model] google_cloud_ml_v1__model_object
|
529
|
-
# @param [String] fields
|
530
|
-
# Selector specifying which fields to include in a partial response.
|
531
386
|
# @param [String] quota_user
|
532
387
|
# Available to use for quota purposes for server-side applications. Can be any
|
533
388
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
389
|
+
# @param [String] fields
|
390
|
+
# Selector specifying which fields to include in a partial response.
|
534
391
|
# @param [Google::Apis::RequestOptions] options
|
535
392
|
# Request-specific options
|
536
393
|
#
|
@@ -543,53 +400,15 @@ module Google
|
|
543
400
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
544
401
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
545
402
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
546
|
-
def create_project_model(parent, google_cloud_ml_v1__model_object = nil,
|
403
|
+
def create_project_model(parent, google_cloud_ml_v1__model_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
547
404
|
command = make_simple_command(:post, 'v1/{+parent}/models', options)
|
548
405
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
549
406
|
command.request_object = google_cloud_ml_v1__model_object
|
550
407
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Model::Representation
|
551
408
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Model
|
552
409
|
command.params['parent'] = parent unless parent.nil?
|
553
|
-
command.query['fields'] = fields unless fields.nil?
|
554
410
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
555
|
-
execute_or_queue_command(command, &block)
|
556
|
-
end
|
557
|
-
|
558
|
-
# Deletes a model version.
|
559
|
-
# Each model can have multiple versions deployed and in use at any given
|
560
|
-
# time. Use this method to remove a single version.
|
561
|
-
# Note: You cannot delete the version that is set as the default version
|
562
|
-
# of the model unless it is the only remaining version.
|
563
|
-
# @param [String] name
|
564
|
-
# Required. The name of the version. You can get the names of all the
|
565
|
-
# versions of a model by calling
|
566
|
-
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
567
|
-
# versions/list).
|
568
|
-
# Authorization: requires `Editor` role on the parent project.
|
569
|
-
# @param [String] fields
|
570
|
-
# Selector specifying which fields to include in a partial response.
|
571
|
-
# @param [String] quota_user
|
572
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
573
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
574
|
-
# @param [Google::Apis::RequestOptions] options
|
575
|
-
# Request-specific options
|
576
|
-
#
|
577
|
-
# @yield [result, err] Result & error if block supplied
|
578
|
-
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
579
|
-
# @yieldparam err [StandardError] error object if request failed
|
580
|
-
#
|
581
|
-
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
582
|
-
#
|
583
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
584
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
585
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
586
|
-
def delete_project_model_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
587
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
588
|
-
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
589
|
-
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
590
|
-
command.params['name'] = name unless name.nil?
|
591
411
|
command.query['fields'] = fields unless fields.nil?
|
592
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
593
412
|
execute_or_queue_command(command, &block)
|
594
413
|
end
|
595
414
|
|
@@ -609,11 +428,11 @@ module Google
|
|
609
428
|
# there are more remaining results than this number, the response message
|
610
429
|
# will contain a valid value in the `next_page_token` field.
|
611
430
|
# The default value is 20, and the maximum page size is 100.
|
612
|
-
# @param [String] fields
|
613
|
-
# Selector specifying which fields to include in a partial response.
|
614
431
|
# @param [String] quota_user
|
615
432
|
# Available to use for quota purposes for server-side applications. Can be any
|
616
433
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
434
|
+
# @param [String] fields
|
435
|
+
# Selector specifying which fields to include in a partial response.
|
617
436
|
# @param [Google::Apis::RequestOptions] options
|
618
437
|
# Request-specific options
|
619
438
|
#
|
@@ -626,15 +445,15 @@ module Google
|
|
626
445
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
627
446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
628
447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
629
|
-
def list_project_model_versions(parent, page_token: nil, page_size: nil,
|
448
|
+
def list_project_model_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
630
449
|
command = make_simple_command(:get, 'v1/{+parent}/versions', options)
|
631
450
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse::Representation
|
632
451
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListVersionsResponse
|
633
452
|
command.params['parent'] = parent unless parent.nil?
|
634
453
|
command.query['pageToken'] = page_token unless page_token.nil?
|
635
454
|
command.query['pageSize'] = page_size unless page_size.nil?
|
636
|
-
command.query['fields'] = fields unless fields.nil?
|
637
455
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
456
|
+
command.query['fields'] = fields unless fields.nil?
|
638
457
|
execute_or_queue_command(command, &block)
|
639
458
|
end
|
640
459
|
|
@@ -647,11 +466,11 @@ module Google
|
|
647
466
|
# @param [String] name
|
648
467
|
# Required. The name of the version.
|
649
468
|
# Authorization: requires `Viewer` role on the parent project.
|
650
|
-
# @param [String] fields
|
651
|
-
# Selector specifying which fields to include in a partial response.
|
652
469
|
# @param [String] quota_user
|
653
470
|
# Available to use for quota purposes for server-side applications. Can be any
|
654
471
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
472
|
+
# @param [String] fields
|
473
|
+
# Selector specifying which fields to include in a partial response.
|
655
474
|
# @param [Google::Apis::RequestOptions] options
|
656
475
|
# Request-specific options
|
657
476
|
#
|
@@ -664,13 +483,13 @@ module Google
|
|
664
483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
665
484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
666
485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
667
|
-
def get_project_model_version(name,
|
486
|
+
def get_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
668
487
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
669
488
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
670
489
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
671
490
|
command.params['name'] = name unless name.nil?
|
672
|
-
command.query['fields'] = fields unless fields.nil?
|
673
491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
command.query['fields'] = fields unless fields.nil?
|
674
493
|
execute_or_queue_command(command, &block)
|
675
494
|
end
|
676
495
|
|
@@ -686,11 +505,11 @@ module Google
|
|
686
505
|
# Required. The name of the model.
|
687
506
|
# Authorization: requires `Editor` role on the parent project.
|
688
507
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1Version] google_cloud_ml_v1__version_object
|
689
|
-
# @param [String] fields
|
690
|
-
# Selector specifying which fields to include in a partial response.
|
691
508
|
# @param [String] quota_user
|
692
509
|
# Available to use for quota purposes for server-side applications. Can be any
|
693
510
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
511
|
+
# @param [String] fields
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
694
513
|
# @param [Google::Apis::RequestOptions] options
|
695
514
|
# Request-specific options
|
696
515
|
#
|
@@ -703,15 +522,15 @@ module Google
|
|
703
522
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
523
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
524
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
-
def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil,
|
525
|
+
def create_project_model_version(parent, google_cloud_ml_v1__version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
707
526
|
command = make_simple_command(:post, 'v1/{+parent}/versions', options)
|
708
527
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
709
528
|
command.request_object = google_cloud_ml_v1__version_object
|
710
529
|
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
711
530
|
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
712
531
|
command.params['parent'] = parent unless parent.nil?
|
713
|
-
command.query['fields'] = fields unless fields.nil?
|
714
532
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
715
534
|
execute_or_queue_command(command, &block)
|
716
535
|
end
|
717
536
|
|
@@ -728,11 +547,11 @@ module Google
|
|
728
547
|
# versions/list).
|
729
548
|
# Authorization: requires `Editor` role on the parent project.
|
730
549
|
# @param [Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest] google_cloud_ml_v1__set_default_version_request_object
|
731
|
-
# @param [String] fields
|
732
|
-
# Selector specifying which fields to include in a partial response.
|
733
550
|
# @param [String] quota_user
|
734
551
|
# Available to use for quota purposes for server-side applications. Can be any
|
735
552
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
553
|
+
# @param [String] fields
|
554
|
+
# Selector specifying which fields to include in a partial response.
|
736
555
|
# @param [Google::Apis::RequestOptions] options
|
737
556
|
# Request-specific options
|
738
557
|
#
|
@@ -745,23 +564,205 @@ module Google
|
|
745
564
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
746
565
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
747
566
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
748
|
-
def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil,
|
567
|
+
def set_project_model_version_default(name, google_cloud_ml_v1__set_default_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
749
568
|
command = make_simple_command(:post, 'v1/{+name}:setDefault', options)
|
750
569
|
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1SetDefaultVersionRequest::Representation
|
751
570
|
command.request_object = google_cloud_ml_v1__set_default_version_request_object
|
752
571
|
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
753
572
|
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Version
|
754
573
|
command.params['name'] = name unless name.nil?
|
574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
575
|
+
command.query['fields'] = fields unless fields.nil?
|
576
|
+
execute_or_queue_command(command, &block)
|
577
|
+
end
|
578
|
+
|
579
|
+
# Deletes a model version.
|
580
|
+
# Each model can have multiple versions deployed and in use at any given
|
581
|
+
# time. Use this method to remove a single version.
|
582
|
+
# Note: You cannot delete the version that is set as the default version
|
583
|
+
# of the model unless it is the only remaining version.
|
584
|
+
# @param [String] name
|
585
|
+
# Required. The name of the version. You can get the names of all the
|
586
|
+
# versions of a model by calling
|
587
|
+
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
588
|
+
# versions/list).
|
589
|
+
# Authorization: requires `Editor` role on the parent project.
|
590
|
+
# @param [String] quota_user
|
591
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
592
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
593
|
+
# @param [String] fields
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
595
|
+
# @param [Google::Apis::RequestOptions] options
|
596
|
+
# Request-specific options
|
597
|
+
#
|
598
|
+
# @yield [result, err] Result & error if block supplied
|
599
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleLongrunningOperation] parsed result object
|
600
|
+
# @yieldparam err [StandardError] error object if request failed
|
601
|
+
#
|
602
|
+
# @return [Google::Apis::MlV1::GoogleLongrunningOperation]
|
603
|
+
#
|
604
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
605
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
606
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
607
|
+
def delete_project_model_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
608
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
609
|
+
command.response_representation = Google::Apis::MlV1::GoogleLongrunningOperation::Representation
|
610
|
+
command.response_class = Google::Apis::MlV1::GoogleLongrunningOperation
|
611
|
+
command.params['name'] = name unless name.nil?
|
612
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
613
|
+
command.query['fields'] = fields unless fields.nil?
|
614
|
+
execute_or_queue_command(command, &block)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Lists the jobs in the project.
|
618
|
+
# @param [String] parent
|
619
|
+
# Required. The name of the project for which to list jobs.
|
620
|
+
# Authorization: requires `Viewer` role on the specified project.
|
621
|
+
# @param [Fixnum] page_size
|
622
|
+
# Optional. The number of jobs to retrieve per "page" of results. If there
|
623
|
+
# are more remaining results than this number, the response message will
|
624
|
+
# contain a valid value in the `next_page_token` field.
|
625
|
+
# The default value is 20, and the maximum page size is 100.
|
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 [String] quota_user
|
633
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
634
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
635
|
+
# @param [String] fields
|
636
|
+
# Selector specifying which fields to include in a partial response.
|
637
|
+
# @param [Google::Apis::RequestOptions] options
|
638
|
+
# Request-specific options
|
639
|
+
#
|
640
|
+
# @yield [result, err] Result & error if block supplied
|
641
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse] parsed result object
|
642
|
+
# @yieldparam err [StandardError] error object if request failed
|
643
|
+
#
|
644
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse]
|
645
|
+
#
|
646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
+
def list_project_jobs(parent, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
650
|
+
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
651
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse::Representation
|
652
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1ListJobsResponse
|
653
|
+
command.params['parent'] = parent unless parent.nil?
|
654
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
655
|
+
command.query['filter'] = filter unless filter.nil?
|
656
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
657
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
execute_or_queue_command(command, &block)
|
660
|
+
end
|
661
|
+
|
662
|
+
# Describes a job.
|
663
|
+
# @param [String] name
|
664
|
+
# Required. The name of the job to get the description of.
|
665
|
+
# Authorization: requires `Viewer` role on the parent project.
|
666
|
+
# @param [String] quota_user
|
667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
669
|
+
# @param [String] fields
|
670
|
+
# Selector specifying which fields to include in a partial response.
|
671
|
+
# @param [Google::Apis::RequestOptions] options
|
672
|
+
# Request-specific options
|
673
|
+
#
|
674
|
+
# @yield [result, err] Result & error if block supplied
|
675
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
676
|
+
# @yieldparam err [StandardError] error object if request failed
|
677
|
+
#
|
678
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
679
|
+
#
|
680
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
681
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
682
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
683
|
+
def get_project_job(name, quota_user: nil, fields: nil, options: nil, &block)
|
684
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
685
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
686
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
687
|
+
command.params['name'] = name unless name.nil?
|
688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
689
|
+
command.query['fields'] = fields unless fields.nil?
|
690
|
+
execute_or_queue_command(command, &block)
|
691
|
+
end
|
692
|
+
|
693
|
+
# Creates a training or a batch prediction job.
|
694
|
+
# @param [String] parent
|
695
|
+
# Required. The project name.
|
696
|
+
# Authorization: requires `Editor` role on the specified project.
|
697
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1Job] google_cloud_ml_v1__job_object
|
698
|
+
# @param [String] quota_user
|
699
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
700
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
701
|
+
# @param [String] fields
|
702
|
+
# Selector specifying which fields to include in a partial response.
|
703
|
+
# @param [Google::Apis::RequestOptions] options
|
704
|
+
# Request-specific options
|
705
|
+
#
|
706
|
+
# @yield [result, err] Result & error if block supplied
|
707
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleCloudMlV1Job] parsed result object
|
708
|
+
# @yieldparam err [StandardError] error object if request failed
|
709
|
+
#
|
710
|
+
# @return [Google::Apis::MlV1::GoogleCloudMlV1Job]
|
711
|
+
#
|
712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
715
|
+
def create_project_job(parent, google_cloud_ml_v1__job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
716
|
+
command = make_simple_command(:post, 'v1/{+parent}/jobs', options)
|
717
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
718
|
+
command.request_object = google_cloud_ml_v1__job_object
|
719
|
+
command.response_representation = Google::Apis::MlV1::GoogleCloudMlV1Job::Representation
|
720
|
+
command.response_class = Google::Apis::MlV1::GoogleCloudMlV1Job
|
721
|
+
command.params['parent'] = parent unless parent.nil?
|
722
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
755
723
|
command.query['fields'] = fields unless fields.nil?
|
724
|
+
execute_or_queue_command(command, &block)
|
725
|
+
end
|
726
|
+
|
727
|
+
# Cancels a running job.
|
728
|
+
# @param [String] name
|
729
|
+
# Required. The name of the job to cancel.
|
730
|
+
# Authorization: requires `Editor` role on the parent project.
|
731
|
+
# @param [Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest] google_cloud_ml_v1__cancel_job_request_object
|
732
|
+
# @param [String] quota_user
|
733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
735
|
+
# @param [String] fields
|
736
|
+
# Selector specifying which fields to include in a partial response.
|
737
|
+
# @param [Google::Apis::RequestOptions] options
|
738
|
+
# Request-specific options
|
739
|
+
#
|
740
|
+
# @yield [result, err] Result & error if block supplied
|
741
|
+
# @yieldparam result [Google::Apis::MlV1::GoogleProtobufEmpty] parsed result object
|
742
|
+
# @yieldparam err [StandardError] error object if request failed
|
743
|
+
#
|
744
|
+
# @return [Google::Apis::MlV1::GoogleProtobufEmpty]
|
745
|
+
#
|
746
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
747
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
748
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
749
|
+
def cancel_project_job(name, google_cloud_ml_v1__cancel_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
750
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
751
|
+
command.request_representation = Google::Apis::MlV1::GoogleCloudMlV1CancelJobRequest::Representation
|
752
|
+
command.request_object = google_cloud_ml_v1__cancel_job_request_object
|
753
|
+
command.response_representation = Google::Apis::MlV1::GoogleProtobufEmpty::Representation
|
754
|
+
command.response_class = Google::Apis::MlV1::GoogleProtobufEmpty
|
755
|
+
command.params['name'] = name unless name.nil?
|
756
756
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
757
|
+
command.query['fields'] = fields unless fields.nil?
|
757
758
|
execute_or_queue_command(command, &block)
|
758
759
|
end
|
759
760
|
|
760
761
|
protected
|
761
762
|
|
762
763
|
def apply_command_defaults(command)
|
763
|
-
command.query['key'] = key unless key.nil?
|
764
764
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
765
|
+
command.query['key'] = key unless key.nil?
|
765
766
|
end
|
766
767
|
end
|
767
768
|
end
|