google-api-client 0.9.26 → 0.9.28

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -49,11 +49,11 @@ module Google
49
49
  # Lists log entries. Use this method to retrieve log entries from Stackdriver
50
50
  # Logging. For ways to export log entries, see Exporting Logs.
51
51
  # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
52
- # @param [String] fields
53
- # Selector specifying which fields to include in a partial response.
54
52
  # @param [String] quota_user
55
53
  # Available to use for quota purposes for server-side applications. Can be any
56
54
  # arbitrary string assigned to a user, but should not exceed 40 characters.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
57
  # @param [Google::Apis::RequestOptions] options
58
58
  # Request-specific options
59
59
  #
@@ -66,25 +66,25 @@ module Google
66
66
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67
67
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
68
68
  # @raise [Google::Apis::AuthorizationError] Authorization is required
69
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
69
+ def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
70
70
  command = make_simple_command(:post, 'v2beta1/entries:list', options)
71
71
  command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
72
72
  command.request_object = list_log_entries_request_object
73
73
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
74
74
  command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
75
- command.query['fields'] = fields unless fields.nil?
76
75
  command.query['quotaUser'] = quota_user unless quota_user.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
77
  execute_or_queue_command(command, &block)
78
78
  end
79
79
 
80
80
  # Writes log entries to Stackdriver Logging. All log entries are written by this
81
81
  # method.
82
82
  # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
83
- # @param [String] fields
84
- # Selector specifying which fields to include in a partial response.
85
83
  # @param [String] quota_user
86
84
  # Available to use for quota purposes for server-side applications. Can be any
87
85
  # arbitrary string assigned to a user, but should not exceed 40 characters.
86
+ # @param [String] fields
87
+ # Selector specifying which fields to include in a partial response.
88
88
  # @param [Google::Apis::RequestOptions] options
89
89
  # Request-specific options
90
90
  #
@@ -97,134 +97,138 @@ module Google
97
97
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
98
98
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
99
99
  # @raise [Google::Apis::AuthorizationError] Authorization is required
100
- def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
100
+ def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
101
101
  command = make_simple_command(:post, 'v2beta1/entries:write', options)
102
102
  command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
103
103
  command.request_object = write_log_entries_request_object
104
104
  command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
105
105
  command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
106
- command.query['fields'] = fields unless fields.nil?
107
106
  command.query['quotaUser'] = quota_user unless quota_user.nil?
107
+ command.query['fields'] = fields unless fields.nil?
108
108
  execute_or_queue_command(command, &block)
109
109
  end
110
110
 
111
- # Creates a logs-based metric.
111
+ # Lists logs-based metrics.
112
112
  # @param [String] parent
113
- # The resource name of the project in which to create the metric:
113
+ # Required. The name of the project containing the metrics:
114
114
  # "projects/[PROJECT_ID]"
115
- # The new metric must be provided in the request.
116
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
117
- # @param [String] fields
118
- # Selector specifying which fields to include in a partial response.
115
+ # @param [String] page_token
116
+ # Optional. If present, then retrieve the next batch of results from the
117
+ # preceding call to this method. pageToken must be the value of nextPageToken
118
+ # from the previous response. The values of other method parameters should be
119
+ # identical to those in the previous call.
120
+ # @param [Fixnum] page_size
121
+ # Optional. The maximum number of results to return from this request. Non-
122
+ # positive values are ignored. The presence of nextPageToken in the response
123
+ # indicates that more results might be available.
119
124
  # @param [String] quota_user
120
125
  # Available to use for quota purposes for server-side applications. Can be any
121
126
  # arbitrary string assigned to a user, but should not exceed 40 characters.
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
122
129
  # @param [Google::Apis::RequestOptions] options
123
130
  # Request-specific options
124
131
  #
125
132
  # @yield [result, err] Result & error if block supplied
126
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
133
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
127
134
  # @yieldparam err [StandardError] error object if request failed
128
135
  #
129
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
136
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
130
137
  #
131
138
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
132
139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
133
140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
134
- def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
135
- command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
136
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
137
- command.request_object = log_metric_object
138
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
139
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
141
+ def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
142
+ command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
143
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
144
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
140
145
  command.params['parent'] = parent unless parent.nil?
