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
|
@@ -22,43 +22,43 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module PubsubV1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AcknowledgeRequest
|
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
27
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class Binding
|
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
33
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class Empty
|
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
39
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class ListSubscriptionsResponse
|
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
45
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class ListTopicSubscriptionsResponse
|
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
51
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class ListTopicsResponse
|
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
57
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class ModifyAckDeadlineRequest
|
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
63
|
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -70,43 +70,43 @@ module Google
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
class
|
|
73
|
+
class Policy
|
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
75
|
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class PublishRequest
|
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
81
|
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class PublishResponse
|
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
87
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
class
|
|
91
|
+
class Message
|
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
93
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class PullRequest
|
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
99
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
class
|
|
103
|
+
class PullResponse
|
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
105
|
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
class
|
|
109
|
+
class PushConfig
|
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
111
|
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -118,91 +118,88 @@ module Google
|
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class SetIamPolicyRequest
|
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
123
|
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class
|
|
127
|
+
class Subscription
|
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
129
|
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class
|
|
133
|
+
class TestIamPermissionsRequest
|
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
135
|
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class TestIamPermissionsResponse
|
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
141
|
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class
|
|
145
|
+
class Topic
|
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
147
|
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
class
|
|
151
|
+
class AcknowledgeRequest
|
|
152
152
|
# @private
|
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
154
|
-
collection :
|
|
154
|
+
collection :ack_ids, as: 'ackIds'
|
|
155
155
|
end
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
-
class
|
|
158
|
+
class Binding
|
|
159
159
|
# @private
|
|
160
160
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
161
|
-
|
|
162
|
-
property :
|
|
163
|
-
|
|
164
|
-
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
165
|
-
property :name, as: 'name'
|
|
161
|
+
collection :members, as: 'members'
|
|
162
|
+
property :role, as: 'role'
|
|
166
163
|
end
|
|
167
164
|
end
|
|
168
165
|
|
|
169
|
-
class
|
|
166
|
+
class Empty
|
|
170
167
|
# @private
|
|
171
168
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
172
|
-
collection :permissions, as: 'permissions'
|
|
173
169
|
end
|
|
174
170
|
end
|
|
175
171
|
|
|
176
|
-
class
|
|
172
|
+
class ListSubscriptionsResponse
|
|
177
173
|
# @private
|
|
178
174
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
179
|
-
property :
|
|
180
|
-
|
|
181
|
-
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
|
175
|
+
property :next_page_token, as: 'nextPageToken'
|
|
176
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
|
182
177
|
|
|
183
178
|
end
|
|
184
179
|
end
|
|
185
180
|
|
|
186
|
-
class
|
|
181
|
+
class ListTopicSubscriptionsResponse
|
|
187
182
|
# @private
|
|
188
183
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
189
|
-
property :
|
|
184
|
+
property :next_page_token, as: 'nextPageToken'
|
|
185
|
+
collection :subscriptions, as: 'subscriptions'
|
|
190
186
|
end
|
|
191
187
|
end
|
|
192
188
|
|
|
193
|
-
class
|
|
189
|
+
class ListTopicsResponse
|
|
194
190
|
# @private
|
|
195
191
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
196
|
-
property :
|
|
197
|
-
collection :
|
|
192
|
+
property :next_page_token, as: 'nextPageToken'
|
|
193
|
+
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
|
194
|
+
|
|
198
195
|
end
|
|
199
196
|
end
|
|
200
197
|
|
|
201
|
-
class
|
|
198
|
+
class ModifyAckDeadlineRequest
|
|
202
199
|
# @private
|
|
203
200
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
204
|
-
property :
|
|
205
|
-
|
|
201
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
202
|
+
collection :ack_ids, as: 'ackIds'
|
|
206
203
|
end
|
|
207
204
|
end
|
|
208
205
|
|
|
@@ -214,59 +211,62 @@ module Google
|
|
|
214
211
|
end
|
|
215
212
|
end
|
|
216
213
|
|
|
217
|
-
class
|
|
214
|
+
class Policy
|
|
218
215
|
# @private
|
|
219
216
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
property :
|
|
223
|
-
property :
|
|
217
|
+
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
|
218
|
+
|
|
219
|
+
property :etag, :base64 => true, as: 'etag'
|
|
220
|
+
property :version, as: 'version'
|
|
224
221
|
end
|
|
225
222
|
end
|
|
226
223
|
|
|
227
|
-
class
|
|
224
|
+
class PublishRequest
|
|
228
225
|
# @private
|
|
229
226
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
|
228
|
+
|
|
232
229
|
end
|
|
233
230
|
end
|
|
234
231
|
|
|
235
|
-
class
|
|
232
|
+
class PublishResponse
|
|
236
233
|
# @private
|
|
237
234
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
235
|
+
collection :message_ids, as: 'messageIds'
|
|
238
236
|
end
|
|
239
237
|
end
|
|
240
238
|
|
|
241
|
-
class
|
|
239
|
+
class Message
|
|
242
240
|
# @private
|
|
243
241
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
244
|
-
|
|
242
|
+
hash :attributes, as: 'attributes'
|
|
243
|
+
property :data, :base64 => true, as: 'data'
|
|
244
|
+
property :message_id, as: 'messageId'
|
|
245
|
+
property :publish_time, as: 'publishTime'
|
|
245
246
|
end
|
|
246
247
|
end
|
|
247
248
|
|
|
248
|
-
class
|
|
249
|
+
class PullRequest
|
|
249
250
|
# @private
|
|
250
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
251
|
-
property :
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
property :max_messages, as: 'maxMessages'
|
|
253
|
+
property :return_immediately, as: 'returnImmediately'
|
|
254
254
|
end
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
-
class
|
|
257
|
+
class PullResponse
|
|
258
258
|
# @private
|
|
259
259
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
|
|
261
|
+
|
|
262
262
|
end
|
|
263
263
|
end
|
|
264
264
|
|
|
265
|
-
class
|
|
265
|
+
class PushConfig
|
|
266
266
|
# @private
|
|
267
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
hash :attributes, as: 'attributes'
|
|
269
|
+
property :push_endpoint, as: 'pushEndpoint'
|
|
270
270
|
end
|
|
271
271
|
end
|
|
272
272
|
|
|
@@ -279,43 +279,43 @@ module Google
|
|
|
279
279
|
end
|
|
280
280
|
end
|
|
281
281
|
|
|
282
|
-
class
|
|
282
|
+
class SetIamPolicyRequest
|
|
283
283
|
# @private
|
|
284
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
285
|
-
|
|
286
|
-
|
|
285
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
|
286
|
+
|
|
287
287
|
end
|
|
288
288
|
end
|
|
289
289
|
|
|
290
|
-
class
|
|
290
|
+
class Subscription
|
|
291
291
|
# @private
|
|
292
292
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
293
|
-
|
|
293
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
294
|
+
property :name, as: 'name'
|
|
295
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
|
296
|
+
|
|
297
|
+
property :topic, as: 'topic'
|
|
294
298
|
end
|
|
295
299
|
end
|
|
296
300
|
|
|
297
|
-
class
|
|
301
|
+
class TestIamPermissionsRequest
|
|
298
302
|
# @private
|
|
299
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
300
|
-
|
|
301
|
-
property :max_messages, as: 'maxMessages'
|
|
304
|
+
collection :permissions, as: 'permissions'
|
|
302
305
|
end
|
|
303
306
|
end
|
|
304
307
|
|
|
305
|
-
class
|
|
308
|
+
class TestIamPermissionsResponse
|
|
306
309
|
# @private
|
|
307
310
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
308
|
-
|
|
309
|
-
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
|
310
|
-
|
|
311
|
+
collection :permissions, as: 'permissions'
|
|
311
312
|
end
|
|
312
313
|
end
|
|
313
314
|
|
|
314
|
-
class
|
|
315
|
+
class Topic
|
|
315
316
|
# @private
|
|
316
317
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
property :name, as: 'name'
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
321
|
end
|
|
@@ -47,17 +47,50 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Gets the access control policy for a resource.
|
|
51
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
52
|
+
# set.
|
|
53
|
+
# @param [String] resource
|
|
54
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
55
|
+
# See the operation documentation for the appropriate value for this field.
|
|
56
|
+
# @param [String] fields
|
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
|
58
|
+
# @param [String] quota_user
|
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
|
62
|
+
# Request-specific options
|
|
63
|
+
#
|
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
|
65
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67
|
+
#
|
|
68
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
69
|
+
#
|
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
+
def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
74
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
75
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
76
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
77
|
+
command.params['resource'] = resource unless resource.nil?
|
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
50
83
|
# Sets the access control policy on the specified resource. Replaces any
|
|
51
84
|
# existing policy.
|
|
52
85
|
# @param [String] resource
|
|
53
86
|
# REQUIRED: The resource for which the policy is being specified.
|
|
54
87
|
# See the operation documentation for the appropriate value for this field.
|
|
55
88
|
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
89
|
+
# @param [String] fields
|
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
|
56
91
|
# @param [String] quota_user
|
|
57
92
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
58
93
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
59
|
-
# @param [String] fields
|
|
60
|
-
# Selector specifying which fields to include in a partial response.
|
|
61
94
|
# @param [Google::Apis::RequestOptions] options
|
|
62
95
|
# Request-specific options
|
|
63
96
|
#
|
|
@@ -70,15 +103,15 @@ module Google
|
|
|
70
103
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
104
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
105
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
-
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil,
|
|
106
|
+
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
74
107
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
75
108
|
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
76
109
|
command.request_object = set_iam_policy_request_object
|
|
77
110
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
78
111
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
79
112
|
command.params['resource'] = resource unless resource.nil?
|
|
80
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
81
113
|
command.query['fields'] = fields unless fields.nil?
|
|
114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
115
|
execute_or_queue_command(command, &block)
|
|
83
116
|
end
|
|
84
117
|
|
|
@@ -92,11 +125,11 @@ module Google
|
|
|
92
125
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
93
126
|
# See the operation documentation for the appropriate value for this field.
|
|
94
127
|
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
128
|
+
# @param [String] fields
|
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
|
95
130
|
# @param [String] quota_user
|
|
96
131
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
97
132
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
98
|
-
# @param [String] fields
|
|
99
|
-
# Selector specifying which fields to include in a partial response.
|
|
100
133
|
# @param [Google::Apis::RequestOptions] options
|
|
101
134
|
# Request-specific options
|
|
102
135
|
#
|
|
@@ -109,173 +142,180 @@ module Google
|
|
|
109
142
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
110
143
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
111
144
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
112
|
-
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
145
|
+
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
113
146
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
114
147
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
115
148
|
command.request_object = test_iam_permissions_request_object
|
|
116
149
|
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
117
150
|
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
118
151
|
command.params['resource'] = resource unless resource.nil?
|
|
119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
120
152
|
command.query['fields'] = fields unless fields.nil?
|
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
121
154
|
execute_or_queue_command(command, &block)
|
|
122
155
|
end
|
|
123
156
|
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
157
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
|
158
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
|
159
|
+
# from the subscription.
|
|
160
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
|
161
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
|
162
|
+
# than once will not result in an error.
|
|
163
|
+
# @param [String] subscription
|
|
164
|
+
# The subscription whose message is being acknowledged.
|
|
165
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
166
|
+
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
|
167
|
+
# @param [String] fields
|
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
|
130
169
|
# @param [String] quota_user
|
|
131
170
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
132
171
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
133
|
-
# @param [String] fields
|
|
134
|
-
# Selector specifying which fields to include in a partial response.
|
|
135
172
|
# @param [Google::Apis::RequestOptions] options
|
|
136
173
|
# Request-specific options
|
|
137
174
|
#
|
|
138
175
|
# @yield [result, err] Result & error if block supplied
|
|
139
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
176
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
|
140
177
|
# @yieldparam err [StandardError] error object if request failed
|
|
141
178
|
#
|
|
142
|
-
# @return [Google::Apis::PubsubV1::
|
|
179
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
|
143
180
|
#
|
|
144
181
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
145
182
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
146
183
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
147
|
-
def
|
|
148
|
-
command = make_simple_command(:
|
|
149
|
-
command.
|
|
150
|
-
command.
|
|
151
|
-
command.
|
|
152
|
-
command.
|
|
184
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
185
|
+
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
|
186
|
+
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
|
187
|
+
command.request_object = acknowledge_request_object
|
|
188
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
189
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
|
190
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
153
191
|
command.query['fields'] = fields unless fields.nil?
|
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
154
193
|
execute_or_queue_command(command, &block)
|
|
155
194
|
end
|
|
156
195
|
|
|
157
|
-
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
# the
|
|
161
|
-
#
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
#
|
|
196
|
+
# Creates a subscription to a given topic.
|
|
197
|
+
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
198
|
+
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
199
|
+
# If the name is not provided in the request, the server will assign a random
|
|
200
|
+
# name for this subscription on the same project as the topic, conforming
|
|
201
|
+
# to the
|
|
202
|
+
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
|
203
|
+
# The generated name is populated in the returned Subscription object.
|
|
204
|
+
# Note that for REST API requests, you must specify a name in the request.
|
|
205
|
+
# @param [String] name
|
|
206
|
+
# The name of the subscription. It must have the format
|
|
207
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
|
208
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
|
209
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
|
210
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
|
211
|
+
# in length, and it must not start with `"goog"`.
|
|
212
|
+
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
|
213
|
+
# @param [String] fields
|
|
214
|
+
# Selector specifying which fields to include in a partial response.
|
|
165
215
|
# @param [String] quota_user
|
|
166
216
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
167
217
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
168
|
-
# @param [String] fields
|
|
169
|
-
# Selector specifying which fields to include in a partial response.
|
|
170
218
|
# @param [Google::Apis::RequestOptions] options
|
|
171
219
|
# Request-specific options
|
|
172
220
|
#
|
|
173
221
|
# @yield [result, err] Result & error if block supplied
|
|
174
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
222
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
|
175
223
|
# @yieldparam err [StandardError] error object if request failed
|
|
176
224
|
#
|
|
177
|
-
# @return [Google::Apis::PubsubV1::
|
|
225
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
|
178
226
|
#
|
|
179
227
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
180
228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
181
229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
182
|
-
def
|
|
183
|
-
command = make_simple_command(:
|
|
184
|
-
command.
|
|
185
|
-
command.
|
|
186
|
-
command.
|
|
187
|
-
command.
|
|
230
|
+
def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
231
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
232
|
+
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
233
|
+
command.request_object = subscription_object
|
|
234
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
235
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
236
|
+
command.params['name'] = name unless name.nil?
|
|
188
237
|
command.query['fields'] = fields unless fields.nil?
|
|
238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
189
239
|
execute_or_queue_command(command, &block)
|
|
190
240
|
end
|
|
191
241
|
|
|
192
|
-
#
|
|
193
|
-
#
|
|
194
|
-
#
|
|
195
|
-
#
|
|
242
|
+
# Deletes an existing subscription. All messages retained in the subscription
|
|
243
|
+
# are immediately dropped. Calls to `Pull` after deletion will return
|
|
244
|
+
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
|
245
|
+
# the same name, but the new one has no association with the old
|
|
246
|
+
# subscription or its topic unless the same topic is specified.
|
|
196
247
|
# @param [String] subscription
|
|
197
|
-
# The subscription
|
|
248
|
+
# The subscription to delete.
|
|
198
249
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
199
|
-
# @param [
|
|
250
|
+
# @param [String] fields
|
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
|
200
252
|
# @param [String] quota_user
|
|
201
253
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
202
254
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
203
|
-
# @param [String] fields
|
|
204
|
-
# Selector specifying which fields to include in a partial response.
|
|
205
255
|
# @param [Google::Apis::RequestOptions] options
|
|
206
256
|
# Request-specific options
|
|
207
257
|
#
|
|
208
258
|
# @yield [result, err] Result & error if block supplied
|
|
209
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
259
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
|
210
260
|
# @yieldparam err [StandardError] error object if request failed
|
|
211
261
|
#
|
|
212
|
-
# @return [Google::Apis::PubsubV1::
|
|
262
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
|
213
263
|
#
|
|
214
264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
215
265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
216
266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
217
|
-
def
|
|
218
|
-
command = make_simple_command(:
|
|
219
|
-
command.
|
|
220
|
-
command.
|
|
221
|
-
command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
|
|
222
|
-
command.response_class = Google::Apis::PubsubV1::PullResponse
|
|
267
|
+
def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
268
|
+
command = make_simple_command(:delete, 'v1/{+subscription}', options)
|
|
269
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
270
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
|
223
271
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
224
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
225
272
|
command.query['fields'] = fields unless fields.nil?
|
|
273
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
226
274
|
execute_or_queue_command(command, &block)
|
|
227
275
|
end
|
|
228
276
|
|
|
229
|
-
#
|
|
230
|
-
# @param [String]
|
|
231
|
-
# The name of the
|
|
232
|
-
# Format is `projects/`project``.
|
|
233
|
-
# @param [String]
|
|
234
|
-
#
|
|
235
|
-
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
|
236
|
-
# system should return the next page of data.
|
|
237
|
-
# @param [Fixnum] page_size
|
|
238
|
-
# Maximum number of subscriptions to return.
|
|
277
|
+
# Gets the configuration details of a subscription.
|
|
278
|
+
# @param [String] subscription
|
|
279
|
+
# The name of the subscription to get.
|
|
280
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
281
|
+
# @param [String] fields
|
|
282
|
+
# Selector specifying which fields to include in a partial response.
|
|
239
283
|
# @param [String] quota_user
|
|
240
284
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
241
285
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
242
|
-
# @param [String] fields
|
|
243
|
-
# Selector specifying which fields to include in a partial response.
|
|
244
286
|
# @param [Google::Apis::RequestOptions] options
|
|
245
287
|
# Request-specific options
|
|
246
288
|
#
|
|
247
289
|
# @yield [result, err] Result & error if block supplied
|
|
248
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
290
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
|
249
291
|
# @yieldparam err [StandardError] error object if request failed
|
|
250
292
|
#
|
|
251
|
-
# @return [Google::Apis::PubsubV1::
|
|
293
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
|
252
294
|
#
|
|
253
295
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
254
296
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
255
297
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
256
|
-
def
|
|
257
|
-
command = make_simple_command(:get, 'v1/{+
|
|
258
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
259
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
260
|
-
command.params['
|
|
261
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
262
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
263
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
298
|
+
def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
299
|
+
command = make_simple_command(:get, 'v1/{+subscription}', options)
|
|
300
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
301
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
302
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
264
303
|
command.query['fields'] = fields unless fields.nil?
|
|
304
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
265
305
|
execute_or_queue_command(command, &block)
|
|
266
306
|
end
|
|
267
307
|
|
|
268
|
-
#
|
|
269
|
-
#
|
|
308
|
+
# Gets the access control policy for a resource.
|
|
309
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
310
|
+
# set.
|
|
270
311
|
# @param [String] resource
|
|
271
|
-
# REQUIRED: The resource for which the policy is being
|
|
312
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
272
313
|
# See the operation documentation for the appropriate value for this field.
|
|
273
|
-
# @param [
|
|
314
|
+
# @param [String] fields
|
|
315
|
+
# Selector specifying which fields to include in a partial response.
|
|
274
316
|
# @param [String] quota_user
|
|
275
317
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
276
318
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
277
|
-
# @param [String] fields
|
|
278
|
-
# Selector specifying which fields to include in a partial response.
|
|
279
319
|
# @param [Google::Apis::RequestOptions] options
|
|
280
320
|
# Request-specific options
|
|
281
321
|
#
|
|
@@ -288,94 +328,52 @@ module Google
|
|
|
288
328
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
289
329
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
290
330
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
291
|
-
def
|
|
292
|
-
command = make_simple_command(:
|
|
293
|
-
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
294
|
-
command.request_object = set_iam_policy_request_object
|
|
331
|
+
def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
332
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
295
333
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
296
334
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
297
335
|
command.params['resource'] = resource unless resource.nil?
|
|
298
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
299
336
|
command.query['fields'] = fields unless fields.nil?
|
|
337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
300
338
|
execute_or_queue_command(command, &block)
|
|
301
339
|
end
|
|
302
340
|
|
|
303
|
-
#
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
#
|
|
307
|
-
#
|
|
308
|
-
# to
|
|
309
|
-
# [
|
|
310
|
-
#
|
|
311
|
-
#
|
|
312
|
-
#
|
|
313
|
-
# The name of the subscription. It must have the format
|
|
314
|
-
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
|
315
|
-
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
|
316
|
-
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
|
317
|
-
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
|
318
|
-
# in length, and it must not start with `"goog"`.
|
|
319
|
-
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
|
320
|
-
# @param [String] quota_user
|
|
321
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
322
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
341
|
+
# Lists matching subscriptions.
|
|
342
|
+
# @param [String] project
|
|
343
|
+
# The name of the cloud project that subscriptions belong to.
|
|
344
|
+
# Format is `projects/`project``.
|
|
345
|
+
# @param [Fixnum] page_size
|
|
346
|
+
# Maximum number of subscriptions to return.
|
|
347
|
+
# @param [String] page_token
|
|
348
|
+
# The value returned by the last `ListSubscriptionsResponse`; indicates that
|
|
349
|
+
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
|
350
|
+
# system should return the next page of data.
|
|
323
351
|
# @param [String] fields
|
|
324
352
|
# Selector specifying which fields to include in a partial response.
|
|
325
|
-
# @param [Google::Apis::RequestOptions] options
|
|
326
|
-
# Request-specific options
|
|
327
|
-
#
|
|
328
|
-
# @yield [result, err] Result & error if block supplied
|
|
329
|
-
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
|
330
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
331
|
-
#
|
|
332
|
-
# @return [Google::Apis::PubsubV1::Subscription]
|
|
333
|
-
#
|
|
334
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
335
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
336
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
337
|
-
def create_subscription(name, subscription_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
338
|
-
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
339
|
-
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
340
|
-
command.request_object = subscription_object
|
|
341
|
-
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
342
|
-
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
343
|
-
command.params['name'] = name unless name.nil?
|
|
344
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
345
|
-
command.query['fields'] = fields unless fields.nil?
|
|
346
|
-
execute_or_queue_command(command, &block)
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
# Gets the access control policy for a resource.
|
|
350
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
|
351
|
-
# set.
|
|
352
|
-
# @param [String] resource
|
|
353
|
-
# REQUIRED: The resource for which the policy is being requested.
|
|
354
|
-
# See the operation documentation for the appropriate value for this field.
|
|
355
353
|
# @param [String] quota_user
|
|
356
354
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
357
355
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
358
|
-
# @param [String] fields
|
|
359
|
-
# Selector specifying which fields to include in a partial response.
|
|
360
356
|
# @param [Google::Apis::RequestOptions] options
|
|
361
357
|
# Request-specific options
|
|
362
358
|
#
|
|
363
359
|
# @yield [result, err] Result & error if block supplied
|
|
364
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
360
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
|
|
365
361
|
# @yieldparam err [StandardError] error object if request failed
|
|
366
362
|
#
|
|
367
|
-
# @return [Google::Apis::PubsubV1::
|
|
363
|
+
# @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
|
|
368
364
|
#
|
|
369
365
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
370
366
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
371
367
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
372
|
-
def
|
|
373
|
-
command = make_simple_command(:get, 'v1/{+
|
|
374
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
375
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
376
|
-
command.params['
|
|
377
|
-
command.query['
|
|
368
|
+
def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
369
|
+
command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
|
|
370
|
+
command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
|
|
371
|
+
command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
|
|
372
|
+
command.params['project'] = project unless project.nil?
|
|
373
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
374
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
378
375
|
command.query['fields'] = fields unless fields.nil?
|
|
376
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
379
377
|
execute_or_queue_command(command, &block)
|
|
380
378
|
end
|
|
381
379
|
|
|
@@ -388,11 +386,11 @@ module Google
|
|
|
388
386
|
# The name of the subscription.
|
|
389
387
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
390
388
|
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
|
389
|
+
# @param [String] fields
|
|
390
|
+
# Selector specifying which fields to include in a partial response.
|
|
391
391
|
# @param [String] quota_user
|
|
392
392
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
393
393
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
394
|
-
# @param [String] fields
|
|
395
|
-
# Selector specifying which fields to include in a partial response.
|
|
396
394
|
# @param [Google::Apis::RequestOptions] options
|
|
397
395
|
# Request-specific options
|
|
398
396
|
#
|
|
@@ -405,33 +403,32 @@ module Google
|
|
|
405
403
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
406
404
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
407
405
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
408
|
-
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil,
|
|
406
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
409
407
|
command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
|
|
410
408
|
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
|
411
409
|
command.request_object = modify_ack_deadline_request_object
|
|
412
410
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
413
411
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
414
412
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
415
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
416
413
|
command.query['fields'] = fields unless fields.nil?
|
|
414
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
417
415
|
execute_or_queue_command(command, &block)
|
|
418
416
|
end
|
|
419
417
|
|
|
420
|
-
#
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
#
|
|
425
|
-
# than once will not result in an error.
|
|
418
|
+
# Modifies the `PushConfig` for a specified subscription.
|
|
419
|
+
# This may be used to change a push subscription to a pull one (signified by
|
|
420
|
+
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
|
421
|
+
# attributes of a push subscription. Messages will accumulate for delivery
|
|
422
|
+
# continuously through the call regardless of changes to the `PushConfig`.
|
|
426
423
|
# @param [String] subscription
|
|
427
|
-
# The
|
|
424
|
+
# The name of the subscription.
|
|
428
425
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
429
|
-
# @param [Google::Apis::PubsubV1::
|
|
426
|
+
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
|
427
|
+
# @param [String] fields
|
|
428
|
+
# Selector specifying which fields to include in a partial response.
|
|
430
429
|
# @param [String] quota_user
|
|
431
430
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
432
431
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
433
|
-
# @param [String] fields
|
|
434
|
-
# Selector specifying which fields to include in a partial response.
|
|
435
432
|
# @param [Google::Apis::RequestOptions] options
|
|
436
433
|
# Request-specific options
|
|
437
434
|
#
|
|
@@ -444,162 +441,126 @@ module Google
|
|
|
444
441
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
445
442
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
446
443
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
447
|
-
def
|
|
448
|
-
command = make_simple_command(:post, 'v1/{+subscription}:
|
|
449
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
450
|
-
command.request_object =
|
|
444
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
445
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
|
|
446
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
|
|
447
|
+
command.request_object = modify_push_config_request_object
|
|
451
448
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
452
449
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
453
450
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
454
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
455
451
|
command.query['fields'] = fields unless fields.nil?
|
|
452
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
456
453
|
execute_or_queue_command(command, &block)
|
|
457
454
|
end
|
|
458
455
|
|
|
459
|
-
#
|
|
456
|
+
# Pulls messages from the server. Returns an empty list if there are no
|
|
457
|
+
# messages available in the backlog. The server may return `UNAVAILABLE` if
|
|
458
|
+
# there are too many concurrent pull requests pending for the given
|
|
459
|
+
# subscription.
|
|
460
460
|
# @param [String] subscription
|
|
461
|
-
# The
|
|
461
|
+
# The subscription from which messages should be pulled.
|
|
462
462
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
463
|
+
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
|
|
464
|
+
# @param [String] fields
|
|
465
|
+
# Selector specifying which fields to include in a partial response.
|
|
463
466
|
# @param [String] quota_user
|
|
464
467
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
465
468
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
466
|
-
# @param [String] fields
|
|
467
|
-
# Selector specifying which fields to include in a partial response.
|
|
468
469
|
# @param [Google::Apis::RequestOptions] options
|
|
469
470
|
# Request-specific options
|
|
470
471
|
#
|
|
471
472
|
# @yield [result, err] Result & error if block supplied
|
|
472
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
473
|
+
# @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object
|
|
473
474
|
# @yieldparam err [StandardError] error object if request failed
|
|
474
475
|
#
|
|
475
|
-
# @return [Google::Apis::PubsubV1::
|
|
476
|
+
# @return [Google::Apis::PubsubV1::PullResponse]
|
|
476
477
|
#
|
|
477
478
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
478
479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
479
480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
480
|
-
def
|
|
481
|
-
command = make_simple_command(:
|
|
482
|
-
command.
|
|
483
|
-
command.
|
|
481
|
+
def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
482
|
+
command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
|
|
483
|
+
command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
|
|
484
|
+
command.request_object = pull_request_object
|
|
485
|
+
command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
|
|
486
|
+
command.response_class = Google::Apis::PubsubV1::PullResponse
|
|
484
487
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
485
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
486
488
|
command.query['fields'] = fields unless fields.nil?
|
|
489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
487
490
|
execute_or_queue_command(command, &block)
|
|
488
491
|
end
|
|
489
492
|
|
|
490
|
-
#
|
|
491
|
-
#
|
|
492
|
-
# permissions, not a NOT_FOUND error.
|
|
493
|
-
# Note: This operation is designed to be used for building permission-aware
|
|
494
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
|
495
|
-
# may "fail open" without warning.
|
|
493
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
494
|
+
# existing policy.
|
|
496
495
|
# @param [String] resource
|
|
497
|
-
# REQUIRED: The resource for which the policy
|
|
496
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
498
497
|
# See the operation documentation for the appropriate value for this field.
|
|
499
|
-
# @param [Google::Apis::PubsubV1::
|
|
500
|
-
# @param [String] quota_user
|
|
501
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
502
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
498
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
503
499
|
# @param [String] fields
|
|
504
500
|
# Selector specifying which fields to include in a partial response.
|
|
505
|
-
# @param [Google::Apis::RequestOptions] options
|
|
506
|
-
# Request-specific options
|
|
507
|
-
#
|
|
508
|
-
# @yield [result, err] Result & error if block supplied
|
|
509
|
-
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
510
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
511
|
-
#
|
|
512
|
-
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
513
|
-
#
|
|
514
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
515
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
516
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
517
|
-
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
518
|
-
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
519
|
-
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
520
|
-
command.request_object = test_iam_permissions_request_object
|
|
521
|
-
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
522
|
-
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
523
|
-
command.params['resource'] = resource unless resource.nil?
|
|
524
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
525
|
-
command.query['fields'] = fields unless fields.nil?
|
|
526
|
-
execute_or_queue_command(command, &block)
|
|
527
|
-
end
|
|
528
|
-
|
|
529
|
-
# Modifies the `PushConfig` for a specified subscription.
|
|
530
|
-
# This may be used to change a push subscription to a pull one (signified by
|
|
531
|
-
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
|
532
|
-
# attributes of a push subscription. Messages will accumulate for delivery
|
|
533
|
-
# continuously through the call regardless of changes to the `PushConfig`.
|
|
534
|
-
# @param [String] subscription
|
|
535
|
-
# The name of the subscription.
|
|
536
|
-
# Format is `projects/`project`/subscriptions/`sub``.
|
|
537
|
-
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
|
538
501
|
# @param [String] quota_user
|
|
539
502
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
540
503
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
541
|
-
# @param [String] fields
|
|
542
|
-
# Selector specifying which fields to include in a partial response.
|
|
543
504
|
# @param [Google::Apis::RequestOptions] options
|
|
544
505
|
# Request-specific options
|
|
545
506
|
#
|
|
546
507
|
# @yield [result, err] Result & error if block supplied
|
|
547
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
508
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
548
509
|
# @yieldparam err [StandardError] error object if request failed
|
|
549
510
|
#
|
|
550
|
-
# @return [Google::Apis::PubsubV1::
|
|
511
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
551
512
|
#
|
|
552
513
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
553
514
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
554
515
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
555
|
-
def
|
|
556
|
-
command = make_simple_command(:post, 'v1/{+
|
|
557
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
558
|
-
command.request_object =
|
|
559
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
560
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
561
|
-
command.params['
|
|
562
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
516
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
517
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
518
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
519
|
+
command.request_object = set_iam_policy_request_object
|
|
520
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
521
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
522
|
+
command.params['resource'] = resource unless resource.nil?
|
|
563
523
|
command.query['fields'] = fields unless fields.nil?
|
|
524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
564
525
|
execute_or_queue_command(command, &block)
|
|
565
526
|
end
|
|
566
527
|
|
|
567
|
-
#
|
|
568
|
-
#
|
|
569
|
-
#
|
|
570
|
-
#
|
|
571
|
-
#
|
|
572
|
-
#
|
|
573
|
-
#
|
|
574
|
-
#
|
|
575
|
-
#
|
|
576
|
-
#
|
|
528
|
+
# Returns permissions that a caller has on the specified resource.
|
|
529
|
+
# If the resource does not exist, this will return an empty set of
|
|
530
|
+
# permissions, not a NOT_FOUND error.
|
|
531
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
532
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
533
|
+
# may "fail open" without warning.
|
|
534
|
+
# @param [String] resource
|
|
535
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
536
|
+
# See the operation documentation for the appropriate value for this field.
|
|
537
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
538
|
+
# @param [String] fields
|
|
539
|
+
# Selector specifying which fields to include in a partial response.
|
|
577
540
|
# @param [String] quota_user
|
|
578
541
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
579
542
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
580
|
-
# @param [String] fields
|
|
581
|
-
# Selector specifying which fields to include in a partial response.
|
|
582
543
|
# @param [Google::Apis::RequestOptions] options
|
|
583
544
|
# Request-specific options
|
|
584
545
|
#
|
|
585
546
|
# @yield [result, err] Result & error if block supplied
|
|
586
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
547
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
587
548
|
# @yieldparam err [StandardError] error object if request failed
|
|
588
549
|
#
|
|
589
|
-
# @return [Google::Apis::PubsubV1::
|
|
550
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
590
551
|
#
|
|
591
552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
592
553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
593
554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
594
|
-
def
|
|
595
|
-
command = make_simple_command(:
|
|
596
|
-
command.
|
|
597
|
-
command.
|
|
598
|
-
command.
|
|
599
|
-
command.
|
|
600
|
-
command.
|
|
601
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
555
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
556
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
557
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
558
|
+
command.request_object = test_iam_permissions_request_object
|
|
559
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
560
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
561
|
+
command.params['resource'] = resource unless resource.nil?
|
|
602
562
|
command.query['fields'] = fields unless fields.nil?
|
|
563
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
603
564
|
execute_or_queue_command(command, &block)
|
|
604
565
|
end
|
|
605
566
|
|
|
@@ -612,11 +573,11 @@ module Google
|
|
|
612
573
|
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
|
613
574
|
# must not start with `"goog"`.
|
|
614
575
|
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
|
576
|
+
# @param [String] fields
|
|
577
|
+
# Selector specifying which fields to include in a partial response.
|
|
615
578
|
# @param [String] quota_user
|
|
616
579
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
617
580
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
618
|
-
# @param [String] fields
|
|
619
|
-
# Selector specifying which fields to include in a partial response.
|
|
620
581
|
# @param [Google::Apis::RequestOptions] options
|
|
621
582
|
# Request-specific options
|
|
622
583
|
#
|
|
@@ -629,50 +590,81 @@ module Google
|
|
|
629
590
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
630
591
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
631
592
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
632
|
-
def create_topic(name, topic_object = nil,
|
|
593
|
+
def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
633
594
|
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
634
595
|
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
635
596
|
command.request_object = topic_object
|
|
636
597
|
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
637
598
|
command.response_class = Google::Apis::PubsubV1::Topic
|
|
638
599
|
command.params['name'] = name unless name.nil?
|
|
639
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
640
600
|
command.query['fields'] = fields unless fields.nil?
|
|
601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
641
602
|
execute_or_queue_command(command, &block)
|
|
642
603
|
end
|
|
643
604
|
|
|
644
|
-
#
|
|
645
|
-
#
|
|
646
|
-
#
|
|
647
|
-
#
|
|
648
|
-
#
|
|
649
|
-
# @param [
|
|
605
|
+
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
|
606
|
+
# does not exist. After a topic is deleted, a new topic may be created with
|
|
607
|
+
# the same name; this is an entirely new topic with none of the old
|
|
608
|
+
# configuration or subscriptions. Existing subscriptions to this topic are
|
|
609
|
+
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
|
610
|
+
# @param [String] topic
|
|
611
|
+
# Name of the topic to delete.
|
|
612
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
613
|
+
# @param [String] fields
|
|
614
|
+
# Selector specifying which fields to include in a partial response.
|
|
650
615
|
# @param [String] quota_user
|
|
651
616
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
652
617
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
618
|
+
# @param [Google::Apis::RequestOptions] options
|
|
619
|
+
# Request-specific options
|
|
620
|
+
#
|
|
621
|
+
# @yield [result, err] Result & error if block supplied
|
|
622
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
|
623
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
624
|
+
#
|
|
625
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
|
626
|
+
#
|
|
627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
630
|
+
def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
631
|
+
command = make_simple_command(:delete, 'v1/{+topic}', options)
|
|
632
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
633
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
|
634
|
+
command.params['topic'] = topic unless topic.nil?
|
|
635
|
+
command.query['fields'] = fields unless fields.nil?
|
|
636
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
637
|
+
execute_or_queue_command(command, &block)
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Gets the configuration of a topic.
|
|
641
|
+
# @param [String] topic
|
|
642
|
+
# The name of the topic to get.
|
|
643
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
653
644
|
# @param [String] fields
|
|
654
645
|
# Selector specifying which fields to include in a partial response.
|
|
646
|
+
# @param [String] quota_user
|
|
647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
655
649
|
# @param [Google::Apis::RequestOptions] options
|
|
656
650
|
# Request-specific options
|
|
657
651
|
#
|
|
658
652
|
# @yield [result, err] Result & error if block supplied
|
|
659
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
653
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
|
660
654
|
# @yieldparam err [StandardError] error object if request failed
|
|
661
655
|
#
|
|
662
|
-
# @return [Google::Apis::PubsubV1::
|
|
656
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
|
663
657
|
#
|
|
664
658
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
665
659
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
666
660
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
667
|
-
def
|
|
668
|
-
command = make_simple_command(:
|
|
669
|
-
command.
|
|
670
|
-
command.
|
|
671
|
-
command.
|
|
672
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
|
673
|
-
command.params['resource'] = resource unless resource.nil?
|
|
674
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
661
|
+
def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
662
|
+
command = make_simple_command(:get, 'v1/{+topic}', options)
|
|
663
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
664
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
|
665
|
+
command.params['topic'] = topic unless topic.nil?
|
|
675
666
|
command.query['fields'] = fields unless fields.nil?
|
|
667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
676
668
|
execute_or_queue_command(command, &block)
|
|
677
669
|
end
|
|
678
670
|
|
|
@@ -682,11 +674,11 @@ module Google
|
|
|
682
674
|
# @param [String] resource
|
|
683
675
|
# REQUIRED: The resource for which the policy is being requested.
|
|
684
676
|
# See the operation documentation for the appropriate value for this field.
|
|
677
|
+
# @param [String] fields
|
|
678
|
+
# Selector specifying which fields to include in a partial response.
|
|
685
679
|
# @param [String] quota_user
|
|
686
680
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
687
681
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
688
|
-
# @param [String] fields
|
|
689
|
-
# Selector specifying which fields to include in a partial response.
|
|
690
682
|
# @param [Google::Apis::RequestOptions] options
|
|
691
683
|
# Request-specific options
|
|
692
684
|
#
|
|
@@ -699,44 +691,52 @@ module Google
|
|
|
699
691
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
700
692
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
701
693
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
702
|
-
def get_project_topic_iam_policy(resource,
|
|
694
|
+
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
703
695
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
704
696
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
705
697
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
706
698
|
command.params['resource'] = resource unless resource.nil?
|
|
707
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
708
699
|
command.query['fields'] = fields unless fields.nil?
|
|
700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
709
701
|
execute_or_queue_command(command, &block)
|
|
710
702
|
end
|
|
711
703
|
|
|
712
|
-
#
|
|
713
|
-
# @param [String]
|
|
714
|
-
# The name of the
|
|
715
|
-
# Format is `projects/`project
|
|
704
|
+
# Lists matching topics.
|
|
705
|
+
# @param [String] project
|
|
706
|
+
# The name of the cloud project that topics belong to.
|
|
707
|
+
# Format is `projects/`project``.
|
|
708
|
+
# @param [Fixnum] page_size
|
|
709
|
+
# Maximum number of topics to return.
|
|
710
|
+
# @param [String] page_token
|
|
711
|
+
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
|
712
|
+
# a continuation of a prior `ListTopics` call, and that the system should
|
|
713
|
+
# return the next page of data.
|
|
714
|
+
# @param [String] fields
|
|
715
|
+
# Selector specifying which fields to include in a partial response.
|
|
716
716
|
# @param [String] quota_user
|
|
717
717
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
718
718
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
719
|
-
# @param [String] fields
|
|
720
|
-
# Selector specifying which fields to include in a partial response.
|
|
721
719
|
# @param [Google::Apis::RequestOptions] options
|
|
722
720
|
# Request-specific options
|
|
723
721
|
#
|
|
724
722
|
# @yield [result, err] Result & error if block supplied
|
|
725
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
723
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
|
|
726
724
|
# @yieldparam err [StandardError] error object if request failed
|
|
727
725
|
#
|
|
728
|
-
# @return [Google::Apis::PubsubV1::
|
|
726
|
+
# @return [Google::Apis::PubsubV1::ListTopicsResponse]
|
|
729
727
|
#
|
|
730
728
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
731
729
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
732
730
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
733
|
-
def
|
|
734
|
-
command = make_simple_command(:get, 'v1/{+
|
|
735
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
736
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
737
|
-
command.params['
|
|
738
|
-
command.query['
|
|
731
|
+
def list_topics(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
732
|
+
command = make_simple_command(:get, 'v1/{+project}/topics', options)
|
|
733
|
+
command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
|
|
734
|
+
command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
|
|
735
|
+
command.params['project'] = project unless project.nil?
|
|
736
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
737
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
739
738
|
command.query['fields'] = fields unless fields.nil?
|
|
739
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
740
740
|
execute_or_queue_command(command, &block)
|
|
741
741
|
end
|
|
742
742
|
|
|
@@ -747,11 +747,11 @@ module Google
|
|
|
747
747
|
# The messages in the request will be published on this topic.
|
|
748
748
|
# Format is `projects/`project`/topics/`topic``.
|
|
749
749
|
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
|
750
|
+
# @param [String] fields
|
|
751
|
+
# Selector specifying which fields to include in a partial response.
|
|
750
752
|
# @param [String] quota_user
|
|
751
753
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
752
754
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
753
|
-
# @param [String] fields
|
|
754
|
-
# Selector specifying which fields to include in a partial response.
|
|
755
755
|
# @param [Google::Apis::RequestOptions] options
|
|
756
756
|
# Request-specific options
|
|
757
757
|
#
|
|
@@ -764,89 +764,89 @@ module Google
|
|
|
764
764
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
765
765
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
766
766
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
767
|
-
def publish_topic(topic, publish_request_object = nil,
|
|
767
|
+
def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
768
768
|
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
|
769
769
|
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
|
770
770
|
command.request_object = publish_request_object
|
|
771
771
|
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
|
772
772
|
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
|
773
773
|
command.params['topic'] = topic unless topic.nil?
|
|
774
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
775
774
|
command.query['fields'] = fields unless fields.nil?
|
|
775
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
776
776
|
execute_or_queue_command(command, &block)
|
|
777
777
|
end
|
|
778
778
|
|
|
779
|
-
#
|
|
780
|
-
#
|
|
781
|
-
# permissions, not a NOT_FOUND error.
|
|
782
|
-
# Note: This operation is designed to be used for building permission-aware
|
|
783
|
-
# UIs and command-line tools, not for authorization checking. This operation
|
|
784
|
-
# may "fail open" without warning.
|
|
779
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
780
|
+
# existing policy.
|
|
785
781
|
# @param [String] resource
|
|
786
|
-
# REQUIRED: The resource for which the policy
|
|
782
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
787
783
|
# See the operation documentation for the appropriate value for this field.
|
|
788
|
-
# @param [Google::Apis::PubsubV1::
|
|
784
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
785
|
+
# @param [String] fields
|
|
786
|
+
# Selector specifying which fields to include in a partial response.
|
|
789
787
|
# @param [String] quota_user
|
|
790
788
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
791
789
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
792
|
-
# @param [String] fields
|
|
793
|
-
# Selector specifying which fields to include in a partial response.
|
|
794
790
|
# @param [Google::Apis::RequestOptions] options
|
|
795
791
|
# Request-specific options
|
|
796
792
|
#
|
|
797
793
|
# @yield [result, err] Result & error if block supplied
|
|
798
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
794
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
799
795
|
# @yieldparam err [StandardError] error object if request failed
|
|
800
796
|
#
|
|
801
|
-
# @return [Google::Apis::PubsubV1::
|
|
797
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
802
798
|
#
|
|
803
799
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
804
800
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
805
801
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
806
|
-
def
|
|
807
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
|
808
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
809
|
-
command.request_object =
|
|
810
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
811
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
802
|
+
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
803
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
804
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
805
|
+
command.request_object = set_iam_policy_request_object
|
|
806
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
807
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
812
808
|
command.params['resource'] = resource unless resource.nil?
|
|
813
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
814
809
|
command.query['fields'] = fields unless fields.nil?
|
|
810
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
815
811
|
execute_or_queue_command(command, &block)
|
|
816
812
|
end
|
|
817
813
|
|
|
818
|
-
#
|
|
819
|
-
# does not exist
|
|
820
|
-
#
|
|
821
|
-
#
|
|
822
|
-
#
|
|
823
|
-
#
|
|
824
|
-
#
|
|
825
|
-
#
|
|
814
|
+
# Returns permissions that a caller has on the specified resource.
|
|
815
|
+
# If the resource does not exist, this will return an empty set of
|
|
816
|
+
# permissions, not a NOT_FOUND error.
|
|
817
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
818
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
819
|
+
# may "fail open" without warning.
|
|
820
|
+
# @param [String] resource
|
|
821
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
822
|
+
# See the operation documentation for the appropriate value for this field.
|
|
823
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
824
|
+
# @param [String] fields
|
|
825
|
+
# Selector specifying which fields to include in a partial response.
|
|
826
826
|
# @param [String] quota_user
|
|
827
827
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
828
828
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
829
|
-
# @param [String] fields
|
|
830
|
-
# Selector specifying which fields to include in a partial response.
|
|
831
829
|
# @param [Google::Apis::RequestOptions] options
|
|
832
830
|
# Request-specific options
|
|
833
831
|
#
|
|
834
832
|
# @yield [result, err] Result & error if block supplied
|
|
835
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
833
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
836
834
|
# @yieldparam err [StandardError] error object if request failed
|
|
837
835
|
#
|
|
838
|
-
# @return [Google::Apis::PubsubV1::
|
|
836
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
839
837
|
#
|
|
840
838
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
841
839
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
842
840
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
843
|
-
def
|
|
844
|
-
command = make_simple_command(:
|
|
845
|
-
command.
|
|
846
|
-
command.
|
|
847
|
-
command.
|
|
848
|
-
command.
|
|
841
|
+
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
842
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
843
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
844
|
+
command.request_object = test_iam_permissions_request_object
|
|
845
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
846
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
847
|
+
command.params['resource'] = resource unless resource.nil?
|
|
849
848
|
command.query['fields'] = fields unless fields.nil?
|
|
849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
850
850
|
execute_or_queue_command(command, &block)
|
|
851
851
|
end
|
|
852
852
|
|
|
@@ -854,17 +854,17 @@ module Google
|
|
|
854
854
|
# @param [String] topic
|
|
855
855
|
# The name of the topic that subscriptions are attached to.
|
|
856
856
|
# Format is `projects/`project`/topics/`topic``.
|
|
857
|
+
# @param [Fixnum] page_size
|
|
858
|
+
# Maximum number of subscription names to return.
|
|
857
859
|
# @param [String] page_token
|
|
858
860
|
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates
|
|
859
861
|
# that this is a continuation of a prior `ListTopicSubscriptions` call, and
|
|
860
862
|
# that the system should return the next page of data.
|
|
861
|
-
# @param [
|
|
862
|
-
#
|
|
863
|
+
# @param [String] fields
|
|
864
|
+
# Selector specifying which fields to include in a partial response.
|
|
863
865
|
# @param [String] quota_user
|
|
864
866
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
865
867
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
866
|
-
# @param [String] fields
|
|
867
|
-
# Selector specifying which fields to include in a partial response.
|
|
868
868
|
# @param [Google::Apis::RequestOptions] options
|
|
869
869
|
# Request-specific options
|
|
870
870
|
#
|
|
@@ -877,15 +877,15 @@ module Google
|
|
|
877
877
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
878
878
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
879
879
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
880
|
-
def list_topic_subscriptions(topic,
|
|
880
|
+
def list_topic_subscriptions(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
881
881
|
command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
|
|
882
882
|
command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
|
|
883
883
|
command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
|
|
884
884
|
command.params['topic'] = topic unless topic.nil?
|
|
885
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
886
885
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
887
|
-
command.query['
|
|
886
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
888
887
|
command.query['fields'] = fields unless fields.nil?
|
|
888
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
889
889
|
execute_or_queue_command(command, &block)
|
|
890
890
|
end
|
|
891
891
|
|