google-api-client 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -22,320 +22,320 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module IamV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class CreateServiceAccountKeyRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class SignBlobResponse
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class TestIamPermissionsRequest
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class SignJwtResponse
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class SignJwtRequest
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Policy
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class AuditData
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class BindingDelta
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class PolicyDelta
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class ListServiceAccountsResponse
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
81
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
-
class
|
85
|
+
class CreateServiceAccountRequest
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class
|
91
|
+
class QueryGrantableRolesResponse
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
93
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
-
class
|
97
|
+
class SignBlobRequest
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
99
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class Role
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class SetIamPolicyRequest
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
-
class
|
115
|
+
class Binding
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
117
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class QueryGrantableRolesRequest
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
123
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
-
class
|
127
|
+
class Empty
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
129
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class
|
133
|
+
class ServiceAccount
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
135
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
137
137
|
end
|
138
138
|
|
139
|
-
class
|
139
|
+
class ListServiceAccountKeysResponse
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
141
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
-
class
|
145
|
+
class TestIamPermissionsResponse
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
147
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
-
class
|
151
|
+
class ServiceAccountKey
|
152
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
153
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
-
class
|
157
|
+
class CreateServiceAccountKeyRequest
|
158
158
|
# @private
|
159
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
|
161
|
-
|
160
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
161
|
+
property :private_key_type, as: 'privateKeyType'
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
-
class
|
165
|
+
class SignBlobResponse
|
166
166
|
# @private
|
167
167
|
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
-
property :
|
168
|
+
property :key_id, as: 'keyId'
|
169
|
+
property :signature, :base64 => true, as: 'signature'
|
169
170
|
end
|
170
171
|
end
|
171
172
|
|
172
|
-
class
|
173
|
+
class TestIamPermissionsRequest
|
173
174
|
# @private
|
174
175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
-
|
176
|
-
property :name, as: 'name'
|
177
|
-
property :description, as: 'description'
|
176
|
+
collection :permissions, as: 'permissions'
|
178
177
|
end
|
179
178
|
end
|
180
179
|
|
181
|
-
class
|
180
|
+
class SignJwtResponse
|
182
181
|
# @private
|
183
182
|
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
-
property :
|
185
|
-
|
183
|
+
property :key_id, as: 'keyId'
|
184
|
+
property :signed_jwt, as: 'signedJwt'
|
186
185
|
end
|
187
186
|
end
|
188
187
|
|
189
|
-
class
|
188
|
+
class SignJwtRequest
|
190
189
|
# @private
|
191
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
192
|
-
|
193
|
-
property :role, as: 'role'
|
191
|
+
property :payload, as: 'payload'
|
194
192
|
end
|
195
193
|
end
|
196
194
|
|
197
|
-
class
|
195
|
+
class Policy
|
198
196
|
# @private
|
199
197
|
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
-
property :
|
198
|
+
property :etag, :base64 => true, as: 'etag'
|
199
|
+
property :version, as: 'version'
|
200
|
+
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
201
|
+
|
201
202
|
end
|
202
203
|
end
|
203
204
|
|
204
|
-
class
|
205
|
+
class AuditData
|
205
206
|
# @private
|
206
207
|
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
209
|
+
|
207
210
|
end
|
208
211
|
end
|
209
212
|
|
210
|
-
class
|
213
|
+
class BindingDelta
|
211
214
|
# @private
|
212
215
|
class Representation < Google::Apis::Core::JsonRepresentation
|
213
|
-
property :
|
214
|
-
property :
|
215
|
-
property :
|
216
|
-
property :display_name, as: 'displayName'
|
217
|
-
property :etag, :base64 => true, as: 'etag'
|
218
|
-
property :email, as: 'email'
|
219
|
-
property :name, as: 'name'
|
216
|
+
property :role, as: 'role'
|
217
|
+
property :action, as: 'action'
|
218
|
+
property :member, as: 'member'
|
220
219
|
end
|
221
220
|
end
|
222
221
|
|
223
|
-
class
|
222
|
+
class PolicyDelta
|
224
223
|
# @private
|
225
224
|
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
-
collection :
|
225
|
+
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
227
226
|
|
228
227
|
end
|
229
228
|
end
|
230
229
|
|
231
|
-
class
|
230
|
+
class ListServiceAccountsResponse
|
232
231
|
# @private
|
233
232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
234
|
-
|
233
|
+
property :next_page_token, as: 'nextPageToken'
|
234
|
+
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
235
|
+
|
235
236
|
end
|
236
237
|
end
|
237
238
|
|
238
|
-
class
|
239
|
+
class CreateServiceAccountRequest
|
239
240
|
# @private
|
240
241
|
class Representation < Google::Apis::Core::JsonRepresentation
|
241
|
-
property :
|
242
|
-
property :
|
243
|
-
|
244
|
-
property :valid_before_time, as: 'validBeforeTime'
|
245
|
-
property :key_algorithm, as: 'keyAlgorithm'
|
246
|
-
property :valid_after_time, as: 'validAfterTime'
|
247
|
-
property :private_key_type, as: 'privateKeyType'
|
242
|
+
property :account_id, as: 'accountId'
|
243
|
+
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
244
|
+
|
248
245
|
end
|
249
246
|
end
|
250
247
|
|
251
|
-
class
|
248
|
+
class QueryGrantableRolesResponse
|
252
249
|
# @private
|
253
250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
-
|
255
|
-
|
251
|
+
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
252
|
+
|
256
253
|
end
|
257
254
|
end
|
258
255
|
|
259
|
-
class
|
256
|
+
class SignBlobRequest
|
260
257
|
# @private
|
261
258
|
class Representation < Google::Apis::Core::JsonRepresentation
|
262
|
-
|
259
|
+
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
263
260
|
end
|
264
261
|
end
|
265
262
|
|
266
|
-
class
|
263
|
+
class Role
|
267
264
|
# @private
|
268
265
|
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
property :
|
270
|
-
property :
|
266
|
+
property :name, as: 'name'
|
267
|
+
property :description, as: 'description'
|
268
|
+
property :title, as: 'title'
|
271
269
|
end
|
272
270
|
end
|
273
271
|
|
274
|
-
class
|
272
|
+
class SetIamPolicyRequest
|
275
273
|
# @private
|
276
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
277
|
-
property :
|
278
|
-
|
275
|
+
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
276
|
+
|
279
277
|
end
|
280
278
|
end
|
281
279
|
|
282
|
-
class
|
280
|
+
class Binding
|
283
281
|
# @private
|
284
282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
-
collection :
|
286
|
-
|
287
|
-
property :etag, :base64 => true, as: 'etag'
|
288
|
-
property :version, as: 'version'
|
283
|
+
collection :members, as: 'members'
|
284
|
+
property :role, as: 'role'
|
289
285
|
end
|
290
286
|
end
|
291
287
|
|
292
|
-
class
|
288
|
+
class QueryGrantableRolesRequest
|
293
289
|
# @private
|
294
290
|
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
-
property :
|
291
|
+
property :full_resource_name, as: 'fullResourceName'
|
296
292
|
end
|
297
293
|
end
|
298
294
|
|
299
|
-
class
|
295
|
+
class Empty
|
300
296
|
# @private
|
301
297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
-
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
303
|
-
|
304
298
|
end
|
305
299
|
end
|
306
300
|
|
307
|
-
class
|
301
|
+
class ServiceAccount
|
308
302
|
# @private
|
309
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
-
property :
|
311
|
-
property :
|
312
|
-
property :
|
304
|
+
property :oauth2_client_id, as: 'oauth2ClientId'
|
305
|
+
property :unique_id, as: 'uniqueId'
|
306
|
+
property :display_name, as: 'displayName'
|
307
|
+
property :etag, :base64 => true, as: 'etag'
|
308
|
+
property :email, as: 'email'
|
309
|
+
property :name, as: 'name'
|
310
|
+
property :project_id, as: 'projectId'
|
313
311
|
end
|
314
312
|
end
|
315
313
|
|
316
|
-
class
|
314
|
+
class ListServiceAccountKeysResponse
|
317
315
|
# @private
|
318
316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
-
collection :
|
317
|
+
collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
|
320
318
|
|
321
319
|
end
|
322
320
|
end
|
323
321
|
|
324
|
-
class
|
322
|
+
class TestIamPermissionsResponse
|
325
323
|
# @private
|
326
324
|
class Representation < Google::Apis::Core::JsonRepresentation
|
327
|
-
|
328
|
-
|
329
|
-
property :account_id, as: 'accountId'
|
325
|
+
collection :permissions, as: 'permissions'
|
330
326
|
end
|
331
327
|
end
|
332
328
|
|
333
|
-
class
|
329
|
+
class ServiceAccountKey
|
334
330
|
# @private
|
335
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
336
|
-
property :
|
337
|
-
|
338
|
-
|
332
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
333
|
+
property :valid_after_time, as: 'validAfterTime'
|
334
|
+
property :private_key_type, as: 'privateKeyType'
|
335
|
+
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
336
|
+
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
337
|
+
property :name, as: 'name'
|
338
|
+
property :valid_before_time, as: 'validBeforeTime'
|
339
339
|
end
|
340
340
|
end
|
341
341
|
end
|
@@ -46,6 +46,7 @@ module Google
|
|
46
46
|
|
47
47
|
def initialize
|
48
48
|
super('https://iam.googleapis.com/', '')
|
49
|
+
@batch_path = 'batch'
|
49
50
|
end
|
50
51
|
|
51
52
|
# Tests the specified permissions against the IAM access control policy
|
@@ -117,6 +118,47 @@ module Google
|
|
117
118
|
execute_or_queue_command(command, &block)
|
118
119
|
end
|
119
120
|
|
121
|
+
# Lists ServiceAccounts for a project.
|
122
|
+
# @param [String] name
|
123
|
+
# Required. The resource name of the project associated with the service
|
124
|
+
# accounts, such as `projects/my-project-123`.
|
125
|
+
# @param [String] page_token
|
126
|
+
# Optional pagination token returned in an earlier
|
127
|
+
# ListServiceAccountsResponse.next_page_token.
|
128
|
+
# @param [Fixnum] page_size
|
129
|
+
# Optional limit on the number of service accounts to include in the
|
130
|
+
# response. Further accounts can subsequently be obtained by including the
|
131
|
+
# ListServiceAccountsResponse.next_page_token
|
132
|
+
# in a subsequent request.
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::IamV1::ListServiceAccountsResponse]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def list_project_service_accounts(name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
|
152
|
+
command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
|
153
|
+
command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
|
154
|
+
command.params['name'] = name unless name.nil?
|
155
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
156
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
+
execute_or_queue_command(command, &block)
|
160
|
+
end
|
161
|
+
|
120
162
|
# Signs a blob using a service account's system-managed private key.
|
121
163
|
# @param [String] name
|
122
164
|
# The resource name of the service account in the following format:
|
@@ -154,18 +196,12 @@ module Google
|
|
154
196
|
execute_or_queue_command(command, &block)
|
155
197
|
end
|
156
198
|
|
157
|
-
#
|
199
|
+
# Creates a ServiceAccount
|
200
|
+
# and returns it.
|
158
201
|
# @param [String] name
|
159
202
|
# Required. The resource name of the project associated with the service
|
160
203
|
# accounts, such as `projects/my-project-123`.
|
161
|
-
# @param [
|
162
|
-
# Optional limit on the number of service accounts to include in the
|
163
|
-
# response. Further accounts can subsequently be obtained by including the
|
164
|
-
# ListServiceAccountsResponse.next_page_token
|
165
|
-
# in a subsequent request.
|
166
|
-
# @param [String] page_token
|
167
|
-
# Optional pagination token returned in an earlier
|
168
|
-
# ListServiceAccountsResponse.next_page_token.
|
204
|
+
# @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
|
169
205
|
# @param [String] fields
|
170
206
|
# Selector specifying which fields to include in a partial response.
|
171
207
|
# @param [String] quota_user
|
@@ -175,21 +211,21 @@ module Google
|
|
175
211
|
# Request-specific options
|
176
212
|
#
|
177
213
|
# @yield [result, err] Result & error if block supplied
|
178
|
-
# @yieldparam result [Google::Apis::IamV1::
|
214
|
+
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
179
215
|
# @yieldparam err [StandardError] error object if request failed
|
180
216
|
#
|
181
|
-
# @return [Google::Apis::IamV1::
|
217
|
+
# @return [Google::Apis::IamV1::ServiceAccount]
|
182
218
|
#
|
183
219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
-
def
|
187
|
-
command = make_simple_command(:
|
188
|
-
command.
|
189
|
-
command.
|
222
|
+
def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
|
224
|
+
command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
|
225
|
+
command.request_object = create_service_account_request_object
|
226
|
+
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
227
|
+
command.response_class = Google::Apis::IamV1::ServiceAccount
|
190
228
|
command.params['name'] = name unless name.nil?
|
191
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
192
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
193
229
|
command.query['fields'] = fields unless fields.nil?
|
194
230
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
231
|
execute_or_queue_command(command, &block)
|
@@ -270,41 +306,6 @@ module Google
|
|
270
306
|
execute_or_queue_command(command, &block)
|
271
307
|
end
|
272
308
|
|
273
|
-
# Creates a ServiceAccount
|
274
|
-
# and returns it.
|
275
|
-
# @param [String] name
|
276
|
-
# Required. The resource name of the project associated with the service
|
277
|
-
# accounts, such as `projects/my-project-123`.
|
278
|
-
# @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
|
279
|
-
# @param [String] fields
|
280
|
-
# Selector specifying which fields to include in a partial response.
|
281
|
-
# @param [String] quota_user
|
282
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
283
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
284
|
-
# @param [Google::Apis::RequestOptions] options
|
285
|
-
# Request-specific options
|
286
|
-
#
|
287
|
-
# @yield [result, err] Result & error if block supplied
|
288
|
-
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
289
|
-
# @yieldparam err [StandardError] error object if request failed
|
290
|
-
#
|
291
|
-
# @return [Google::Apis::IamV1::ServiceAccount]
|
292
|
-
#
|
293
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
294
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
295
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
296
|
-
def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
297
|
-
command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
|
298
|
-
command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
|
299
|
-
command.request_object = create_service_account_request_object
|
300
|
-
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
301
|
-
command.response_class = Google::Apis::IamV1::ServiceAccount
|
302
|
-
command.params['name'] = name unless name.nil?
|
303
|
-
command.query['fields'] = fields unless fields.nil?
|
304
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
305
|
-
execute_or_queue_command(command, &block)
|
306
|
-
end
|
307
|
-
|
308
309
|
# Returns the IAM access control policy for a
|
309
310
|
# ServiceAccount.
|
310
311
|
# @param [String] resource
|
@@ -413,40 +414,6 @@ module Google
|
|
413
414
|
execute_or_queue_command(command, &block)
|
414
415
|
end
|
415
416
|
|
416
|
-
# Deletes a ServiceAccountKey.
|
417
|
-
# @param [String] name
|
418
|
-
# The resource name of the service account key in the following format:
|
419
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
|
420
|
-
# Using `-` as a wildcard for the project will infer the project from
|
421
|
-
# the account. The `account` value can be the `email` address or the
|
422
|
-
# `unique_id` of the service account.
|
423
|
-
# @param [String] fields
|
424
|
-
# Selector specifying which fields to include in a partial response.
|
425
|
-
# @param [String] quota_user
|
426
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
427
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
428
|
-
# @param [Google::Apis::RequestOptions] options
|
429
|
-
# Request-specific options
|
430
|
-
#
|
431
|
-
# @yield [result, err] Result & error if block supplied
|
432
|
-
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
433
|
-
# @yieldparam err [StandardError] error object if request failed
|
434
|
-
#
|
435
|
-
# @return [Google::Apis::IamV1::Empty]
|
436
|
-
#
|
437
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
438
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
439
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
440
|
-
def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
|
441
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
442
|
-
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
443
|
-
command.response_class = Google::Apis::IamV1::Empty
|
444
|
-
command.params['name'] = name unless name.nil?
|
445
|
-
command.query['fields'] = fields unless fields.nil?
|
446
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
447
|
-
execute_or_queue_command(command, &block)
|
448
|
-
end
|
449
|
-
|
450
417
|
# Lists ServiceAccountKeys.
|
451
418
|
# @param [String] name
|
452
419
|
# The resource name of the service account in the following format:
|
@@ -563,6 +530,40 @@ module Google
|
|
563
530
|
execute_or_queue_command(command, &block)
|
564
531
|
end
|
565
532
|
|
533
|
+
# Deletes a ServiceAccountKey.
|
534
|
+
# @param [String] name
|
535
|
+
# The resource name of the service account key in the following format:
|
536
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL`/keys/`key``.
|
537
|
+
# Using `-` as a wildcard for the project will infer the project from
|
538
|
+
# the account. The `account` value can be the `email` address or the
|
539
|
+
# `unique_id` of the service account.
|
540
|
+
# @param [String] fields
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
542
|
+
# @param [String] quota_user
|
543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
545
|
+
# @param [Google::Apis::RequestOptions] options
|
546
|
+
# Request-specific options
|
547
|
+
#
|
548
|
+
# @yield [result, err] Result & error if block supplied
|
549
|
+
# @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
|
550
|
+
# @yieldparam err [StandardError] error object if request failed
|
551
|
+
#
|
552
|
+
# @return [Google::Apis::IamV1::Empty]
|
553
|
+
#
|
554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
+
def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
|
558
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
559
|
+
command.response_representation = Google::Apis::IamV1::Empty::Representation
|
560
|
+
command.response_class = Google::Apis::IamV1::Empty
|
561
|
+
command.params['name'] = name unless name.nil?
|
562
|
+
command.query['fields'] = fields unless fields.nil?
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
564
|
+
execute_or_queue_command(command, &block)
|
565
|
+
end
|
566
|
+
|
566
567
|
# Queries roles that can be granted on a particular resource.
|
567
568
|
# A role is grantable if it can be used as the role in a binding for a policy
|
568
569
|
# for that resource.
|