141
- command.query['fields'] = fields unless fields.nil?
146
+ command.query['pageToken'] = page_token unless page_token.nil?
147
+ command.query['pageSize'] = page_size unless page_size.nil?
142
148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
149
+ command.query['fields'] = fields unless fields.nil?
143
150
  execute_or_queue_command(command, &block)
144
151
  end
145
152
 
146
- # Deletes a logs-based metric.
153
+ # Gets a logs-based metric.
147
154
  # @param [String] metric_name
148
- # The resource name of the metric to delete:
155
+ # The resource name of the desired metric:
149
156
  # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
157
  # @param [String] quota_user
153
158
  # Available to use for quota purposes for server-side applications. Can be any
154
159
  # arbitrary string assigned to a user, but should not exceed 40 characters.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
155
162
  # @param [Google::Apis::RequestOptions] options
156
163
  # Request-specific options
157
164
  #
158
165
  # @yield [result, err] Result & error if block supplied
159
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
166
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
160
167
  # @yieldparam err [StandardError] error object if request failed
161
168
  #
162
- # @return [Google::Apis::LoggingV2beta1::Empty]
169
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
163
170
  #
164
171
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
172
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
173
  # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
168
- command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
169
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
170
- command.response_class = Google::Apis::LoggingV2beta1::Empty
174
+ def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
175
+ command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
176
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
177
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
171
178
  command.params['metricName'] = metric_name unless metric_name.nil?
172
- command.query['fields'] = fields unless fields.nil?
173
179
  command.query['quotaUser'] = quota_user unless quota_user.nil?
180
+ command.query['fields'] = fields unless fields.nil?
174
181
  execute_or_queue_command(command, &block)
175
182
  end
176
183
 
177
- # Lists logs-based metrics.
178
- # @param [String] parent
179
- # Required. The name of the project containing the metrics:
180
- # "projects/[PROJECT_ID]"
181
- # @param [Fixnum] page_size
182
- # Optional. The maximum number of results to return from this request. Non-
183
- # positive values are ignored. The presence of nextPageToken in the response
184
- # indicates that more results might be available.
185
- # @param [String] page_token
186
- # Optional. If present, then retrieve the next batch of results from the
187
- # preceding call to this method. pageToken must be the value of nextPageToken
188
- # from the previous response. The values of other method parameters should be
189
- # identical to those in the previous call.
190
- # @param [String] fields
191
- # Selector specifying which fields to include in a partial response.
184
+ # Creates or updates a logs-based metric.
185
+ # @param [String] metric_name
186
+ # The resource name of the metric to update:
187
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
188
+ # The updated metric must be provided in the request and it's name field must be
189
+ # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
190
+ # new metric is created.
191
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
192
192
  # @param [String] quota_user
193
193
  # Available to use for quota purposes for server-side applications. Can be any
194
194
  # arbitrary string assigned to a user, but should not exceed 40 characters.
195
+ # @param [String] fields
196
+ # Selector specifying which fields to include in a partial response.
195
197
  # @param [Google::Apis::RequestOptions] options
196
198
  # Request-specific options
197
199
  #
198
200
  # @yield [result, err] Result & error if block supplied
199
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
201
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
200
202
  # @yieldparam err [StandardError] error object if request failed
201
203
  #
202
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
204
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
203
205
  #
204
206
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
207
- def list_project_metrics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
208
- command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
209
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
210
- command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
211
- command.params['parent'] = parent unless parent.nil?
212
- command.query['pageSize'] = page_size unless page_size.nil?
213
- command.query['pageToken'] = page_token unless page_token.nil?
214
- command.query['fields'] = fields unless fields.nil?
209
+ def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
210
+ command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
211
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
212
+ command.request_object = log_metric_object
213
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
214
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
215
+ command.params['metricName'] = metric_name unless metric_name.nil?
215
216
  command.query['quotaUser'] = quota_user unless quota_user.nil?
217
+ command.query['fields'] = fields unless fields.nil?
216
218
  execute_or_queue_command(command, &block)
217
219
  end
218
220
 
219
- # Gets a logs-based metric.
220
- # @param [String] metric_name
221
- # The resource name of the desired metric:
222
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
223
- # @param [String] fields
224
- # Selector specifying which fields to include in a partial response.
221
+ # Creates a logs-based metric.
222
+ # @param [String] parent
223
+ # The resource name of the project in which to create the metric:
224
+ # "projects/[PROJECT_ID]"
225
+ # The new metric must be provided in the request.
226
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
225
227
  # @param [String] quota_user
