google-api-client 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- 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 +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- 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 +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- 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 +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- 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 +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- 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 +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- 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 +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- 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 +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
@@ -34,13 +34,13 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class Date
|
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 IndoorLevel
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -52,13 +52,13 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class ListBeaconsResponse
|
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 Diagnostics
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -118,13 +118,13 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class EphemeralIdRegistrationParams
|
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 DeleteAttachmentsResponse
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
129
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -151,6 +151,14 @@ module Google
|
|
151
151
|
class Beacon
|
152
152
|
# @private
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
+
property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
|
155
|
+
|
156
|
+
property :place_id, as: 'placeId'
|
157
|
+
property :description, as: 'description'
|
158
|
+
hash :properties, as: 'properties'
|
159
|
+
property :status, as: 'status'
|
160
|
+
property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
|
161
|
+
|
154
162
|
property :beacon_name, as: 'beaconName'
|
155
163
|
property :expected_stability, as: 'expectedStability'
|
156
164
|
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
@@ -158,29 +166,14 @@ module Google
|
|
158
166
|
property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
|
159
167
|
|
160
168
|
property :provisioning_key, :base64 => true, as: 'provisioningKey'
|
161
|
-
property :description, as: 'description'
|
162
|
-
property :place_id, as: 'placeId'
|
163
|
-
property :lat_lng, as: 'latLng', class: Google::Apis::ProximitybeaconV1beta1::LatLng, decorator: Google::Apis::ProximitybeaconV1beta1::LatLng::Representation
|
164
|
-
|
165
|
-
hash :properties, as: 'properties'
|
166
|
-
property :status, as: 'status'
|
167
|
-
property :indoor_level, as: 'indoorLevel', class: Google::Apis::ProximitybeaconV1beta1::IndoorLevel, decorator: Google::Apis::ProximitybeaconV1beta1::IndoorLevel::Representation
|
168
|
-
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
172
172
|
class AdvertisedId
|
173
173
|
# @private
|
174
174
|
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
-
property :type, as: 'type'
|
176
175
|
property :id, :base64 => true, as: 'id'
|
177
|
-
|
178
|
-
end
|
179
|
-
|
180
|
-
class IndoorLevel
|
181
|
-
# @private
|
182
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
183
|
-
property :name, as: 'name'
|
176
|
+
property :type, as: 'type'
|
184
177
|
end
|
185
178
|
end
|
186
179
|
|
@@ -193,20 +186,17 @@ module Google
|
|
193
186
|
end
|
194
187
|
end
|
195
188
|
|
196
|
-
class
|
189
|
+
class IndoorLevel
|
197
190
|
# @private
|
198
191
|
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
-
|
200
|
-
|
192
|
+
property :name, as: 'name'
|
201
193
|
end
|
202
194
|
end
|
203
195
|
|
204
|
-
class
|
196
|
+
class ListNamespacesResponse
|
205
197
|
# @private
|
206
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
-
|
208
|
-
collection :alerts, as: 'alerts'
|
209
|
-
property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
|
199
|
+
collection :namespaces, as: 'namespaces', class: Google::Apis::ProximitybeaconV1beta1::Namespace, decorator: Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
210
200
|
|
211
201
|
end
|
212
202
|
end
|
@@ -221,6 +211,16 @@ module Google
|
|
221
211
|
end
|
222
212
|
end
|
223
213
|
|
214
|
+
class Diagnostics
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
property :estimated_low_battery_date, as: 'estimatedLowBatteryDate', class: Google::Apis::ProximitybeaconV1beta1::Date, decorator: Google::Apis::ProximitybeaconV1beta1::Date::Representation
|
218
|
+
|
219
|
+
property :beacon_name, as: 'beaconName'
|
220
|
+
collection :alerts, as: 'alerts'
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
224
|
class GetInfoForObservedBeaconsRequest
|
225
225
|
# @private
|
226
226
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -249,20 +249,20 @@ module Google
|
|
249
249
|
class EphemeralIdRegistration
|
250
250
|
# @private
|
251
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
-
property :
|
252
|
+
property :initial_eid, :base64 => true, as: 'initialEid'
|
253
253
|
property :initial_clock_value, :numeric_string => true, as: 'initialClockValue'
|
254
|
+
property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
|
254
255
|
property :rotation_period_exponent, as: 'rotationPeriodExponent'
|
255
256
|
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
256
257
|
property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
|
257
|
-
property :initial_eid, :base64 => true, as: 'initialEid'
|
258
258
|
end
|
259
259
|
end
|
260
260
|
|
261
261
|
class LatLng
|
262
262
|
# @private
|
263
263
|
class Representation < Google::Apis::Core::JsonRepresentation
|
264
|
-
property :longitude, as: 'longitude'
|
265
264
|
property :latitude, as: 'latitude'
|
265
|
+
property :longitude, as: 'longitude'
|
266
266
|
end
|
267
267
|
end
|
268
268
|
|
@@ -285,35 +285,35 @@ module Google
|
|
285
285
|
class BeaconInfo
|
286
286
|
# @private
|
287
287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
-
property :beacon_name, as: 'beaconName'
|
289
288
|
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
290
289
|
|
291
290
|
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
292
291
|
|
292
|
+
property :beacon_name, as: 'beaconName'
|
293
293
|
end
|
294
294
|
end
|
295
295
|
|
296
296
|
class AttachmentInfo
|
297
297
|
# @private
|
298
298
|
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
-
property :data, :base64 => true, as: 'data'
|
300
299
|
property :namespaced_type, as: 'namespacedType'
|
300
|
+
property :data, :base64 => true, as: 'data'
|
301
301
|
end
|
302
302
|
end
|
303
303
|
|
304
|
-
class
|
304
|
+
class EphemeralIdRegistrationParams
|
305
305
|
# @private
|
306
306
|
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
-
property :
|
307
|
+
property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
|
308
|
+
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
309
|
+
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
308
310
|
end
|
309
311
|
end
|
310
312
|
|
311
|
-
class
|
313
|
+
class DeleteAttachmentsResponse
|
312
314
|
# @private
|
313
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
-
property :
|
315
|
-
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
316
|
-
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
316
|
+
property :num_deleted, as: 'numDeleted'
|
317
317
|
end
|
318
318
|
end
|
319
319
|
|
@@ -330,9 +330,9 @@ module Google
|
|
330
330
|
class ListDiagnosticsResponse
|
331
331
|
# @private
|
332
332
|
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
-
property :next_page_token, as: 'nextPageToken'
|
334
333
|
collection :diagnostics, as: 'diagnostics', class: Google::Apis::ProximitybeaconV1beta1::Diagnostics, decorator: Google::Apis::ProximitybeaconV1beta1::Diagnostics::Representation
|
335
334
|
|
335
|
+
property :next_page_token, as: 'nextPageToken'
|
336
336
|
end
|
337
337
|
end
|
338
338
|
|
@@ -47,6 +47,84 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
+
# Updates the information about the specified namespace. Only the namespace
|
51
|
+
# visibility can be updated.
|
52
|
+
# @param [String] namespace_name
|
53
|
+
# Resource name of this namespace. Namespaces names have the format:
|
54
|
+
# <code>namespaces/<var>namespace</var></code>.
|
55
|
+
# @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
|
56
|
+
# @param [String] project_id
|
57
|
+
# The project id of the namespace to update. If the project id is not
|
58
|
+
# specified then the project making the request is used. The project id
|
59
|
+
# must match the project that owns the beacon.
|
60
|
+
# Optional.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
|
80
|
+
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
81
|
+
command.request_object = namespace_object
|
82
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
83
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
84
|
+
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
85
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Lists all attachment namespaces owned by your Google Developers Console
|
92
|
+
# project. Attachment data associated with a beacon must include a
|
93
|
+
# namespaced type, and the namespace must be owned by your project.
|
94
|
+
# Authenticate using an [OAuth access token](https://developers.google.com/
|
95
|
+
# identity/protocols/OAuth2)
|
96
|
+
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
97
|
+
# permissions in the Google Developers Console project.
|
98
|
+
# @param [String] project_id
|
99
|
+
# The project id to list namespaces under.
|
100
|
+
# Optional.
|
101
|
+
# @param [String] quota_user
|
102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
+
# @param [String] fields
|
105
|
+
# Selector specifying which fields to include in a partial response.
|
106
|
+
# @param [Google::Apis::RequestOptions] options
|
107
|
+
# Request-specific options
|
108
|
+
#
|
109
|
+
# @yield [result, err] Result & error if block supplied
|
110
|
+
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
|
111
|
+
# @yieldparam err [StandardError] error object if request failed
|
112
|
+
#
|
113
|
+
# @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
|
114
|
+
#
|
115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
+
def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
119
|
+
command = make_simple_command(:get, 'v1beta1/namespaces', options)
|
120
|
+
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
|
121
|
+
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
|
122
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
command.query['fields'] = fields unless fields.nil?
|
125
|
+
execute_or_queue_command(command, &block)
|
126
|
+
end
|
127
|
+
|
50
128
|
# Gets the Proximity Beacon API's current public key and associated
|
51
129
|
# parameters used to initiate the Diffie-Hellman key exchange required to
|
52
130
|
# register a beacon that broadcasts the Eddystone-EID format. This key
|
@@ -809,8 +887,8 @@ module Google
|
|
809
887
|
|
810
888
|
# Given one or more beacon observations, returns any beacon information
|
811
889
|
# and attachments accessible to your application. Authorize by using the
|
812
|
-
# [API key](https://developers.google.com/beacons/proximity/
|
813
|
-
#
|
890
|
+
# [API key](https://developers.google.com/beacons/proximity/get-started#
|
891
|
+
# request_a_browser_api_key)
|
814
892
|
# for the application.
|
815
893
|
# @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
|
816
894
|
# @param [String] quota_user
|
@@ -840,84 +918,6 @@ module Google
|
|
840
918
|
command.query['fields'] = fields unless fields.nil?
|
841
919
|
execute_or_queue_command(command, &block)
|
842
920
|
end
|
843
|
-
|
844
|
-
# Updates the information about the specified namespace. Only the namespace
|
845
|
-
# visibility can be updated.
|
846
|
-
# @param [String] namespace_name
|
847
|
-
# Resource name of this namespace. Namespaces names have the format:
|
848
|
-
# <code>namespaces/<var>namespace</var></code>.
|
849
|
-
# @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
|
850
|
-
# @param [String] project_id
|
851
|
-
# The project id of the namespace to update. If the project id is not
|
852
|
-
# specified then the project making the request is used. The project id
|
853
|
-
# must match the project that owns the beacon.
|
854
|
-
# Optional.
|
855
|
-
# @param [String] quota_user
|
856
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
857
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
858
|
-
# @param [String] fields
|
859
|
-
# Selector specifying which fields to include in a partial response.
|
860
|
-
# @param [Google::Apis::RequestOptions] options
|
861
|
-
# Request-specific options
|
862
|
-
#
|
863
|
-
# @yield [result, err] Result & error if block supplied
|
864
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::Namespace] parsed result object
|
865
|
-
# @yieldparam err [StandardError] error object if request failed
|
866
|
-
#
|
867
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
|
868
|
-
#
|
869
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
870
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
871
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
872
|
-
def update_namespace(namespace_name, namespace_object = nil, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
873
|
-
command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
|
874
|
-
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
875
|
-
command.request_object = namespace_object
|
876
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
877
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
878
|
-
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
879
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
880
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
881
|
-
command.query['fields'] = fields unless fields.nil?
|
882
|
-
execute_or_queue_command(command, &block)
|
883
|
-
end
|
884
|
-
|
885
|
-
# Lists all attachment namespaces owned by your Google Developers Console
|
886
|
-
# project. Attachment data associated with a beacon must include a
|
887
|
-
# namespaced type, and the namespace must be owned by your project.
|
888
|
-
# Authenticate using an [OAuth access token](https://developers.google.com/
|
889
|
-
# identity/protocols/OAuth2)
|
890
|
-
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
891
|
-
# permissions in the Google Developers Console project.
|
892
|
-
# @param [String] project_id
|
893
|
-
# The project id to list namespaces under.
|
894
|
-
# Optional.
|
895
|
-
# @param [String] quota_user
|
896
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
897
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
898
|
-
# @param [String] fields
|
899
|
-
# Selector specifying which fields to include in a partial response.
|
900
|
-
# @param [Google::Apis::RequestOptions] options
|
901
|
-
# Request-specific options
|
902
|
-
#
|
903
|
-
# @yield [result, err] Result & error if block supplied
|
904
|
-
# @yieldparam result [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse] parsed result object
|
905
|
-
# @yieldparam err [StandardError] error object if request failed
|
906
|
-
#
|
907
|
-
# @return [Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse]
|
908
|
-
#
|
909
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
910
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
911
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
912
|
-
def list_namespaces(project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
913
|
-
command = make_simple_command(:get, 'v1beta1/namespaces', options)
|
914
|
-
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
|
915
|
-
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
|
916
|
-
command.query['projectId'] = project_id unless project_id.nil?
|
917
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
918
|
-
command.query['fields'] = fields unless fields.nil?
|
919
|
-
execute_or_queue_command(command, &block)
|
920
|
-
end
|
921
921
|
|
922
922
|
protected
|
923
923
|
|
@@ -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 = '20170418'
|
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,19 +22,15 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Request for the Acknowledge method.
|
26
|
+
class AcknowledgeRequest
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The
|
30
|
-
# `
|
31
|
-
#
|
32
|
-
#
|
33
|
-
|
34
|
-
# must not start with `"goog"`.
|
35
|
-
# Corresponds to the JSON property `name`
|
36
|
-
# @return [String]
|
37
|
-
attr_accessor :name
|
29
|
+
# The acknowledgment ID for the messages being acknowledged that was returned
|
30
|
+
# by the Pub/Sub system in the `Pull` response. Must not be empty.
|
31
|
+
# Corresponds to the JSON property `ackIds`
|
32
|
+
# @return [Array<String>]
|
33
|
+
attr_accessor :ack_ids
|
38
34
|
|
39
35
|
def initialize(**args)
|
40
36
|
update!(**args)
|
@@ -42,64 +38,43 @@ module Google
|
|
42
38
|
|
43
39
|
# Update properties of this object
|
44
40
|
def update!(**args)
|
45
|
-
@
|
41
|
+
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
46
42
|
end
|
47
43
|
end
|
48
44
|
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
# defined by IAM.
|
55
|
-
# **Example**
|
56
|
-
# `
|
57
|
-
# "bindings": [
|
58
|
-
# `
|
59
|
-
# "role": "roles/owner",
|
60
|
-
# "members": [
|
61
|
-
# "user:mike@example.com",
|
62
|
-
# "group:admins@example.com",
|
63
|
-
# "domain:google.com",
|
64
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
65
|
-
# ]
|
66
|
-
# `,
|
67
|
-
# `
|
68
|
-
# "role": "roles/viewer",
|
69
|
-
# "members": ["user:sean@example.com"]
|
70
|
-
# `
|
71
|
-
# ]
|
45
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
46
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
47
|
+
# or the response type of an API method. For instance:
|
48
|
+
# service Foo `
|
49
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
72
50
|
# `
|
73
|
-
#
|
74
|
-
|
75
|
-
class Policy
|
51
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
52
|
+
class Empty
|
76
53
|
include Google::Apis::Core::Hashable
|
77
54
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
attr_accessor :version
|
55
|
+
def initialize(**args)
|
56
|
+
update!(**args)
|
57
|
+
end
|
82
58
|
|
83
|
-
#
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
88
|
-
attr_accessor :bindings
|
59
|
+
# Update properties of this object
|
60
|
+
def update!(**args)
|
61
|
+
end
|
62
|
+
end
|
89
63
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
|
98
|
-
|
99
|
-
#
|
100
|
-
#
|
64
|
+
# Response for the `ListTopics` method.
|
65
|
+
class ListTopicsResponse
|
66
|
+
include Google::Apis::Core::Hashable
|
67
|
+
|
68
|
+
# The resulting topics.
|
69
|
+
# Corresponds to the JSON property `topics`
|
70
|
+
# @return [Array<Google::Apis::PubsubV1::Topic>]
|
71
|
+
attr_accessor :topics
|
72
|
+
|
73
|
+
# If not empty, indicates that there may be more topics that match the
|
74
|
+
# request; this value should be passed in a new `ListTopicsRequest`.
|
75
|
+
# Corresponds to the JSON property `nextPageToken`
|
101
76
|
# @return [String]
|
102
|
-
attr_accessor :
|
77
|
+
attr_accessor :next_page_token
|
103
78
|
|
104
79
|
def initialize(**args)
|
105
80
|
update!(**args)
|
@@ -107,31 +82,26 @@ module Google
|
|
107
82
|
|
108
83
|
# Update properties of this object
|
109
84
|
def update!(**args)
|
110
|
-
@
|
111
|
-
@
|
112
|
-
@etag = args[:etag] if args.key?(:etag)
|
85
|
+
@topics = args[:topics] if args.key?(:topics)
|
86
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
113
87
|
end
|
114
88
|
end
|
115
89
|
|
116
|
-
#
|
117
|
-
class
|
90
|
+
# Response for the `ListTopicSubscriptions` method.
|
91
|
+
class ListTopicSubscriptionsResponse
|
118
92
|
include Google::Apis::Core::Hashable
|
119
93
|
|
120
|
-
#
|
121
|
-
# the
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
|
126
|
-
# The maximum deadline you can specify is 600 seconds (10 minutes).
|
127
|
-
# Corresponds to the JSON property `ackDeadlineSeconds`
|
128
|
-
# @return [Fixnum]
|
129
|
-
attr_accessor :ack_deadline_seconds
|
94
|
+
# If not empty, indicates that there may be more subscriptions that match
|
95
|
+
# the request; this value should be passed in a new
|
96
|
+
# `ListTopicSubscriptionsRequest` to get more subscriptions.
|
97
|
+
# Corresponds to the JSON property `nextPageToken`
|
98
|
+
# @return [String]
|
99
|
+
attr_accessor :next_page_token
|
130
100
|
|
131
|
-
#
|
132
|
-
# Corresponds to the JSON property `
|
101
|
+
# The names of the subscriptions that match the request.
|
102
|
+
# Corresponds to the JSON property `subscriptions`
|
133
103
|
# @return [Array<String>]
|
134
|
-
attr_accessor :
|
104
|
+
attr_accessor :subscriptions
|
135
105
|
|
136
106
|
def initialize(**args)
|
137
107
|
update!(**args)
|
@@ -139,44 +109,22 @@ module Google
|
|
139
109
|
|
140
110
|
# Update properties of this object
|
141
111
|
def update!(**args)
|
142
|
-
@
|
143
|
-
@
|
112
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
113
|
+
@subscriptions = args[:subscriptions] if args.key?(:subscriptions)
|
144
114
|
end
|
145
115
|
end
|
146
116
|
|
147
|
-
#
|
148
|
-
class
|
117
|
+
# Response for the `Pull` method.
|
118
|
+
class PullResponse
|
149
119
|
include Google::Apis::Core::Hashable
|
150
120
|
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
|
158
|
-
# `
|
159
|
-
# "bindings": [
|
160
|
-
# `
|
161
|
-
# "role": "roles/owner",
|
162
|
-
# "members": [
|
163
|
-
# "user:mike@example.com",
|
164
|
-
# "group:admins@example.com",
|
165
|
-
# "domain:google.com",
|
166
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
167
|
-
# ]
|
168
|
-
# `,
|
169
|
-
# `
|
170
|
-
# "role": "roles/viewer",
|
171
|
-
# "members": ["user:sean@example.com"]
|
172
|
-
# `
|
173
|
-
# ]
|
174
|
-
# `
|
175
|
-
# For a description of IAM and its features, see the
|
176
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
177
|
-
# Corresponds to the JSON property `policy`
|
178
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
179
|
-
attr_accessor :policy
|
121
|
+
# Received Pub/Sub messages. The Pub/Sub system will return zero messages if
|
122
|
+
# there are no more available in the backlog. The Pub/Sub system may return
|
123
|
+
# fewer than the `maxMessages` requested even if there are more messages
|
124
|
+
# available in the backlog.
|
125
|
+
# Corresponds to the JSON property `receivedMessages`
|
126
|
+
# @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
|
127
|
+
attr_accessor :received_messages
|
180
128
|
|
181
129
|
def initialize(**args)
|
182
130
|
update!(**args)
|
@@ -184,18 +132,24 @@ module Google
|
|
184
132
|
|
185
133
|
# Update properties of this object
|
186
134
|
def update!(**args)
|
187
|
-
@
|
135
|
+
@received_messages = args[:received_messages] if args.key?(:received_messages)
|
188
136
|
end
|
189
137
|
end
|
190
138
|
|
191
|
-
#
|
192
|
-
class
|
139
|
+
# A message and its corresponding acknowledgment ID.
|
140
|
+
class ReceivedMessage
|
193
141
|
include Google::Apis::Core::Hashable
|
194
142
|
|
195
|
-
#
|
196
|
-
#
|
197
|
-
#
|
198
|
-
|
143
|
+
# A message data and its attributes. The message payload must not be empty;
|
144
|
+
# it must contain either a non-empty data field, or at least one attribute.
|
145
|
+
# Corresponds to the JSON property `message`
|
146
|
+
# @return [Google::Apis::PubsubV1::Message]
|
147
|
+
attr_accessor :message
|
148
|
+
|
149
|
+
# This ID can be used to acknowledge the received message.
|
150
|
+
# Corresponds to the JSON property `ackId`
|
151
|
+
# @return [String]
|
152
|
+
attr_accessor :ack_id
|
199
153
|
|
200
154
|
def initialize(**args)
|
201
155
|
update!(**args)
|
@@ -203,277 +157,54 @@ module Google
|
|
203
157
|
|
204
158
|
# Update properties of this object
|
205
159
|
def update!(**args)
|
206
|
-
@
|
160
|
+
@message = args[:message] if args.key?(:message)
|
161
|
+
@ack_id = args[:ack_id] if args.key?(:ack_id)
|
207
162
|
end
|
208
163
|
end
|
209
164
|
|
210
|
-
#
|
211
|
-
|
212
|
-
class Message
|
165
|
+
# Configuration for a push delivery endpoint.
|
166
|
+
class PushConfig
|
213
167
|
include Google::Apis::Core::Hashable
|
214
168
|
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
# Corresponds to the JSON property `publishTime`
|
219
|
-
# @return [String]
|
220
|
-
attr_accessor :publish_time
|
221
|
-
|
222
|
-
# The message payload.
|
223
|
-
# Corresponds to the JSON property `data`
|
224
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
169
|
+
# A URL locating the endpoint to which messages should be pushed.
|
170
|
+
# For example, a Webhook endpoint might use "https://example.com/push".
|
171
|
+
# Corresponds to the JSON property `pushEndpoint`
|
225
172
|
# @return [String]
|
226
|
-
attr_accessor :
|
173
|
+
attr_accessor :push_endpoint
|
227
174
|
|
228
|
-
#
|
175
|
+
# Endpoint configuration attributes.
|
176
|
+
# Every endpoint has a set of API supported attributes that can be used to
|
177
|
+
# control different aspects of the message delivery.
|
178
|
+
# The currently supported attribute is `x-goog-version`, which you can
|
179
|
+
# use to change the format of the pushed message. This attribute
|
180
|
+
# indicates the version of the data expected by the endpoint. This
|
181
|
+
# controls the shape of the pushed message (i.e., its fields and metadata).
|
182
|
+
# The endpoint version is based on the version of the Pub/Sub API.
|
183
|
+
# If not present during the `CreateSubscription` call, it will default to
|
184
|
+
# the version of the API used to make such call. If not present during a
|
185
|
+
# `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
|
186
|
+
# calls will always return a valid version, even if the subscription was
|
187
|
+
# created without this attribute.
|
188
|
+
# The possible values for this attribute are:
|
189
|
+
# * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
|
190
|
+
# * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
|
229
191
|
# Corresponds to the JSON property `attributes`
|
230
192
|
# @return [Hash<String,String>]
|
231
193
|
attr_accessor :attributes
|
232
194
|
|
233
|
-
# ID of this message, assigned by the server when the message is published.
|
234
|
-
# Guaranteed to be unique within the topic. This value may be read by a
|
235
|
-
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
236
|
-
# delivery. It must not be populated by the publisher in a `Publish` call.
|
237
|
-
# Corresponds to the JSON property `messageId`
|
238
|
-
# @return [String]
|
239
|
-
attr_accessor :message_id
|
240
|
-
|
241
195
|
def initialize(**args)
|
242
196
|
update!(**args)
|
243
197
|
end
|
244
198
|
|
245
199
|
# Update properties of this object
|
246
200
|
def update!(**args)
|
247
|
-
@
|
248
|
-
@data = args[:data] if args.key?(:data)
|
201
|
+
@push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
|
249
202
|
@attributes = args[:attributes] if args.key?(:attributes)
|
250
|
-
@message_id = args[:message_id] if args.key?(:message_id)
|
251
203
|
end
|
252
204
|
end
|
253
205
|
|
254
|
-
#
|
255
|
-
class
|
256
|
-
include Google::Apis::Core::Hashable
|
257
|
-
|
258
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
259
|
-
# `members` can have the following values:
|
260
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
261
|
-
# on the internet; with or without a Google account.
|
262
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
263
|
-
# who is authenticated with a Google account or a service account.
|
264
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
265
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
266
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
267
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
268
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
269
|
-
# For example, `admins@example.com`.
|
270
|
-
# * `domain:`domain``: A Google Apps domain name that represents all the
|
271
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
272
|
-
# Corresponds to the JSON property `members`
|
273
|
-
# @return [Array<String>]
|
274
|
-
attr_accessor :members
|
275
|
-
|
276
|
-
# Role that is assigned to `members`.
|
277
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
278
|
-
# Required
|
279
|
-
# Corresponds to the JSON property `role`
|
280
|
-
# @return [String]
|
281
|
-
attr_accessor :role
|
282
|
-
|
283
|
-
def initialize(**args)
|
284
|
-
update!(**args)
|
285
|
-
end
|
286
|
-
|
287
|
-
# Update properties of this object
|
288
|
-
def update!(**args)
|
289
|
-
@members = args[:members] if args.key?(:members)
|
290
|
-
@role = args[:role] if args.key?(:role)
|
291
|
-
end
|
292
|
-
end
|
293
|
-
|
294
|
-
# Response for the `ListTopics` method.
|
295
|
-
class ListTopicsResponse
|
296
|
-
include Google::Apis::Core::Hashable
|
297
|
-
|
298
|
-
# If not empty, indicates that there may be more topics that match the
|
299
|
-
# request; this value should be passed in a new `ListTopicsRequest`.
|
300
|
-
# Corresponds to the JSON property `nextPageToken`
|
301
|
-
# @return [String]
|
302
|
-
attr_accessor :next_page_token
|
303
|
-
|
304
|
-
# The resulting topics.
|
305
|
-
# Corresponds to the JSON property `topics`
|
306
|
-
# @return [Array<Google::Apis::PubsubV1::Topic>]
|
307
|
-
attr_accessor :topics
|
308
|
-
|
309
|
-
def initialize(**args)
|
310
|
-
update!(**args)
|
311
|
-
end
|
312
|
-
|
313
|
-
# Update properties of this object
|
314
|
-
def update!(**args)
|
315
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
316
|
-
@topics = args[:topics] if args.key?(:topics)
|
317
|
-
end
|
318
|
-
end
|
319
|
-
|
320
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
321
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
322
|
-
# or the response type of an API method. For instance:
|
323
|
-
# service Foo `
|
324
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
325
|
-
# `
|
326
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
327
|
-
class Empty
|
328
|
-
include Google::Apis::Core::Hashable
|
329
|
-
|
330
|
-
def initialize(**args)
|
331
|
-
update!(**args)
|
332
|
-
end
|
333
|
-
|
334
|
-
# Update properties of this object
|
335
|
-
def update!(**args)
|
336
|
-
end
|
337
|
-
end
|
338
|
-
|
339
|
-
# Request for the Acknowledge method.
|
340
|
-
class AcknowledgeRequest
|
341
|
-
include Google::Apis::Core::Hashable
|
342
|
-
|
343
|
-
# The acknowledgment ID for the messages being acknowledged that was returned
|
344
|
-
# by the Pub/Sub system in the `Pull` response. Must not be empty.
|
345
|
-
# Corresponds to the JSON property `ackIds`
|
346
|
-
# @return [Array<String>]
|
347
|
-
attr_accessor :ack_ids
|
348
|
-
|
349
|
-
def initialize(**args)
|
350
|
-
update!(**args)
|
351
|
-
end
|
352
|
-
|
353
|
-
# Update properties of this object
|
354
|
-
def update!(**args)
|
355
|
-
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
356
|
-
end
|
357
|
-
end
|
358
|
-
|
359
|
-
# Response for the `ListTopicSubscriptions` method.
|
360
|
-
class ListTopicSubscriptionsResponse
|
361
|
-
include Google::Apis::Core::Hashable
|
362
|
-
|
363
|
-
# If not empty, indicates that there may be more subscriptions that match
|
364
|
-
# the request; this value should be passed in a new
|
365
|
-
# `ListTopicSubscriptionsRequest` to get more subscriptions.
|
366
|
-
# Corresponds to the JSON property `nextPageToken`
|
367
|
-
# @return [String]
|
368
|
-
attr_accessor :next_page_token
|
369
|
-
|
370
|
-
# The names of the subscriptions that match the request.
|
371
|
-
# Corresponds to the JSON property `subscriptions`
|
372
|
-
# @return [Array<String>]
|
373
|
-
attr_accessor :subscriptions
|
374
|
-
|
375
|
-
def initialize(**args)
|
376
|
-
update!(**args)
|
377
|
-
end
|
378
|
-
|
379
|
-
# Update properties of this object
|
380
|
-
def update!(**args)
|
381
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
382
|
-
@subscriptions = args[:subscriptions] if args.key?(:subscriptions)
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
# Response for the `Pull` method.
|
387
|
-
class PullResponse
|
388
|
-
include Google::Apis::Core::Hashable
|
389
|
-
|
390
|
-
# Received Pub/Sub messages. The Pub/Sub system will return zero messages if
|
391
|
-
# there are no more available in the backlog. The Pub/Sub system may return
|
392
|
-
# fewer than the `maxMessages` requested even if there are more messages
|
393
|
-
# available in the backlog.
|
394
|
-
# Corresponds to the JSON property `receivedMessages`
|
395
|
-
# @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
|
396
|
-
attr_accessor :received_messages
|
397
|
-
|
398
|
-
def initialize(**args)
|
399
|
-
update!(**args)
|
400
|
-
end
|
401
|
-
|
402
|
-
# Update properties of this object
|
403
|
-
def update!(**args)
|
404
|
-
@received_messages = args[:received_messages] if args.key?(:received_messages)
|
405
|
-
end
|
406
|
-
end
|
407
|
-
|
408
|
-
# A message and its corresponding acknowledgment ID.
|
409
|
-
class ReceivedMessage
|
410
|
-
include Google::Apis::Core::Hashable
|
411
|
-
|
412
|
-
# A message data and its attributes. The message payload must not be empty;
|
413
|
-
# it must contain either a non-empty data field, or at least one attribute.
|
414
|
-
# Corresponds to the JSON property `message`
|
415
|
-
# @return [Google::Apis::PubsubV1::Message]
|
416
|
-
attr_accessor :message
|
417
|
-
|
418
|
-
# This ID can be used to acknowledge the received message.
|
419
|
-
# Corresponds to the JSON property `ackId`
|
420
|
-
# @return [String]
|
421
|
-
attr_accessor :ack_id
|
422
|
-
|
423
|
-
def initialize(**args)
|
424
|
-
update!(**args)
|
425
|
-
end
|
426
|
-
|
427
|
-
# Update properties of this object
|
428
|
-
def update!(**args)
|
429
|
-
@message = args[:message] if args.key?(:message)
|
430
|
-
@ack_id = args[:ack_id] if args.key?(:ack_id)
|
431
|
-
end
|
432
|
-
end
|
433
|
-
|
434
|
-
# Configuration for a push delivery endpoint.
|
435
|
-
class PushConfig
|
436
|
-
include Google::Apis::Core::Hashable
|
437
|
-
|
438
|
-
# A URL locating the endpoint to which messages should be pushed.
|
439
|
-
# For example, a Webhook endpoint might use "https://example.com/push".
|
440
|
-
# Corresponds to the JSON property `pushEndpoint`
|
441
|
-
# @return [String]
|
442
|
-
attr_accessor :push_endpoint
|
443
|
-
|
444
|
-
# Endpoint configuration attributes.
|
445
|
-
# Every endpoint has a set of API supported attributes that can be used to
|
446
|
-
# control different aspects of the message delivery.
|
447
|
-
# The currently supported attribute is `x-goog-version`, which you can
|
448
|
-
# use to change the format of the pushed message. This attribute
|
449
|
-
# indicates the version of the data expected by the endpoint. This
|
450
|
-
# controls the shape of the pushed message (i.e., its fields and metadata).
|
451
|
-
# The endpoint version is based on the version of the Pub/Sub API.
|
452
|
-
# If not present during the `CreateSubscription` call, it will default to
|
453
|
-
# the version of the API used to make such call. If not present during a
|
454
|
-
# `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
|
455
|
-
# calls will always return a valid version, even if the subscription was
|
456
|
-
# created without this attribute.
|
457
|
-
# The possible values for this attribute are:
|
458
|
-
# * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
|
459
|
-
# * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
|
460
|
-
# Corresponds to the JSON property `attributes`
|
461
|
-
# @return [Hash<String,String>]
|
462
|
-
attr_accessor :attributes
|
463
|
-
|
464
|
-
def initialize(**args)
|
465
|
-
update!(**args)
|
466
|
-
end
|
467
|
-
|
468
|
-
# Update properties of this object
|
469
|
-
def update!(**args)
|
470
|
-
@push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
|
471
|
-
@attributes = args[:attributes] if args.key?(:attributes)
|
472
|
-
end
|
473
|
-
end
|
474
|
-
|
475
|
-
# Response message for `TestIamPermissions` method.
|
476
|
-
class TestIamPermissionsResponse
|
206
|
+
# Response message for `TestIamPermissions` method.
|
207
|
+
class TestIamPermissionsResponse
|
477
208
|
include Google::Apis::Core::Hashable
|
478
209
|
|
479
210
|
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
@@ -595,6 +326,14 @@ module Google
|
|
595
326
|
class Subscription
|
596
327
|
include Google::Apis::Core::Hashable
|
597
328
|
|
329
|
+
# The name of the topic from which this subscription is receiving messages.
|
330
|
+
# Format is `projects/`project`/topics/`topic``.
|
331
|
+
# The value of this field will be `_deleted-topic_` if the topic has been
|
332
|
+
# deleted.
|
333
|
+
# Corresponds to the JSON property `topic`
|
334
|
+
# @return [String]
|
335
|
+
attr_accessor :topic
|
336
|
+
|
598
337
|
# Configuration for a push delivery endpoint.
|
599
338
|
# Corresponds to the JSON property `pushConfig`
|
600
339
|
# @return [Google::Apis::PubsubV1::PushConfig]
|
@@ -630,24 +369,16 @@ module Google
|
|
630
369
|
# @return [String]
|
631
370
|
attr_accessor :name
|
632
371
|
|
633
|
-
# The name of the topic from which this subscription is receiving messages.
|
634
|
-
# Format is `projects/`project`/topics/`topic``.
|
635
|
-
# The value of this field will be `_deleted-topic_` if the topic has been
|
636
|
-
# deleted.
|
637
|
-
# Corresponds to the JSON property `topic`
|
638
|
-
# @return [String]
|
639
|
-
attr_accessor :topic
|
640
|
-
|
641
372
|
def initialize(**args)
|
642
373
|
update!(**args)
|
643
374
|
end
|
644
375
|
|
645
376
|
# Update properties of this object
|
646
377
|
def update!(**args)
|
378
|
+
@topic = args[:topic] if args.key?(:topic)
|
647
379
|
@push_config = args[:push_config] if args.key?(:push_config)
|
648
380
|
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
649
381
|
@name = args[:name] if args.key?(:name)
|
650
|
-
@topic = args[:topic] if args.key?(:topic)
|
651
382
|
end
|
652
383
|
end
|
653
384
|
|
@@ -672,6 +403,275 @@ module Google
|
|
672
403
|
@permissions = args[:permissions] if args.key?(:permissions)
|
673
404
|
end
|
674
405
|
end
|
406
|
+
|
407
|
+
# A topic resource.
|
408
|
+
class Topic
|
409
|
+
include Google::Apis::Core::Hashable
|
410
|
+
|
411
|
+
# The name of the topic. It must have the format
|
412
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
413
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
414
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
415
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
416
|
+
# must not start with `"goog"`.
|
417
|
+
# Corresponds to the JSON property `name`
|
418
|
+
# @return [String]
|
419
|
+
attr_accessor :name
|
420
|
+
|
421
|
+
def initialize(**args)
|
422
|
+
update!(**args)
|
423
|
+
end
|
424
|
+
|
425
|
+
# Update properties of this object
|
426
|
+
def update!(**args)
|
427
|
+
@name = args[:name] if args.key?(:name)
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
432
|
+
# specify access control policies for Cloud Platform resources.
|
433
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
434
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
435
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
436
|
+
# defined by IAM.
|
437
|
+
# **Example**
|
438
|
+
# `
|
439
|
+
# "bindings": [
|
440
|
+
# `
|
441
|
+
# "role": "roles/owner",
|
442
|
+
# "members": [
|
443
|
+
# "user:mike@example.com",
|
444
|
+
# "group:admins@example.com",
|
445
|
+
# "domain:google.com",
|
446
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
447
|
+
# ]
|
448
|
+
# `,
|
449
|
+
# `
|
450
|
+
# "role": "roles/viewer",
|
451
|
+
# "members": ["user:sean@example.com"]
|
452
|
+
# `
|
453
|
+
# ]
|
454
|
+
# `
|
455
|
+
# For a description of IAM and its features, see the
|
456
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
457
|
+
class Policy
|
458
|
+
include Google::Apis::Core::Hashable
|
459
|
+
|
460
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
461
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
462
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
463
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
464
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
465
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
466
|
+
# ensure that their change will be applied to the same version of the policy.
|
467
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
468
|
+
# policy is overwritten blindly.
|
469
|
+
# Corresponds to the JSON property `etag`
|
470
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :etag
|
473
|
+
|
474
|
+
# Version of the `Policy`. The default version is 0.
|
475
|
+
# Corresponds to the JSON property `version`
|
476
|
+
# @return [Fixnum]
|
477
|
+
attr_accessor :version
|
478
|
+
|
479
|
+
# Associates a list of `members` to a `role`.
|
480
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
481
|
+
# `bindings` with no members will result in an error.
|
482
|
+
# Corresponds to the JSON property `bindings`
|
483
|
+
# @return [Array<Google::Apis::PubsubV1::Binding>]
|
484
|
+
attr_accessor :bindings
|
485
|
+
|
486
|
+
def initialize(**args)
|
487
|
+
update!(**args)
|
488
|
+
end
|
489
|
+
|
490
|
+
# Update properties of this object
|
491
|
+
def update!(**args)
|
492
|
+
@etag = args[:etag] if args.key?(:etag)
|
493
|
+
@version = args[:version] if args.key?(:version)
|
494
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
# Request for the ModifyAckDeadline method.
|
499
|
+
class ModifyAckDeadlineRequest
|
500
|
+
include Google::Apis::Core::Hashable
|
501
|
+
|
502
|
+
# The new ack deadline with respect to the time this request was sent to
|
503
|
+
# the Pub/Sub system. For example, if the value is 10, the new
|
504
|
+
# ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
|
505
|
+
# was made. Specifying zero may immediately make the message available for
|
506
|
+
# another pull request.
|
507
|
+
# The minimum deadline you can specify is 0 seconds.
|
508
|
+
# The maximum deadline you can specify is 600 seconds (10 minutes).
|
509
|
+
# Corresponds to the JSON property `ackDeadlineSeconds`
|
510
|
+
# @return [Fixnum]
|
511
|
+
attr_accessor :ack_deadline_seconds
|
512
|
+
|
513
|
+
# List of acknowledgment IDs.
|
514
|
+
# Corresponds to the JSON property `ackIds`
|
515
|
+
# @return [Array<String>]
|
516
|
+
attr_accessor :ack_ids
|
517
|
+
|
518
|
+
def initialize(**args)
|
519
|
+
update!(**args)
|
520
|
+
end
|
521
|
+
|
522
|
+
# Update properties of this object
|
523
|
+
def update!(**args)
|
524
|
+
@ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
|
525
|
+
@ack_ids = args[:ack_ids] if args.key?(:ack_ids)
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
# Request message for `SetIamPolicy` method.
|
530
|
+
class SetIamPolicyRequest
|
531
|
+
include Google::Apis::Core::Hashable
|
532
|
+
|
533
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
534
|
+
# specify access control policies for Cloud Platform resources.
|
535
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
536
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
537
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
538
|
+
# defined by IAM.
|
539
|
+
# **Example**
|
540
|
+
# `
|
541
|
+
# "bindings": [
|
542
|
+
# `
|
543
|
+
# "role": "roles/owner",
|
544
|
+
# "members": [
|
545
|
+
# "user:mike@example.com",
|
546
|
+
# "group:admins@example.com",
|
547
|
+
# "domain:google.com",
|
548
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
549
|
+
# ]
|
550
|
+
# `,
|
551
|
+
# `
|
552
|
+
# "role": "roles/viewer",
|
553
|
+
# "members": ["user:sean@example.com"]
|
554
|
+
# `
|
555
|
+
# ]
|
556
|
+
# `
|
557
|
+
# For a description of IAM and its features, see the
|
558
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
559
|
+
# Corresponds to the JSON property `policy`
|
560
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
561
|
+
attr_accessor :policy
|
562
|
+
|
563
|
+
def initialize(**args)
|
564
|
+
update!(**args)
|
565
|
+
end
|
566
|
+
|
567
|
+
# Update properties of this object
|
568
|
+
def update!(**args)
|
569
|
+
@policy = args[:policy] if args.key?(:policy)
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# A message data and its attributes. The message payload must not be empty;
|
574
|
+
# it must contain either a non-empty data field, or at least one attribute.
|
575
|
+
class Message
|
576
|
+
include Google::Apis::Core::Hashable
|
577
|
+
|
578
|
+
# Optional attributes for this message.
|
579
|
+
# Corresponds to the JSON property `attributes`
|
580
|
+
# @return [Hash<String,String>]
|
581
|
+
attr_accessor :attributes
|
582
|
+
|
583
|
+
# ID of this message, assigned by the server when the message is published.
|
584
|
+
# Guaranteed to be unique within the topic. This value may be read by a
|
585
|
+
# subscriber that receives a `PubsubMessage` via a `Pull` call or a push
|
586
|
+
# delivery. It must not be populated by the publisher in a `Publish` call.
|
587
|
+
# Corresponds to the JSON property `messageId`
|
588
|
+
# @return [String]
|
589
|
+
attr_accessor :message_id
|
590
|
+
|
591
|
+
# The time at which the message was published, populated by the server when
|
592
|
+
# it receives the `Publish` call. It must not be populated by the
|
593
|
+
# publisher in a `Publish` call.
|
594
|
+
# Corresponds to the JSON property `publishTime`
|
595
|
+
# @return [String]
|
596
|
+
attr_accessor :publish_time
|
597
|
+
|
598
|
+
# The message payload.
|
599
|
+
# Corresponds to the JSON property `data`
|
600
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :data
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
611
|
+
@message_id = args[:message_id] if args.key?(:message_id)
|
612
|
+
@publish_time = args[:publish_time] if args.key?(:publish_time)
|
613
|
+
@data = args[:data] if args.key?(:data)
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
# Request for the ModifyPushConfig method.
|
618
|
+
class ModifyPushConfigRequest
|
619
|
+
include Google::Apis::Core::Hashable
|
620
|
+
|
621
|
+
# Configuration for a push delivery endpoint.
|
622
|
+
# Corresponds to the JSON property `pushConfig`
|
623
|
+
# @return [Google::Apis::PubsubV1::PushConfig]
|
624
|
+
attr_accessor :push_config
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
@push_config = args[:push_config] if args.key?(:push_config)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
# Associates `members` with a `role`.
|
637
|
+
class Binding
|
638
|
+
include Google::Apis::Core::Hashable
|
639
|
+
|
640
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
641
|
+
# `members` can have the following values:
|
642
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
643
|
+
# on the internet; with or without a Google account.
|
644
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
645
|
+
# who is authenticated with a Google account or a service account.
|
646
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
647
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
648
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
649
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
650
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
651
|
+
# For example, `admins@example.com`.
|
652
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
653
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
654
|
+
# Corresponds to the JSON property `members`
|
655
|
+
# @return [Array<String>]
|
656
|
+
attr_accessor :members
|
657
|
+
|
658
|
+
# Role that is assigned to `members`.
|
659
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
660
|
+
# Required
|
661
|
+
# Corresponds to the JSON property `role`
|
662
|
+
# @return [String]
|
663
|
+
attr_accessor :role
|
664
|
+
|
665
|
+
def initialize(**args)
|
666
|
+
update!(**args)
|
667
|
+
end
|
668
|
+
|
669
|
+
# Update properties of this object
|
670
|
+
def update!(**args)
|
671
|
+
@members = args[:members] if args.key?(:members)
|
672
|
+
@role = args[:role] if args.key?(:role)
|
673
|
+
end
|
674
|
+
end
|
675
675
|
end
|
676
676
|
end
|
677
677
|
end
|