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,6 +22,97 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
+
# A topic resource.
|
26
|
+
class Topic
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The name of the topic. It must have the format
|
30
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
31
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
32
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
33
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
34
|
+
# must not start with `"goog"`.
|
35
|
+
# Corresponds to the JSON property `name`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@name = args[:name] if args.key?(:name)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
50
|
+
# specify access control policies for Cloud Platform resources.
|
51
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
52
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
53
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
54
|
+
# defined by IAM.
|
55
|
+
# **Example**
|
56
|
+
# `
|
57
|
+
# "bindings": [
|
58
|
+
# `
|
59
|
+
# "role": "roles/owner",
|
60
|
+
# "members": [
|
61
|
+
# "user:mike@example.com",
|
62
|
+
# "group:admins@example.com",
|
63
|
+
# "domain:google.com",
|
64
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
65
|
+
# ]
|
66
|
+
# `,
|
67
|
+
# `
|
68
|
+
# "role": "roles/viewer",
|
69
|
+
# "members": ["user:sean@example.com"]
|
70
|
+
# `
|
71
|
+
# ]
|
72
|
+
# `
|
73
|
+
# For a description of IAM and its features, see the
|
74
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
75
|
+
class Policy
|
76
|
+
include Google::Apis::Core::Hashable
|
77
|
+
|
78
|
+
# Version of the `Policy`. The default version is 0.
|
79
|
+
# Corresponds to the JSON property `version`
|
80
|
+
# @return [Fixnum]
|
81
|
+
attr_accessor :version
|
82
|
+
|
83
|
+
# Associates a list of `members` to a `role`.
|
84
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
85
|
+
# `bindings` with no members will result in an error.
|
86
|
+
# Corresponds to the JSON property `bindings`
|
87
|
+
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
88
|
+
attr_accessor :bindings
|
89
|
+
|
90
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
91
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
92
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
93
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
94
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
95
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
96
|
+
# ensure that their change will be applied to the same version of the policy.
|
97
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
98
|
+
# policy is overwritten blindly.
|
99
|
+
# Corresponds to the JSON property `etag`
|
100
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
101
|
+
# @return [String]
|
102
|
+
attr_accessor :etag
|
103
|
+
|
104
|
+
def initialize(**args)
|
105
|
+
update!(**args)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Update properties of this object
|
109
|
+
def update!(**args)
|
110
|
+
@version = args[:version] if args.key?(:version)
|
111
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
112
|
+
@etag = args[:etag] if args.key?(:etag)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
25
116
|
# Request for the ModifyAckDeadline method.
|
26
117
|
class ModifyAckDeadlineRequest
|
27
118
|
include Google::Apis::Core::Hashable
|
@@ -121,6 +212,13 @@ module Google
|
|
121
212
|
class Message
|
122
213
|
include Google::Apis::Core::Hashable
|
123
214
|
|
215
|
+
# The time at which the message was published, populated by the server when
|
216
|
+
# it receives the `Publish` call. It must not be populated by the
|
217
|
+
# publisher in a `Publish` call.
|
218
|
+
# Corresponds to the JSON property `publishTime`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :publish_time
|
221
|
+
|
124
222
|
# The message payload.
|
125
223
|
# Corresponds to the JSON property `data`
|
126
224
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
@@ -140,23 +238,16 @@ module Google
|
|
140
238
|
# @return [String]
|
141
239
|
attr_accessor :message_id
|
142
240
|
|
143
|
-
# The time at which the message was published, populated by the server when
|
144
|
-
# it receives the `Publish` call. It must not be populated by the
|
145
|
-
# publisher in a `Publish` call.
|
146
|
-
# Corresponds to the JSON property `publishTime`
|
147
|
-
# @return [String]
|
148
|
-
attr_accessor :publish_time
|
149
|
-
|
150
241
|
def initialize(**args)
|
151
242
|
update!(**args)
|
152
243
|
end
|
153
244
|
|
154
245
|
# Update properties of this object
|
155
246
|
def update!(**args)
|
247
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
156
248
|
@data = args[:data] if args.key?(:data)
|
157
249
|
@attributes = args[:attributes] if args.key?(:attributes)
|
158
250
|
@message_id = args[:message_id] if args.key?(:message_id)
|
159
|
-
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
160
251
|
end
|
161
252
|
end
|
162
253
|
|
@@ -581,97 +672,6 @@ module Google
|
|
581
672
|
@permissions = args[:permissions] if args.key?(:permissions)
|
582
673
|
end
|
583
674
|
end
|
584
|
-
|
585
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
586
|
-
# specify access control policies for Cloud Platform resources.
|
587
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
588
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
589
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
590
|
-
# defined by IAM.
|
591
|
-
# **Example**
|
592
|
-
# `
|
593
|
-
# "bindings": [
|
594
|
-
# `
|
595
|
-
# "role": "roles/owner",
|
596
|
-
# "members": [
|
597
|
-
# "user:mike@example.com",
|
598
|
-
# "group:admins@example.com",
|
599
|
-
# "domain:google.com",
|
600
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
601
|
-
# ]
|
602
|
-
# `,
|
603
|
-
# `
|
604
|
-
# "role": "roles/viewer",
|
605
|
-
# "members": ["user:sean@example.com"]
|
606
|
-
# `
|
607
|
-
# ]
|
608
|
-
# `
|
609
|
-
# For a description of IAM and its features, see the
|
610
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
611
|
-
class Policy
|
612
|
-
include Google::Apis::Core::Hashable
|
613
|
-
|
614
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
615
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
616
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
617
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
618
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
619
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
620
|
-
# ensure that their change will be applied to the same version of the policy.
|
621
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
622
|
-
# policy is overwritten blindly.
|
623
|
-
# Corresponds to the JSON property `etag`
|
624
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
625
|
-
# @return [String]
|
626
|
-
attr_accessor :etag
|
627
|
-
|
628
|
-
# Version of the `Policy`. The default version is 0.
|
629
|
-
# Corresponds to the JSON property `version`
|
630
|
-
# @return [Fixnum]
|
631
|
-
attr_accessor :version
|
632
|
-
|
633
|
-
# Associates a list of `members` to a `role`.
|
634
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
635
|
-
# `bindings` with no members will result in an error.
|
636
|
-
# Corresponds to the JSON property `bindings`
|
637
|
-
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
638
|
-
attr_accessor :bindings
|
639
|
-
|
640
|
-
def initialize(**args)
|
641
|
-
update!(**args)
|
642
|
-
end
|
643
|
-
|
644
|
-
# Update properties of this object
|
645
|
-
def update!(**args)
|
646
|
-
@etag = args[:etag] if args.key?(:etag)
|
647
|
-
@version = args[:version] if args.key?(:version)
|
648
|
-
@bindings = args[:bindings] if args.key?(:bindings)
|
649
|
-
end
|
650
|
-
end
|
651
|
-
|
652
|
-
# A topic resource.
|
653
|
-
class Topic
|
654
|
-
include Google::Apis::Core::Hashable
|
655
|
-
|
656
|
-
# The name of the topic. It must have the format
|
657
|
-
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
658
|
-
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
659
|
-
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
660
|
-
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
661
|
-
# must not start with `"goog"`.
|
662
|
-
# Corresponds to the JSON property `name`
|
663
|
-
# @return [String]
|
664
|
-
attr_accessor :name
|
665
|
-
|
666
|
-
def initialize(**args)
|
667
|
-
update!(**args)
|
668
|
-
end
|
669
|
-
|
670
|
-
# Update properties of this object
|
671
|
-
def update!(**args)
|
672
|
-
@name = args[:name] if args.key?(:name)
|
673
|
-
end
|
674
|
-
end
|
675
675
|
end
|
676
676
|
end
|
677
677
|
end
|
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
+
class Topic
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Policy
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class ModifyAckDeadlineRequest
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -136,16 +148,21 @@ module Google
|
|
136
148
|
include Google::Apis::Core::JsonObjectSupport
|
137
149
|
end
|
138
150
|
|
139
|
-
class
|
140
|
-
|
141
|
-
|
142
|
-
|
151
|
+
class Topic
|
152
|
+
# @private
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :name, as: 'name'
|
155
|
+
end
|
143
156
|
end
|
144
157
|
|
145
|
-
class
|
146
|
-
|
158
|
+
class Policy
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
property :version, as: 'version'
|
162
|
+
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
147
163
|
|
148
|
-
|
164
|
+
property :etag, :base64 => true, as: 'etag'
|
165
|
+
end
|
149
166
|
end
|
150
167
|
|
151
168
|
class ModifyAckDeadlineRequest
|
@@ -175,10 +192,10 @@ module Google
|
|
175
192
|
class Message
|
176
193
|
# @private
|
177
194
|
class Representation < Google::Apis::Core::JsonRepresentation
|
195
|
+
property :publish_time, as: 'publishTime'
|
178
196
|
property :data, :base64 => true, as: 'data'
|
179
197
|
hash :attributes, as: 'attributes'
|
180
198
|
property :message_id, as: 'messageId'
|
181
|
-
property :publish_time, as: 'publishTime'
|
182
199
|
end
|
183
200
|
end
|
184
201
|
|
@@ -301,23 +318,6 @@ module Google
|
|
301
318
|
collection :permissions, as: 'permissions'
|
302
319
|
end
|
303
320
|
end
|
304
|
-
|
305
|
-
class Policy
|
306
|
-
# @private
|
307
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
-
property :etag, :base64 => true, as: 'etag'
|
309
|
-
property :version, as: 'version'
|
310
|
-
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
311
|
-
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
class Topic
|
316
|
-
# @private
|
317
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
-
property :name, as: 'name'
|
319
|
-
end
|
320
|
-
end
|
321
321
|
end
|
322
322
|
end
|
323
323
|
end
|
@@ -44,18 +44,18 @@ module Google
|
|
44
44
|
|
45
45
|
def initialize
|
46
46
|
super('https://pubsub.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
47
48
|
end
|
48
49
|
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
# than once will not result in an error.
|
50
|
+
# Modifies the `PushConfig` for a specified subscription.
|
51
|
+
# This may be used to change a push subscription to a pull one (signified by
|
52
|
+
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
53
|
+
# attributes of a push subscription. Messages will accumulate for delivery
|
54
|
+
# continuously through the call regardless of changes to the `PushConfig`.
|
55
55
|
# @param [String] subscription
|
56
|
-
# The
|
56
|
+
# The name of the subscription.
|
57
57
|
# Format is `projects/`project`/subscriptions/`sub``.
|
58
|
-
# @param [Google::Apis::PubsubV1::
|
58
|
+
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
59
59
|
# @param [String] fields
|
60
60
|
# Selector specifying which fields to include in a partial response.
|
61
61
|
# @param [String] quota_user
|
@@ -73,10 +73,10 @@ module Google
|
|
73
73
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
74
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
75
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
-
def
|
77
|
-
command = make_simple_command(:post, 'v1/{+subscription}:
|
78
|
-
command.request_representation = Google::Apis::PubsubV1::
|
79
|
-
command.request_object =
|
76
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
|
78
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
|
79
|
+
command.request_object = modify_push_config_request_object
|
80
80
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
81
81
|
command.response_class = Google::Apis::PubsubV1::Empty
|
82
82
|
command.params['subscription'] = subscription unless subscription.nil?
|
@@ -85,15 +85,14 @@ module Google
|
|
85
85
|
execute_or_queue_command(command, &block)
|
86
86
|
end
|
87
87
|
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# subscription
|
88
|
+
# Deletes an existing subscription. All messages retained in the subscription
|
89
|
+
# are immediately dropped. Calls to `Pull` after deletion will return
|
90
|
+
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
91
|
+
# the same name, but the new one has no association with the old
|
92
|
+
# subscription or its topic unless the same topic is specified.
|
93
93
|
# @param [String] subscription
|
94
|
-
# The
|
94
|
+
# The subscription to delete.
|
95
95
|
# Format is `projects/`project`/subscriptions/`sub``.
|
96
|
-
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
97
96
|
# @param [String] fields
|
98
97
|
# Selector specifying which fields to include in a partial response.
|
99
98
|
# @param [String] quota_user
|
@@ -111,10 +110,8 @@ module Google
|
|
111
110
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
111
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
112
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
-
def
|
115
|
-
command = make_simple_command(:
|
116
|
-
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
117
|
-
command.request_object = modify_ack_deadline_request_object
|
113
|
+
def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:delete, 'v1/{+subscription}', options)
|
118
115
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
119
116
|
command.response_class = Google::Apis::PubsubV1::Empty
|
120
117
|
command.params['subscription'] = subscription unless subscription.nil?
|
@@ -123,12 +120,14 @@ module Google
|
|
123
120
|
execute_or_queue_command(command, &block)
|
124
121
|
end
|
125
122
|
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
123
|
+
# Pulls messages from the server. Returns an empty list if there are no
|
124
|
+
# messages available in the backlog. The server may return `UNAVAILABLE` if
|
125
|
+
# there are too many concurrent pull requests pending for the given
|
126
|
+
# subscription.
|
127
|
+
# @param [String] subscription
|
128
|
+
# The subscription from which messages should be pulled.
|
129
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
130
|
+
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
|
132
131
|
# @param [String] fields
|
133
132
|
# Selector specifying which fields to include in a partial response.
|
134
133
|
# @param [String] quota_user
|
@@ -138,28 +137,36 @@ module Google
|
|
138
137
|
# Request-specific options
|
139
138
|
#
|
140
139
|
# @yield [result, err] Result & error if block supplied
|
141
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
140
|
+
# @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object
|
142
141
|
# @yieldparam err [StandardError] error object if request failed
|
143
142
|
#
|
144
|
-
# @return [Google::Apis::PubsubV1::
|
143
|
+
# @return [Google::Apis::PubsubV1::PullResponse]
|
145
144
|
#
|
146
145
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
147
146
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
148
147
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
149
|
-
def
|
150
|
-
command = make_simple_command(:
|
151
|
-
command.
|
152
|
-
command.
|
153
|
-
command.
|
148
|
+
def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
|
150
|
+
command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
|
151
|
+
command.request_object = pull_request_object
|
152
|
+
command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
|
153
|
+
command.response_class = Google::Apis::PubsubV1::PullResponse
|
154
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
154
155
|
command.query['fields'] = fields unless fields.nil?
|
155
156
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
157
|
execute_or_queue_command(command, &block)
|
157
158
|
end
|
158
159
|
|
159
|
-
#
|
160
|
-
# @param [String]
|
161
|
-
# The name of the
|
162
|
-
# Format is `projects/`project
|
160
|
+
# Lists matching subscriptions.
|
161
|
+
# @param [String] project
|
162
|
+
# The name of the cloud project that subscriptions belong to.
|
163
|
+
# Format is `projects/`project``.
|
164
|
+
# @param [Fixnum] page_size
|
165
|
+
# Maximum number of subscriptions to return.
|
166
|
+
# @param [String] page_token
|
167
|
+
# The value returned by the last `ListSubscriptionsResponse`; indicates that
|
168
|
+
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
169
|
+
# system should return the next page of data.
|
163
170
|
# @param [String] fields
|
164
171
|
# Selector specifying which fields to include in a partial response.
|
165
172
|
# @param [String] quota_user
|
@@ -169,34 +176,32 @@ module Google
|
|
169
176
|
# Request-specific options
|
170
177
|
#
|
171
178
|
# @yield [result, err] Result & error if block supplied
|
172
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
179
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
|
173
180
|
# @yieldparam err [StandardError] error object if request failed
|
174
181
|
#
|
175
|
-
# @return [Google::Apis::PubsubV1::
|
182
|
+
# @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
|
176
183
|
#
|
177
184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
-
def
|
181
|
-
command = make_simple_command(:get, 'v1/{+
|
182
|
-
command.response_representation = Google::Apis::PubsubV1::
|
183
|
-
command.response_class = Google::Apis::PubsubV1::
|
184
|
-
command.params['
|
187
|
+
def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
+
command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
|
189
|
+
command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
|
190
|
+
command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
|
191
|
+
command.params['project'] = project unless project.nil?
|
192
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
193
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
185
194
|
command.query['fields'] = fields unless fields.nil?
|
186
195
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
187
196
|
execute_or_queue_command(command, &block)
|
188
197
|
end
|
189
198
|
|
190
|
-
#
|
191
|
-
#
|
192
|
-
# permissions, not a NOT_FOUND error.
|
193
|
-
# Note: This operation is designed to be used for building permission-aware
|
194
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
195
|
-
# may "fail open" without warning.
|
199
|
+
# Sets the access control policy on the specified resource. Replaces any
|
200
|
+
# existing policy.
|
196
201
|
# @param [String] resource
|
197
|
-
# REQUIRED: The resource for which the policy
|
202
|
+
# REQUIRED: The resource for which the policy is being specified.
|
198
203
|
# See the operation documentation for the appropriate value for this field.
|
199
|
-
# @param [Google::Apis::PubsubV1::
|
204
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
200
205
|
# @param [String] fields
|
201
206
|
# Selector specifying which fields to include in a partial response.
|
202
207
|
# @param [String] quota_user
|
@@ -206,35 +211,43 @@ module Google
|
|
206
211
|
# Request-specific options
|
207
212
|
#
|
208
213
|
# @yield [result, err] Result & error if block supplied
|
209
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
214
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
210
215
|
# @yieldparam err [StandardError] error object if request failed
|
211
216
|
#
|
212
|
-
# @return [Google::Apis::PubsubV1::
|
217
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
213
218
|
#
|
214
219
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
215
220
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
216
221
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
217
|
-
def
|
218
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
219
|
-
command.request_representation = Google::Apis::PubsubV1::
|
220
|
-
command.request_object =
|
221
|
-
command.response_representation = Google::Apis::PubsubV1::
|
222
|
-
command.response_class = Google::Apis::PubsubV1::
|
222
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
224
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
225
|
+
command.request_object = set_iam_policy_request_object
|
226
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
227
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
223
228
|
command.params['resource'] = resource unless resource.nil?
|
224
229
|
command.query['fields'] = fields unless fields.nil?
|
225
230
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
226
231
|
execute_or_queue_command(command, &block)
|
227
232
|
end
|
228
233
|
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
234
|
+
# Creates a subscription to a given topic.
|
235
|
+
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
236
|
+
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
237
|
+
# If the name is not provided in the request, the server will assign a random
|
238
|
+
# name for this subscription on the same project as the topic, conforming
|
239
|
+
# to the
|
240
|
+
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
241
|
+
# The generated name is populated in the returned Subscription object.
|
242
|
+
# Note that for REST API requests, you must specify a name in the request.
|
243
|
+
# @param [String] name
|
244
|
+
# The name of the subscription. It must have the format
|
245
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
246
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
247
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
248
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
249
|
+
# in length, and it must not start with `"goog"`.
|
250
|
+
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
238
251
|
# @param [String] fields
|
239
252
|
# Selector specifying which fields to include in a partial response.
|
240
253
|
# @param [String] quota_user
|
@@ -244,34 +257,69 @@ module Google
|
|
244
257
|
# Request-specific options
|
245
258
|
#
|
246
259
|
# @yield [result, err] Result & error if block supplied
|
247
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
260
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
248
261
|
# @yieldparam err [StandardError] error object if request failed
|
249
262
|
#
|
250
|
-
# @return [Google::Apis::PubsubV1::
|
263
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
251
264
|
#
|
252
265
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
253
266
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
254
267
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
255
|
-
def
|
256
|
-
command = make_simple_command(:
|
257
|
-
command.request_representation = Google::Apis::PubsubV1::
|
258
|
-
command.request_object =
|
259
|
-
command.response_representation = Google::Apis::PubsubV1::
|
260
|
-
command.response_class = Google::Apis::PubsubV1::
|
261
|
-
command.params['
|
268
|
+
def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
269
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
270
|
+
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
271
|
+
command.request_object = subscription_object
|
272
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
273
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
274
|
+
command.params['name'] = name unless name.nil?
|
262
275
|
command.query['fields'] = fields unless fields.nil?
|
263
276
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
264
277
|
execute_or_queue_command(command, &block)
|
265
278
|
end
|
266
279
|
|
267
|
-
#
|
268
|
-
#
|
269
|
-
#
|
270
|
-
#
|
271
|
-
#
|
280
|
+
# Gets the access control policy for a resource.
|
281
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
282
|
+
# set.
|
283
|
+
# @param [String] resource
|
284
|
+
# REQUIRED: The resource for which the policy is being requested.
|
285
|
+
# See the operation documentation for the appropriate value for this field.
|
286
|
+
# @param [String] fields
|
287
|
+
# Selector specifying which fields to include in a partial response.
|
288
|
+
# @param [String] quota_user
|
289
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
290
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
291
|
+
# @param [Google::Apis::RequestOptions] options
|
292
|
+
# Request-specific options
|
293
|
+
#
|
294
|
+
# @yield [result, err] Result & error if block supplied
|
295
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
296
|
+
# @yieldparam err [StandardError] error object if request failed
|
297
|
+
#
|
298
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
299
|
+
#
|
300
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
301
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
302
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
303
|
+
def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
304
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
305
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
306
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
307
|
+
command.params['resource'] = resource unless resource.nil?
|
308
|
+
command.query['fields'] = fields unless fields.nil?
|
309
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
310
|
+
execute_or_queue_command(command, &block)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
314
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
315
|
+
# from the subscription.
|
316
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
317
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
318
|
+
# than once will not result in an error.
|
272
319
|
# @param [String] subscription
|
273
|
-
# The subscription
|
320
|
+
# The subscription whose message is being acknowledged.
|
274
321
|
# Format is `projects/`project`/subscriptions/`sub``.
|
322
|
+
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
275
323
|
# @param [String] fields
|
276
324
|
# Selector specifying which fields to include in a partial response.
|
277
325
|
# @param [String] quota_user
|
@@ -289,8 +337,10 @@ module Google
|
|
289
337
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
290
338
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
291
339
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
292
|
-
def
|
293
|
-
command = make_simple_command(:
|
340
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
341
|
+
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
342
|
+
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
343
|
+
command.request_object = acknowledge_request_object
|
294
344
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
295
345
|
command.response_class = Google::Apis::PubsubV1::Empty
|
296
346
|
command.params['subscription'] = subscription unless subscription.nil?
|
@@ -299,14 +349,15 @@ module Google
|
|
299
349
|
execute_or_queue_command(command, &block)
|
300
350
|
end
|
301
351
|
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
#
|
352
|
+
# Modifies the ack deadline for a specific message. This method is useful
|
353
|
+
# to indicate that more time is needed to process a message by the
|
354
|
+
# subscriber, or to make the message available for redelivery if the
|
355
|
+
# processing was interrupted. Note that this does not modify the
|
356
|
+
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
306
357
|
# @param [String] subscription
|
307
|
-
# The
|
358
|
+
# The name of the subscription.
|
308
359
|
# Format is `projects/`project`/subscriptions/`sub``.
|
309
|
-
# @param [Google::Apis::PubsubV1::
|
360
|
+
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
310
361
|
# @param [String] fields
|
311
362
|
# Selector specifying which fields to include in a partial response.
|
312
363
|
# @param [String] quota_user
|
@@ -316,36 +367,30 @@ module Google
|
|
316
367
|
# Request-specific options
|
317
368
|
#
|
318
369
|
# @yield [result, err] Result & error if block supplied
|
319
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
370
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
320
371
|
# @yieldparam err [StandardError] error object if request failed
|
321
372
|
#
|
322
|
-
# @return [Google::Apis::PubsubV1::
|
373
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
323
374
|
#
|
324
375
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
325
376
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
326
377
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
327
|
-
def
|
328
|
-
command = make_simple_command(:post, 'v1/{+subscription}:
|
329
|
-
command.request_representation = Google::Apis::PubsubV1::
|
330
|
-
command.request_object =
|
331
|
-
command.response_representation = Google::Apis::PubsubV1::
|
332
|
-
command.response_class = Google::Apis::PubsubV1::
|
378
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
379
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
|
380
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
381
|
+
command.request_object = modify_ack_deadline_request_object
|
382
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
383
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
333
384
|
command.params['subscription'] = subscription unless subscription.nil?
|
334
385
|
command.query['fields'] = fields unless fields.nil?
|
335
386
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
387
|
execute_or_queue_command(command, &block)
|
337
388
|
end
|
338
389
|
|
339
|
-
#
|
340
|
-
# @param [String]
|
341
|
-
# The name of the
|
342
|
-
# Format is `projects/`project``.
|
343
|
-
# @param [String] page_token
|
344
|
-
# The value returned by the last `ListSubscriptionsResponse`; indicates that
|
345
|
-
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
346
|
-
# system should return the next page of data.
|
347
|
-
# @param [Fixnum] page_size
|
348
|
-
# Maximum number of subscriptions to return.
|
390
|
+
# Gets the configuration details of a subscription.
|
391
|
+
# @param [String] subscription
|
392
|
+
# The name of the subscription to get.
|
393
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
349
394
|
# @param [String] fields
|
350
395
|
# Selector specifying which fields to include in a partial response.
|
351
396
|
# @param [String] quota_user
|
@@ -355,43 +400,34 @@ module Google
|
|
355
400
|
# Request-specific options
|
356
401
|
#
|
357
402
|
# @yield [result, err] Result & error if block supplied
|
358
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
403
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
359
404
|
# @yieldparam err [StandardError] error object if request failed
|
360
405
|
#
|
361
|
-
# @return [Google::Apis::PubsubV1::
|
406
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
362
407
|
#
|
363
408
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
364
409
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
365
410
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
366
|
-
def
|
367
|
-
command = make_simple_command(:get, 'v1/{+
|
368
|
-
command.response_representation = Google::Apis::PubsubV1::
|
369
|
-
command.response_class = Google::Apis::PubsubV1::
|
370
|
-
command.params['
|
371
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
372
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
411
|
+
def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
412
|
+
command = make_simple_command(:get, 'v1/{+subscription}', options)
|
413
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
414
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
415
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
373
416
|
command.query['fields'] = fields unless fields.nil?
|
374
417
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
375
418
|
execute_or_queue_command(command, &block)
|
376
419
|
end
|
377
420
|
|
378
|
-
#
|
379
|
-
# If the
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
384
|
-
# [resource
|
385
|
-
# The
|
386
|
-
#
|
387
|
-
# @param [
|
388
|
-
# The name of the subscription. It must have the format
|
389
|
-
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
390
|
-
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
391
|
-
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
392
|
-
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
393
|
-
# in length, and it must not start with `"goog"`.
|
394
|
-
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
421
|
+
# Returns permissions that a caller has on the specified resource.
|
422
|
+
# If the resource does not exist, this will return an empty set of
|
423
|
+
# permissions, not a NOT_FOUND error.
|
424
|
+
# Note: This operation is designed to be used for building permission-aware
|
425
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
426
|
+
# may "fail open" without warning.
|
427
|
+
# @param [String] resource
|
428
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
429
|
+
# See the operation documentation for the appropriate value for this field.
|
430
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
395
431
|
# @param [String] fields
|
396
432
|
# Selector specifying which fields to include in a partial response.
|
397
433
|
# @param [String] quota_user
|
@@ -401,32 +437,32 @@ module Google
|
|
401
437
|
# Request-specific options
|
402
438
|
#
|
403
439
|
# @yield [result, err] Result & error if block supplied
|
404
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
440
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
405
441
|
# @yieldparam err [StandardError] error object if request failed
|
406
442
|
#
|
407
|
-
# @return [Google::Apis::PubsubV1::
|
443
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
408
444
|
#
|
409
445
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
410
446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
411
447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
412
|
-
def
|
413
|
-
command = make_simple_command(:
|
414
|
-
command.request_representation = Google::Apis::PubsubV1::
|
415
|
-
command.request_object =
|
416
|
-
command.response_representation = Google::Apis::PubsubV1::
|
417
|
-
command.response_class = Google::Apis::PubsubV1::
|
418
|
-
command.params['
|
448
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
449
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
450
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
451
|
+
command.request_object = test_iam_permissions_request_object
|
452
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
453
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
454
|
+
command.params['resource'] = resource unless resource.nil?
|
419
455
|
command.query['fields'] = fields unless fields.nil?
|
420
456
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
421
457
|
execute_or_queue_command(command, &block)
|
422
458
|
end
|
423
459
|
|
424
|
-
#
|
425
|
-
#
|
460
|
+
# Gets the access control policy for a resource.
|
461
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
462
|
+
# set.
|
426
463
|
# @param [String] resource
|
427
|
-
# REQUIRED: The resource for which the policy is being
|
464
|
+
# REQUIRED: The resource for which the policy is being requested.
|
428
465
|
# See the operation documentation for the appropriate value for this field.
|
429
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
430
466
|
# @param [String] fields
|
431
467
|
# Selector specifying which fields to include in a partial response.
|
432
468
|
# @param [String] quota_user
|
@@ -444,10 +480,8 @@ module Google
|
|
444
480
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
445
481
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
446
482
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
447
|
-
def
|
448
|
-
command = make_simple_command(:
|
449
|
-
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
450
|
-
command.request_object = set_iam_policy_request_object
|
483
|
+
def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
451
485
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
452
486
|
command.response_class = Google::Apis::PubsubV1::Policy
|
453
487
|
command.params['resource'] = resource unless resource.nil?
|
@@ -553,7 +587,7 @@ module Google
|
|
553
587
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
554
588
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
555
589
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
556
|
-
def
|
590
|
+
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
557
591
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
558
592
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
559
593
|
command.response_class = Google::Apis::PubsubV1::Policy
|
@@ -563,6 +597,37 @@ module Google
|
|
563
597
|
execute_or_queue_command(command, &block)
|
564
598
|
end
|
565
599
|
|
600
|
+
# Gets the configuration of a topic.
|
601
|
+
# @param [String] topic
|
602
|
+
# The name of the topic to get.
|
603
|
+
# Format is `projects/`project`/topics/`topic``.
|
604
|
+
# @param [String] fields
|
605
|
+
# Selector specifying which fields to include in a partial response.
|
606
|
+
# @param [String] quota_user
|
607
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
608
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
609
|
+
# @param [Google::Apis::RequestOptions] options
|
610
|
+
# Request-specific options
|
611
|
+
#
|
612
|
+
# @yield [result, err] Result & error if block supplied
|
613
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
614
|
+
# @yieldparam err [StandardError] error object if request failed
|
615
|
+
#
|
616
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
617
|
+
#
|
618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
621
|
+
def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
622
|
+
command = make_simple_command(:get, 'v1/{+topic}', options)
|
623
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
624
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
625
|
+
command.params['topic'] = topic unless topic.nil?
|
626
|
+
command.query['fields'] = fields unless fields.nil?
|
627
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
628
|
+
execute_or_queue_command(command, &block)
|
629
|
+
end
|
630
|
+
|
566
631
|
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
567
632
|
# does not exist. The message payload must not be empty; it must contain
|
568
633
|
# either a non-empty data field, or at least one attribute.
|
@@ -712,44 +777,6 @@ module Google
|
|
712
777
|
execute_or_queue_command(command, &block)
|
713
778
|
end
|
714
779
|
|
715
|
-
# Creates the given topic with the given name.
|
716
|
-
# @param [String] name
|
717
|
-
# The name of the topic. It must have the format
|
718
|
-
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
719
|
-
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
720
|
-
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
721
|
-
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
722
|
-
# must not start with `"goog"`.
|
723
|
-
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
724
|
-
# @param [String] fields
|
725
|
-
# Selector specifying which fields to include in a partial response.
|
726
|
-
# @param [String] quota_user
|
727
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
728
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
729
|
-
# @param [Google::Apis::RequestOptions] options
|
730
|
-
# Request-specific options
|
731
|
-
#
|
732
|
-
# @yield [result, err] Result & error if block supplied
|
733
|
-
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
734
|
-
# @yieldparam err [StandardError] error object if request failed
|
735
|
-
#
|
736
|
-
# @return [Google::Apis::PubsubV1::Topic]
|
737
|
-
#
|
738
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
-
def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
742
|
-
command = make_simple_command(:put, 'v1/{+name}', options)
|
743
|
-
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
744
|
-
command.request_object = topic_object
|
745
|
-
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
746
|
-
command.response_class = Google::Apis::PubsubV1::Topic
|
747
|
-
command.params['name'] = name unless name.nil?
|
748
|
-
command.query['fields'] = fields unless fields.nil?
|
749
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
-
execute_or_queue_command(command, &block)
|
751
|
-
end
|
752
|
-
|
753
780
|
# Sets the access control policy on the specified resource. Replaces any
|
754
781
|
# existing policy.
|
755
782
|
# @param [String] resource
|
@@ -785,43 +812,15 @@ module Google
|
|
785
812
|
execute_or_queue_command(command, &block)
|
786
813
|
end
|
787
814
|
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
#
|
795
|
-
#
|
796
|
-
# @param [
|
797
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
-
# @param [Google::Apis::RequestOptions] options
|
800
|
-
# Request-specific options
|
801
|
-
#
|
802
|
-
# @yield [result, err] Result & error if block supplied
|
803
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
804
|
-
# @yieldparam err [StandardError] error object if request failed
|
805
|
-
#
|
806
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
807
|
-
#
|
808
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
-
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
812
|
-
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
813
|
-
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
814
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
815
|
-
command.params['resource'] = resource unless resource.nil?
|
816
|
-
command.query['fields'] = fields unless fields.nil?
|
817
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
818
|
-
execute_or_queue_command(command, &block)
|
819
|
-
end
|
820
|
-
|
821
|
-
# Gets the configuration of a topic.
|
822
|
-
# @param [String] topic
|
823
|
-
# The name of the topic to get.
|
824
|
-
# Format is `projects/`project`/topics/`topic``.
|
815
|
+
# Creates the given topic with the given name.
|
816
|
+
# @param [String] name
|
817
|
+
# The name of the topic. It must have the format
|
818
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
819
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
820
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
821
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
822
|
+
# must not start with `"goog"`.
|
823
|
+
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
825
824
|
# @param [String] fields
|
826
825
|
# Selector specifying which fields to include in a partial response.
|
827
826
|
# @param [String] quota_user
|
@@ -839,11 +838,13 @@ module Google
|
|
839
838
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
840
839
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
841
840
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
842
|
-
def
|
843
|
-
command = make_simple_command(:
|
841
|
+
def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
842
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
843
|
+
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
844
|
+
command.request_object = topic_object
|
844
845
|
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
845
846
|
command.response_class = Google::Apis::PubsubV1::Topic
|
846
|
-
command.params['
|
847
|
+
command.params['name'] = name unless name.nil?
|
847
848
|
command.query['fields'] = fields unless fields.nil?
|
848
849
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
849
850
|
execute_or_queue_command(command, &block)
|