google-api-client 0.9.26 → 0.9.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -84,11 +84,54 @@ module Google
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
87
+ # Creates or adds data to one or more time series. The response is empty if all
88
+ # time series in the request were written. If any time series could not be
89
+ # written, a corresponding failure message is included in the error response.
90
+ # @param [String] name
91
+ # The project on which to execute the request. The format is "projects/`
92
+ # project_id_or_number`".
93
+ # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::MonitoringV3::Empty]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
113
+ command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
114
+ command.request_object = create_time_series_request_object
115
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
116
+ command.response_class = Google::Apis::MonitoringV3::Empty
117
+ command.params['name'] = name unless name.nil?
118
+ command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ execute_or_queue_command(command, &block)
121
+ end
122
+
87
123
  # Lists time series that match a filter. This method does not require a
88
124
  # Stackdriver account.
89
125
  # @param [String] name
90
126
  # The project on which to execute the request. The format is "projects/`
91
127
  # project_id_or_number`".
128
+ # @param [Fixnum] page_size
129
+ # A positive number that is the maximum number of results to return. When view
130
+ # field sets to FULL, it limits the number of Points server will return; if view
131
+ # field is HEADERS, it limits the number of TimeSeries server will return.
132
+ # @param [String] order_by
133
+ # Specifies the order in which the points of the time series should be returned.
134
+ # By default, results are not ordered. Currently, this field must be left blank.
92
135
  # @param [String] aggregation_cross_series_reducer
93
136
  # The approach to be used to combine time series. Not all reducer functions may
94
137
  # be applied to all time series, depending on the metric type and the value type
@@ -141,13 +184,6 @@ module Google
141
184
  # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
142
185
  # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
143
186
  # this field must be defined; otherwise an error is returned.
144
- # @param [Fixnum] page_size
145
- # A positive number that is the maximum number of results to return. When view
146
- # field sets to FULL, it limits the number of Points server will return; if view
147
- # field is HEADERS, it limits the number of TimeSeries server will return.
148
- # @param [String] order_by
149
- # Specifies the order in which the points of the time series should be returned.
150
- # By default, results are not ordered. Currently, this field must be left blank.
151
187
  # @param [String] fields
152
188
  # Selector specifying which fields to include in a partial response.
153
189
  # @param [String] quota_user
@@ -165,11 +201,13 @@ module Google
165
201
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
202
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
203
  # @raise [Google::Apis::AuthorizationError] Authorization is required