226
228
  # Available to use for quota purposes for server-side applications. Can be any
227
229
  # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [String] fields
231
+ # Selector specifying which fields to include in a partial response.
228
232
  # @param [Google::Apis::RequestOptions] options
229
233
  # Request-specific options
230
234
  #
@@ -237,50 +241,46 @@ module Google
237
241
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
242
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
243
  # @raise [Google::Apis::AuthorizationError] Authorization is required
240
- def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
241
- command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
244
+ def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
245
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
246
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
247
+ command.request_object = log_metric_object
242
248
  command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
243
249
  command.response_class = Google::Apis::LoggingV2beta1::LogMetric
244
- command.params['metricName'] = metric_name unless metric_name.nil?
245
- command.query['fields'] = fields unless fields.nil?
250
+ command.params['parent'] = parent unless parent.nil?
246
251
  command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ command.query['fields'] = fields unless fields.nil?
247
253
  execute_or_queue_command(command, &block)
248
254
  end
249
255
 
250
- # Creates or updates a logs-based metric.
256
+ # Deletes a logs-based metric.
251
257
  # @param [String] metric_name
252
- # The resource name of the metric to update:
258
+ # The resource name of the metric to delete:
253
259
  # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
254
- # The updated metric must be provided in the request and it's name field must be
255
- # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
256
- # new metric is created.
257
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
258
- # @param [String] fields
259
- # Selector specifying which fields to include in a partial response.
260
260
  # @param [String] quota_user
261
261
  # Available to use for quota purposes for server-side applications. Can be any
262
262
  # arbitrary string assigned to a user, but should not exceed 40 characters.
263
+ # @param [String] fields
264
+ # Selector specifying which fields to include in a partial response.
263
265
  # @param [Google::Apis::RequestOptions] options
264
266
  # Request-specific options
265
267
  #
266
268
  # @yield [result, err] Result & error if block supplied
267
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
269
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
268
270
  # @yieldparam err [StandardError] error object if request failed
269
271
  #
270
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
272
+ # @return [Google::Apis::LoggingV2beta1::Empty]
271
273
  #
272
274
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
275
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
276
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
276
- command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
277
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
278
- command.request_object = log_metric_object
279
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
280
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
277
+ def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
278
+ command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
279
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
280
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
281
281
  command.params['metricName'] = metric_name unless metric_name.nil?
282
- command.query['fields'] = fields unless fields.nil?
283
282
  command.query['quotaUser'] = quota_user unless quota_user.nil?
283
+ command.query['fields'] = fields unless fields.nil?
284
284
  execute_or_queue_command(command, &block)
285
285
  end
286
286
 
@@ -293,11 +293,11 @@ module Google
293
293
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
294
294
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
295
295
  # 2Factivity". For more information about log names, see LogEntry.
296
- # @param [String] fields
297
- # Selector specifying which fields to include in a partial response.
298
296
  # @param [String] quota_user
299
297
  # Available to use for quota purposes for server-side applications. Can be any
300
298
  # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
301
  # @param [Google::Apis::RequestOptions] options
302
302
  # Request-specific options
303
303
  #
@@ -310,13 +310,13 @@ module Google
310
310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
311
311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
313
- def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
313
+ def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
314
314
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
315
315
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
316
316
  command.response_class = Google::Apis::LoggingV2beta1::Empty
317
317
  command.params['logName'] = log_name unless log_name.nil?
318
- command.query['fields'] = fields unless fields.nil?
319
318
  command.query['quotaUser'] = quota_user unless quota_user.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
320
  execute_or_queue_command(command, &block)
321
321
  end
322
322
 
@@ -335,11 +335,11 @@ module Google
335
335
  # Optional. The maximum number of results to return from this request. Non-
336
336
  # positive values are ignored. The presence of nextPageToken in the response
337
337
  # indicates that more results might be available.
338
- # @param [String] fields
339
- # Selector specifying which fields to include in a partial response.
340
338
  # @param [String] quota_user
341
339
  # Available to use for quota purposes for server-side applications. Can be any
342
340
  # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # @param [String] fields
342
+ # Selector specifying which fields to include in a partial response.
343
343
  # @param [Google::Apis::RequestOptions] options
344
344
  # Request-specific options
345
345
  #
