google-api-client 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module PubsubV1beta2
|
|
24
|
+
|
|
25
|
+
class AcknowledgeRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Binding
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Empty
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class ListSubscriptionsResponse
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class ListTopicSubscriptionsResponse
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class ListTopicsResponse
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class ModifyAckDeadlineRequest
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class ModifyPushConfigRequest
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class Policy
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class PublishRequest
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class PublishResponse
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class PubsubMessage
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class PullRequest
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class PullResponse
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class PushConfig
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
class ReceivedMessage
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
class SetIamPolicyRequest
|
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
|
+
|
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class Subscription
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class TestIamPermissionsRequest
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class TestIamPermissionsResponse
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class Topic
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
class AcknowledgeRequest
|
|
152
|
+
# @private
|
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
154
|
+
collection :ack_ids, as: 'ackIds'
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
class Binding
|
|
159
|
+
# @private
|
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
161
|
+
collection :members, as: 'members'
|
|
162
|
+
property :role, as: 'role'
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class Empty
|
|
167
|
+
# @private
|
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class ListSubscriptionsResponse
|
|
173
|
+
# @private
|
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
175
|
+
property :next_page_token, as: 'nextPageToken'
|
|
176
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1beta2::Subscription, decorator: Google::Apis::PubsubV1beta2::Subscription::Representation
|
|
177
|
+
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class ListTopicSubscriptionsResponse
|
|
182
|
+
# @private
|
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
184
|
+
property :next_page_token, as: 'nextPageToken'
|
|
185
|
+
collection :subscriptions, as: 'subscriptions'
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
class ListTopicsResponse
|
|
190
|
+
# @private
|
|
191
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
192
|
+
property :next_page_token, as: 'nextPageToken'
|
|
193
|
+
collection :topics, as: 'topics', class: Google::Apis::PubsubV1beta2::Topic, decorator: Google::Apis::PubsubV1beta2::Topic::Representation
|
|
194
|
+
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
class ModifyAckDeadlineRequest
|
|
199
|
+
# @private
|
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
201
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
202
|
+
property :ack_id, as: 'ackId'
|
|
203
|
+
collection :ack_ids, as: 'ackIds'
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class ModifyPushConfigRequest
|
|
208
|
+
# @private
|
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
210
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1beta2::PushConfig, decorator: Google::Apis::PubsubV1beta2::PushConfig::Representation
|
|
211
|
+
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
class Policy
|
|
216
|
+
# @private
|
|
217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
218
|
+
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1beta2::Binding, decorator: Google::Apis::PubsubV1beta2::Binding::Representation
|
|
219
|
+
|
|
220
|
+
property :etag, :base64 => true, as: 'etag'
|
|
221
|
+
property :version, as: 'version'
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
class PublishRequest
|
|
226
|
+
# @private
|
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
228
|
+
collection :messages, as: 'messages', class: Google::Apis::PubsubV1beta2::PubsubMessage, decorator: Google::Apis::PubsubV1beta2::PubsubMessage::Representation
|
|
229
|
+
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
class PublishResponse
|
|
234
|
+
# @private
|
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
236
|
+
collection :message_ids, as: 'messageIds'
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
class PubsubMessage
|
|
241
|
+
# @private
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
243
|
+
hash :attributes, as: 'attributes'
|
|
244
|
+
property :data, :base64 => true, as: 'data'
|
|
245
|
+
property :message_id, as: 'messageId'
|
|
246
|
+
property :publish_time, as: 'publishTime'
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
class PullRequest
|
|
251
|
+
# @private
|
|
252
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
253
|
+
property :max_messages, as: 'maxMessages'
|
|
254
|
+
property :return_immediately, as: 'returnImmediately'
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class PullResponse
|
|
259
|
+
# @private
|
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
261
|
+
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1beta2::ReceivedMessage, decorator: Google::Apis::PubsubV1beta2::ReceivedMessage::Representation
|
|
262
|
+
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
class PushConfig
|
|
267
|
+
# @private
|
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
269
|
+
hash :attributes, as: 'attributes'
|
|
270
|
+
property :push_endpoint, as: 'pushEndpoint'
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
class ReceivedMessage
|
|
275
|
+
# @private
|
|
276
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
277
|
+
property :ack_id, as: 'ackId'
|
|
278
|
+
property :message, as: 'message', class: Google::Apis::PubsubV1beta2::PubsubMessage, decorator: Google::Apis::PubsubV1beta2::PubsubMessage::Representation
|
|
279
|
+
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
class SetIamPolicyRequest
|
|
284
|
+
# @private
|
|
285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
286
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1beta2::Policy, decorator: Google::Apis::PubsubV1beta2::Policy::Representation
|
|
287
|
+
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
class Subscription
|
|
292
|
+
# @private
|
|
293
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
294
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
295
|
+
property :name, as: 'name'
|
|
296
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1beta2::PushConfig, decorator: Google::Apis::PubsubV1beta2::PushConfig::Representation
|
|
297
|
+
|
|
298
|
+
property :topic, as: 'topic'
|
|
299
|
+
end
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
class TestIamPermissionsRequest
|
|
303
|
+
# @private
|
|
304
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
305
|
+
collection :permissions, as: 'permissions'
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
class TestIamPermissionsResponse
|
|
310
|
+
# @private
|
|
311
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
312
|
+
collection :permissions, as: 'permissions'
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
class Topic
|
|
317
|
+
# @private
|
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
319
|
+
property :name, as: 'name'
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module PubsubV1beta2
|
|
23
|
+
# Google Cloud Pub/Sub API
|
|
24
|
+
#
|
|
25
|
+
# Provides reliable, many-to-many, asynchronous messaging between applications.
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/pubsub_v1beta2'
|
|
29
|
+
#
|
|
30
|
+
# Pubsub = Google::Apis::PubsubV1beta2 # Alias the module
|
|
31
|
+
# service = Pubsub::PubsubService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://cloud.google.com/pubsub/docs
|
|
34
|
+
class PubsubService < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
|
+
def initialize
|
|
46
|
+
super('https://pubsub.googleapis.com/', '')
|
|
47
|
+
@batch_path = 'batch'
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
|
51
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
|
52
|
+
# from the subscription.
|
|
53
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
|
54
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
|
55
|
+
# than once will not result in an error.
|
|
56
|
+
# @param [String] subscription
|
|
57
|
+
# The subscription whose message is being acknowledged.
|
|
58
|
+
# @param [Google::Apis::PubsubV1beta2::AcknowledgeRequest] acknowledge_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Empty] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::PubsubV1beta2::Empty]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'v1beta2/{+subscription}:acknowledge', options)
|
|
78
|
+
command.request_representation = Google::Apis::PubsubV1beta2::AcknowledgeRequest::Representation
|
|
79
|
+
command.request_object = acknowledge_request_object
|
|
80
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
|
|
81
|
+
command.response_class = Google::Apis::PubsubV1beta2::Empty
|
|
82
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Creates a subscription to a given topic.
|
|
89
|
+
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
90
|
+
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
91
|
+
# If the name is not provided in the request, the server will assign a random
|
|
92
|
+
# name for this subscription on the same project as the topic. Note that
|
|
93
|
+
# for REST API requests, you must specify a name.
|
|
94
|
+
# @param [String] name
|
|
95
|
+
# The name of the subscription. It must have the format
|
|
96
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
|
97
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
|
98
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
|
99
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
|
100
|
+
# in length, and it must not start with `"goog"`.
|
|
101
|
+
# @param [Google::Apis::PubsubV1beta2::Subscription] subscription_object
|
|
102
|
+
# @param [String] fields
|
|
103
|
+
# Selector specifying which fields to include in a partial response.
|
|
104
|
+
# @param [String] quota_user
|
|
105
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
106
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
107
|
+
# @param [Google::Apis::RequestOptions] options
|
|
108
|
+
# Request-specific options
|
|
109
|
+
#
|
|
110
|
+
# @yield [result, err] Result & error if block supplied
|
|
111
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Subscription] parsed result object
|
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
113
|
+
#
|
|
114
|
+
# @return [Google::Apis::PubsubV1beta2::Subscription]
|
|
115
|
+
#
|
|
116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
119
|
+
def create_project_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
120
|
+
command = make_simple_command(:put, 'v1beta2/{+name}', options)
|
|
121
|
+
command.request_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
|
|
122
|
+
command.request_object = subscription_object
|
|
123
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
|
|
124
|
+
command.response_class = Google::Apis::PubsubV1beta2::Subscription
|
|
125
|
+
command.params['name'] = name unless name.nil?
|
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
|
127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
128
|
+
execute_or_queue_command(command, &block)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Deletes an existing subscription. All pending messages in the subscription
|
|
132
|
+
# are immediately dropped. Calls to `Pull` after deletion will return
|
|
133
|
+
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
|
134
|
+
# the same name, but the new one has no association with the old
|
|
135
|
+
# subscription, or its topic unless the same topic is specified.
|
|
136
|
+
# @param [String] subscription
|
|
137
|
+
# The subscription to delete.
|
|
138
|
+
# @param [String] fields
|
|
139
|
+
# Selector specifying which fields to include in a partial response.
|
|
140
|
+
# @param [String] quota_user
|
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
|
144
|
+
# Request-specific options
|
|
145
|
+
#
|
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
|
147
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Empty] parsed result object
|
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
149
|
+
#
|
|
150
|
+
# @return [Google::Apis::PubsubV1beta2::Empty]
|
|
151
|
+
#
|
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
|
+
def delete_project_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
156
|
+
command = make_simple_command(:delete, 'v1beta2/{+subscription}', options)
|
|
157
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
|
|
158
|
+
command.response_class = Google::Apis::PubsubV1beta2::Empty
|
|
159
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
160
|
+
command.query['fields'] = fields unless fields.nil?
|
|
161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
162
|
+
execute_or_queue_command(command, &block)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Gets the configuration details of a subscription.
|
|
166
|
+
# @param [String] subscription
|
|
167
|
+
# The name of the subscription to get.
|
|
168
|
+
# @param [String] fields
|
|
169
|
+
# Selector specifying which fields to include in a partial response.
|
|
170
|
+
# @param [String] quota_user
|
|
171
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
172
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
173
|
+
# @param [Google::Apis::RequestOptions] options
|
|
174
|
+
# Request-specific options
|
|
175
|
+
#
|
|
176
|
+
# @yield [result, err] Result & error if block supplied
|
|
177
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Subscription] parsed result object
|
|
178
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
179
|
+
#
|
|
180
|
+
# @return [Google::Apis::PubsubV1beta2::Subscription]
|
|
181
|
+
#
|
|
182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
185
|
+
def get_project_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
186
|
+
command = make_simple_command(:get, 'v1beta2/{+subscription}', options)
|
|
187
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
|
|
188
|
+
command.response_class = Google::Apis::PubsubV1beta2::Subscription
|
|
189
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
190
|
+
command.query['fields'] = fields unless fields.nil?
|
|
191
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
192
|
+
execute_or_queue_command(command, &block)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Gets the access control policy for a resource.
|
|
196
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
197
|
+
# set.
|
|
198
|
+
# @param [String] resource
|
|
199
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
200
|
+
# See the operation documentation for the appropriate value for this field.
|
|
201
|
+
# @param [String] fields
|
|
202
|
+
# Selector specifying which fields to include in a partial response.
|
|
203
|
+
# @param [String] quota_user
|
|
204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
206
|
+
# @param [Google::Apis::RequestOptions] options
|
|
207
|
+
# Request-specific options
|
|
208
|
+
#
|
|
209
|
+
# @yield [result, err] Result & error if block supplied
|
|
210
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Policy] parsed result object
|
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
212
|
+
#
|
|
213
|
+
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
214
|
+
#
|
|
215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
218
|
+
def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
219
|
+
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
|
220
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
|
221
|
+
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
|
222
|
+
command.params['resource'] = resource unless resource.nil?
|
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
225
|
+
execute_or_queue_command(command, &block)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Lists matching subscriptions.
|
|
229
|
+
# @param [String] project
|
|
230
|
+
# The name of the cloud project that subscriptions belong to.
|
|
231
|
+
# @param [Fixnum] page_size
|
|
232
|
+
# Maximum number of subscriptions to return.
|
|
233
|
+
# @param [String] page_token
|
|
234
|
+
# The value returned by the last `ListSubscriptionsResponse`; indicates that
|
|
235
|
+
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
|
236
|
+
# system should return the next page of data.
|
|
237
|
+
# @param [String] fields
|
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
|
239
|
+
# @param [String] quota_user
|
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
|
243
|
+
# Request-specific options
|
|
244
|
+
#
|
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
|
246
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::ListSubscriptionsResponse] parsed result object
|
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
248
|
+
#
|
|
249
|
+
# @return [Google::Apis::PubsubV1beta2::ListSubscriptionsResponse]
|
|
250
|
+
#
|
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
254
|
+
def list_project_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
255
|
+
command = make_simple_command(:get, 'v1beta2/{+project}/subscriptions', options)
|
|
256
|
+
command.response_representation = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse::Representation
|
|
257
|
+
command.response_class = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse
|
|
258
|
+
command.params['project'] = project unless project.nil?
|
|
259
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
260
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
263
|
+
execute_or_queue_command(command, &block)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Modifies the ack deadline for a specific message. This method is useful
|
|
267
|
+
# to indicate that more time is needed to process a message by the
|
|
268
|
+
# subscriber, or to make the message available for redelivery if the
|
|
269
|
+
# processing was interrupted. Note that this does not modify the
|
|
270
|
+
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
|
271
|
+
# @param [String] subscription
|
|
272
|
+
# The name of the subscription.
|
|
273
|
+
# @param [Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
|
274
|
+
# @param [String] fields
|
|
275
|
+
# Selector specifying which fields to include in a partial response.
|
|
276
|
+
# @param [String] quota_user
|
|
277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
279
|
+
# @param [Google::Apis::RequestOptions] options
|
|
280
|
+
# Request-specific options
|
|
281
|
+
#
|
|
282
|
+
# @yield [result, err] Result & error if block supplied
|
|
283
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Empty] parsed result object
|
|
284
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
285
|
+
#
|
|
286
|
+
# @return [Google::Apis::PubsubV1beta2::Empty]
|
|
287
|
+
#
|
|
288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
291
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
292
|
+
command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyAckDeadline', options)
|
|
293
|
+
command.request_representation = Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest::Representation
|
|
294
|
+
command.request_object = modify_ack_deadline_request_object
|
|
295
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
|
|
296
|
+
command.response_class = Google::Apis::PubsubV1beta2::Empty
|
|
297
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
298
|
+
command.query['fields'] = fields unless fields.nil?
|
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
300
|
+
execute_or_queue_command(command, &block)
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# Modifies the `PushConfig` for a specified subscription.
|
|
304
|
+
# This may be used to change a push subscription to a pull one (signified by
|
|
305
|
+
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
|
306
|
+
# attributes of a push subscription. Messages will accumulate for delivery
|
|
307
|
+
# continuously through the call regardless of changes to the `PushConfig`.
|
|
308
|
+
# @param [String] subscription
|
|
309
|
+
# The name of the subscription.
|
|
310
|
+
# @param [Google::Apis::PubsubV1beta2::ModifyPushConfigRequest] modify_push_config_request_object
|
|
311
|
+
# @param [String] fields
|
|
312
|
+
# Selector specifying which fields to include in a partial response.
|
|
313
|
+
# @param [String] quota_user
|
|
314
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
315
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
316
|
+
# @param [Google::Apis::RequestOptions] options
|
|
317
|
+
# Request-specific options
|
|
318
|
+
#
|
|
319
|
+
# @yield [result, err] Result & error if block supplied
|
|
320
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Empty] parsed result object
|
|
321
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
322
|
+
#
|
|
323
|
+
# @return [Google::Apis::PubsubV1beta2::Empty]
|
|
324
|
+
#
|
|
325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
328
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
329
|
+
command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyPushConfig', options)
|
|
330
|
+
command.request_representation = Google::Apis::PubsubV1beta2::ModifyPushConfigRequest::Representation
|
|
331
|
+
command.request_object = modify_push_config_request_object
|
|
332
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
|
|
333
|
+
command.response_class = Google::Apis::PubsubV1beta2::Empty
|
|
334
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
335
|
+
command.query['fields'] = fields unless fields.nil?
|
|
336
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
337
|
+
execute_or_queue_command(command, &block)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Pulls messages from the server. Returns an empty list if there are no
|
|
341
|
+
# messages available in the backlog. The server may return `UNAVAILABLE` if
|
|
342
|
+
# there are too many concurrent pull requests pending for the given
|
|
343
|
+
# subscription.
|
|
344
|
+
# @param [String] subscription
|
|
345
|
+
# The subscription from which messages should be pulled.
|
|
346
|
+
# @param [Google::Apis::PubsubV1beta2::PullRequest] pull_request_object
|
|
347
|
+
# @param [String] fields
|
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
|
349
|
+
# @param [String] quota_user
|
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
|
353
|
+
# Request-specific options
|
|
354
|
+
#
|
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
|
356
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::PullResponse] parsed result object
|
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
358
|
+
#
|
|
359
|
+
# @return [Google::Apis::PubsubV1beta2::PullResponse]
|
|
360
|
+
#
|
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
364
|
+
def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
365
|
+
command = make_simple_command(:post, 'v1beta2/{+subscription}:pull', options)
|
|
366
|
+
command.request_representation = Google::Apis::PubsubV1beta2::PullRequest::Representation
|
|
367
|
+
command.request_object = pull_request_object
|
|
368
|
+
command.response_representation = Google::Apis::PubsubV1beta2::PullResponse::Representation
|
|
369
|
+
command.response_class = Google::Apis::PubsubV1beta2::PullResponse
|
|
370
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
371
|
+
command.query['fields'] = fields unless fields.nil?
|
|
372
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
373
|
+
execute_or_queue_command(command, &block)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
377
|
+
# existing policy.
|
|
378
|
+
# @param [String] resource
|
|
379
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
380
|
+
# See the operation documentation for the appropriate value for this field.
|
|
381
|
+
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
|
382
|
+
# @param [String] fields
|
|
383
|
+
# Selector specifying which fields to include in a partial response.
|
|
384
|
+
# @param [String] quota_user
|
|
385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
387
|
+
# @param [Google::Apis::RequestOptions] options
|
|
388
|
+
# Request-specific options
|
|
389
|
+
#
|
|
390
|
+
# @yield [result, err] Result & error if block supplied
|
|
391
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Policy] parsed result object
|
|
392
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
393
|
+
#
|
|
394
|
+
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
395
|
+
#
|
|
396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
399
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
400
|
+
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
|
|
401
|
+
command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation
|
|
402
|
+
command.request_object = set_iam_policy_request_object
|
|
403
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
|
404
|
+
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
|
405
|
+
command.params['resource'] = resource unless resource.nil?
|
|
406
|
+
command.query['fields'] = fields unless fields.nil?
|
|
407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
408
|
+
execute_or_queue_command(command, &block)
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Returns permissions that a caller has on the specified resource.
|
|
412
|
+
# If the resource does not exist, this will return an empty set of
|
|
413
|
+
# permissions, not a NOT_FOUND error.
|
|
414
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
415
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
416
|
+
# may "fail open" without warning.
|
|
417
|
+
# @param [String] resource
|
|
418
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
419
|
+
# See the operation documentation for the appropriate value for this field.
|
|
420
|
+
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
421
|
+
# @param [String] fields
|
|
422
|
+
# Selector specifying which fields to include in a partial response.
|
|
423
|
+
# @param [String] quota_user
|
|
424
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
425
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
426
|
+
# @param [Google::Apis::RequestOptions] options
|
|
427
|
+
# Request-specific options
|
|
428
|
+
#
|
|
429
|
+
# @yield [result, err] Result & error if block supplied
|
|
430
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::TestIamPermissionsResponse] parsed result object
|
|
431
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
432
|
+
#
|
|
433
|
+
# @return [Google::Apis::PubsubV1beta2::TestIamPermissionsResponse]
|
|
434
|
+
#
|
|
435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
438
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
439
|
+
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
|
|
440
|
+
command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation
|
|
441
|
+
command.request_object = test_iam_permissions_request_object
|
|
442
|
+
command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation
|
|
443
|
+
command.response_class = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse
|
|
444
|
+
command.params['resource'] = resource unless resource.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
|
+
# Creates the given topic with the given name.
|
|
451
|
+
# @param [String] name
|
|
452
|
+
# The name of the topic. It must have the format
|
|
453
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
|
454
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
|
455
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
|
456
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
|
457
|
+
# must not start with `"goog"`.
|
|
458
|
+
# @param [Google::Apis::PubsubV1beta2::Topic] topic_object
|
|
459
|
+
# @param [String] fields
|
|
460
|
+
# Selector specifying which fields to include in a partial response.
|
|
461
|
+
# @param [String] quota_user
|
|
462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
464
|
+
# @param [Google::Apis::RequestOptions] options
|
|
465
|
+
# Request-specific options
|
|
466
|
+
#
|
|
467
|
+
# @yield [result, err] Result & error if block supplied
|
|
468
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Topic] parsed result object
|
|
469
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
470
|
+
#
|
|
471
|
+
# @return [Google::Apis::PubsubV1beta2::Topic]
|
|
472
|
+
#
|
|
473
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
474
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
475
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
476
|
+
def create_project_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
477
|
+
command = make_simple_command(:put, 'v1beta2/{+name}', options)
|
|
478
|
+
command.request_representation = Google::Apis::PubsubV1beta2::Topic::Representation
|
|
479
|
+
command.request_object = topic_object
|
|
480
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation
|
|
481
|
+
command.response_class = Google::Apis::PubsubV1beta2::Topic
|
|
482
|
+
command.params['name'] = name unless name.nil?
|
|
483
|
+
command.query['fields'] = fields unless fields.nil?
|
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
485
|
+
execute_or_queue_command(command, &block)
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
|
489
|
+
# does not exist. After a topic is deleted, a new topic may be created with
|
|
490
|
+
# the same name; this is an entirely new topic with none of the old
|
|
491
|
+
# configuration or subscriptions. Existing subscriptions to this topic are
|
|
492
|
+
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
|
493
|
+
# @param [String] topic
|
|
494
|
+
# Name of the topic to delete.
|
|
495
|
+
# @param [String] fields
|
|
496
|
+
# Selector specifying which fields to include in a partial response.
|
|
497
|
+
# @param [String] quota_user
|
|
498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
500
|
+
# @param [Google::Apis::RequestOptions] options
|
|
501
|
+
# Request-specific options
|
|
502
|
+
#
|
|
503
|
+
# @yield [result, err] Result & error if block supplied
|
|
504
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Empty] parsed result object
|
|
505
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
506
|
+
#
|
|
507
|
+
# @return [Google::Apis::PubsubV1beta2::Empty]
|
|
508
|
+
#
|
|
509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
|
+
def delete_project_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
513
|
+
command = make_simple_command(:delete, 'v1beta2/{+topic}', options)
|
|
514
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
|
|
515
|
+
command.response_class = Google::Apis::PubsubV1beta2::Empty
|
|
516
|
+
command.params['topic'] = topic unless topic.nil?
|
|
517
|
+
command.query['fields'] = fields unless fields.nil?
|
|
518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
519
|
+
execute_or_queue_command(command, &block)
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# Gets the configuration of a topic.
|
|
523
|
+
# @param [String] topic
|
|
524
|
+
# The name of the topic to get.
|
|
525
|
+
# @param [String] fields
|
|
526
|
+
# Selector specifying which fields to include in a partial response.
|
|
527
|
+
# @param [String] quota_user
|
|
528
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
529
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
530
|
+
# @param [Google::Apis::RequestOptions] options
|
|
531
|
+
# Request-specific options
|
|
532
|
+
#
|
|
533
|
+
# @yield [result, err] Result & error if block supplied
|
|
534
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Topic] parsed result object
|
|
535
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
536
|
+
#
|
|
537
|
+
# @return [Google::Apis::PubsubV1beta2::Topic]
|
|
538
|
+
#
|
|
539
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
540
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
541
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
542
|
+
def get_project_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
543
|
+
command = make_simple_command(:get, 'v1beta2/{+topic}', options)
|
|
544
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation
|
|
545
|
+
command.response_class = Google::Apis::PubsubV1beta2::Topic
|
|
546
|
+
command.params['topic'] = topic unless topic.nil?
|
|
547
|
+
command.query['fields'] = fields unless fields.nil?
|
|
548
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
549
|
+
execute_or_queue_command(command, &block)
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
# Gets the access control policy for a resource.
|
|
553
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
554
|
+
# set.
|
|
555
|
+
# @param [String] resource
|
|
556
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
557
|
+
# See the operation documentation for the appropriate value for this field.
|
|
558
|
+
# @param [String] fields
|
|
559
|
+
# Selector specifying which fields to include in a partial response.
|
|
560
|
+
# @param [String] quota_user
|
|
561
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
562
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
563
|
+
# @param [Google::Apis::RequestOptions] options
|
|
564
|
+
# Request-specific options
|
|
565
|
+
#
|
|
566
|
+
# @yield [result, err] Result & error if block supplied
|
|
567
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Policy] parsed result object
|
|
568
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
569
|
+
#
|
|
570
|
+
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
571
|
+
#
|
|
572
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
573
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
574
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
575
|
+
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
576
|
+
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
|
|
577
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
|
578
|
+
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
|
579
|
+
command.params['resource'] = resource unless resource.nil?
|
|
580
|
+
command.query['fields'] = fields unless fields.nil?
|
|
581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
582
|
+
execute_or_queue_command(command, &block)
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Lists matching topics.
|
|
586
|
+
# @param [String] project
|
|
587
|
+
# The name of the cloud project that topics belong to.
|
|
588
|
+
# @param [Fixnum] page_size
|
|
589
|
+
# Maximum number of topics to return.
|
|
590
|
+
# @param [String] page_token
|
|
591
|
+
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
|
592
|
+
# a continuation of a prior `ListTopics` call, and that the system should
|
|
593
|
+
# return the next page of data.
|
|
594
|
+
# @param [String] fields
|
|
595
|
+
# Selector specifying which fields to include in a partial response.
|
|
596
|
+
# @param [String] quota_user
|
|
597
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
598
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
599
|
+
# @param [Google::Apis::RequestOptions] options
|
|
600
|
+
# Request-specific options
|
|
601
|
+
#
|
|
602
|
+
# @yield [result, err] Result & error if block supplied
|
|
603
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::ListTopicsResponse] parsed result object
|
|
604
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
605
|
+
#
|
|
606
|
+
# @return [Google::Apis::PubsubV1beta2::ListTopicsResponse]
|
|
607
|
+
#
|
|
608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
|
+
def list_project_topics(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
612
|
+
command = make_simple_command(:get, 'v1beta2/{+project}/topics', options)
|
|
613
|
+
command.response_representation = Google::Apis::PubsubV1beta2::ListTopicsResponse::Representation
|
|
614
|
+
command.response_class = Google::Apis::PubsubV1beta2::ListTopicsResponse
|
|
615
|
+
command.params['project'] = project unless project.nil?
|
|
616
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
617
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
618
|
+
command.query['fields'] = fields unless fields.nil?
|
|
619
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
620
|
+
execute_or_queue_command(command, &block)
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
|
624
|
+
# does not exist. The message payload must not be empty; it must contain
|
|
625
|
+
# either a non-empty data field, or at least one attribute.
|
|
626
|
+
# @param [String] topic
|
|
627
|
+
# The messages in the request will be published on this topic.
|
|
628
|
+
# @param [Google::Apis::PubsubV1beta2::PublishRequest] publish_request_object
|
|
629
|
+
# @param [String] fields
|
|
630
|
+
# Selector specifying which fields to include in a partial response.
|
|
631
|
+
# @param [String] quota_user
|
|
632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
634
|
+
# @param [Google::Apis::RequestOptions] options
|
|
635
|
+
# Request-specific options
|
|
636
|
+
#
|
|
637
|
+
# @yield [result, err] Result & error if block supplied
|
|
638
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::PublishResponse] parsed result object
|
|
639
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
640
|
+
#
|
|
641
|
+
# @return [Google::Apis::PubsubV1beta2::PublishResponse]
|
|
642
|
+
#
|
|
643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
646
|
+
def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
647
|
+
command = make_simple_command(:post, 'v1beta2/{+topic}:publish', options)
|
|
648
|
+
command.request_representation = Google::Apis::PubsubV1beta2::PublishRequest::Representation
|
|
649
|
+
command.request_object = publish_request_object
|
|
650
|
+
command.response_representation = Google::Apis::PubsubV1beta2::PublishResponse::Representation
|
|
651
|
+
command.response_class = Google::Apis::PubsubV1beta2::PublishResponse
|
|
652
|
+
command.params['topic'] = topic unless topic.nil?
|
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
|
654
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
655
|
+
execute_or_queue_command(command, &block)
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
659
|
+
# existing policy.
|
|
660
|
+
# @param [String] resource
|
|
661
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
662
|
+
# See the operation documentation for the appropriate value for this field.
|
|
663
|
+
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
|
664
|
+
# @param [String] fields
|
|
665
|
+
# Selector specifying which fields to include in a partial response.
|
|
666
|
+
# @param [String] quota_user
|
|
667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
669
|
+
# @param [Google::Apis::RequestOptions] options
|
|
670
|
+
# Request-specific options
|
|
671
|
+
#
|
|
672
|
+
# @yield [result, err] Result & error if block supplied
|
|
673
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::Policy] parsed result object
|
|
674
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
675
|
+
#
|
|
676
|
+
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
677
|
+
#
|
|
678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
681
|
+
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
682
|
+
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
|
|
683
|
+
command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation
|
|
684
|
+
command.request_object = set_iam_policy_request_object
|
|
685
|
+
command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
|
|
686
|
+
command.response_class = Google::Apis::PubsubV1beta2::Policy
|
|
687
|
+
command.params['resource'] = resource unless resource.nil?
|
|
688
|
+
command.query['fields'] = fields unless fields.nil?
|
|
689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
690
|
+
execute_or_queue_command(command, &block)
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Returns permissions that a caller has on the specified resource.
|
|
694
|
+
# If the resource does not exist, this will return an empty set of
|
|
695
|
+
# permissions, not a NOT_FOUND error.
|
|
696
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
697
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
698
|
+
# may "fail open" without warning.
|
|
699
|
+
# @param [String] resource
|
|
700
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
701
|
+
# See the operation documentation for the appropriate value for this field.
|
|
702
|
+
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
703
|
+
# @param [String] fields
|
|
704
|
+
# Selector specifying which fields to include in a partial response.
|
|
705
|
+
# @param [String] quota_user
|
|
706
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
707
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
708
|
+
# @param [Google::Apis::RequestOptions] options
|
|
709
|
+
# Request-specific options
|
|
710
|
+
#
|
|
711
|
+
# @yield [result, err] Result & error if block supplied
|
|
712
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::TestIamPermissionsResponse] parsed result object
|
|
713
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
714
|
+
#
|
|
715
|
+
# @return [Google::Apis::PubsubV1beta2::TestIamPermissionsResponse]
|
|
716
|
+
#
|
|
717
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
718
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
719
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
720
|
+
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
721
|
+
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
|
|
722
|
+
command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation
|
|
723
|
+
command.request_object = test_iam_permissions_request_object
|
|
724
|
+
command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation
|
|
725
|
+
command.response_class = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse
|
|
726
|
+
command.params['resource'] = resource unless resource.nil?
|
|
727
|
+
command.query['fields'] = fields unless fields.nil?
|
|
728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
729
|
+
execute_or_queue_command(command, &block)
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# Lists the name of the subscriptions for this topic.
|
|
733
|
+
# @param [String] topic
|
|
734
|
+
# The name of the topic that subscriptions are attached to.
|
|
735
|
+
# @param [Fixnum] page_size
|
|
736
|
+
# Maximum number of subscription names to return.
|
|
737
|
+
# @param [String] page_token
|
|
738
|
+
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates
|
|
739
|
+
# that this is a continuation of a prior `ListTopicSubscriptions` call, and
|
|
740
|
+
# that the system should return the next page of data.
|
|
741
|
+
# @param [String] fields
|
|
742
|
+
# Selector specifying which fields to include in a partial response.
|
|
743
|
+
# @param [String] quota_user
|
|
744
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
745
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
746
|
+
# @param [Google::Apis::RequestOptions] options
|
|
747
|
+
# Request-specific options
|
|
748
|
+
#
|
|
749
|
+
# @yield [result, err] Result & error if block supplied
|
|
750
|
+
# @yieldparam result [Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse] parsed result object
|
|
751
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
752
|
+
#
|
|
753
|
+
# @return [Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse]
|
|
754
|
+
#
|
|
755
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
756
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
757
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
758
|
+
def list_project_topic_subscriptions(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
759
|
+
command = make_simple_command(:get, 'v1beta2/{+topic}/subscriptions', options)
|
|
760
|
+
command.response_representation = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse::Representation
|
|
761
|
+
command.response_class = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse
|
|
762
|
+
command.params['topic'] = topic unless topic.nil?
|
|
763
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
764
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
765
|
+
command.query['fields'] = fields unless fields.nil?
|
|
766
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
767
|
+
execute_or_queue_command(command, &block)
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
protected
|
|
771
|
+
|
|
772
|
+
def apply_command_defaults(command)
|
|
773
|
+
command.query['key'] = key unless key.nil?
|
|
774
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
775
|
+
end
|
|
776
|
+
end
|
|
777
|
+
end
|
|
778
|
+
end
|
|
779
|
+
end
|