168
- def list_project_time_series(name, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
204
+ def list_project_time_series(name, page_size: nil, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, fields: nil, quota_user: nil, options: nil, &block)
169
205
  command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
170
206
  command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
171
207
  command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
172
208
  command.params['name'] = name unless name.nil?
209
+ command.query['pageSize'] = page_size unless page_size.nil?
210
+ command.query['orderBy'] = order_by unless order_by.nil?
173
211
  command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
174
212
  command.query['filter'] = filter unless filter.nil?
175
213
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -179,44 +217,6 @@ module Google
179
217
  command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
180
218
  command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
181
219
  command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
182
- command.query['pageSize'] = page_size unless page_size.nil?
183
- command.query['orderBy'] = order_by unless order_by.nil?
184
- command.query['fields'] = fields unless fields.nil?
185
- command.query['quotaUser'] = quota_user unless quota_user.nil?
186
- execute_or_queue_command(command, &block)
187
- end
188
-
189
- # Creates or adds data to one or more time series. The response is empty if all
190
- # time series in the request were written. If any time series could not be
191
- # written, a corresponding failure message is included in the error response.
192
- # @param [String] name
193
- # The project on which to execute the request. The format is "projects/`
194
- # project_id_or_number`".
195
- # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
196
- # @param [String] fields
197
- # Selector specifying which fields to include in a partial response.
198
- # @param [String] quota_user
199
- # Available to use for quota purposes for server-side applications. Can be any
200
- # arbitrary string assigned to a user, but should not exceed 40 characters.
201
- # @param [Google::Apis::RequestOptions] options
202
- # Request-specific options
203
- #
204
- # @yield [result, err] Result & error if block supplied
205
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
206
- # @yieldparam err [StandardError] error object if request failed
207
- #
208
- # @return [Google::Apis::MonitoringV3::Empty]
209
- #
210
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
- # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
214
- command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
215
- command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
216
- command.request_object = create_time_series_request_object
217
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
218
- command.response_class = Google::Apis::MonitoringV3::Empty
219
- command.params['name'] = name unless name.nil?
220
220
  command.query['fields'] = fields unless fields.nil?
221
221
  command.query['quotaUser'] = quota_user unless quota_user.nil?
222
222
  execute_or_queue_command(command, &block)
@@ -259,10 +259,6 @@ module Google
259
259
  # @param [String] name
260
260
  # The project on which to execute the request. The format is "projects/`
261
261
  # project_id_or_number`".
262
- # @param [String] page_token
263
- # If this field is not empty then it must contain the nextPageToken value
264
- # returned by a previous call to this method. Using this field causes the method
265
- # to return additional results from the previous method call.
266
262
  # @param [Fixnum] page_size
267
263
  # A positive number that is the maximum number of results to return.
268
264
  # @param [String] filter
@@ -270,6 +266,10 @@ module Google
270
266
  # returned. Otherwise, the filter specifies which metric descriptors are to be
271
267
  # returned. For example, the following filter matches all custom metrics:
272
268
  # metric.type = starts_with("custom.googleapis.com/")
269
+ # @param [String] page_token
270
+ # If this field is not empty then it must contain the nextPageToken value
271
+ # returned by a previous call to this method. Using this field causes the method
272
+ # to return additional results from the previous method call.
273
273
  # @param [String] fields
274
274
  # Selector specifying which fields to include in a partial response.
275
275
  # @param [String] quota_user
@@ -287,14 +287,14 @@ module Google
287
287
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
288
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
289
  # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- def list_project_metric_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
290
+ def list_project_metric_descriptors(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
291
291
  command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
292
292
  command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
293
293
  command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
294
294
  command.params['name'] = name unless name.nil?
295
- command.query['pageToken'] = page_token unless page_token.nil?
296
295
  command.query['pageSize'] = page_size unless page_size.nil?
297
296
  command.query['filter'] = filter unless filter.nil?
297
+ command.query['pageToken'] = page_token unless page_token.nil?
298
298
  command.query['fields'] = fields unless fields.nil?
299
299
  command.query['quotaUser'] = quota_user unless quota_user.nil?
300
300
  execute_or_queue_command(command, &block)
@@ -373,10 +373,6 @@ module Google
373
373
  # @param [String] name
374
374
  # The project on which to execute the request. The format is "projects/`
375
375
  # project_id_or_number`".
376
- # @param [String] page_token
377
- # If this field is not empty then it must contain the nextPageToken value
378
- # returned by a previous call to this method. Using this field causes the method
379
- # to return additional results from the previous method call.
380
376
  # @param [Fixnum] page_size
381
377
  # A positive number that is the maximum number of results to return.
382
378
  # @param [String] filter
@@ -384,6 +380,10 @@ module Google
384
380
  # reference the descriptor's type and labels. For example, the following filter
385
381
  # returns only Google Compute Engine descriptors that have an id label:
386
382
  # resource.type = starts_with("gce_") AND resource.label:id
383
+ # @param [String] page_token
384
+ # If this field is not empty then it must contain the nextPageToken value
385
+ # returned by a previous call to this method. Using this field causes the method
386
+ # to return additional results from the previous method call.
387
387
  # @param [String] fields
388
388
  # Selector specifying which fields to include in a partial response.
389
389
  # @param [String] quota_user
@@ -401,14 +401,14 @@ module Google
401
401
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
402
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
403
  # @raise [Google::Apis::AuthorizationError] Authorization is required
404
- def list_project_monitored_resource_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
404
+ def list_project_monitored_resource_descriptors(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
405
405
  command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
406
406
  command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
407
407
  command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
408
408
  command.params['name'] = name unless name.nil?
409
- command.query['pageToken'] = page_token unless page_token.nil?
410
409
  command.query['pageSize'] = page_size unless page_size.nil?
411
410
  command.query['filter'] = filter unless filter.nil?
411
+ command.query['pageToken'] = page_token unless page_token.nil?
412
412
  command.query['fields'] = fields unless fields.nil?
413
413
  command.query['quotaUser'] = quota_user unless quota_user.nil?
414
414
  execute_or_queue_command(command, &block)
@@ -482,6 +482,14 @@ module Google
482
482
  # @param [String] name
483
483
  # The project whose groups are to be listed. The format is "projects/`
484
484
  # project_id_or_number`".
485
+ # @param [Fixnum] page_size
486
+ # A positive number that is the maximum number of results to return.
487
+ # @param [String] ancestors_of_group
488
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
489
+ # groups that are ancestors of the specified group. The groups are returned in
490
+ # order, starting with the immediate parent and ending with the most distant
491
+ # ancestor. If the specified group has no immediate parent, the results are
492
+ # empty.
485
493
  # @param [String] children_of_group
486
494
  # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
487
495
  # groups whose parentName field contains the group name. If no groups have this
@@ -494,14 +502,6 @@ module Google
494
502
  # If this field is not empty then it must contain the nextPageToken value
495
503
  # returned by a previous call to this method. Using this field causes the method
496
504
  # to return additional results from the previous method call.
497
- # @param [Fixnum] page_size
498
- # A positive number that is the maximum number of results to return.
499
- # @param [String] ancestors_of_group
500
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
501
- # groups that are ancestors of the specified group. The groups are returned in
502
- # order, starting with the immediate parent and ending with the most distant
503
- # ancestor. If the specified group has no immediate parent, the results are
504
- # empty.
505
505
  # @param [String] fields
506
506
  # Selector specifying which fields to include in a partial response.
507
507
  # @param [String] quota_user
@@ -519,16 +519,16 @@ module Google
519
519
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
520
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
521
  # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def list_project_groups(name, children_of_group: nil, descendants_of_group: nil, page_token: nil, page_size: nil, ancestors_of_group: nil, fields: nil, quota_user: nil, options: nil, &block)
522
+ def list_project_groups(name, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
523
523
  command = make_simple_command(:get, 'v3/{+name}/groups', options)
524
524
  command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation
525
525
  command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse
526
526
  command.params['name'] = name unless name.nil?
527
+ command.query['pageSize'] = page_size unless page_size.nil?
528
+ command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil?
527
529
  command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil?
528
530
  command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil?
529
531
  command.query['pageToken'] = page_token unless page_token.nil?
530
- command.query['pageSize'] = page_size unless page_size.nil?
531
- command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil?
532
532
  command.query['fields'] = fields unless fields.nil?
533
533
  command.query['quotaUser'] = quota_user unless quota_user.nil?
534
534
  execute_or_queue_command(command, &block)
@@ -645,14 +645,6 @@ module Google
645
645
  # @param [String] name
646
646
  # The group whose members are listed. The format is "projects/`
647
647
  # project_id_or_number`/groups/`group_id`".
648
- # @param [String] interval_end_time
649
- # Required. The end of the time interval.
650
- # @param [String] filter
651
- # An optional list filter describing the members to be returned. The filter may
652
- # reference the type, labels, and metadata of monitored resources that comprise
653
- # the group. For example, to return only resources representing Compute Engine
654
- # VM instances, use this filter:
655
- # resource.type = "gce_instance"
656
648
  # @param [String] page_token
657
649
  # If this field is not empty then it must contain the nextPageToken value
658
650
  # returned by a previous call to this method. Using this field causes the method
@@ -662,6 +654,14 @@ module Google
662
654
  # time is the end time. The start time must not be later than the end time.
663
655
  # @param [Fixnum] page_size
664
656
  # A positive number that is the maximum number of results to return.
657
+ # @param [String] interval_end_time
658
+ # Required. The end of the time interval.
659
+ # @param [String] filter
660
+ # An optional list filter describing the members to be returned. The filter may
661
+ # reference the type, labels, and metadata of monitored resources that comprise
662
+ # the group. For example, to return only resources representing Compute Engine
663
+ # VM instances, use this filter:
664
+ # resource.type = "gce_instance"
665
665
  # @param [String] fields
666
666
  # Selector specifying which fields to include in a partial response.
667
667
  # @param [String] quota_user
@@ -679,16 +679,16 @@ module Google
679
679
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
680
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
681
  # @raise [Google::Apis::AuthorizationError] Authorization is required
682
- def list_project_group_members(name, interval_end_time: nil, filter: nil, page_token: nil, interval_start_time: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
682
+ def list_project_group_members(name, page_token: nil, interval_start_time: nil, page_size: nil, interval_end_time: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
683
683
  command = make_simple_command(:get, 'v3/{+name}/members', options)
684
684
  command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation
685
685
  command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse
686
686
  command.params['name'] = name unless name.nil?
687
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
688
- command.query['filter'] = filter unless filter.nil?
689
687
  command.query['pageToken'] = page_token unless page_token.nil?
690
688
  command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
691
689
  command.query['pageSize'] = page_size unless page_size.nil?
690
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
691
+ command.query['filter'] = filter unless filter.nil?
692
692
  command.query['fields'] = fields unless fields.nil?
693
693
  command.query['quotaUser'] = quota_user unless quota_user.nil?
694
694
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170124'
28
+ REVISION = '20170201'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170124'
28
+ REVISION = '20170201'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -27,11 +27,11 @@ module Google
27
27
  VERSION = 'V1'
28
28
  REVISION = '20170105'
29
29
 
30
- # View and manage Pub/Sub topics and subscriptions
31
- AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
32
-
33
30
  # View and manage your data across Google Cloud Platform services
34
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View and manage Pub/Sub topics and subscriptions
34
+ AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
35
35
  end
36
36
  end
37
37
  end
@@ -22,19 +22,21 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
- # A topic resource.
26
- class Topic
25
+ # Response for the `ListTopicSubscriptions` method.
26
+ class ListTopicSubscriptionsResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The name of the topic. It must have the format
30
- # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
31
- # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
32
- # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
33
- # signs (`%`). It must be between 3 and 255 characters in length, and it
34
- # must not start with `"goog"`.
35
- # Corresponds to the JSON property `name`
29
+ # If not empty, indicates that there may be more subscriptions that match
30
+ # the request; this value should be passed in a new
31
+ # `ListTopicSubscriptionsRequest` to get more subscriptions.
32
+ # Corresponds to the JSON property `nextPageToken`
36
33
  # @return [String]
37
- attr_accessor :name
34
+ attr_accessor :next_page_token
35
+
36
+ # The names of the subscriptions that match the request.
37
+ # Corresponds to the JSON property `subscriptions`
38
+ # @return [Array<String>]
39
+ attr_accessor :subscriptions
38
40
 
39
41
  def initialize(**args)
40
42
  update!(**args)
@@ -42,63 +44,22 @@ module Google
42
44
 
43
45
  # Update properties of this object
44
46
  def update!(**args)
45
- @name = args[:name] if args.key?(:name)
47
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
48
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
46
49
  end
47
50
  end
48
51
 
49
- # Defines an Identity and Access Management (IAM) policy. It is used to
50
- # specify access control policies for Cloud Platform resources.
51
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
52
- # `members` to a `role`, where the members can be user accounts, Google groups,
53
- # Google domains, and service accounts. A `role` is a named list of permissions
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
- # ]
72
- # `
73
- # For a description of IAM and its features, see the
74
- # [IAM developer's guide](https://cloud.google.com/iam).
75
- class Policy
52
+ # Response for the `Pull` method.
53
+ class PullResponse
76
54
  include Google::Apis::Core::Hashable
77
55
 
78
- # Associates a list of `members` to a `role`.
79
- # Multiple `bindings` must not be specified for the same `role`.
80
- # `bindings` with no members will result in an error.
81
- # Corresponds to the JSON property `bindings`
82
- # @return [Array<Google::Apis::PubsubV1::Binding>]
83
- attr_accessor :bindings
84
-
85
- # `etag` is used for optimistic concurrency control as a way to help
86
- # prevent simultaneous updates of a policy from overwriting each other.
87
- # It is strongly suggested that systems make use of the `etag` in the
88
- # read-modify-write cycle to perform policy updates in order to avoid race
89
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
90
- # systems are expected to put that etag in the request to `setIamPolicy` to
91
- # ensure that their change will be applied to the same version of the policy.
92
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
93
- # policy is overwritten blindly.
94
- # Corresponds to the JSON property `etag`
95
- # @return [String]
96
- attr_accessor :etag
97
-
98
- # Version of the `Policy`. The default version is 0.
99
- # Corresponds to the JSON property `version`
100
- # @return [Fixnum]
101
- attr_accessor :version
56
+ # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
57
+ # there are no more available in the backlog. The Pub/Sub system may return
58
+ # fewer than the `maxMessages` requested even if there are more messages
59
+ # available in the backlog.
60
+ # Corresponds to the JSON property `receivedMessages`
61
+ # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
62
+ attr_accessor :received_messages
102
63
 
103
64
  def initialize(**args)
104
65
  update!(**args)
@@ -106,31 +67,24 @@ module Google
106
67
 
107
68
  # Update properties of this object
108
69
  def update!(**args)
109
- @bindings = args[:bindings] if args.key?(:bindings)
110
- @etag = args[:etag] if args.key?(:etag)
111
- @version = args[:version] if args.key?(:version)
70
+ @received_messages = args[:received_messages] if args.key?(:received_messages)
112
71
  end
113
72
  end
114
73
 
115
- # Request for the ModifyAckDeadline method.
116
- class ModifyAckDeadlineRequest
74
+ # A message and its corresponding acknowledgment ID.
75
+ class ReceivedMessage
117
76
  include Google::Apis::Core::Hashable
118
77
 
119
- # The new ack deadline with respect to the time this request was sent to
120
- # the Pub/Sub system. For example, if the value is 10, the new
121
- # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
122
- # was made. Specifying zero may immediately make the message available for
123
- # another pull request.
124
- # The minimum deadline you can specify is 0 seconds.
125
- # The maximum deadline you can specify is 600 seconds (10 minutes).
126
- # Corresponds to the JSON property `ackDeadlineSeconds`
127
- # @return [Fixnum]
128
- attr_accessor :ack_deadline_seconds
78
+ # A message data and its attributes. The message payload must not be empty;
79
+ # it must contain either a non-empty data field, or at least one attribute.
80
+ # Corresponds to the JSON property `message`
81
+ # @return [Google::Apis::PubsubV1::Message]
82
+ attr_accessor :message
129
83
 
130
- # List of acknowledgment IDs.
131
- # Corresponds to the JSON property `ackIds`
132
- # @return [Array<String>]
133
- attr_accessor :ack_ids
84
+ # This ID can be used to acknowledge the received message.
85
+ # Corresponds to the JSON property `ackId`
86
+ # @return [String]
87
+ attr_accessor :ack_id
134
88
 
135
89
  def initialize(**args)
136
90
  update!(**args)
@@ -138,44 +92,41 @@ module Google
138
92
 
139
93
  # Update properties of this object
140
94
  def update!(**args)
141
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
142
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
95
+ @message = args[:message] if args.key?(:message)
96
+ @ack_id = args[:ack_id] if args.key?(:ack_id)
143
97
  end
144
98
  end
145
99
 
146
- # Request message for `SetIamPolicy` method.
147
- class SetIamPolicyRequest
100
+ # Configuration for a push delivery endpoint.
101
+ class PushConfig
148
102
  include Google::Apis::Core::Hashable
149
103
 
150
- # Defines an Identity and Access Management (IAM) policy. It is used to
151
- # specify access control policies for Cloud Platform resources.
152
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
153
- # `members` to a `role`, where the members can be user accounts, Google groups,
154
- # Google domains, and service accounts. A `role` is a named list of permissions
155
- # defined by IAM.
156
- # **Example**
157
- # `
158
- # "bindings": [
159
- # `
160
- # "role": "roles/owner",
161
- # "members": [
162
- # "user:mike@example.com",
163
- # "group:admins@example.com",
164
- # "domain:google.com",
165
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
166
- # ]
167
- # `,
168
- # `
169
- # "role": "roles/viewer",
170
- # "members": ["user:sean@example.com"]
171
- # `
172
- # ]
173
- # `
174
- # For a description of IAM and its features, see the
175
- # [IAM developer's guide](https://cloud.google.com/iam).
176
- # Corresponds to the JSON property `policy`
177
- # @return [Google::Apis::PubsubV1::Policy]
178
- attr_accessor :policy
104
+ # A URL locating the endpoint to which messages should be pushed.
105
+ # For example, a Webhook endpoint might use "https://example.com/push".
106
+ # Corresponds to the JSON property `pushEndpoint`
107
+ # @return [String]
108
+ attr_accessor :push_endpoint
109
+
110
+ # Endpoint configuration attributes.
111
+ # Every endpoint has a set of API supported attributes that can be used to
112
+ # control different aspects of the message delivery.
113
+ # The currently supported attribute is `x-goog-version`, which you can
114
+ # use to change the format of the push message. This attribute
115
+ # indicates the version of the data expected by the endpoint. This
116
+ # controls the shape of the envelope (i.e. its fields and metadata).
117
+ # The endpoint version is based on the version of the Pub/Sub
118
+ # API.
119
+ # If not present during the `CreateSubscription` call, it will default to
120
+ # the version of the API used to make such call. If not present during a
121
+ # `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
122
+ # calls will always return a valid version, even if the subscription was
123
+ # created without this attribute.
124
+ # The possible values for this attribute are:
125
+ # * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
126
+ # * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
127
+ # Corresponds to the JSON property `attributes`
128
+ # @return [Hash<String,String>]
129
+ attr_accessor :attributes
179
130
 
180
131
  def initialize(**args)
181
132
  update!(**args)
@@ -183,39 +134,20 @@ module Google
183
134
 
184
135
  # Update properties of this object
185
136
  def update!(**args)
186
- @policy = args[:policy] if args.key?(:policy)
137
+ @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
138
+ @attributes = args[:attributes] if args.key?(:attributes)
187
139
  end
188
140
  end
189
141
 
190
- # A message data and its attributes. The message payload must not be empty;
191
- # it must contain either a non-empty data field, or at least one attribute.
192
- class Message
142
+ # Response message for `TestIamPermissions` method.
143
+ class TestIamPermissionsResponse
193
144
  include Google::Apis::Core::Hashable
194
145
 
195
- # The message payload.
196
- # Corresponds to the JSON property `data`
197
- # @return [String]
198
- attr_accessor :data
199
-
200
- # Optional attributes for this message.
201
- # Corresponds to the JSON property `attributes`
202
- # @return [Hash<String,String>]
203
- attr_accessor :attributes
204
-
205
- # ID of this message, assigned by the server when the message is published.
206
- # Guaranteed to be unique within the topic. This value may be read by a
207
- # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
208
- # delivery. It must not be populated by the publisher in a `Publish` call.
209
- # Corresponds to the JSON property `messageId`
210
- # @return [String]
211
- attr_accessor :message_id
212
-
213
- # The time at which the message was published, populated by the server when
214
- # it receives the `Publish` call. It must not be populated by the
215
- # publisher in a `Publish` call.
216
- # Corresponds to the JSON property `publishTime`
217
- # @return [String]
218
- attr_accessor :publish_time
146
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
147
+ # allowed.
148
+ # Corresponds to the JSON property `permissions`
149
+ # @return [Array<String>]
150
+ attr_accessor :permissions
219
151
 
220
152
  def initialize(**args)
221
153
  update!(**args)
@@ -223,21 +155,30 @@ module Google
223
155
 
224
156
  # Update properties of this object
225
157
  def update!(**args)
226
- @data = args[:data] if args.key?(:data)
227
- @attributes = args[:attributes] if args.key?(:attributes)
228
- @message_id = args[:message_id] if args.key?(:message_id)
229
- @publish_time = args[:publish_time] if args.key?(:publish_time)
158
+ @permissions = args[:permissions] if args.key?(:permissions)
230
159
  end
231
160
  end
232
161
 
233
- # Request for the ModifyPushConfig method.
234
- class ModifyPushConfigRequest
162
+ # Request for the `Pull` method.
163
+ class PullRequest
235
164
  include Google::Apis::Core::Hashable
236
165
 
237
- # Configuration for a push delivery endpoint.
238
- # Corresponds to the JSON property `pushConfig`
239
- # @return [Google::Apis::PubsubV1::PushConfig]
240
- attr_accessor :push_config
166
+ # The maximum number of messages returned for this request. The Pub/Sub
167
+ # system may return fewer than the number specified.
168
+ # Corresponds to the JSON property `maxMessages`
169
+ # @return [Fixnum]
170
+ attr_accessor :max_messages
171
+
172
+ # If this field set to true, the system will respond immediately even if
173
+ # it there are no messages available to return in the `Pull` response.
174
+ # Otherwise, the system may wait (for a bounded amount of time) until at
175
+ # least one message is available, rather than returning no messages. The
176
+ # client may cancel the request if it does not wish to wait any longer for
177
+ # the response.
178
+ # Corresponds to the JSON property `returnImmediately`
179
+ # @return [Boolean]
180
+ attr_accessor :return_immediately
181
+ alias_method :return_immediately?, :return_immediately
241
182
 
242
183
  def initialize(**args)
243
184
  update!(**args)
@@ -245,38 +186,26 @@ module Google
245
186
 
246
187
  # Update properties of this object
247
188
  def update!(**args)
248
- @push_config = args[:push_config] if args.key?(:push_config)
189
+ @max_messages = args[:max_messages] if args.key?(:max_messages)
190
+ @return_immediately = args[:return_immediately] if args.key?(:return_immediately)
249
191
  end
250
192
  end
251
193
 
252
- # Associates `members` with a `role`.
253
- class Binding
194
+ # Response for the `ListSubscriptions` method.
195
+ class ListSubscriptionsResponse
254
196
  include Google::Apis::Core::Hashable
255
197
 
256
- # Specifies the identities requesting access for a Cloud Platform resource.
257
- # `members` can have the following values:
258
- # * `allUsers`: A special identifier that represents anyone who is
259
- # on the internet; with or without a Google account.
260
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
261
- # who is authenticated with a Google account or a service account.
262
- # * `user:`emailid``: An email address that represents a specific Google
263
- # account. For example, `alice@gmail.com` or `joe@example.com`.
264
- # * `serviceAccount:`emailid``: An email address that represents a service
265
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
266
- # * `group:`emailid``: An email address that represents a Google group.
267
- # For example, `admins@example.com`.
268
- # * `domain:`domain``: A Google Apps domain name that represents all the
269
- # users of that domain. For example, `google.com` or `example.com`.
270
- # Corresponds to the JSON property `members`
271
- # @return [Array<String>]
272
- attr_accessor :members
273
-
274
- # Role that is assigned to `members`.
275
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
276
- # Required
277
- # Corresponds to the JSON property `role`
198
+ # If not empty, indicates that there may be more subscriptions that match
199
+ # the request; this value should be passed in a new
200
+ # `ListSubscriptionsRequest` to get more subscriptions.
201
+ # Corresponds to the JSON property `nextPageToken`
278
202
  # @return [String]
279
- attr_accessor :role
203
+ attr_accessor :next_page_token
204
+
205
+ # The subscriptions that match the request.
206
+ # Corresponds to the JSON property `subscriptions`
207
+ # @return [Array<Google::Apis::PubsubV1::Subscription>]
208
+ attr_accessor :subscriptions
280
209
 
281
210
  def initialize(**args)
282
211
  update!(**args)
@@ -284,20 +213,19 @@ module Google
284
213
 
285
214
  # Update properties of this object
286
215
  def update!(**args)
287
- @members = args[:members] if args.key?(:members)
288
- @role = args[:role] if args.key?(:role)
216
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
217
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
289
218
  end
290
219
  end
291
220
 
292
- # Request for the Acknowledge method.
293
- class AcknowledgeRequest
221
+ # Request for the Publish method.
222
+ class PublishRequest
294
223
  include Google::Apis::Core::Hashable
295
224
 
296
- # The acknowledgment ID for the messages being acknowledged that was returned
297
- # by the Pub/Sub system in the `Pull` response. Must not be empty.
298
- # Corresponds to the JSON property `ackIds`
299
- # @return [Array<String>]
300
- attr_accessor :ack_ids
225
+ # The messages to publish.
226
+ # Corresponds to the JSON property `messages`
227
+ # @return [Array<Google::Apis::PubsubV1::Message>]
228
+ attr_accessor :messages
301
229
 
302
230
  def initialize(**args)
303
231
  update!(**args)
@@ -305,43 +233,77 @@ module Google
305
233
 
306
234
  # Update properties of this object
307
235
  def update!(**args)
308
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
236
+ @messages = args[:messages] if args.key?(:messages)
309
237
  end
310
238
  end
311
239
 
312
- # A generic empty message that you can re-use to avoid defining duplicated
313
- # empty messages in your APIs. A typical example is to use it as the request
314
- # or the response type of an API method. For instance:
315
- # service Foo `
316
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
317
- # `
318
- # The JSON representation for `Empty` is empty JSON object ````.
319
- class Empty
240
+ # Response for the `Publish` method.
241
+ class PublishResponse
320
242
  include Google::Apis::Core::Hashable
321
243
 
244
+ # The server-assigned ID of each published message, in the same order as
245
+ # the messages in the request. IDs are guaranteed to be unique within
246
+ # the topic.
247
+ # Corresponds to the JSON property `messageIds`
248
+ # @return [Array<String>]
249
+ attr_accessor :message_ids
250
+
322
251
  def initialize(**args)
323
252
  update!(**args)
324
253
  end
325
254
 
326
255
  # Update properties of this object
327
256
  def update!(**args)
257
+ @message_ids = args[:message_ids] if args.key?(:message_ids)
328
258
  end
329
259
  end
330
260
 
331
- # Response for the `ListTopics` method.
332
- class ListTopicsResponse
261
+ # A subscription resource.
262
+ class Subscription
333
263
  include Google::Apis::Core::Hashable
334
264
 
335
- # The resulting topics.
336
- # Corresponds to the JSON property `topics`
337
- # @return [Array<Google::Apis::PubsubV1::Topic>]
338
- attr_accessor :topics
265
+ # This value is the maximum time after a subscriber receives a message
266
+ # before the subscriber should acknowledge the message. After message
267
+ # delivery but before the ack deadline expires and before the message is
268
+ # acknowledged, it is an outstanding message and will not be delivered
269
+ # again during that time (on a best-effort basis).
270
+ # For pull subscriptions, this value is used as the initial value for the ack
271
+ # deadline. To override this value for a given message, call
272
+ # `ModifyAckDeadline` with the corresponding `ack_id` if using
273
+ # pull.
274
+ # The minimum custom deadline you can specify is 10 seconds.
275
+ # The maximum custom deadline you can specify is 600 seconds (10 minutes).
276
+ # If this parameter is 0, a default value of 10 seconds is used.
277
+ # For push delivery, this value is also used to set the request timeout for
278
+ # the call to the push endpoint.
279
+ # If the subscriber never acknowledges the message, the Pub/Sub
280
+ # system will eventually redeliver the message.
281
+ # Corresponds to the JSON property `ackDeadlineSeconds`
282
+ # @return [Fixnum]
283
+ attr_accessor :ack_deadline_seconds
339
284
 
340
- # If not empty, indicates that there may be more topics that match the
341
- # request; this value should be passed in a new `ListTopicsRequest`.
342
- # Corresponds to the JSON property `nextPageToken`
285
+ # The name of the subscription. It must have the format
286
+ # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
287
+ # start with a letter, and contain only letters (`[A-Za-z]`), numbers
288
+ # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
289
+ # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
290
+ # in length, and it must not start with `"goog"`.
291
+ # Corresponds to the JSON property `name`
343
292
  # @return [String]
344
- attr_accessor :next_page_token
293
+ attr_accessor :name
294
+
295
+ # The name of the topic from which this subscription is receiving messages.
296
+ # Format is `projects/`project`/topics/`topic``.
297
+ # The value of this field will be `_deleted-topic_` if the topic has been
298
+ # deleted.
299
+ # Corresponds to the JSON property `topic`
300
+ # @return [String]
301
+ attr_accessor :topic
302
+
303
+ # Configuration for a push delivery endpoint.
304
+ # Corresponds to the JSON property `pushConfig`
305
+ # @return [Google::Apis::PubsubV1::PushConfig]
306
+ attr_accessor :push_config
345
307
 
346
308
  def initialize(**args)
347
309
  update!(**args)
@@ -349,26 +311,24 @@ module Google
349
311
 
350
312
  # Update properties of this object
351
313
  def update!(**args)
352
- @topics = args[:topics] if args.key?(:topics)
353
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
314
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
315
+ @name = args[:name] if args.key?(:name)
316
+ @topic = args[:topic] if args.key?(:topic)
317
+ @push_config = args[:push_config] if args.key?(:push_config)
354
318
  end
355
319
  end
356
320
 
357
- # Response for the `ListTopicSubscriptions` method.
358
- class ListTopicSubscriptionsResponse
321
+ # Request message for `TestIamPermissions` method.
322
+ class TestIamPermissionsRequest
359
323
  include Google::Apis::Core::Hashable
360
324
 
361
- # If not empty, indicates that there may be more subscriptions that match
362
- # the request; this value should be passed in a new
363
- # `ListTopicSubscriptionsRequest` to get more subscriptions.
364
- # Corresponds to the JSON property `nextPageToken`
365
- # @return [String]
366
- attr_accessor :next_page_token
367
-
368
- # The names of the subscriptions that match the request.
369
- # Corresponds to the JSON property `subscriptions`
325
+ # The set of permissions to check for the `resource`. Permissions with
326
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
327
+ # information see
328
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
329
+ # Corresponds to the JSON property `permissions`
370
330
  # @return [Array<String>]
371
- attr_accessor :subscriptions
331
+ attr_accessor :permissions
372
332
 
373
333
  def initialize(**args)
374
334
  update!(**args)
@@ -376,22 +336,23 @@ module Google
376
336
 
377
337
  # Update properties of this object
378
338
  def update!(**args)
379
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
- @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
339
+ @permissions = args[:permissions] if args.key?(:permissions)
381
340
  end
382
341
  end
383
342
 
384
- # Response for the `Pull` method.
385
- class PullResponse
343
+ # A topic resource.
344
+ class Topic
386
345
  include Google::Apis::Core::Hashable
387
346
 
388
- # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
389
- # there are no more available in the backlog. The Pub/Sub system may return
390
- # fewer than the `maxMessages` requested even if there are more messages
391
- # available in the backlog.
392
- # Corresponds to the JSON property `receivedMessages`
393
- # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
394
- attr_accessor :received_messages
347
+ # The name of the topic. It must have the format
348
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
349
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
350
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
351
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
352
+ # must not start with `"goog"`.
353
+ # Corresponds to the JSON property `name`
354
+ # @return [String]
355
+ attr_accessor :name
395
356
 
396
357
  def initialize(**args)
397
358
  update!(**args)
@@ -399,24 +360,63 @@ module Google
399
360
 
400
361
  # Update properties of this object
401
362
  def update!(**args)
402
- @received_messages = args[:received_messages] if args.key?(:received_messages)
363
+ @name = args[:name] if args.key?(:name)
403
364
  end
404
365
  end
405
366
 
406
- # A message and its corresponding acknowledgment ID.
407
- class ReceivedMessage
367
+ # Defines an Identity and Access Management (IAM) policy. It is used to
368
+ # specify access control policies for Cloud Platform resources.
369
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
370
+ # `members` to a `role`, where the members can be user accounts, Google groups,
371
+ # Google domains, and service accounts. A `role` is a named list of permissions
372
+ # defined by IAM.
373
+ # **Example**
374
+ # `
375
+ # "bindings": [
376
+ # `
377
+ # "role": "roles/owner",
378
+ # "members": [
379
+ # "user:mike@example.com",
380
+ # "group:admins@example.com",
381
+ # "domain:google.com",
382
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
383
+ # ]
384
+ # `,
385
+ # `
386
+ # "role": "roles/viewer",
387
+ # "members": ["user:sean@example.com"]
388
+ # `
389
+ # ]
390
+ # `
391
+ # For a description of IAM and its features, see the
392
+ # [IAM developer's guide](https://cloud.google.com/iam).
393
+ class Policy
408
394
  include Google::Apis::Core::Hashable
409
395
 
410
- # A message data and its attributes. The message payload must not be empty;
411
- # it must contain either a non-empty data field, or at least one attribute.
412
- # Corresponds to the JSON property `message`
413
- # @return [Google::Apis::PubsubV1::Message]
414
- attr_accessor :message
415
-
416
- # This ID can be used to acknowledge the received message.
417
- # Corresponds to the JSON property `ackId`
396
+ # `etag` is used for optimistic concurrency control as a way to help
397
+ # prevent simultaneous updates of a policy from overwriting each other.
398
+ # It is strongly suggested that systems make use of the `etag` in the
399
+ # read-modify-write cycle to perform policy updates in order to avoid race
400
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
401
+ # systems are expected to put that etag in the request to `setIamPolicy` to
402
+ # ensure that their change will be applied to the same version of the policy.
403
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
404
+ # policy is overwritten blindly.
405
+ # Corresponds to the JSON property `etag`
418
406
  # @return [String]
419
- attr_accessor :ack_id
407
+ attr_accessor :etag
408
+
409
+ # Version of the `Policy`. The default version is 0.
410
+ # Corresponds to the JSON property `version`
411
+ # @return [Fixnum]
412
+ attr_accessor :version
413
+
414
+ # Associates a list of `members` to a `role`.
415
+ # Multiple `bindings` must not be specified for the same `role`.
416
+ # `bindings` with no members will result in an error.
417
+ # Corresponds to the JSON property `bindings`
418
+ # @return [Array<Google::Apis::PubsubV1::Binding>]
419
+ attr_accessor :bindings
420
420
 
421
421
  def initialize(**args)
422
422
  update!(**args)
@@ -424,41 +424,31 @@ module Google
424
424
 
425
425
  # Update properties of this object
426
426
  def update!(**args)
427
- @message = args[:message] if args.key?(:message)
428
- @ack_id = args[:ack_id] if args.key?(:ack_id)
427
+ @etag = args[:etag] if args.key?(:etag)
428
+ @version = args[:version] if args.key?(:version)
429
+ @bindings = args[:bindings] if args.key?(:bindings)
429
430
  end
430
431
  end
431
432
 
432
- # Configuration for a push delivery endpoint.
433
- class PushConfig
433
+ # Request for the ModifyAckDeadline method.
434
+ class ModifyAckDeadlineRequest
434
435
  include Google::Apis::Core::Hashable
435
436
 
436
- # A URL locating the endpoint to which messages should be pushed.
437
- # For example, a Webhook endpoint might use "https://example.com/push".
438
- # Corresponds to the JSON property `pushEndpoint`
439
- # @return [String]
440
- attr_accessor :push_endpoint
441
-
442
- # Endpoint configuration attributes.
443
- # Every endpoint has a set of API supported attributes that can be used to
444
- # control different aspects of the message delivery.
445
- # The currently supported attribute is `x-goog-version`, which you can
446
- # use to change the format of the push message. This attribute
447
- # indicates the version of the data expected by the endpoint. This
448
- # controls the shape of the envelope (i.e. its fields and metadata).
449
- # The endpoint version is based on the version of the Pub/Sub
450
- # API.
451
- # If not present during the `CreateSubscription` call, it will default to
452
- # the version of the API used to make such call. If not present during a
453
- # `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
454
- # calls will always return a valid version, even if the subscription was
455
- # created without this attribute.
456
- # The possible values for this attribute are:
457
- # * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
458
- # * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
459
- # Corresponds to the JSON property `attributes`
460
- # @return [Hash<String,String>]
461
- attr_accessor :attributes
437
+ # The new ack deadline with respect to the time this request was sent to
438
+ # the Pub/Sub system. For example, if the value is 10, the new
439
+ # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
440
+ # was made. Specifying zero may immediately make the message available for
441
+ # another pull request.
442
+ # The minimum deadline you can specify is 0 seconds.
443
+ # The maximum deadline you can specify is 600 seconds (10 minutes).
444
+ # Corresponds to the JSON property `ackDeadlineSeconds`
445
+ # @return [Fixnum]
446
+ attr_accessor :ack_deadline_seconds
447
+
448
+ # List of acknowledgment IDs.
449
+ # Corresponds to the JSON property `ackIds`
450
+ # @return [Array<String>]
451
+ attr_accessor :ack_ids
462
452
 
463
453
  def initialize(**args)
464
454
  update!(**args)
@@ -466,20 +456,44 @@ module Google
466
456
 
467
457
  # Update properties of this object
468
458
  def update!(**args)
469
- @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
470
- @attributes = args[:attributes] if args.key?(:attributes)
459
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
460
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
471
461
  end
472
462
  end
473
463
 
474
- # Response message for `TestIamPermissions` method.
475
- class TestIamPermissionsResponse
464
+ # Request message for `SetIamPolicy` method.
465
+ class SetIamPolicyRequest
476
466
  include Google::Apis::Core::Hashable
477
467
 
478
- # A subset of `TestPermissionsRequest.permissions` that the caller is
479
- # allowed.
480
- # Corresponds to the JSON property `permissions`
481
- # @return [Array<String>]
482
- attr_accessor :permissions
468
+ # Defines an Identity and Access Management (IAM) policy. It is used to
469
+ # specify access control policies for Cloud Platform resources.
470
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
471
+ # `members` to a `role`, where the members can be user accounts, Google groups,
472
+ # Google domains, and service accounts. A `role` is a named list of permissions
473
+ # defined by IAM.
474
+ # **Example**
475
+ # `
476
+ # "bindings": [
477
+ # `
478
+ # "role": "roles/owner",
479
+ # "members": [
480
+ # "user:mike@example.com",
481
+ # "group:admins@example.com",
482
+ # "domain:google.com",
483
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
484
+ # ]
485
+ # `,
486
+ # `
487
+ # "role": "roles/viewer",
488
+ # "members": ["user:sean@example.com"]
489
+ # `
490
+ # ]
491
+ # `
492
+ # For a description of IAM and its features, see the
493
+ # [IAM developer's guide](https://cloud.google.com/iam).
494
+ # Corresponds to the JSON property `policy`
495
+ # @return [Google::Apis::PubsubV1::Policy]
496
+ attr_accessor :policy
483
497
 
484
498
  def initialize(**args)
485
499
  update!(**args)
@@ -487,30 +501,39 @@ module Google
487
501
 
488
502
  # Update properties of this object
489
503
  def update!(**args)
490
- @permissions = args[:permissions] if args.key?(:permissions)
504
+ @policy = args[:policy] if args.key?(:policy)
491
505
  end
492
506
  end
493
507
 
494
- # Request for the `Pull` method.
495
- class PullRequest
508
+ # A message data and its attributes. The message payload must not be empty;
509
+ # it must contain either a non-empty data field, or at least one attribute.
510
+ class Message
496
511
  include Google::Apis::Core::Hashable
497
512
 
498
- # If this field set to true, the system will respond immediately even if
499
- # it there are no messages available to return in the `Pull` response.
500
- # Otherwise, the system may wait (for a bounded amount of time) until at
501
- # least one message is available, rather than returning no messages. The
502
- # client may cancel the request if it does not wish to wait any longer for
503
- # the response.
504
- # Corresponds to the JSON property `returnImmediately`
505
- # @return [Boolean]
506
- attr_accessor :return_immediately
507
- alias_method :return_immediately?, :return_immediately
513
+ # Optional attributes for this message.
514
+ # Corresponds to the JSON property `attributes`
515
+ # @return [Hash<String,String>]
516
+ attr_accessor :attributes
508
517
 
509
- # The maximum number of messages returned for this request. The Pub/Sub
510
- # system may return fewer than the number specified.
511
- # Corresponds to the JSON property `maxMessages`
512
- # @return [Fixnum]
513
- attr_accessor :max_messages
518
+ # ID of this message, assigned by the server when the message is published.
519
+ # Guaranteed to be unique within the topic. This value may be read by a
520
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
521
+ # delivery. It must not be populated by the publisher in a `Publish` call.
522
+ # Corresponds to the JSON property `messageId`
523
+ # @return [String]
524
+ attr_accessor :message_id
525
+
526
+ # The time at which the message was published, populated by the server when
527
+ # it receives the `Publish` call. It must not be populated by the
528
+ # publisher in a `Publish` call.
529
+ # Corresponds to the JSON property `publishTime`
530
+ # @return [String]
531
+ attr_accessor :publish_time
532
+
533
+ # The message payload.
534
+ # Corresponds to the JSON property `data`
535
+ # @return [String]
536
+ attr_accessor :data
514
537
 
515
538
  def initialize(**args)
516
539
  update!(**args)
@@ -518,26 +541,21 @@ module Google
518
541
 
519
542
  # Update properties of this object
520
543
  def update!(**args)
521
- @return_immediately = args[:return_immediately] if args.key?(:return_immediately)
522
- @max_messages = args[:max_messages] if args.key?(:max_messages)
544
+ @attributes = args[:attributes] if args.key?(:attributes)
545
+ @message_id = args[:message_id] if args.key?(:message_id)
546
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
547
+ @data = args[:data] if args.key?(:data)
523
548
  end
524
549
  end
525
550
 
526
- # Response for the `ListSubscriptions` method.
527
- class ListSubscriptionsResponse
551
+ # Request for the ModifyPushConfig method.
552
+ class ModifyPushConfigRequest
528
553
  include Google::Apis::Core::Hashable
529
554
 
530
- # If not empty, indicates that there may be more subscriptions that match
531
- # the request; this value should be passed in a new
532
- # `ListSubscriptionsRequest` to get more subscriptions.
533
- # Corresponds to the JSON property `nextPageToken`
534
- # @return [String]
535
- attr_accessor :next_page_token
536
-
537
- # The subscriptions that match the request.
538
- # Corresponds to the JSON property `subscriptions`
539
- # @return [Array<Google::Apis::PubsubV1::Subscription>]
540
- attr_accessor :subscriptions
555
+ # Configuration for a push delivery endpoint.
556
+ # Corresponds to the JSON property `pushConfig`
557
+ # @return [Google::Apis::PubsubV1::PushConfig]
558
+ attr_accessor :push_config
541
559
 
542
560
  def initialize(**args)
543
561
  update!(**args)
@@ -545,19 +563,38 @@ module Google
545
563
 
546
564
  # Update properties of this object
547
565
  def update!(**args)
548
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
549
- @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
566
+ @push_config = args[:push_config] if args.key?(:push_config)
550
567
  end
551
568
  end
552
569
 
553
- # Request for the Publish method.
554
- class PublishRequest
570
+ # Associates `members` with a `role`.
571
+ class Binding
555
572
  include Google::Apis::Core::Hashable
556
573
 
557
- # The messages to publish.
558
- # Corresponds to the JSON property `messages`
559
- # @return [Array<Google::Apis::PubsubV1::Message>]
560
- attr_accessor :messages
574
+ # Specifies the identities requesting access for a Cloud Platform resource.
575
+ # `members` can have the following values:
576
+ # * `allUsers`: A special identifier that represents anyone who is
577
+ # on the internet; with or without a Google account.
578
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
579
+ # who is authenticated with a Google account or a service account.
580
+ # * `user:`emailid``: An email address that represents a specific Google
581
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
582
+ # * `serviceAccount:`emailid``: An email address that represents a service
583
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
584
+ # * `group:`emailid``: An email address that represents a Google group.
585
+ # For example, `admins@example.com`.
586
+ # * `domain:`domain``: A Google Apps domain name that represents all the
587
+ # users of that domain. For example, `google.com` or `example.com`.
588
+ # Corresponds to the JSON property `members`
589
+ # @return [Array<String>]
590
+ attr_accessor :members
591
+
592
+ # Role that is assigned to `members`.
593
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
594
+ # Required
595
+ # Corresponds to the JSON property `role`
596
+ # @return [String]
597
+ attr_accessor :role
561
598
 
562
599
  def initialize(**args)
563
600
  update!(**args)
@@ -565,20 +602,20 @@ module Google
565
602
 
566
603
  # Update properties of this object
567
604
  def update!(**args)
568
- @messages = args[:messages] if args.key?(:messages)
605
+ @members = args[:members] if args.key?(:members)
606
+ @role = args[:role] if args.key?(:role)
569
607
  end
570
608
  end
571
609
 
572
- # Response for the `Publish` method.
573
- class PublishResponse
610
+ # Request for the Acknowledge method.
611
+ class AcknowledgeRequest
574
612
  include Google::Apis::Core::Hashable
575
613
 
576
- # The server-assigned ID of each published message, in the same order as
577
- # the messages in the request. IDs are guaranteed to be unique within
578
- # the topic.
579
- # Corresponds to the JSON property `messageIds`
614
+ # The acknowledgment ID for the messages being acknowledged that was returned
615
+ # by the Pub/Sub system in the `Pull` response. Must not be empty.
616
+ # Corresponds to the JSON property `ackIds`
580
617
  # @return [Array<String>]
581
- attr_accessor :message_ids
618
+ attr_accessor :ack_ids
582
619
 
583
620
  def initialize(**args)
584
621
  update!(**args)
@@ -586,81 +623,43 @@ module Google
586
623
 
587
624
  # Update properties of this object
588
625
  def update!(**args)
589
- @message_ids = args[:message_ids] if args.key?(:message_ids)
626
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
590
627
  end
591
628
  end
592
629
 
593
- # A subscription resource.
594
- class Subscription
630
+ # A generic empty message that you can re-use to avoid defining duplicated
631
+ # empty messages in your APIs. A typical example is to use it as the request
632
+ # or the response type of an API method. For instance:
633
+ # service Foo `
634
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
635
+ # `
636
+ # The JSON representation for `Empty` is empty JSON object ````.
637
+ class Empty
595
638
  include Google::Apis::Core::Hashable
596
639
 
597
- # This value is the maximum time after a subscriber receives a message
598
- # before the subscriber should acknowledge the message. After message
599
- # delivery but before the ack deadline expires and before the message is
600
- # acknowledged, it is an outstanding message and will not be delivered
601
- # again during that time (on a best-effort basis).
602
- # For pull subscriptions, this value is used as the initial value for the ack
603
- # deadline. To override this value for a given message, call
604
- # `ModifyAckDeadline` with the corresponding `ack_id` if using
605
- # pull.
606
- # The minimum custom deadline you can specify is 10 seconds.
607
- # The maximum custom deadline you can specify is 600 seconds (10 minutes).
608
- # If this parameter is 0, a default value of 10 seconds is used.
609
- # For push delivery, this value is also used to set the request timeout for
610
- # the call to the push endpoint.
611
- # If the subscriber never acknowledges the message, the Pub/Sub
612
- # system will eventually redeliver the message.
613
- # Corresponds to the JSON property `ackDeadlineSeconds`
614
- # @return [Fixnum]
615
- attr_accessor :ack_deadline_seconds
616
-
617
- # The name of the subscription. It must have the format
618
- # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
619
- # start with a letter, and contain only letters (`[A-Za-z]`), numbers
620
- # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
621
- # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
622
- # in length, and it must not start with `"goog"`.
623
- # Corresponds to the JSON property `name`
624
- # @return [String]
625
- attr_accessor :name
626
-
627
- # The name of the topic from which this subscription is receiving messages.
628
- # Format is `projects/`project`/topics/`topic``.
629
- # The value of this field will be `_deleted-topic_` if the topic has been
630
- # deleted.
631
- # Corresponds to the JSON property `topic`
632
- # @return [String]
633
- attr_accessor :topic
634
-
635
- # Configuration for a push delivery endpoint.
636
- # Corresponds to the JSON property `pushConfig`
637
- # @return [Google::Apis::PubsubV1::PushConfig]
638
- attr_accessor :push_config
639
-
640
640
  def initialize(**args)
641
641
  update!(**args)
642
642
  end
643
643
 
644
644
  # Update properties of this object
645
645
  def update!(**args)
646
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
647
- @name = args[:name] if args.key?(:name)
648
- @topic = args[:topic] if args.key?(:topic)
649
- @push_config = args[:push_config] if args.key?(:push_config)
650
646
  end
651
647
  end
652
648
 
653
- # Request message for `TestIamPermissions` method.
654
- class TestIamPermissionsRequest
649
+ # Response for the `ListTopics` method.
650
+ class ListTopicsResponse
655
651
  include Google::Apis::Core::Hashable
656
652
 
657
- # The set of permissions to check for the `resource`. Permissions with
658
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
659
- # information see
660
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
661
- # Corresponds to the JSON property `permissions`
662
- # @return [Array<String>]
663
- attr_accessor :permissions
653
+ # If not empty, indicates that there may be more topics that match the
654
+ # request; this value should be passed in a new `ListTopicsRequest`.
655
+ # Corresponds to the JSON property `nextPageToken`
656
+ # @return [String]
657
+ attr_accessor :next_page_token
658
+
659
+ # The resulting topics.
660
+ # Corresponds to the JSON property `topics`
661
+ # @return [Array<Google::Apis::PubsubV1::Topic>]
662
+ attr_accessor :topics
664
663
 
665
664
  def initialize(**args)
666
665
  update!(**args)
@@ -668,7 +667,8 @@ module Google
668
667
 
669
668
  # Update properties of this object
670
669
  def update!(**args)
671
- @permissions = args[:permissions] if args.key?(:permissions)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ @topics = args[:topics] if args.key?(:topics)
672
672
  end
673
673
  end
674
674
  end