google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- 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 +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- 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 +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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 +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -22,300 +22,300 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class PublishResponse
|
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 Subscription
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class TestIamPermissionsRequest
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class Policy
|
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 Topic
|
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 ModifyAckDeadlineRequest
|
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 SetIamPolicyRequest
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class ModifyPushConfigRequest
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class Message
|
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 Binding
|
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 Empty
|
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 AcknowledgeRequest
|
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 ListTopicsResponse
|
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 ListTopicSubscriptionsResponse
|
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 PullResponse
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
-
class
|
115
|
+
class ReceivedMessage
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
117
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class PushConfig
|
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 TestIamPermissionsResponse
|
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 PullRequest
|
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 ListSubscriptionsResponse
|
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 PublishRequest
|
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 PublishResponse
|
152
152
|
# @private
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
|
155
|
-
collection :subscriptions, as: 'subscriptions'
|
154
|
+
collection :message_ids, as: 'messageIds'
|
156
155
|
end
|
157
156
|
end
|
158
157
|
|
159
|
-
class
|
158
|
+
class Subscription
|
160
159
|
# @private
|
161
160
|
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
-
|
161
|
+
property :topic, as: 'topic'
|
162
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
163
163
|
|
164
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
165
|
+
property :name, as: 'name'
|
164
166
|
end
|
165
167
|
end
|
166
168
|
|
167
|
-
class
|
169
|
+
class TestIamPermissionsRequest
|
168
170
|
# @private
|
169
171
|
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
-
|
171
|
-
|
172
|
-
property :ack_id, as: 'ackId'
|
172
|
+
collection :permissions, as: 'permissions'
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
-
class
|
176
|
+
class Policy
|
177
177
|
# @private
|
178
178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
-
property :
|
180
|
-
|
179
|
+
property :etag, :base64 => true, as: 'etag'
|
180
|
+
property :version, as: 'version'
|
181
|
+
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
182
|
+
|
181
183
|
end
|
182
184
|
end
|
183
185
|
|
184
|
-
class
|
186
|
+
class Topic
|
185
187
|
# @private
|
186
188
|
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
-
|
189
|
+
property :name, as: 'name'
|
188
190
|
end
|
189
191
|
end
|
190
192
|
|
191
|
-
class
|
193
|
+
class ModifyAckDeadlineRequest
|
192
194
|
# @private
|
193
195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
-
property :
|
195
|
-
|
196
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
197
|
+
collection :ack_ids, as: 'ackIds'
|
196
198
|
end
|
197
199
|
end
|
198
200
|
|
199
|
-
class
|
201
|
+
class SetIamPolicyRequest
|
200
202
|
# @private
|
201
203
|
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
-
property :
|
203
|
-
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
204
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
204
205
|
|
205
206
|
end
|
206
207
|
end
|
207
208
|
|
208
|
-
class
|
209
|
+
class ModifyPushConfigRequest
|
209
210
|
# @private
|
210
211
|
class Representation < Google::Apis::Core::JsonRepresentation
|
211
|
-
|
212
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
212
213
|
|
213
214
|
end
|
214
215
|
end
|
215
216
|
|
216
|
-
class
|
217
|
+
class Message
|
217
218
|
# @private
|
218
219
|
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
|
220
|
+
property :message_id, as: 'messageId'
|
221
|
+
hash :attributes, as: 'attributes'
|
222
|
+
property :publish_time, as: 'publishTime'
|
223
|
+
property :data, :base64 => true, as: 'data'
|
220
224
|
end
|
221
225
|
end
|
222
226
|
|
223
|
-
class
|
227
|
+
class Binding
|
224
228
|
# @private
|
225
229
|
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
-
property :
|
227
|
-
|
228
|
-
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
229
|
-
property :name, as: 'name'
|
230
|
-
property :topic, as: 'topic'
|
230
|
+
property :role, as: 'role'
|
231
|
+
collection :members, as: 'members'
|
231
232
|
end
|
232
233
|
end
|
233
234
|
|
234
|
-
class
|
235
|
+
class Empty
|
235
236
|
# @private
|
236
237
|
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
-
collection :permissions, as: 'permissions'
|
238
238
|
end
|
239
239
|
end
|
240
240
|
|
241
|
-
class
|
241
|
+
class AcknowledgeRequest
|
242
242
|
# @private
|
243
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
-
|
244
|
+
collection :ack_ids, as: 'ackIds'
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
248
|
-
class
|
248
|
+
class ListTopicsResponse
|
249
249
|
# @private
|
250
250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
-
property :
|
252
|
-
|
253
|
-
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
251
|
+
property :next_page_token, as: 'nextPageToken'
|
252
|
+
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
254
253
|
|
255
254
|
end
|
256
255
|
end
|
257
256
|
|
258
|
-
class
|
257
|
+
class ListTopicSubscriptionsResponse
|
259
258
|
# @private
|
260
259
|
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
-
property :
|
262
|
-
collection :
|
260
|
+
property :next_page_token, as: 'nextPageToken'
|
261
|
+
collection :subscriptions, as: 'subscriptions'
|
263
262
|
end
|
264
263
|
end
|
265
264
|
|
266
|
-
class
|
265
|
+
class PullResponse
|
267
266
|
# @private
|
268
267
|
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
|
268
|
+
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
|
270
269
|
|
271
270
|
end
|
272
271
|
end
|
273
272
|
|
274
|
-
class
|
273
|
+
class ReceivedMessage
|
275
274
|
# @private
|
276
275
|
class Representation < Google::Apis::Core::JsonRepresentation
|
277
|
-
property :
|
276
|
+
property :ack_id, as: 'ackId'
|
277
|
+
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
278
278
|
|
279
279
|
end
|
280
280
|
end
|
281
281
|
|
282
|
-
class
|
282
|
+
class PushConfig
|
283
283
|
# @private
|
284
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
285
|
-
property :data, :base64 => true, as: 'data'
|
286
285
|
hash :attributes, as: 'attributes'
|
287
|
-
property :
|
288
|
-
property :publish_time, as: 'publishTime'
|
286
|
+
property :push_endpoint, as: 'pushEndpoint'
|
289
287
|
end
|
290
288
|
end
|
291
289
|
|
292
|
-
class
|
290
|
+
class TestIamPermissionsResponse
|
293
291
|
# @private
|
294
292
|
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
-
collection :
|
296
|
-
property :role, as: 'role'
|
293
|
+
collection :permissions, as: 'permissions'
|
297
294
|
end
|
298
295
|
end
|
299
296
|
|
300
|
-
class
|
297
|
+
class PullRequest
|
301
298
|
# @private
|
302
299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
-
|
304
|
-
|
305
|
-
property :next_page_token, as: 'nextPageToken'
|
300
|
+
property :return_immediately, as: 'returnImmediately'
|
301
|
+
property :max_messages, as: 'maxMessages'
|
306
302
|
end
|
307
303
|
end
|
308
304
|
|
309
|
-
class
|
305
|
+
class ListSubscriptionsResponse
|
310
306
|
# @private
|
311
307
|
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
+
property :next_page_token, as: 'nextPageToken'
|
309
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
310
|
+
|
312
311
|
end
|
313
312
|
end
|
314
313
|
|
315
|
-
class
|
314
|
+
class PublishRequest
|
316
315
|
# @private
|
317
316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
-
collection :
|
317
|
+
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
318
|
+
|
319
319
|
end
|
320
320
|
end
|
321
321
|
end
|
@@ -47,6 +47,41 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
+
# Sets the access control policy on the specified resource. Replaces any
|
51
|
+
# existing policy.
|
52
|
+
# @param [String] resource
|
53
|
+
# REQUIRED: The resource for which the policy is being specified.
|
54
|
+
# See the operation documentation for the appropriate value for this field.
|
55
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# 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
|
+
# @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 set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
75
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
76
|
+
command.request_object = set_iam_policy_request_object
|
77
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
78
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
79
|
+
command.params['resource'] = resource unless resource.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
50
85
|
# Returns permissions that a caller has on the specified resource.
|
51
86
|
# If the resource does not exist, this will return an empty set of
|
52
87
|
# permissions, not a NOT_FOUND error.
|
@@ -74,7 +109,7 @@ module Google
|
|
74
109
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
110
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
111
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
-
def
|
112
|
+
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
78
113
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
79
114
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
80
115
|
command.request_object = test_iam_permissions_request_object
|
@@ -86,15 +121,12 @@ module Google
|
|
86
121
|
execute_or_queue_command(command, &block)
|
87
122
|
end
|
88
123
|
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
# The name of the subscription.
|
96
|
-
# Format is `projects/`project`/subscriptions/`sub``.
|
97
|
-
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
124
|
+
# Gets the access control policy for a resource.
|
125
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
126
|
+
# set.
|
127
|
+
# @param [String] resource
|
128
|
+
# REQUIRED: The resource for which the policy is being requested.
|
129
|
+
# See the operation documentation for the appropriate value for this field.
|
98
130
|
# @param [String] quota_user
|
99
131
|
# Available to use for quota purposes for server-side applications. Can be any
|
100
132
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -104,21 +136,19 @@ module Google
|
|
104
136
|
# Request-specific options
|
105
137
|
#
|
106
138
|
# @yield [result, err] Result & error if block supplied
|
107
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
139
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
108
140
|
# @yieldparam err [StandardError] error object if request failed
|
109
141
|
#
|
110
|
-
# @return [Google::Apis::PubsubV1::
|
142
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
111
143
|
#
|
112
144
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
145
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
146
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
-
def
|
116
|
-
command = make_simple_command(:
|
117
|
-
command.
|
118
|
-
command.
|
119
|
-
command.
|
120
|
-
command.response_class = Google::Apis::PubsubV1::Empty
|
121
|
-
command.params['subscription'] = subscription unless subscription.nil?
|
147
|
+
def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
149
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
150
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
151
|
+
command.params['resource'] = resource unless resource.nil?
|
122
152
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
153
|
command.query['fields'] = fields unless fields.nil?
|
124
154
|
execute_or_queue_command(command, &block)
|
@@ -316,16 +346,12 @@ module Google
|
|
316
346
|
execute_or_queue_command(command, &block)
|
317
347
|
end
|
318
348
|
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
# @param [String] subscription
|
326
|
-
# The subscription whose message is being acknowledged.
|
327
|
-
# Format is `projects/`project`/subscriptions/`sub``.
|
328
|
-
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
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.
|
329
355
|
# @param [String] quota_user
|
330
356
|
# Available to use for quota purposes for server-side applications. Can be any
|
331
357
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -335,21 +361,19 @@ module Google
|
|
335
361
|
# Request-specific options
|
336
362
|
#
|
337
363
|
# @yield [result, err] Result & error if block supplied
|
338
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
364
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
339
365
|
# @yieldparam err [StandardError] error object if request failed
|
340
366
|
#
|
341
|
-
# @return [Google::Apis::PubsubV1::
|
367
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
342
368
|
#
|
343
369
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
344
370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
345
371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
346
|
-
def
|
347
|
-
command = make_simple_command(:
|
348
|
-
command.
|
349
|
-
command.
|
350
|
-
command.
|
351
|
-
command.response_class = Google::Apis::PubsubV1::Empty
|
352
|
-
command.params['subscription'] = subscription unless subscription.nil?
|
372
|
+
def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
373
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
374
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
375
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
376
|
+
command.params['resource'] = resource unless resource.nil?
|
353
377
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
354
378
|
command.query['fields'] = fields unless fields.nil?
|
355
379
|
execute_or_queue_command(command, &block)
|
@@ -393,12 +417,16 @@ module Google
|
|
393
417
|
execute_or_queue_command(command, &block)
|
394
418
|
end
|
395
419
|
|
396
|
-
#
|
397
|
-
#
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
#
|
420
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
421
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
422
|
+
# from the subscription.
|
423
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
424
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
425
|
+
# than once will not result in an error.
|
426
|
+
# @param [String] subscription
|
427
|
+
# The subscription whose message is being acknowledged.
|
428
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
429
|
+
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
402
430
|
# @param [String] quota_user
|
403
431
|
# Available to use for quota purposes for server-side applications. Can be any
|
404
432
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -408,19 +436,21 @@ module Google
|
|
408
436
|
# Request-specific options
|
409
437
|
#
|
410
438
|
# @yield [result, err] Result & error if block supplied
|
411
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
439
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
412
440
|
# @yieldparam err [StandardError] error object if request failed
|
413
441
|
#
|
414
|
-
# @return [Google::Apis::PubsubV1::
|
442
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
415
443
|
#
|
416
444
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
417
445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
418
446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
419
|
-
def
|
420
|
-
command = make_simple_command(:
|
421
|
-
command.
|
422
|
-
command.
|
423
|
-
command.
|
447
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
448
|
+
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
449
|
+
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
450
|
+
command.request_object = acknowledge_request_object
|
451
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
452
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
453
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
424
454
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
455
|
command.query['fields'] = fields unless fields.nil?
|
426
456
|
execute_or_queue_command(command, &block)
|
@@ -484,7 +514,7 @@ module Google
|
|
484
514
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
485
515
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
486
516
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
487
|
-
def
|
517
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
488
518
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
489
519
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
490
520
|
command.request_object = test_iam_permissions_request_object
|
@@ -496,12 +526,15 @@ module Google
|
|
496
526
|
execute_or_queue_command(command, &block)
|
497
527
|
end
|
498
528
|
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
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
|
505
538
|
# @param [String] quota_user
|
506
539
|
# Available to use for quota purposes for server-side applications. Can be any
|
507
540
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -511,19 +544,98 @@ module Google
|
|
511
544
|
# Request-specific options
|
512
545
|
#
|
513
546
|
# @yield [result, err] Result & error if block supplied
|
514
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
547
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
515
548
|
# @yieldparam err [StandardError] error object if request failed
|
516
549
|
#
|
517
|
-
# @return [Google::Apis::PubsubV1::
|
550
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
518
551
|
#
|
519
552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
520
553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
521
554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
522
|
-
def
|
523
|
-
command = make_simple_command(:
|
524
|
-
command.
|
525
|
-
command.
|
526
|
-
command.
|
555
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
556
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
|
557
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
|
558
|
+
command.request_object = modify_push_config_request_object
|
559
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
560
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
561
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
562
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
563
|
+
command.query['fields'] = fields unless fields.nil?
|
564
|
+
execute_or_queue_command(command, &block)
|
565
|
+
end
|
566
|
+
|
567
|
+
# Lists matching topics.
|
568
|
+
# @param [String] project
|
569
|
+
# The name of the cloud project that topics belong to.
|
570
|
+
# Format is `projects/`project``.
|
571
|
+
# @param [String] page_token
|
572
|
+
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
573
|
+
# a continuation of a prior `ListTopics` call, and that the system should
|
574
|
+
# return the next page of data.
|
575
|
+
# @param [Fixnum] page_size
|
576
|
+
# Maximum number of topics to return.
|
577
|
+
# @param [String] quota_user
|
578
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
579
|
+
# 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
|
+
# @param [Google::Apis::RequestOptions] options
|
583
|
+
# Request-specific options
|
584
|
+
#
|
585
|
+
# @yield [result, err] Result & error if block supplied
|
586
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
|
587
|
+
# @yieldparam err [StandardError] error object if request failed
|
588
|
+
#
|
589
|
+
# @return [Google::Apis::PubsubV1::ListTopicsResponse]
|
590
|
+
#
|
591
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
592
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
593
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
594
|
+
def list_topics(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
595
|
+
command = make_simple_command(:get, 'v1/{+project}/topics', options)
|
596
|
+
command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
|
597
|
+
command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
|
598
|
+
command.params['project'] = project unless project.nil?
|
599
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
600
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
602
|
+
command.query['fields'] = fields unless fields.nil?
|
603
|
+
execute_or_queue_command(command, &block)
|
604
|
+
end
|
605
|
+
|
606
|
+
# Creates the given topic with the given name.
|
607
|
+
# @param [String] name
|
608
|
+
# The name of the topic. It must have the format
|
609
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
610
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
611
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
612
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
613
|
+
# must not start with `"goog"`.
|
614
|
+
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
615
|
+
# @param [String] quota_user
|
616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
617
|
+
# 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
|
+
# @param [Google::Apis::RequestOptions] options
|
621
|
+
# Request-specific options
|
622
|
+
#
|
623
|
+
# @yield [result, err] Result & error if block supplied
|
624
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
625
|
+
# @yieldparam err [StandardError] error object if request failed
|
626
|
+
#
|
627
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
628
|
+
#
|
629
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
630
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
631
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
632
|
+
def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
633
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
634
|
+
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
635
|
+
command.request_object = topic_object
|
636
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
637
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
638
|
+
command.params['name'] = name unless name.nil?
|
527
639
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
528
640
|
command.query['fields'] = fields unless fields.nil?
|
529
641
|
execute_or_queue_command(command, &block)
|
@@ -552,7 +664,7 @@ module Google
|
|
552
664
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
553
665
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
554
666
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
555
|
-
def
|
667
|
+
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
556
668
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
557
669
|
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
558
670
|
command.request_object = set_iam_policy_request_object
|
@@ -738,118 +850,6 @@ module Google
|
|
738
850
|
execute_or_queue_command(command, &block)
|
739
851
|
end
|
740
852
|
|
741
|
-
# Lists matching topics.
|
742
|
-
# @param [String] project
|
743
|
-
# The name of the cloud project that topics belong to.
|
744
|
-
# Format is `projects/`project``.
|
745
|
-
# @param [Fixnum] page_size
|
746
|
-
# Maximum number of topics to return.
|
747
|
-
# @param [String] page_token
|
748
|
-
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
749
|
-
# a continuation of a prior `ListTopics` call, and that the system should
|
750
|
-
# return the next page of data.
|
751
|
-
# @param [String] quota_user
|
752
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
753
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
754
|
-
# @param [String] fields
|
755
|
-
# Selector specifying which fields to include in a partial response.
|
756
|
-
# @param [Google::Apis::RequestOptions] options
|
757
|
-
# Request-specific options
|
758
|
-
#
|
759
|
-
# @yield [result, err] Result & error if block supplied
|
760
|
-
# @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
|
761
|
-
# @yieldparam err [StandardError] error object if request failed
|
762
|
-
#
|
763
|
-
# @return [Google::Apis::PubsubV1::ListTopicsResponse]
|
764
|
-
#
|
765
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
766
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
767
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
768
|
-
def list_topics(project, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
769
|
-
command = make_simple_command(:get, 'v1/{+project}/topics', options)
|
770
|
-
command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
|
771
|
-
command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
|
772
|
-
command.params['project'] = project unless project.nil?
|
773
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
774
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
775
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
776
|
-
command.query['fields'] = fields unless fields.nil?
|
777
|
-
execute_or_queue_command(command, &block)
|
778
|
-
end
|
779
|
-
|
780
|
-
# Creates the given topic with the given name.
|
781
|
-
# @param [String] name
|
782
|
-
# The name of the topic. It must have the format
|
783
|
-
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
784
|
-
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
785
|
-
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
786
|
-
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
787
|
-
# must not start with `"goog"`.
|
788
|
-
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
789
|
-
# @param [String] quota_user
|
790
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
791
|
-
# 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
|
-
# @param [Google::Apis::RequestOptions] options
|
795
|
-
# Request-specific options
|
796
|
-
#
|
797
|
-
# @yield [result, err] Result & error if block supplied
|
798
|
-
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
799
|
-
# @yieldparam err [StandardError] error object if request failed
|
800
|
-
#
|
801
|
-
# @return [Google::Apis::PubsubV1::Topic]
|
802
|
-
#
|
803
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
804
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
805
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
806
|
-
def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
807
|
-
command = make_simple_command(:put, 'v1/{+name}', options)
|
808
|
-
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
809
|
-
command.request_object = topic_object
|
810
|
-
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
811
|
-
command.response_class = Google::Apis::PubsubV1::Topic
|
812
|
-
command.params['name'] = name unless name.nil?
|
813
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
814
|
-
command.query['fields'] = fields unless fields.nil?
|
815
|
-
execute_or_queue_command(command, &block)
|
816
|
-
end
|
817
|
-
|
818
|
-
# Sets the access control policy on the specified resource. Replaces any
|
819
|
-
# existing policy.
|
820
|
-
# @param [String] resource
|
821
|
-
# REQUIRED: The resource for which the policy is being specified.
|
822
|
-
# See the operation documentation for the appropriate value for this field.
|
823
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
824
|
-
# @param [String] quota_user
|
825
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
826
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
827
|
-
# @param [String] fields
|
828
|
-
# Selector specifying which fields to include in a partial response.
|
829
|
-
# @param [Google::Apis::RequestOptions] options
|
830
|
-
# Request-specific options
|
831
|
-
#
|
832
|
-
# @yield [result, err] Result & error if block supplied
|
833
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
834
|
-
# @yieldparam err [StandardError] error object if request failed
|
835
|
-
#
|
836
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
837
|
-
#
|
838
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
839
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
840
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
841
|
-
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
842
|
-
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
843
|
-
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
844
|
-
command.request_object = set_iam_policy_request_object
|
845
|
-
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
846
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
847
|
-
command.params['resource'] = resource unless resource.nil?
|
848
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
849
|
-
command.query['fields'] = fields unless fields.nil?
|
850
|
-
execute_or_queue_command(command, &block)
|
851
|
-
end
|
852
|
-
|
853
853
|
# Lists the name of the subscriptions for this topic.
|
854
854
|
# @param [String] topic
|
855
855
|
# The name of the topic that subscriptions are attached to.
|