@@ -352,51 +352,15 @@ module Google
352
352
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
353
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
354
  # @raise [Google::Apis::AuthorizationError] Authorization is required
355
- def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
355
+ def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
356
356
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
357
357
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
358
358
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
359
359
  command.params['parent'] = parent unless parent.nil?
360
360
  command.query['pageToken'] = page_token unless page_token.nil?
361
361
  command.query['pageSize'] = page_size unless page_size.nil?
362
- command.query['fields'] = fields unless fields.nil?
363
362
  command.query['quotaUser'] = quota_user unless quota_user.nil?
364
- execute_or_queue_command(command, &block)
365
- end
366
-
367
- # Deletes a sink. If the sink has a unique writer_identity, then that service
368
- # account is also deleted.
369
- # @param [String] sink_name
370
- # Required. The full resource name of the sink to delete, including the parent
371
- # resource and the sink identifier:
372
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
373
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
374
- # It is an error if the sink does not exist. Example: "projects/my-project-id/
375
- # sinks/my-sink-id". It is an error if the sink does not exist.
376
- # @param [String] fields
377
- # Selector specifying which fields to include in a partial response.
378
- # @param [String] quota_user
379
- # Available to use for quota purposes for server-side applications. Can be any
380
- # arbitrary string assigned to a user, but should not exceed 40 characters.
381
- # @param [Google::Apis::RequestOptions] options
382
- # Request-specific options
383
- #
384
- # @yield [result, err] Result & error if block supplied
385
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
386
- # @yieldparam err [StandardError] error object if request failed
387
- #
388
- # @return [Google::Apis::LoggingV2beta1::Empty]
389
- #
390
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
- # @raise [Google::Apis::AuthorizationError] Authorization is required
393
- def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
394
- command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
395
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
396
- command.response_class = Google::Apis::LoggingV2beta1::Empty
397
- command.params['sinkName'] = sink_name unless sink_name.nil?
398
363
  command.query['fields'] = fields unless fields.nil?
399
- command.query['quotaUser'] = quota_user unless quota_user.nil?
400
364
  execute_or_queue_command(command, &block)
401
365
  end
402
366
 
@@ -404,20 +368,20 @@ module Google
404
368
  # @param [String] parent
405
369
  # Required. The parent resource whose sinks are to be listed. Examples: "
406
370
  # projects/my-logging-project", "organizations/123456789".
371
+ # @param [Fixnum] page_size
372
+ # Optional. The maximum number of results to return from this request. Non-
373
+ # positive values are ignored. The presence of nextPageToken in the response
374
+ # indicates that more results might be available.
407
375
  # @param [String] page_token
408
376
  # Optional. If present, then retrieve the next batch of results from the
409
377
  # preceding call to this method. pageToken must be the value of nextPageToken
410
378
  # from the previous response. The values of other method parameters should be
411
379
  # identical to those in the previous call.
412
- # @param [Fixnum] page_size
413
- # Optional. The maximum number of results to return from this request. Non-
414
- # positive values are ignored. The presence of nextPageToken in the response
415
- # indicates that more results might be available.
416
- # @param [String] fields
417
- # Selector specifying which fields to include in a partial response.
418
380
  # @param [String] quota_user
419
381
  # Available to use for quota purposes for server-side applications. Can be any
420
382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
421
385
  # @param [Google::Apis::RequestOptions] options
422
386
  # Request-specific options
423
387
  #
