google-api-client 0.13.0 → 0.13.1

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