google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- 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 +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- 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 +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- 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_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
26
26
|
module PubsubV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170308'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,23 +22,34 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Associates `members` with a `role`.
|
26
|
+
class Binding
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# the
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# @
|
41
|
-
|
29
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
30
|
+
# `members` can have the following values:
|
31
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
32
|
+
# on the internet; with or without a Google account.
|
33
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
34
|
+
# who is authenticated with a Google account or a service account.
|
35
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
36
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
37
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
38
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
39
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
40
|
+
# For example, `admins@example.com`.
|
41
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
42
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
43
|
+
# Corresponds to the JSON property `members`
|
44
|
+
# @return [Array<String>]
|
45
|
+
attr_accessor :members
|
46
|
+
|
47
|
+
# Role that is assigned to `members`.
|
48
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
49
|
+
# Required
|
50
|
+
# Corresponds to the JSON property `role`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :role
|
42
53
|
|
43
54
|
def initialize(**args)
|
44
55
|
update!(**args)
|
@@ -46,46 +57,25 @@ module Google
|
|
46
57
|
|
47
58
|
# Update properties of this object
|
48
59
|
def update!(**args)
|
49
|
-
@
|
60
|
+
@members = args[:members] if args.key?(:members)
|
61
|
+
@role = args[:role] if args.key?(:role)
|
50
62
|
end
|
51
63
|
end
|
52
64
|
|
53
|
-
#
|
54
|
-
|
55
|
-
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
56
|
-
# the members can be user accounts, Google groups, Google domains, and service
|
57
|
-
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
58
|
-
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
59
|
-
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
60
|
-
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
|
61
|
-
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
62
|
-
# IAM developer's guide](https://cloud.google.com/iam).
|
63
|
-
class Policy
|
65
|
+
# Response for the `ListTopics` method.
|
66
|
+
class ListTopicsResponse
|
64
67
|
include Google::Apis::Core::Hashable
|
65
68
|
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
attr_accessor :version
|
70
|
-
|
71
|
-
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
|
72
|
-
# specified for the same `role`. `bindings` with no members will result in an
|
73
|
-
# error.
|
74
|
-
# Corresponds to the JSON property `bindings`
|
75
|
-
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
76
|
-
attr_accessor :bindings
|
77
|
-
|
78
|
-
# `etag` is used for optimistic concurrency control as a way to help prevent
|
79
|
-
# simultaneous updates of a policy from overwriting each other. It is strongly
|
80
|
-
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
81
|
-
# to perform policy updates in order to avoid race conditions: An `etag` is
|
82
|
-
# returned in the response to `getIamPolicy`, and systems are expected to put
|
83
|
-
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
84
|
-
# applied to the same version of the policy. If no `etag` is provided in the
|
85
|
-
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
|
86
|
-
# Corresponds to the JSON property `etag`
|
69
|
+
# If not empty, indicates that there may be more topics that match the
|
70
|
+
# request; this value should be passed in a new `ListTopicsRequest`.
|
71
|
+
# Corresponds to the JSON property `nextPageToken`
|
87
72
|
# @return [String]
|
88
|
-
attr_accessor :
|
73
|
+
attr_accessor :next_page_token
|
74
|
+
|
75
|
+
# The resulting topics.
|
76
|
+
# Corresponds to the JSON property `topics`
|
77
|
+
# @return [Array<Google::Apis::PubsubV1::Topic>]
|
78
|
+
attr_accessor :topics
|
89
79
|
|
90
80
|
def initialize(**args)
|
91
81
|
update!(**args)
|
@@ -93,37 +83,20 @@ module Google
|
|
93
83
|
|
94
84
|
# Update properties of this object
|
95
85
|
def update!(**args)
|
96
|
-
@
|
97
|
-
@
|
98
|
-
@etag = args[:etag] if args.key?(:etag)
|
86
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
87
|
+
@topics = args[:topics] if args.key?(:topics)
|
99
88
|
end
|
100
89
|
end
|
101
90
|
|
102
|
-
#
|
103
|
-
class
|
91
|
+
# Request for the Acknowledge method.
|
92
|
+
class AcknowledgeRequest
|
104
93
|
include Google::Apis::Core::Hashable
|
105
94
|
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# Corresponds to the JSON property `
|
109
|
-
# @return [String]
|
110
|
-
attr_accessor :role
|
111
|
-
|
112
|
-
# Specifies the identities requesting access for a Cloud Platform resource. `
|
113
|
-
# members` can have the following values: * `allUsers`: A special identifier
|
114
|
-
# that represents anyone who is on the internet; with or without a Google
|
115
|
-
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
116
|
-
# anyone who is authenticated with a Google account or a service account. * `
|
117
|
-
# user:`emailid``: An email address that represents a specific Google account.
|
118
|
-
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
|
119
|
-
# emailid``: An email address that represents a service account. For example, `
|
120
|
-
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
|
121
|
-
# address that represents a Google group. For example, `admins@example.com`. * `
|
122
|
-
# domain:`domain``: A Google Apps domain name that represents all the users of
|
123
|
-
# that domain. For example, `google.com` or `example.com`.
|
124
|
-
# Corresponds to the JSON property `members`
|
95
|
+
# The acknowledgment ID for the messages being acknowledged that was returned
|
96
|
+
# by the Pub/Sub system in the `Pull` response. Must not be empty.
|
97
|
+
# Corresponds to the JSON property `ackIds`
|
125
98
|
# @return [Array<String>]
|
126
|
-
attr_accessor :
|
99
|
+
attr_accessor :ack_ids
|
127
100
|
|
128
101
|
def initialize(**args)
|
129
102
|
update!(**args)
|
@@ -131,40 +104,44 @@ module Google
|
|
131
104
|
|
132
105
|
# Update properties of this object
|
133
106
|
def update!(**args)
|
134
|
-
@
|
135
|
-
@members = args[:members] if args.key?(:members)
|
107
|
+
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
136
108
|
end
|
137
109
|
end
|
138
110
|
|
139
|
-
#
|
140
|
-
|
111
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
112
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
113
|
+
# or the response type of an API method. For instance:
|
114
|
+
# service Foo `
|
115
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
116
|
+
# `
|
117
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
118
|
+
class Empty
|
141
119
|
include Google::Apis::Core::Hashable
|
142
120
|
|
143
|
-
# The set of permissions to check for the `resource`. Permissions with wildcards
|
144
|
-
# (such as '*' or 'storage.*') are not allowed. For more information see IAM
|
145
|
-
# Overview.
|
146
|
-
# Corresponds to the JSON property `permissions`
|
147
|
-
# @return [Array<String>]
|
148
|
-
attr_accessor :permissions
|
149
|
-
|
150
121
|
def initialize(**args)
|
151
122
|
update!(**args)
|
152
123
|
end
|
153
124
|
|
154
125
|
# Update properties of this object
|
155
126
|
def update!(**args)
|
156
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
157
127
|
end
|
158
128
|
end
|
159
129
|
|
160
|
-
# Response
|
161
|
-
class
|
130
|
+
# Response for the `ListTopicSubscriptions` method.
|
131
|
+
class ListTopicSubscriptionsResponse
|
162
132
|
include Google::Apis::Core::Hashable
|
163
133
|
|
164
|
-
#
|
165
|
-
#
|
134
|
+
# If not empty, indicates that there may be more subscriptions that match
|
135
|
+
# the request; this value should be passed in a new
|
136
|
+
# `ListTopicSubscriptionsRequest` to get more subscriptions.
|
137
|
+
# Corresponds to the JSON property `nextPageToken`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :next_page_token
|
140
|
+
|
141
|
+
# The names of the subscriptions that match the request.
|
142
|
+
# Corresponds to the JSON property `subscriptions`
|
166
143
|
# @return [Array<String>]
|
167
|
-
attr_accessor :
|
144
|
+
attr_accessor :subscriptions
|
168
145
|
|
169
146
|
def initialize(**args)
|
170
147
|
update!(**args)
|
@@ -172,22 +149,22 @@ module Google
|
|
172
149
|
|
173
150
|
# Update properties of this object
|
174
151
|
def update!(**args)
|
175
|
-
@
|
152
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
153
|
+
@subscriptions = args[:subscriptions] if args.key?(:subscriptions)
|
176
154
|
end
|
177
155
|
end
|
178
156
|
|
179
|
-
#
|
180
|
-
class
|
157
|
+
# Response for the `Pull` method.
|
158
|
+
class PullResponse
|
181
159
|
include Google::Apis::Core::Hashable
|
182
160
|
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
|
190
|
-
attr_accessor :name
|
161
|
+
# Received Pub/Sub messages. The Pub/Sub system will return zero messages if
|
162
|
+
# there are no more available in the backlog. The Pub/Sub system may return
|
163
|
+
# fewer than the `maxMessages` requested even if there are more messages
|
164
|
+
# available in the backlog.
|
165
|
+
# Corresponds to the JSON property `receivedMessages`
|
166
|
+
# @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
|
167
|
+
attr_accessor :received_messages
|
191
168
|
|
192
169
|
def initialize(**args)
|
193
170
|
update!(**args)
|
@@ -195,18 +172,24 @@ module Google
|
|
195
172
|
|
196
173
|
# Update properties of this object
|
197
174
|
def update!(**args)
|
198
|
-
@
|
175
|
+
@received_messages = args[:received_messages] if args.key?(:received_messages)
|
199
176
|
end
|
200
177
|
end
|
201
178
|
|
202
|
-
#
|
203
|
-
class
|
179
|
+
# A message and its corresponding acknowledgment ID.
|
180
|
+
class ReceivedMessage
|
204
181
|
include Google::Apis::Core::Hashable
|
205
182
|
|
206
|
-
# The
|
207
|
-
#
|
208
|
-
#
|
209
|
-
|
183
|
+
# A message data and its attributes. The message payload must not be empty;
|
184
|
+
# it must contain either a non-empty data field, or at least one attribute.
|
185
|
+
# Corresponds to the JSON property `message`
|
186
|
+
# @return [Google::Apis::PubsubV1::Message]
|
187
|
+
attr_accessor :message
|
188
|
+
|
189
|
+
# This ID can be used to acknowledge the received message.
|
190
|
+
# Corresponds to the JSON property `ackId`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :ack_id
|
210
193
|
|
211
194
|
def initialize(**args)
|
212
195
|
update!(**args)
|
@@ -214,63 +197,61 @@ module Google
|
|
214
197
|
|
215
198
|
# Update properties of this object
|
216
199
|
def update!(**args)
|
217
|
-
@
|
200
|
+
@message = args[:message] if args.key?(:message)
|
201
|
+
@ack_id = args[:ack_id] if args.key?(:ack_id)
|
218
202
|
end
|
219
203
|
end
|
220
204
|
|
221
|
-
#
|
222
|
-
|
223
|
-
class Message
|
205
|
+
# Configuration for a push delivery endpoint.
|
206
|
+
class PushConfig
|
224
207
|
include Google::Apis::Core::Hashable
|
225
208
|
|
226
|
-
#
|
227
|
-
#
|
228
|
-
# Corresponds to the JSON property `
|
209
|
+
# A URL locating the endpoint to which messages should be pushed.
|
210
|
+
# For example, a Webhook endpoint might use "https://example.com/push".
|
211
|
+
# Corresponds to the JSON property `pushEndpoint`
|
229
212
|
# @return [String]
|
230
|
-
attr_accessor :
|
213
|
+
attr_accessor :push_endpoint
|
231
214
|
|
232
|
-
#
|
215
|
+
# Endpoint configuration attributes.
|
216
|
+
# Every endpoint has a set of API supported attributes that can be used to
|
217
|
+
# control different aspects of the message delivery.
|
218
|
+
# The currently supported attribute is `x-goog-version`, which you can
|
219
|
+
# use to change the format of the pushed message. This attribute
|
220
|
+
# indicates the version of the data expected by the endpoint. This
|
221
|
+
# controls the shape of the pushed message (i.e., its fields and metadata).
|
222
|
+
# The endpoint version is based on the version of the Pub/Sub API.
|
223
|
+
# If not present during the `CreateSubscription` call, it will default to
|
224
|
+
# the version of the API used to make such call. If not present during a
|
225
|
+
# `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
|
226
|
+
# calls will always return a valid version, even if the subscription was
|
227
|
+
# created without this attribute.
|
228
|
+
# The possible values for this attribute are:
|
229
|
+
# * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
|
230
|
+
# * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
|
233
231
|
# Corresponds to the JSON property `attributes`
|
234
232
|
# @return [Hash<String,String>]
|
235
233
|
attr_accessor :attributes
|
236
234
|
|
237
|
-
# ID of this message, assigned by the server when the message is published.
|
238
|
-
# Guaranteed to be unique within the topic. This value may be read by a
|
239
|
-
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
240
|
-
# delivery. It must not be populated by the publisher in a `Publish` call.
|
241
|
-
# Corresponds to the JSON property `messageId`
|
242
|
-
# @return [String]
|
243
|
-
attr_accessor :message_id
|
244
|
-
|
245
|
-
# The time at which the message was published, populated by the server when it
|
246
|
-
# receives the `Publish` call. It must not be populated by the publisher in a `
|
247
|
-
# Publish` call.
|
248
|
-
# Corresponds to the JSON property `publishTime`
|
249
|
-
# @return [String]
|
250
|
-
attr_accessor :publish_time
|
251
|
-
|
252
235
|
def initialize(**args)
|
253
236
|
update!(**args)
|
254
237
|
end
|
255
238
|
|
256
239
|
# Update properties of this object
|
257
240
|
def update!(**args)
|
258
|
-
@
|
241
|
+
@push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
|
259
242
|
@attributes = args[:attributes] if args.key?(:attributes)
|
260
|
-
@message_id = args[:message_id] if args.key?(:message_id)
|
261
|
-
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
262
243
|
end
|
263
244
|
end
|
264
245
|
|
265
|
-
# Response for
|
266
|
-
class
|
246
|
+
# Response message for `TestIamPermissions` method.
|
247
|
+
class TestIamPermissionsResponse
|
267
248
|
include Google::Apis::Core::Hashable
|
268
249
|
|
269
|
-
#
|
270
|
-
#
|
271
|
-
# Corresponds to the JSON property `
|
250
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
251
|
+
# allowed.
|
252
|
+
# Corresponds to the JSON property `permissions`
|
272
253
|
# @return [Array<String>]
|
273
|
-
attr_accessor :
|
254
|
+
attr_accessor :permissions
|
274
255
|
|
275
256
|
def initialize(**args)
|
276
257
|
update!(**args)
|
@@ -278,24 +259,30 @@ module Google
|
|
278
259
|
|
279
260
|
# Update properties of this object
|
280
261
|
def update!(**args)
|
281
|
-
@
|
262
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
282
263
|
end
|
283
264
|
end
|
284
265
|
|
285
|
-
#
|
286
|
-
class
|
266
|
+
# Request for the `Pull` method.
|
267
|
+
class PullRequest
|
287
268
|
include Google::Apis::Core::Hashable
|
288
269
|
|
289
|
-
#
|
290
|
-
#
|
291
|
-
#
|
292
|
-
|
270
|
+
# If this field set to true, the system will respond immediately even if
|
271
|
+
# it there are no messages available to return in the `Pull` response.
|
272
|
+
# Otherwise, the system may wait (for a bounded amount of time) until at
|
273
|
+
# least one message is available, rather than returning no messages. The
|
274
|
+
# client may cancel the request if it does not wish to wait any longer for
|
275
|
+
# the response.
|
276
|
+
# Corresponds to the JSON property `returnImmediately`
|
277
|
+
# @return [Boolean]
|
278
|
+
attr_accessor :return_immediately
|
279
|
+
alias_method :return_immediately?, :return_immediately
|
293
280
|
|
294
|
-
#
|
295
|
-
#
|
296
|
-
# Corresponds to the JSON property `
|
297
|
-
# @return [
|
298
|
-
attr_accessor :
|
281
|
+
# The maximum number of messages returned for this request. The Pub/Sub
|
282
|
+
# system may return fewer than the number specified.
|
283
|
+
# Corresponds to the JSON property `maxMessages`
|
284
|
+
# @return [Fixnum]
|
285
|
+
attr_accessor :max_messages
|
299
286
|
|
300
287
|
def initialize(**args)
|
301
288
|
update!(**args)
|
@@ -303,23 +290,23 @@ module Google
|
|
303
290
|
|
304
291
|
# Update properties of this object
|
305
292
|
def update!(**args)
|
306
|
-
@
|
307
|
-
@
|
293
|
+
@return_immediately = args[:return_immediately] if args.key?(:return_immediately)
|
294
|
+
@max_messages = args[:max_messages] if args.key?(:max_messages)
|
308
295
|
end
|
309
296
|
end
|
310
297
|
|
311
|
-
# Response for the `
|
312
|
-
class
|
298
|
+
# Response for the `ListSubscriptions` method.
|
299
|
+
class ListSubscriptionsResponse
|
313
300
|
include Google::Apis::Core::Hashable
|
314
301
|
|
315
|
-
# The
|
302
|
+
# The subscriptions that match the request.
|
316
303
|
# Corresponds to the JSON property `subscriptions`
|
317
|
-
# @return [Array<
|
304
|
+
# @return [Array<Google::Apis::PubsubV1::Subscription>]
|
318
305
|
attr_accessor :subscriptions
|
319
306
|
|
320
|
-
# If not empty, indicates that there may be more subscriptions that match
|
321
|
-
# request; this value should be passed in a new
|
322
|
-
# to get more subscriptions.
|
307
|
+
# If not empty, indicates that there may be more subscriptions that match
|
308
|
+
# the request; this value should be passed in a new
|
309
|
+
# `ListSubscriptionsRequest` to get more subscriptions.
|
323
310
|
# Corresponds to the JSON property `nextPageToken`
|
324
311
|
# @return [String]
|
325
312
|
attr_accessor :next_page_token
|
@@ -335,103 +322,117 @@ module Google
|
|
335
322
|
end
|
336
323
|
end
|
337
324
|
|
338
|
-
#
|
339
|
-
|
340
|
-
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
341
|
-
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
342
|
-
# `Empty` is empty JSON object ````.
|
343
|
-
class Empty
|
325
|
+
# Request for the Publish method.
|
326
|
+
class PublishRequest
|
344
327
|
include Google::Apis::Core::Hashable
|
345
328
|
|
329
|
+
# The messages to publish.
|
330
|
+
# Corresponds to the JSON property `messages`
|
331
|
+
# @return [Array<Google::Apis::PubsubV1::Message>]
|
332
|
+
attr_accessor :messages
|
333
|
+
|
346
334
|
def initialize(**args)
|
347
335
|
update!(**args)
|
348
336
|
end
|
349
337
|
|
350
338
|
# Update properties of this object
|
351
339
|
def update!(**args)
|
340
|
+
@messages = args[:messages] if args.key?(:messages)
|
352
341
|
end
|
353
342
|
end
|
354
343
|
|
355
|
-
#
|
356
|
-
class
|
344
|
+
# Response for the `Publish` method.
|
345
|
+
class PublishResponse
|
357
346
|
include Google::Apis::Core::Hashable
|
358
347
|
|
359
|
-
# The
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
|
365
|
-
# Corresponds to the JSON property `name`
|
366
|
-
# @return [String]
|
367
|
-
attr_accessor :name
|
348
|
+
# The server-assigned ID of each published message, in the same order as
|
349
|
+
# the messages in the request. IDs are guaranteed to be unique within
|
350
|
+
# the topic.
|
351
|
+
# Corresponds to the JSON property `messageIds`
|
352
|
+
# @return [Array<String>]
|
353
|
+
attr_accessor :message_ids
|
368
354
|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
355
|
+
def initialize(**args)
|
356
|
+
update!(**args)
|
357
|
+
end
|
358
|
+
|
359
|
+
# Update properties of this object
|
360
|
+
def update!(**args)
|
361
|
+
@message_ids = args[:message_ids] if args.key?(:message_ids)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# A subscription resource.
|
366
|
+
class Subscription
|
367
|
+
include Google::Apis::Core::Hashable
|
374
368
|
|
375
369
|
# Configuration for a push delivery endpoint.
|
376
370
|
# Corresponds to the JSON property `pushConfig`
|
377
371
|
# @return [Google::Apis::PubsubV1::PushConfig]
|
378
372
|
attr_accessor :push_config
|
379
373
|
|
380
|
-
# This value is the maximum time after a subscriber receives a message
|
381
|
-
# the subscriber should acknowledge the message. After message
|
382
|
-
# before the ack deadline expires and before the message is
|
383
|
-
# an outstanding message and will not be delivered
|
384
|
-
# best-effort basis).
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
374
|
+
# This value is the maximum time after a subscriber receives a message
|
375
|
+
# before the subscriber should acknowledge the message. After message
|
376
|
+
# delivery but before the ack deadline expires and before the message is
|
377
|
+
# acknowledged, it is an outstanding message and will not be delivered
|
378
|
+
# again during that time (on a best-effort basis).
|
379
|
+
# For pull subscriptions, this value is used as the initial value for the ack
|
380
|
+
# deadline. To override this value for a given message, call
|
381
|
+
# `ModifyAckDeadline` with the corresponding `ack_id` if using
|
382
|
+
# pull.
|
383
|
+
# The minimum custom deadline you can specify is 10 seconds.
|
384
|
+
# The maximum custom deadline you can specify is 600 seconds (10 minutes).
|
385
|
+
# If this parameter is 0, a default value of 10 seconds is used.
|
386
|
+
# For push delivery, this value is also used to set the request timeout for
|
387
|
+
# the call to the push endpoint.
|
388
|
+
# If the subscriber never acknowledges the message, the Pub/Sub
|
389
|
+
# system will eventually redeliver the message.
|
391
390
|
# Corresponds to the JSON property `ackDeadlineSeconds`
|
392
391
|
# @return [Fixnum]
|
393
392
|
attr_accessor :ack_deadline_seconds
|
394
393
|
|
394
|
+
# The name of the subscription. It must have the format
|
395
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
396
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
397
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
398
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
399
|
+
# in length, and it must not start with `"goog"`.
|
400
|
+
# Corresponds to the JSON property `name`
|
401
|
+
# @return [String]
|
402
|
+
attr_accessor :name
|
403
|
+
|
404
|
+
# The name of the topic from which this subscription is receiving messages.
|
405
|
+
# Format is `projects/`project`/topics/`topic``.
|
406
|
+
# The value of this field will be `_deleted-topic_` if the topic has been
|
407
|
+
# deleted.
|
408
|
+
# Corresponds to the JSON property `topic`
|
409
|
+
# @return [String]
|
410
|
+
attr_accessor :topic
|
411
|
+
|
395
412
|
def initialize(**args)
|
396
413
|
update!(**args)
|
397
414
|
end
|
398
415
|
|
399
416
|
# Update properties of this object
|
400
417
|
def update!(**args)
|
401
|
-
@name = args[:name] if args.key?(:name)
|
402
|
-
@topic = args[:topic] if args.key?(:topic)
|
403
418
|
@push_config = args[:push_config] if args.key?(:push_config)
|
404
419
|
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
420
|
+
@name = args[:name] if args.key?(:name)
|
421
|
+
@topic = args[:topic] if args.key?(:topic)
|
405
422
|
end
|
406
423
|
end
|
407
424
|
|
408
|
-
#
|
409
|
-
class
|
425
|
+
# Request message for `TestIamPermissions` method.
|
426
|
+
class TestIamPermissionsRequest
|
410
427
|
include Google::Apis::Core::Hashable
|
411
428
|
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
# attributes that can be used to control different aspects of the message
|
420
|
-
# delivery. The currently supported attribute is `x-goog-version`, which you can
|
421
|
-
# use to change the format of the push message. This attribute indicates the
|
422
|
-
# version of the data expected by the endpoint. This controls the shape of the
|
423
|
-
# envelope (i.e. its fields and metadata). The endpoint version is based on the
|
424
|
-
# version of the Pub/Sub API. If not present during the `CreateSubscription`
|
425
|
-
# call, it will default to the version of the API used to make such call. If not
|
426
|
-
# present during a `ModifyPushConfig` call, its value will not be changed. `
|
427
|
-
# GetSubscription` calls will always return a valid version, even if the
|
428
|
-
# subscription was created without this attribute. The possible values for this
|
429
|
-
# attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/
|
430
|
-
# Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub
|
431
|
-
# API.
|
432
|
-
# Corresponds to the JSON property `attributes`
|
433
|
-
# @return [Hash<String,String>]
|
434
|
-
attr_accessor :attributes
|
429
|
+
# The set of permissions to check for the `resource`. Permissions with
|
430
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
431
|
+
# information see
|
432
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
433
|
+
# Corresponds to the JSON property `permissions`
|
434
|
+
# @return [Array<String>]
|
435
|
+
attr_accessor :permissions
|
435
436
|
|
436
437
|
def initialize(**args)
|
437
438
|
update!(**args)
|
@@ -439,26 +440,63 @@ module Google
|
|
439
440
|
|
440
441
|
# Update properties of this object
|
441
442
|
def update!(**args)
|
442
|
-
@
|
443
|
-
@attributes = args[:attributes] if args.key?(:attributes)
|
443
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
444
444
|
end
|
445
445
|
end
|
446
446
|
|
447
|
-
#
|
448
|
-
|
447
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
448
|
+
# specify access control policies for Cloud Platform resources.
|
449
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
450
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
451
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
452
|
+
# defined by IAM.
|
453
|
+
# **Example**
|
454
|
+
# `
|
455
|
+
# "bindings": [
|
456
|
+
# `
|
457
|
+
# "role": "roles/owner",
|
458
|
+
# "members": [
|
459
|
+
# "user:mike@example.com",
|
460
|
+
# "group:admins@example.com",
|
461
|
+
# "domain:google.com",
|
462
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
463
|
+
# ]
|
464
|
+
# `,
|
465
|
+
# `
|
466
|
+
# "role": "roles/viewer",
|
467
|
+
# "members": ["user:sean@example.com"]
|
468
|
+
# `
|
469
|
+
# ]
|
470
|
+
# `
|
471
|
+
# For a description of IAM and its features, see the
|
472
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
473
|
+
class Policy
|
449
474
|
include Google::Apis::Core::Hashable
|
450
475
|
|
451
|
-
# The
|
452
|
-
# Corresponds to the JSON property `
|
453
|
-
# @return [
|
454
|
-
attr_accessor :
|
476
|
+
# Version of the `Policy`. The default version is 0.
|
477
|
+
# Corresponds to the JSON property `version`
|
478
|
+
# @return [Fixnum]
|
479
|
+
attr_accessor :version
|
455
480
|
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
# Corresponds to the JSON property `
|
481
|
+
# Associates a list of `members` to a `role`.
|
482
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
483
|
+
# `bindings` with no members will result in an error.
|
484
|
+
# Corresponds to the JSON property `bindings`
|
485
|
+
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
486
|
+
attr_accessor :bindings
|
487
|
+
|
488
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
489
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
490
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
491
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
492
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
493
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
494
|
+
# ensure that their change will be applied to the same version of the policy.
|
495
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
496
|
+
# policy is overwritten blindly.
|
497
|
+
# Corresponds to the JSON property `etag`
|
460
498
|
# @return [String]
|
461
|
-
attr_accessor :
|
499
|
+
attr_accessor :etag
|
462
500
|
|
463
501
|
def initialize(**args)
|
464
502
|
update!(**args)
|
@@ -466,28 +504,25 @@ module Google
|
|
466
504
|
|
467
505
|
# Update properties of this object
|
468
506
|
def update!(**args)
|
469
|
-
@
|
470
|
-
@
|
507
|
+
@version = args[:version] if args.key?(:version)
|
508
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
509
|
+
@etag = args[:etag] if args.key?(:etag)
|
471
510
|
end
|
472
511
|
end
|
473
512
|
|
474
|
-
#
|
475
|
-
class
|
513
|
+
# A topic resource.
|
514
|
+
class Topic
|
476
515
|
include Google::Apis::Core::Hashable
|
477
516
|
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
|
482
|
-
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
|
487
|
-
# request.
|
488
|
-
# Corresponds to the JSON property `ackDeadlineSeconds`
|
489
|
-
# @return [Fixnum]
|
490
|
-
attr_accessor :ack_deadline_seconds
|
517
|
+
# The name of the topic. It must have the format
|
518
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
519
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
520
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
521
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
522
|
+
# must not start with `"goog"`.
|
523
|
+
# Corresponds to the JSON property `name`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :name
|
491
526
|
|
492
527
|
def initialize(**args)
|
493
528
|
update!(**args)
|
@@ -495,17 +530,26 @@ module Google
|
|
495
530
|
|
496
531
|
# Update properties of this object
|
497
532
|
def update!(**args)
|
498
|
-
@
|
499
|
-
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
533
|
+
@name = args[:name] if args.key?(:name)
|
500
534
|
end
|
501
535
|
end
|
502
536
|
|
503
|
-
# Request for the
|
504
|
-
class
|
537
|
+
# Request for the ModifyAckDeadline method.
|
538
|
+
class ModifyAckDeadlineRequest
|
505
539
|
include Google::Apis::Core::Hashable
|
506
540
|
|
507
|
-
# The
|
508
|
-
# the Pub/Sub system
|
541
|
+
# The new ack deadline with respect to the time this request was sent to
|
542
|
+
# the Pub/Sub system. For example, if the value is 10, the new
|
543
|
+
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
|
544
|
+
# was made. Specifying zero may immediately make the message available for
|
545
|
+
# another pull request.
|
546
|
+
# The minimum deadline you can specify is 0 seconds.
|
547
|
+
# The maximum deadline you can specify is 600 seconds (10 minutes).
|
548
|
+
# Corresponds to the JSON property `ackDeadlineSeconds`
|
549
|
+
# @return [Fixnum]
|
550
|
+
attr_accessor :ack_deadline_seconds
|
551
|
+
|
552
|
+
# List of acknowledgment IDs.
|
509
553
|
# Corresponds to the JSON property `ackIds`
|
510
554
|
# @return [Array<String>]
|
511
555
|
attr_accessor :ack_ids
|
@@ -516,29 +560,44 @@ module Google
|
|
516
560
|
|
517
561
|
# Update properties of this object
|
518
562
|
def update!(**args)
|
563
|
+
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
519
564
|
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
520
565
|
end
|
521
566
|
end
|
522
567
|
|
523
|
-
# Request for
|
524
|
-
class
|
568
|
+
# Request message for `SetIamPolicy` method.
|
569
|
+
class SetIamPolicyRequest
|
525
570
|
include Google::Apis::Core::Hashable
|
526
571
|
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
# @
|
541
|
-
|
572
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
573
|
+
# specify access control policies for Cloud Platform resources.
|
574
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
575
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
576
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
577
|
+
# defined by IAM.
|
578
|
+
# **Example**
|
579
|
+
# `
|
580
|
+
# "bindings": [
|
581
|
+
# `
|
582
|
+
# "role": "roles/owner",
|
583
|
+
# "members": [
|
584
|
+
# "user:mike@example.com",
|
585
|
+
# "group:admins@example.com",
|
586
|
+
# "domain:google.com",
|
587
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
588
|
+
# ]
|
589
|
+
# `,
|
590
|
+
# `
|
591
|
+
# "role": "roles/viewer",
|
592
|
+
# "members": ["user:sean@example.com"]
|
593
|
+
# `
|
594
|
+
# ]
|
595
|
+
# `
|
596
|
+
# For a description of IAM and its features, see the
|
597
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
598
|
+
# Corresponds to the JSON property `policy`
|
599
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
600
|
+
attr_accessor :policy
|
542
601
|
|
543
602
|
def initialize(**args)
|
544
603
|
update!(**args)
|
@@ -546,47 +605,39 @@ module Google
|
|
546
605
|
|
547
606
|
# Update properties of this object
|
548
607
|
def update!(**args)
|
549
|
-
@
|
550
|
-
@max_messages = args[:max_messages] if args.key?(:max_messages)
|
608
|
+
@policy = args[:policy] if args.key?(:policy)
|
551
609
|
end
|
552
610
|
end
|
553
611
|
|
554
|
-
#
|
555
|
-
|
612
|
+
# A message data and its attributes. The message payload must not be empty;
|
613
|
+
# it must contain either a non-empty data field, or at least one attribute.
|
614
|
+
class Message
|
556
615
|
include Google::Apis::Core::Hashable
|
557
616
|
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
|
564
|
-
attr_accessor :received_messages
|
565
|
-
|
566
|
-
def initialize(**args)
|
567
|
-
update!(**args)
|
568
|
-
end
|
617
|
+
# The time at which the message was published, populated by the server when
|
618
|
+
# it receives the `Publish` call. It must not be populated by the
|
619
|
+
# publisher in a `Publish` call.
|
620
|
+
# Corresponds to the JSON property `publishTime`
|
621
|
+
# @return [String]
|
622
|
+
attr_accessor :publish_time
|
569
623
|
|
570
|
-
#
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
end
|
624
|
+
# The message payload.
|
625
|
+
# Corresponds to the JSON property `data`
|
626
|
+
# @return [String]
|
627
|
+
attr_accessor :data
|
575
628
|
|
576
|
-
|
577
|
-
|
578
|
-
|
629
|
+
# Optional attributes for this message.
|
630
|
+
# Corresponds to the JSON property `attributes`
|
631
|
+
# @return [Hash<String,String>]
|
632
|
+
attr_accessor :attributes
|
579
633
|
|
580
|
-
#
|
581
|
-
#
|
634
|
+
# ID of this message, assigned by the server when the message is published.
|
635
|
+
# Guaranteed to be unique within the topic. This value may be read by a
|
636
|
+
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
637
|
+
# delivery. It must not be populated by the publisher in a `Publish` call.
|
638
|
+
# Corresponds to the JSON property `messageId`
|
582
639
|
# @return [String]
|
583
|
-
attr_accessor :
|
584
|
-
|
585
|
-
# A message data and its attributes. The message payload must not be empty; it
|
586
|
-
# must contain either a non-empty data field, or at least one attribute.
|
587
|
-
# Corresponds to the JSON property `message`
|
588
|
-
# @return [Google::Apis::PubsubV1::Message]
|
589
|
-
attr_accessor :message
|
640
|
+
attr_accessor :message_id
|
590
641
|
|
591
642
|
def initialize(**args)
|
592
643
|
update!(**args)
|
@@ -594,8 +645,10 @@ module Google
|
|
594
645
|
|
595
646
|
# Update properties of this object
|
596
647
|
def update!(**args)
|
597
|
-
@
|
598
|
-
@
|
648
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
649
|
+
@data = args[:data] if args.key?(:data)
|
650
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
651
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
599
652
|
end
|
600
653
|
end
|
601
654
|
|