@@ -430,15 +394,15 @@ module Google
430
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
431
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
432
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
433
- def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
397
+ def list_project_sinks(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
434
398
  command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
435
399
  command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
436
400
  command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
437
401
  command.params['parent'] = parent unless parent.nil?
438
- command.query['pageToken'] = page_token unless page_token.nil?
439
402
  command.query['pageSize'] = page_size unless page_size.nil?
440
- command.query['fields'] = fields unless fields.nil?
403
+ command.query['pageToken'] = page_token unless page_token.nil?
441
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
405
+ command.query['fields'] = fields unless fields.nil?
442
406
  execute_or_queue_command(command, &block)
443
407
  end
444
408
 
@@ -448,11 +412,11 @@ module Google
448
412
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
449
413
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
450
414
  # Example: "projects/my-project-id/sinks/my-sink-id".
451
- # @param [String] fields
452
- # Selector specifying which fields to include in a partial response.
453
415
  # @param [String] quota_user
454
416
  # Available to use for quota purposes for server-side applications. Can be any
455
417
  # arbitrary string assigned to a user, but should not exceed 40 characters.
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
456
420
  # @param [Google::Apis::RequestOptions] options
457
421
  # Request-specific options
458
422
  #
@@ -465,13 +429,13 @@ module Google
465
429
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
466
430
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
467
431
  # @raise [Google::Apis::AuthorizationError] Authorization is required
468
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
432
+ def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
469
433
  command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
470
434
  command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
471
435
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
472
436
  command.params['sinkName'] = sink_name unless sink_name.nil?
473
- command.query['fields'] = fields unless fields.nil?
474
437
  command.query['quotaUser'] = quota_user unless quota_user.nil?
438
+ command.query['fields'] = fields unless fields.nil?
475
439
  execute_or_queue_command(command, &block)
476
440
  end
477
441
 
@@ -497,11 +461,11 @@ module Google
497
461
  # If the old value was false and the new value is true, then writer_identity is
498
462
  # changed to a unique service account.
499
463
  # It is an error if the old value was true and the new value is false.
500
- # @param [String] fields
501
- # Selector specifying which fields to include in a partial response.
502
464
  # @param [String] quota_user
503
465
  # Available to use for quota purposes for server-side applications. Can be any
504
466
  # arbitrary string assigned to a user, but should not exceed 40 characters.
467
+ # @param [String] fields
468
+ # Selector specifying which fields to include in a partial response.
505
469
  # @param [Google::Apis::RequestOptions] options
506
470
  # Request-specific options
507
471
  #
@@ -514,7 +478,7 @@ module Google
514
478
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
479
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
480
  # @raise [Google::Apis::AuthorizationError] Authorization is required
517
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
481
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
518
482
  command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
519
483
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
520
484
  command.request_object = log_sink_object
@@ -522,8 +486,8 @@ module Google
522
486
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
523
487
  command.params['sinkName'] = sink_name unless sink_name.nil?
524
488
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
525
- command.query['fields'] = fields unless fields.nil?
526
489
  command.query['quotaUser'] = quota_user unless quota_user.nil?
490
+ command.query['fields'] = fields unless fields.nil?
527
491
  execute_or_queue_command(command, &block)
528
492
  end
529
493
 
@@ -548,11 +512,11 @@ module Google
548
512
  # owned by a non-project resource such as an organization, then the value of
549
513
  # writer_identity will be a unique service account used only for exports from
550
514
  # the new sink. For more information, see writer_identity in LogSink.
551
- # @param [String] fields
552
- # Selector specifying which fields to include in a partial response.
553
515
  # @param [String] quota_user
554
516
  # Available to use for quota purposes for server-side applications. Can be any
555
517
  # arbitrary string assigned to a user, but should not exceed 40 characters.
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
556
520
  # @param [Google::Apis::RequestOptions] options
557
521
  # Request-specific options
558
522
  #
@@ -565,7 +529,7 @@ module Google
565
529
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
530
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
531
  # @raise [Google::Apis::AuthorizationError] Authorization is required
568
- def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
532
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
569
533
  command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
570
534
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
571
535
  command.request_object = log_sink_object
@@ -573,8 +537,44 @@ module Google
573
537
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
574
538
  command.params['parent'] = parent unless parent.nil?
575
539
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
576
541
  command.query['fields'] = fields unless fields.nil?
542
+ execute_or_queue_command(command, &block)
543
+ end
544
+
545
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
546
+ # account is also deleted.
547
+ # @param [String] sink_name
548
+ # Required. The full resource name of the sink to delete, including the parent
549
+ # resource and the sink identifier:
550
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
551
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
552
+ # It is an error if the sink does not exist. Example: "projects/my-project-id/
553
+ # sinks/my-sink-id". It is an error if the sink does not exist.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [String] fields
558
+ # Selector specifying which fields to include in a partial response.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::LoggingV2beta1::Empty]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
572
+ command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
573
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
574
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
575
+ command.params['sinkName'] = sink_name unless sink_name.nil?
577
576
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
578
  execute_or_queue_command(command, &block)
579
579
  end
580
580
 
@@ -587,11 +587,11 @@ module Google
587
587
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
588
588
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
589
589
  # 2Factivity". For more information about log names, see LogEntry.
590
- # @param [String] fields
591
- # Selector specifying which fields to include in a partial response.
592
590
  # @param [String] quota_user
593
591
  # Available to use for quota purposes for server-side applications. Can be any
594
592
  # arbitrary string assigned to a user, but should not exceed 40 characters.
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
595
  # @param [Google::Apis::RequestOptions] options
596
596
  # Request-specific options
597
597
  #
@@ -604,13 +604,13 @@ module Google
604
604
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
605
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
606
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
607
+ def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
608
608
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
609
609
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
610
610
  command.response_class = Google::Apis::LoggingV2beta1::Empty
611
611
  command.params['logName'] = log_name unless log_name.nil?
612
- command.query['fields'] = fields unless fields.nil?
613
612
  command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ command.query['fields'] = fields unless fields.nil?
614
614
  execute_or_queue_command(command, &block)
615
615
  end
616
616
 
@@ -620,20 +620,20 @@ module Google
620
620
  # Required. The resource name that owns the logs:
621
621
  # "projects/[PROJECT_ID]"
622
622
  # "organizations/[ORGANIZATION_ID]"
623
+ # @param [Fixnum] page_size
624
+ # Optional. The maximum number of results to return from this request. Non-
625
+ # positive values are ignored. The presence of nextPageToken in the response
626
+ # indicates that more results might be available.
623
627
  # @param [String] page_token
624
628
  # Optional. If present, then retrieve the next batch of results from the
625
629
  # preceding call to this method. pageToken must be the value of nextPageToken
626
630
  # from the previous response. The values of other method parameters should be
627
631
  # identical to those in the previous call.
628
- # @param [Fixnum] page_size
629
- # Optional. The maximum number of results to return from this request. Non-
630
- # positive values are ignored. The presence of nextPageToken in the response
631
- # indicates that more results might be available.
632
- # @param [String] fields
633
- # Selector specifying which fields to include in a partial response.
634
632
  # @param [String] quota_user
635
633
  # Available to use for quota purposes for server-side applications. Can be any
636
634
  # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # @param [String] fields
636
+ # Selector specifying which fields to include in a partial response.
637
637
  # @param [Google::Apis::RequestOptions] options
638
638
  # Request-specific options
639
639
  #
@@ -646,33 +646,33 @@ module Google
646
646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
649
- def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ def list_billing_account_logs(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
650
650
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
651
651
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
652
652
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
653
653
  command.params['parent'] = parent unless parent.nil?
654
- command.query['pageToken'] = page_token unless page_token.nil?
655
654
  command.query['pageSize'] = page_size unless page_size.nil?
656
- command.query['fields'] = fields unless fields.nil?
655
+ command.query['pageToken'] = page_token unless page_token.nil?
657
656
  command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
658
  execute_or_queue_command(command, &block)
659
659
  end
660
660
 
661
661
  # Lists the descriptors for monitored resource types used by Stackdriver Logging.
662
- # @param [Fixnum] page_size
663
- # Optional. The maximum number of results to return from this request. Non-
664
- # positive values are ignored. The presence of nextPageToken in the response
665
- # indicates that more results might be available.
666
662
  # @param [String] page_token
667
663
  # Optional. If present, then retrieve the next batch of results from the
668
664
  # preceding call to this method. pageToken must be the value of nextPageToken
669
665
  # from the previous response. The values of other method parameters should be
670
666
  # identical to those in the previous call.
671
- # @param [String] fields
672
- # Selector specifying which fields to include in a partial response.
667
+ # @param [Fixnum] page_size
668
+ # Optional. The maximum number of results to return from this request. Non-
669
+ # positive values are ignored. The presence of nextPageToken in the response
670
+ # indicates that more results might be available.
673
671
  # @param [String] quota_user
674
672
  # Available to use for quota purposes for server-side applications. Can be any
675
673
  # arbitrary string assigned to a user, but should not exceed 40 characters.
674
+ # @param [String] fields
675
+ # Selector specifying which fields to include in a partial response.
676
676
  # @param [Google::Apis::RequestOptions] options
677
677
  # Request-specific options
678
678
  #
@@ -685,50 +685,14 @@ module Google
685
685
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
686
686
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
687
  # @raise [Google::Apis::AuthorizationError] Authorization is required
688
- def list_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
688
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
689
689
  command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
690
690
  command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
691
691
  command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
692
- command.query['pageSize'] = page_size unless page_size.nil?
693
692
  command.query['pageToken'] = page_token unless page_token.nil?
694
- command.query['fields'] = fields unless fields.nil?
693
+ command.query['pageSize'] = page_size unless page_size.nil?
695
694
  command.query['quotaUser'] = quota_user unless quota_user.nil?
696
- execute_or_queue_command(command, &block)
697
- end
698
-
699
- # Deletes all the log entries in a log. The log reappears if it receives new
700
- # entries.
701
- # @param [String] log_name
702
- # Required. The resource name of the log to delete:
703
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
704
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
705
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
706
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
707
- # 2Factivity". For more information about log names, see LogEntry.
708
- # @param [String] fields
709
- # Selector specifying which fields to include in a partial response.
710
- # @param [String] quota_user
711
- # Available to use for quota purposes for server-side applications. Can be any
712
- # arbitrary string assigned to a user, but should not exceed 40 characters.
713
- # @param [Google::Apis::RequestOptions] options
714
- # Request-specific options
715
- #
716
- # @yield [result, err] Result & error if block supplied
717
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
718
- # @yieldparam err [StandardError] error object if request failed
719
- #
720
- # @return [Google::Apis::LoggingV2beta1::Empty]
721
- #
722
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
- # @raise [Google::Apis::AuthorizationError] Authorization is required
725
- def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
726
- command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
727
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
728
- command.response_class = Google::Apis::LoggingV2beta1::Empty
729
- command.params['logName'] = log_name unless log_name.nil?
730
695
  command.query['fields'] = fields unless fields.nil?
731
- command.query['quotaUser'] = quota_user unless quota_user.nil?
732
696
  execute_or_queue_command(command, &block)
733
697
  end
734
698
 
@@ -738,20 +702,20 @@ module Google
738
702
  # Required. The resource name that owns the logs:
739
703
  # "projects/[PROJECT_ID]"
740
704
  # "organizations/[ORGANIZATION_ID]"
705
+ # @param [Fixnum] page_size
706
+ # Optional. The maximum number of results to return from this request. Non-
707
+ # positive values are ignored. The presence of nextPageToken in the response
708
+ # indicates that more results might be available.
741
709
  # @param [String] page_token
742
710
  # Optional. If present, then retrieve the next batch of results from the
743
711
  # preceding call to this method. pageToken must be the value of nextPageToken
744
712
  # from the previous response. The values of other method parameters should be
745
713
  # identical to those in the previous call.
746
- # @param [Fixnum] page_size
747
- # Optional. The maximum number of results to return from this request. Non-
748
- # positive values are ignored. The presence of nextPageToken in the response
749
- # indicates that more results might be available.
750
- # @param [String] fields
751
- # Selector specifying which fields to include in a partial response.
752
714
  # @param [String] quota_user
753
715
  # Available to use for quota purposes for server-side applications. Can be any
754
716
  # arbitrary string assigned to a user, but should not exceed 40 characters.
717
+ # @param [String] fields
718
+ # Selector specifying which fields to include in a partial response.
755
719
  # @param [Google::Apis::RequestOptions] options
756
720
  # Request-specific options
757
721
  #
@@ -764,15 +728,51 @@ module Google
764
728
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
765
729
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
766
730
  # @raise [Google::Apis::AuthorizationError] Authorization is required
767
- def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ def list_organization_logs(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
768
732
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
769
733
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
770
734
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
771
735
  command.params['parent'] = parent unless parent.nil?
772
- command.query['pageToken'] = page_token unless page_token.nil?
773
736
  command.query['pageSize'] = page_size unless page_size.nil?
737
+ command.query['pageToken'] = page_token unless page_token.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
774
739
  command.query['fields'] = fields unless fields.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Deletes all the log entries in a log. The log reappears if it receives new
744
+ # entries.
745
+ # @param [String] log_name
746
+ # Required. The resource name of the log to delete:
747
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
748
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
749
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
750
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
751
+ # 2Factivity". For more information about log names, see LogEntry.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # @param [String] fields
756
+ # Selector specifying which fields to include in a partial response.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::LoggingV2beta1::Empty]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
770
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
771
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
772
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
773
+ command.params['logName'] = log_name unless log_name.nil?
775
774
  command.query['quotaUser'] = quota_user unless quota_user.nil?
775
+ command.query['fields'] = fields unless fields.nil?
776
776
  execute_or_queue_command(command, &block)
777
777
  end
778
778