google-api-client 0.11.2 → 0.11.3

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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -47,243 +47,6 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Lists log entries. Use this method to retrieve log entries from Stackdriver
51
- # Logging. For ways to export log entries, see Exporting Logs.
52
- # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
53
- # @param [String] fields
54
- # Selector specifying which fields to include in a partial response.
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # arbitrary string assigned to a user, but should not exceed 40 characters.
58
- # @param [Google::Apis::RequestOptions] options
59
- # Request-specific options
60
- #
61
- # @yield [result, err] Result & error if block supplied
62
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
63
- # @yieldparam err [StandardError] error object if request failed
64
- #
65
- # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
66
- #
67
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
- # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
- command = make_simple_command(:post, 'v2beta1/entries:list', options)
72
- command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
73
- command.request_object = list_log_entries_request_object
74
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
75
- command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
76
- command.query['fields'] = fields unless fields.nil?
77
- command.query['quotaUser'] = quota_user unless quota_user.nil?
78
- execute_or_queue_command(command, &block)
79
- end
80
-
81
- # Writes log entries to Stackdriver Logging.
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
- # @param [String] quota_user
86
- # Available to use for quota purposes for server-side applications. Can be any
87
- # arbitrary string assigned to a user, but should not exceed 40 characters.
88
- # @param [Google::Apis::RequestOptions] options
89
- # Request-specific options
90
- #
91
- # @yield [result, err] Result & error if block supplied
92
- # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
93
- # @yieldparam err [StandardError] error object if request failed
94
- #
95
- # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
96
- #
97
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
98
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
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)
101
- command = make_simple_command(:post, 'v2beta1/entries:write', options)
102
- command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
103
- command.request_object = write_log_entries_request_object
104
- command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
105
- command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
106
- command.query['fields'] = fields unless fields.nil?
107
- command.query['quotaUser'] = quota_user unless quota_user.nil?
108
- execute_or_queue_command(command, &block)
109
- end
110
-
111
- # Lists logs-based metrics.
112
- # @param [String] parent
113
- # Required. The name of the project containing the metrics:
114
- # "projects/[PROJECT_ID]"
115
- # @param [Fixnum] page_size
116
- # Optional. The maximum number of results to return from this request. Non-
117
- # positive values are ignored. The presence of nextPageToken in the response
118
- # indicates that more results might be available.
119
- # @param [String] page_token
120
- # Optional. If present, then retrieve the next batch of results from the
121
- # preceding call to this method. pageToken must be the value of nextPageToken
122
- # from the previous response. The values of other method parameters should be
123
- # identical to those in the previous call.
124
- # @param [String] fields
125
- # Selector specifying which fields to include in a partial response.
126
- # @param [String] quota_user
127
- # Available to use for quota purposes for server-side applications. Can be any
128
- # arbitrary string assigned to a user, but should not exceed 40 characters.
129
- # @param [Google::Apis::RequestOptions] options
130
- # Request-specific options
131
- #
132
- # @yield [result, err] Result & error if block supplied
133
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
134
- # @yieldparam err [StandardError] error object if request failed
135
- #
136
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
137
- #
138
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
- # @raise [Google::Apis::AuthorizationError] Authorization is required
141
- def list_project_metrics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: 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
145
- command.params['parent'] = parent unless parent.nil?
146
- command.query['pageSize'] = page_size unless page_size.nil?
147
- command.query['pageToken'] = page_token unless page_token.nil?
148
- command.query['fields'] = fields unless fields.nil?
149
- command.query['quotaUser'] = quota_user unless quota_user.nil?
150
- execute_or_queue_command(command, &block)
151
- end
152
-
153
- # Gets a logs-based metric.
154
- # @param [String] metric_name
155
- # The resource name of the desired metric:
156
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
157
- # @param [String] fields
158
- # Selector specifying which fields to include in a partial response.
159
- # @param [String] quota_user
160
- # Available to use for quota purposes for server-side applications. Can be any
161
- # arbitrary string assigned to a user, but should not exceed 40 characters.
162
- # @param [Google::Apis::RequestOptions] options
163
- # Request-specific options
164
- #
165
- # @yield [result, err] Result & error if block supplied
166
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
167
- # @yieldparam err [StandardError] error object if request failed
168
- #
169
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
170
- #
171
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
- # @raise [Google::Apis::AuthorizationError] Authorization is required
174
- def get_project_metric(metric_name, fields: nil, quota_user: 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
178
- command.params['metricName'] = metric_name unless metric_name.nil?
179
- command.query['fields'] = fields unless fields.nil?
180
- command.query['quotaUser'] = quota_user unless quota_user.nil?
181
- execute_or_queue_command(command, &block)
182
- end
183
-
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
- # @param [String] fields
193
- # Selector specifying which fields to include in a partial response.
194
- # @param [String] quota_user
195
- # Available to use for quota purposes for server-side applications. Can be any
196
- # arbitrary string assigned to a user, but should not exceed 40 characters.
197
- # @param [Google::Apis::RequestOptions] options
198
- # Request-specific options
199
- #
200
- # @yield [result, err] Result & error if block supplied
201
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
202
- # @yieldparam err [StandardError] error object if request failed
203
- #
204
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
205
- #
206
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
- # @raise [Google::Apis::AuthorizationError] Authorization is required
209
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: 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?
216
- command.query['fields'] = fields unless fields.nil?
217
- command.query['quotaUser'] = quota_user unless quota_user.nil?
218
- execute_or_queue_command(command, &block)
219
- end
220
-
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
227
- # @param [String] fields
228
- # Selector specifying which fields to include in a partial response.
229
- # @param [String] quota_user
230
- # Available to use for quota purposes for server-side applications. Can be any
231
- # arbitrary string assigned to a user, but should not exceed 40 characters.
232
- # @param [Google::Apis::RequestOptions] options
233
- # Request-specific options
234
- #
235
- # @yield [result, err] Result & error if block supplied
236
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
237
- # @yieldparam err [StandardError] error object if request failed
238
- #
239
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
240
- #
241
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
- # @raise [Google::Apis::AuthorizationError] Authorization is required
244
- def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: 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
248
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
249
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
250
- command.params['parent'] = parent unless parent.nil?
251
- command.query['fields'] = fields unless fields.nil?
252
- command.query['quotaUser'] = quota_user unless quota_user.nil?
253
- execute_or_queue_command(command, &block)
254
- end
255
-
256
- # Deletes a logs-based metric.
257
- # @param [String] metric_name
258
- # The resource name of the metric to delete:
259
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
260
- # @param [String] fields
261
- # Selector specifying which fields to include in a partial response.
262
- # @param [String] quota_user
263
- # Available to use for quota purposes for server-side applications. Can be any
264
- # arbitrary string assigned to a user, but should not exceed 40 characters.
265
- # @param [Google::Apis::RequestOptions] options
266
- # Request-specific options
267
- #
268
- # @yield [result, err] Result & error if block supplied
269
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
270
- # @yieldparam err [StandardError] error object if request failed
271
- #
272
- # @return [Google::Apis::LoggingV2beta1::Empty]
273
- #
274
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
- # @raise [Google::Apis::AuthorizationError] Authorization is required
277
- def delete_project_metric(metric_name, fields: nil, quota_user: 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
- command.params['metricName'] = metric_name unless metric_name.nil?
282
- command.query['fields'] = fields unless fields.nil?
283
- command.query['quotaUser'] = quota_user unless quota_user.nil?
284
- execute_or_queue_command(command, &block)
285
- end
286
-
287
50
  # Deletes all the log entries in a log. The log reappears if it receives new
288
51
  # entries. Log entries written shortly before the delete operation might not be
289
52
  # deleted.
@@ -296,11 +59,11 @@ module Google
296
59
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
297
60
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
298
61
  # 2Factivity". For more information about log names, see LogEntry.
299
- # @param [String] fields
300
- # Selector specifying which fields to include in a partial response.
301
62
  # @param [String] quota_user
302
63
  # Available to use for quota purposes for server-side applications. Can be any
303
64
  # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [String] fields
66
+ # Selector specifying which fields to include in a partial response.
304
67
  # @param [Google::Apis::RequestOptions] options
305
68
  # Request-specific options
306
69
  #
@@ -313,13 +76,13 @@ module Google
313
76
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
77
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
78
  # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
79
+ def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
317
80
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
318
81
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
319
82
  command.response_class = Google::Apis::LoggingV2beta1::Empty
320
83
  command.params['logName'] = log_name unless log_name.nil?
321
- command.query['fields'] = fields unless fields.nil?
322
84
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ command.query['fields'] = fields unless fields.nil?
323
86
  execute_or_queue_command(command, &block)
324
87
  end
325
88
 
@@ -340,11 +103,11 @@ module Google
340
103
  # Optional. The maximum number of results to return from this request. Non-
341
104
  # positive values are ignored. The presence of nextPageToken in the response
342
105
  # indicates that more results might be available.
343
- # @param [String] fields
344
- # Selector specifying which fields to include in a partial response.
345
106
  # @param [String] quota_user
346
107
  # Available to use for quota purposes for server-side applications. Can be any
347
108
  # arbitrary string assigned to a user, but should not exceed 40 characters.
109
+ # @param [String] fields
110
+ # Selector specifying which fields to include in a partial response.
348
111
  # @param [Google::Apis::RequestOptions] options
349
112
  # Request-specific options
350
113
  #
@@ -357,15 +120,52 @@ module Google
357
120
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
121
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
122
  # @raise [Google::Apis::AuthorizationError] Authorization is required
360
- def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
123
+ def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
361
124
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
362
125
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
363
126
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
364
127
  command.params['parent'] = parent unless parent.nil?
365
128
  command.query['pageToken'] = page_token unless page_token.nil?
366
129
  command.query['pageSize'] = page_size unless page_size.nil?
130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
367
131
  command.query['fields'] = fields unless fields.nil?
132
+ execute_or_queue_command(command, &block)
133
+ end
134
+
135
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
136
+ # account is also deleted.
137
+ # @param [String] sink_name
138
+ # Required. The full resource name of the sink to delete, including the parent
139
+ # resource and the sink identifier:
140
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
141
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
142
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
143
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
144
+ # Example: "projects/my-project-id/sinks/my-sink-id".
145
+ # @param [String] quota_user
146
+ # Available to use for quota purposes for server-side applications. Can be any
147
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::LoggingV2beta1::Empty]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
163
+ command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
164
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
165
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
166
+ command.params['sinkName'] = sink_name unless sink_name.nil?
368
167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
168
+ command.query['fields'] = fields unless fields.nil?
369
169
  execute_or_queue_command(command, &block)
370
170
  end
371
171
 
@@ -385,11 +185,11 @@ module Google
385
185
  # Optional. The maximum number of results to return from this request. Non-
386
186
  # positive values are ignored. The presence of nextPageToken in the response
387
187
  # indicates that more results might be available.
388
- # @param [String] fields
389
- # Selector specifying which fields to include in a partial response.
390
188
  # @param [String] quota_user
391
189
  # Available to use for quota purposes for server-side applications. Can be any
392
190
  # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
393
193
  # @param [Google::Apis::RequestOptions] options
394
194
  # Request-specific options
395
195
  #
@@ -402,15 +202,15 @@ module Google
402
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
403
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
405
- def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
406
206
  command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
407
207
  command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
408
208
  command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
409
209
  command.params['parent'] = parent unless parent.nil?
410
210
  command.query['pageToken'] = page_token unless page_token.nil?
411
211
  command.query['pageSize'] = page_size unless page_size.nil?
412
- command.query['fields'] = fields unless fields.nil?
413
212
  command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ command.query['fields'] = fields unless fields.nil?
414
214
  execute_or_queue_command(command, &block)
415
215
  end
416
216
 
@@ -422,11 +222,11 @@ module Google
422
222
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
423
223
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
424
224
  # Example: "projects/my-project-id/sinks/my-sink-id".
425
- # @param [String] fields
426
- # Selector specifying which fields to include in a partial response.
427
225
  # @param [String] quota_user
428
226
  # Available to use for quota purposes for server-side applications. Can be any
429
227
  # arbitrary string assigned to a user, but should not exceed 40 characters.
228
+ # @param [String] fields
229
+ # Selector specifying which fields to include in a partial response.
430
230
  # @param [Google::Apis::RequestOptions] options
431
231
  # Request-specific options
432
232
  #
@@ -439,13 +239,13 @@ module Google
439
239
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440
240
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441
241
  # @raise [Google::Apis::AuthorizationError] Authorization is required
442
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
242
+ def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
443
243
  command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
444
244
  command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
445
245
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
446
246
  command.params['sinkName'] = sink_name unless sink_name.nil?
447
- command.query['fields'] = fields unless fields.nil?
448
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ command.query['fields'] = fields unless fields.nil?
449
249
  execute_or_queue_command(command, &block)
450
250
  end
451
251
 
@@ -473,11 +273,11 @@ module Google
473
273
  # If the old value is false and the new value is true, then writer_identity is
474
274
  # changed to a unique service account.
475
275
  # It is an error if the old value is true and the new value is false.
476
- # @param [String] fields
477
- # Selector specifying which fields to include in a partial response.
478
276
  # @param [String] quota_user
479
277
  # Available to use for quota purposes for server-side applications. Can be any
480
278
  # arbitrary string assigned to a user, but should not exceed 40 characters.
279
+ # @param [String] fields
280
+ # Selector specifying which fields to include in a partial response.
481
281
  # @param [Google::Apis::RequestOptions] options
482
282
  # Request-specific options
483
283
  #
@@ -490,7 +290,7 @@ module Google
490
290
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
491
291
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
492
292
  # @raise [Google::Apis::AuthorizationError] Authorization is required
493
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
293
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
494
294
  command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
495
295
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
496
296
  command.request_object = log_sink_object
@@ -498,8 +298,8 @@ module Google
498
298
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
499
299
  command.params['sinkName'] = sink_name unless sink_name.nil?
500
300
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
501
- command.query['fields'] = fields unless fields.nil?
502
301
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ command.query['fields'] = fields unless fields.nil?
503
303
  execute_or_queue_command(command, &block)
504
304
  end
505
305
 
@@ -526,11 +326,11 @@ module Google
526
326
  # owned by a non-project resource such as an organization, then the value of
527
327
  # writer_identity will be a unique service account used only for exports from
528
328
  # the new sink. For more information, see writer_identity in LogSink.
529
- # @param [String] fields
530
- # Selector specifying which fields to include in a partial response.
531
329
  # @param [String] quota_user
532
330
  # Available to use for quota purposes for server-side applications. Can be any
533
331
  # arbitrary string assigned to a user, but should not exceed 40 characters.
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
534
334
  # @param [Google::Apis::RequestOptions] options
535
335
  # Request-specific options
536
336
  #
@@ -543,7 +343,7 @@ module Google
543
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
544
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
545
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
546
- def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
346
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
547
347
  command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
548
348
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
549
349
  command.request_object = log_sink_object
@@ -551,26 +351,55 @@ module Google
551
351
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
552
352
  command.params['parent'] = parent unless parent.nil?
553
353
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
554
- command.query['fields'] = fields unless fields.nil?
555
354
  command.query['quotaUser'] = quota_user unless quota_user.nil?
355
+ command.query['fields'] = fields unless fields.nil?
556
356
  execute_or_queue_command(command, &block)
557
357
  end
558
358
 
559
- # Deletes a sink. If the sink has a unique writer_identity, then that service
560
- # account is also deleted.
561
- # @param [String] sink_name
562
- # Required. The full resource name of the sink to delete, including the parent
563
- # resource and the sink identifier:
564
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
565
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
566
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
567
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
568
- # Example: "projects/my-project-id/sinks/my-sink-id".
359
+ # Creates a logs-based metric.
360
+ # @param [String] parent
361
+ # The resource name of the project in which to create the metric:
362
+ # "projects/[PROJECT_ID]"
363
+ # The new metric must be provided in the request.
364
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
365
+ # @param [String] quota_user
366
+ # Available to use for quota purposes for server-side applications. Can be any
367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
569
368
  # @param [String] fields
570
369
  # Selector specifying which fields to include in a partial response.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
383
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
384
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
385
+ command.request_object = log_metric_object
386
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
387
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
388
+ command.params['parent'] = parent unless parent.nil?
389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
390
+ command.query['fields'] = fields unless fields.nil?
391
+ execute_or_queue_command(command, &block)
392
+ end
393
+
394
+ # Deletes a logs-based metric.
395
+ # @param [String] metric_name
396
+ # The resource name of the metric to delete:
397
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
571
398
  # @param [String] quota_user
572
399
  # Available to use for quota purposes for server-side applications. Can be any
573
400
  # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
574
403
  # @param [Google::Apis::RequestOptions] options
575
404
  # Request-specific options
576
405
  #
@@ -583,13 +412,123 @@ module Google
583
412
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
413
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
414
  # @raise [Google::Apis::AuthorizationError] Authorization is required
586
- def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
587
- command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
415
+ def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
416
+ command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
588
417
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
589
418
  command.response_class = Google::Apis::LoggingV2beta1::Empty
590
- command.params['sinkName'] = sink_name unless sink_name.nil?
419
+ command.params['metricName'] = metric_name unless metric_name.nil?
420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ execute_or_queue_command(command, &block)
423
+ end
424
+
425
+ # Lists logs-based metrics.
426
+ # @param [String] parent
427
+ # Required. The name of the project containing the metrics:
428
+ # "projects/[PROJECT_ID]"
429
+ # @param [String] page_token
430
+ # Optional. If present, then retrieve the next batch of results from the
431
+ # preceding call to this method. pageToken must be the value of nextPageToken
432
+ # from the previous response. The values of other method parameters should be
433
+ # identical to those in the previous call.
434
+ # @param [Fixnum] page_size
435
+ # Optional. The maximum number of results to return from this request. Non-
436
+ # positive values are ignored. The presence of nextPageToken in the response
437
+ # indicates that more results might be available.
438
+ # @param [String] quota_user
439
+ # Available to use for quota purposes for server-side applications. Can be any
440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # @param [String] fields
442
+ # Selector specifying which fields to include in a partial response.
443
+ # @param [Google::Apis::RequestOptions] options
444
+ # Request-specific options
445
+ #
446
+ # @yield [result, err] Result & error if block supplied
447
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
448
+ # @yieldparam err [StandardError] error object if request failed
449
+ #
450
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
451
+ #
452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
455
+ def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
456
+ command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
457
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
458
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
459
+ command.params['parent'] = parent unless parent.nil?
460
+ command.query['pageToken'] = page_token unless page_token.nil?
461
+ command.query['pageSize'] = page_size unless page_size.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ command.query['fields'] = fields unless fields.nil?
464
+ execute_or_queue_command(command, &block)
465
+ end
466
+
467
+ # Gets a logs-based metric.
468
+ # @param [String] metric_name
469
+ # The resource name of the desired metric:
470
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
471
+ # @param [String] quota_user
472
+ # Available to use for quota purposes for server-side applications. Can be any
473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
474
+ # @param [String] fields
475
+ # Selector specifying which fields to include in a partial response.
476
+ # @param [Google::Apis::RequestOptions] options
477
+ # Request-specific options
478
+ #
479
+ # @yield [result, err] Result & error if block supplied
480
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
481
+ # @yieldparam err [StandardError] error object if request failed
482
+ #
483
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
484
+ #
485
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
486
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
487
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
488
+ def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
489
+ command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
490
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
491
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
492
+ command.params['metricName'] = metric_name unless metric_name.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
494
  command.query['fields'] = fields unless fields.nil?
495
+ execute_or_queue_command(command, &block)
496
+ end
497
+
498
+ # Creates or updates a logs-based metric.
499
+ # @param [String] metric_name
500
+ # The resource name of the metric to update:
501
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
502
+ # The updated metric must be provided in the request and it's name field must be
503
+ # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
504
+ # new metric is created.
505
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
506
+ # @param [String] quota_user
507
+ # Available to use for quota purposes for server-side applications. Can be any
508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
509
+ # @param [String] fields
510
+ # Selector specifying which fields to include in a partial response.
511
+ # @param [Google::Apis::RequestOptions] options
512
+ # Request-specific options
513
+ #
514
+ # @yield [result, err] Result & error if block supplied
515
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
516
+ # @yieldparam err [StandardError] error object if request failed
517
+ #
518
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
519
+ #
520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
523
+ def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
524
+ command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
525
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
526
+ command.request_object = log_metric_object
527
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
528
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
529
+ command.params['metricName'] = metric_name unless metric_name.nil?
592
530
  command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ command.query['fields'] = fields unless fields.nil?
593
532
  execute_or_queue_command(command, &block)
594
533
  end
595
534
 
@@ -610,11 +549,11 @@ module Google
610
549
  # Optional. The maximum number of results to return from this request. Non-
611
550
  # positive values are ignored. The presence of nextPageToken in the response
612
551
  # indicates that more results might be available.
613
- # @param [String] fields
614
- # Selector specifying which fields to include in a partial response.
615
552
  # @param [String] quota_user
616
553
  # Available to use for quota purposes for server-side applications. Can be any
617
554
  # arbitrary string assigned to a user, but should not exceed 40 characters.
555
+ # @param [String] fields
556
+ # Selector specifying which fields to include in a partial response.
618
557
  # @param [Google::Apis::RequestOptions] options
619
558
  # Request-specific options
620
559
  #
@@ -627,15 +566,15 @@ module Google
627
566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
628
567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
629
568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
630
- def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
569
+ def list_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
631
570
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
632
571
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
633
572
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
634
573
  command.params['parent'] = parent unless parent.nil?
635
574
  command.query['pageToken'] = page_token unless page_token.nil?
636
575
  command.query['pageSize'] = page_size unless page_size.nil?
637
- command.query['fields'] = fields unless fields.nil?
638
576
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
+ command.query['fields'] = fields unless fields.nil?
639
578
  execute_or_queue_command(command, &block)
640
579
  end
641
580
 
@@ -651,11 +590,11 @@ module Google
651
590
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
652
591
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
653
592
  # 2Factivity". For more information about log names, see LogEntry.
654
- # @param [String] fields
655
- # Selector specifying which fields to include in a partial response.
656
593
  # @param [String] quota_user
657
594
  # Available to use for quota purposes for server-side applications. Can be any
658
595
  # arbitrary string assigned to a user, but should not exceed 40 characters.
596
+ # @param [String] fields
597
+ # Selector specifying which fields to include in a partial response.
659
598
  # @param [Google::Apis::RequestOptions] options
660
599
  # Request-specific options
661
600
  #
@@ -668,13 +607,13 @@ module Google
668
607
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
608
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
609
  # @raise [Google::Apis::AuthorizationError] Authorization is required
671
- def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
610
+ def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
672
611
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
673
612
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
674
613
  command.response_class = Google::Apis::LoggingV2beta1::Empty
675
614
  command.params['logName'] = log_name unless log_name.nil?
676
- command.query['fields'] = fields unless fields.nil?
677
615
  command.query['quotaUser'] = quota_user unless quota_user.nil?
616
+ command.query['fields'] = fields unless fields.nil?
678
617
  execute_or_queue_command(command, &block)
679
618
  end
680
619
 
@@ -688,11 +627,11 @@ module Google
688
627
  # Optional. The maximum number of results to return from this request. Non-
689
628
  # positive values are ignored. The presence of nextPageToken in the response
690
629
  # indicates that more results might be available.
691
- # @param [String] fields
692
- # Selector specifying which fields to include in a partial response.
693
630
  # @param [String] quota_user
694
631
  # Available to use for quota purposes for server-side applications. Can be any
695
632
  # arbitrary string assigned to a user, but should not exceed 40 characters.
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
696
635
  # @param [Google::Apis::RequestOptions] options
697
636
  # Request-specific options
698
637
  #
@@ -705,14 +644,14 @@ module Google
705
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
706
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
707
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
708
- def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
647
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
709
648
  command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
710
649
  command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
711
650
  command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
712
651
  command.query['pageToken'] = page_token unless page_token.nil?
713
652
  command.query['pageSize'] = page_size unless page_size.nil?
714
- command.query['fields'] = fields unless fields.nil?
715
653
  command.query['quotaUser'] = quota_user unless quota_user.nil?
654
+ command.query['fields'] = fields unless fields.nil?
716
655
  execute_or_queue_command(command, &block)
717
656
  end
718
657
 
@@ -728,11 +667,11 @@ module Google
728
667
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
729
668
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
730
669
  # 2Factivity". For more information about log names, see LogEntry.
731
- # @param [String] fields
732
- # Selector specifying which fields to include in a partial response.
733
670
  # @param [String] quota_user
734
671
  # Available to use for quota purposes for server-side applications. Can be any
735
672
  # arbitrary string assigned to a user, but should not exceed 40 characters.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
736
675
  # @param [Google::Apis::RequestOptions] options
737
676
  # Request-specific options
738
677
  #
@@ -745,13 +684,13 @@ module Google
745
684
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
746
685
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
747
686
  # @raise [Google::Apis::AuthorizationError] Authorization is required
748
- def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
687
+ def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
749
688
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
750
689
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
751
690
  command.response_class = Google::Apis::LoggingV2beta1::Empty
752
691
  command.params['logName'] = log_name unless log_name.nil?
753
- command.query['fields'] = fields unless fields.nil?
754
692
  command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ command.query['fields'] = fields unless fields.nil?
755
694
  execute_or_queue_command(command, &block)
756
695
  end
757
696
 
@@ -772,11 +711,11 @@ module Google
772
711
  # Optional. The maximum number of results to return from this request. Non-
773
712
  # positive values are ignored. The presence of nextPageToken in the response
774
713
  # indicates that more results might be available.
775
- # @param [String] fields
776
- # Selector specifying which fields to include in a partial response.
777
714
  # @param [String] quota_user
778
715
  # Available to use for quota purposes for server-side applications. Can be any
779
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.
780
719
  # @param [Google::Apis::RequestOptions] options
781
720
  # Request-specific options
782
721
  #
@@ -789,15 +728,76 @@ module Google
789
728
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
790
729
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
791
730
  # @raise [Google::Apis::AuthorizationError] Authorization is required
792
- 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_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
793
732
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
794
733
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
795
734
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
796
735
  command.params['parent'] = parent unless parent.nil?
797
736
  command.query['pageToken'] = page_token unless page_token.nil?
798
737
  command.query['pageSize'] = page_size unless page_size.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ command.query['fields'] = fields unless fields.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Lists log entries. Use this method to retrieve log entries from Stackdriver
744
+ # Logging. For ways to export log entries, see Exporting Logs.
745
+ # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
746
+ # @param [String] quota_user
747
+ # Available to use for quota purposes for server-side applications. Can be any
748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
749
+ # @param [String] fields
750
+ # Selector specifying which fields to include in a partial response.
751
+ # @param [Google::Apis::RequestOptions] options
752
+ # Request-specific options
753
+ #
754
+ # @yield [result, err] Result & error if block supplied
755
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
756
+ # @yieldparam err [StandardError] error object if request failed
757
+ #
758
+ # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
759
+ #
760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
763
+ def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
764
+ command = make_simple_command(:post, 'v2beta1/entries:list', options)
765
+ command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
766
+ command.request_object = list_log_entries_request_object
767
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
768
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
799
770
  command.query['fields'] = fields unless fields.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
774
+ # Writes log entries to Stackdriver Logging.
775
+ # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
776
+ # @param [String] quota_user
777
+ # Available to use for quota purposes for server-side applications. Can be any
778
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
779
+ # @param [String] fields
780
+ # Selector specifying which fields to include in a partial response.
781
+ # @param [Google::Apis::RequestOptions] options
782
+ # Request-specific options
783
+ #
784
+ # @yield [result, err] Result & error if block supplied
785
+ # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
786
+ # @yieldparam err [StandardError] error object if request failed
787
+ #
788
+ # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
789
+ #
790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
793
+ def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
794
+ command = make_simple_command(:post, 'v2beta1/entries:write', options)
795
+ command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
796
+ command.request_object = write_log_entries_request_object
797
+ command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
798
+ command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
800
799
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
+ command.query['fields'] = fields unless fields.nil?
801
801
  execute_or_queue_command(command, &block)
802
802
  end
803
803