google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -0,0 +1,252 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ClouderrorreportingV1beta1
24
+
25
+ class ErrorGroupStats
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListEventsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class TimedCount
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ErrorGroup
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ServiceContext
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class SourceLocation
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ReportErrorEventResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class HttpRequestContext
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListGroupStatsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class DeleteEventsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ErrorEvent
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ReportedErrorEvent
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ErrorContext
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class TrackingIssue
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ErrorGroupStats
110
+ # @private
111
+ class Representation < Google::Apis::Core::JsonRepresentation
112
+ property :group, as: 'group', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
113
+
114
+ property :first_seen_time, as: 'firstSeenTime'
115
+ property :count, as: 'count'
116
+ property :affected_users_count, as: 'affectedUsersCount'
117
+ property :last_seen_time, as: 'lastSeenTime'
118
+ property :num_affected_services, as: 'numAffectedServices'
119
+ collection :affected_services, as: 'affectedServices', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
120
+
121
+ property :representative, as: 'representative', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
122
+
123
+ collection :timed_counts, as: 'timedCounts', class: Google::Apis::ClouderrorreportingV1beta1::TimedCount, decorator: Google::Apis::ClouderrorreportingV1beta1::TimedCount::Representation
124
+
125
+ end
126
+ end
127
+
128
+ class ListEventsResponse
129
+ # @private
130
+ class Representation < Google::Apis::Core::JsonRepresentation
131
+ property :time_range_begin, as: 'timeRangeBegin'
132
+ collection :error_events, as: 'errorEvents', class: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorEvent::Representation
133
+
134
+ property :next_page_token, as: 'nextPageToken'
135
+ end
136
+ end
137
+
138
+ class TimedCount
139
+ # @private
140
+ class Representation < Google::Apis::Core::JsonRepresentation
141
+ property :end_time, as: 'endTime'
142
+ property :count, as: 'count'
143
+ property :start_time, as: 'startTime'
144
+ end
145
+ end
146
+
147
+ class ErrorGroup
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ property :name, as: 'name'
151
+ property :group_id, as: 'groupId'
152
+ collection :tracking_issues, as: 'trackingIssues', class: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue, decorator: Google::Apis::ClouderrorreportingV1beta1::TrackingIssue::Representation
153
+
154
+ end
155
+ end
156
+
157
+ class ServiceContext
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ property :version, as: 'version'
161
+ property :service, as: 'service'
162
+ property :resource_type, as: 'resourceType'
163
+ end
164
+ end
165
+
166
+ class SourceLocation
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :function_name, as: 'functionName'
170
+ property :file_path, as: 'filePath'
171
+ property :line_number, as: 'lineNumber'
172
+ end
173
+ end
174
+
175
+ class ReportErrorEventResponse
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ end
179
+ end
180
+
181
+ class HttpRequestContext
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :referrer, as: 'referrer'
185
+ property :user_agent, as: 'userAgent'
186
+ property :url, as: 'url'
187
+ property :response_status_code, as: 'responseStatusCode'
188
+ property :method_prop, as: 'method'
189
+ property :remote_ip, as: 'remoteIp'
190
+ end
191
+ end
192
+
193
+ class ListGroupStatsResponse
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :time_range_begin, as: 'timeRangeBegin'
197
+ collection :error_group_stats, as: 'errorGroupStats', class: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorGroupStats::Representation
198
+
199
+ property :next_page_token, as: 'nextPageToken'
200
+ end
201
+ end
202
+
203
+ class DeleteEventsResponse
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ end
207
+ end
208
+
209
+ class ErrorEvent
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
213
+
214
+ property :message, as: 'message'
215
+ property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
216
+
217
+ property :event_time, as: 'eventTime'
218
+ end
219
+ end
220
+
221
+ class ReportedErrorEvent
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ property :context, as: 'context', class: Google::Apis::ClouderrorreportingV1beta1::ErrorContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ErrorContext::Representation
225
+
226
+ property :message, as: 'message'
227
+ property :service_context, as: 'serviceContext', class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext, decorator: Google::Apis::ClouderrorreportingV1beta1::ServiceContext::Representation
228
+
229
+ property :event_time, as: 'eventTime'
230
+ end
231
+ end
232
+
233
+ class ErrorContext
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ property :http_request, as: 'httpRequest', class: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext, decorator: Google::Apis::ClouderrorreportingV1beta1::HttpRequestContext::Representation
237
+
238
+ property :user, as: 'user'
239
+ property :report_location, as: 'reportLocation', class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation, decorator: Google::Apis::ClouderrorreportingV1beta1::SourceLocation::Representation
240
+
241
+ end
242
+ end
243
+
244
+ class TrackingIssue
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :url, as: 'url'
248
+ end
249
+ end
250
+ end
251
+ end
252
+ end
@@ -0,0 +1,350 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ClouderrorreportingV1beta1
23
+ # Stackdriver Error Reporting API
24
+ #
25
+ # Stackdriver Error Reporting groups and counts similar errors from cloud
26
+ # services. The Stackdriver Error Reporting API provides a way to report new
27
+ # errors and read access to error groups and their associated errors.
28
+ #
29
+ # @example
30
+ # require 'google/apis/clouderrorreporting_v1beta1'
31
+ #
32
+ # Clouderrorreporting = Google::Apis::ClouderrorreportingV1beta1 # Alias the module
33
+ # service = Clouderrorreporting::ClouderrorreportingService.new
34
+ #
35
+ # @see https://cloud.google.com/error-reporting/
36
+ class ClouderrorreportingService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://clouderrorreporting.googleapis.com/', '')
49
+ end
50
+
51
+ # Deletes all error events of a given project.
52
+ # @param [String] project_name
53
+ # [Required] The resource name of the Google Cloud Platform project. Written
54
+ # as `projects/` plus the
55
+ # [Google Cloud Platform project
56
+ # ID](https://support.google.com/cloud/answer/6158840).
57
+ # Example: `projects/my-project-123`.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def delete_project_events(project_name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:delete, 'v1beta1/{+projectName}/events', options)
77
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse::Representation
78
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::DeleteEventsResponse
79
+ command.params['projectName'] = project_name unless project_name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists the specified events.
86
+ # @param [String] project_name
87
+ # [Required] The resource name of the Google Cloud Platform project. Written
88
+ # as `projects/` plus the
89
+ # [Google Cloud Platform project
90
+ # ID](https://support.google.com/cloud/answer/6158840).
91
+ # Example: `projects/my-project-123`.
92
+ # @param [String] service_filter_service
93
+ # [Optional] The exact value to match against
94
+ # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
95
+ # ServiceContext#FIELDS.service).
96
+ # @param [String] page_token
97
+ # [Optional] A `next_page_token` provided by a previous response.
98
+ # @param [Fixnum] page_size
99
+ # [Optional] The maximum number of results to return per response.
100
+ # @param [String] service_filter_version
101
+ # [Optional] The exact value to match against
102
+ # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
103
+ # ServiceContext#FIELDS.version).
104
+ # @param [String] service_filter_resource_type
105
+ # [Optional] The exact value to match against
106
+ # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
107
+ # ServiceContext#FIELDS.resource_type).
108
+ # @param [String] time_range_period
109
+ # Restricts the query to the specified time range.
110
+ # @param [String] group_id
111
+ # [Required] The group for which events shall be returned.
112
+ # @param [String] fields
113
+ # Selector specifying which fields to include in a partial response.
114
+ # @param [String] quota_user
115
+ # Available to use for quota purposes for server-side applications. Can be any
116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
117
+ # @param [Google::Apis::RequestOptions] options
118
+ # Request-specific options
119
+ #
120
+ # @yield [result, err] Result & error if block supplied
121
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse] parsed result object
122
+ # @yieldparam err [StandardError] error object if request failed
123
+ #
124
+ # @return [Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse]
125
+ #
126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
129
+ def list_project_events(project_name, service_filter_service: nil, page_token: nil, page_size: nil, service_filter_version: nil, service_filter_resource_type: nil, time_range_period: nil, group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
130
+ command = make_simple_command(:get, 'v1beta1/{+projectName}/events', options)
131
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse::Representation
132
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListEventsResponse
133
+ command.params['projectName'] = project_name unless project_name.nil?
134
+ command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
135
+ command.query['pageToken'] = page_token unless page_token.nil?
136
+ command.query['pageSize'] = page_size unless page_size.nil?
137
+ command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
138
+ command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
139
+ command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
140
+ command.query['groupId'] = group_id unless group_id.nil?
141
+ command.query['fields'] = fields unless fields.nil?
142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
143
+ execute_or_queue_command(command, &block)
144
+ end
145
+
146
+ # Report an individual error event.
147
+ # This endpoint accepts <strong>either</strong> an OAuth token,
148
+ # <strong>or</strong> an
149
+ # <a href="https://support.google.com/cloud/answer/6158862">API key</a>
150
+ # for authentication. To use an API key, append it to the URL as the value of
151
+ # a `key` parameter. For example:
152
+ # <pre>POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-
153
+ # project/events:report?key=123ABC456</pre>
154
+ # @param [String] project_name
155
+ # [Required] The resource name of the Google Cloud Platform project. Written
156
+ # as `projects/` plus the
157
+ # [Google Cloud Platform project ID](https://support.google.com/cloud/answer/
158
+ # 6158840).
159
+ # Example: `projects/my-project-123`.
160
+ # @param [Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent] reported_error_event_object
161
+ # @param [String] fields
162
+ # Selector specifying which fields to include in a partial response.
163
+ # @param [String] quota_user
164
+ # Available to use for quota purposes for server-side applications. Can be any
165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
166
+ # @param [Google::Apis::RequestOptions] options
167
+ # Request-specific options
168
+ #
169
+ # @yield [result, err] Result & error if block supplied
170
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse] parsed result object
171
+ # @yieldparam err [StandardError] error object if request failed
172
+ #
173
+ # @return [Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse]
174
+ #
175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
178
+ def report_project_event(project_name, reported_error_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
179
+ command = make_simple_command(:post, 'v1beta1/{+projectName}/events:report', options)
180
+ command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ReportedErrorEvent::Representation
181
+ command.request_object = reported_error_event_object
182
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse::Representation
183
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::ReportErrorEventResponse
184
+ command.params['projectName'] = project_name unless project_name.nil?
185
+ command.query['fields'] = fields unless fields.nil?
186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
187
+ execute_or_queue_command(command, &block)
188
+ end
189
+
190
+ # Get the specified group.
191
+ # @param [String] group_name
192
+ # [Required] The group resource name. Written as
193
+ # <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
194
+ # Call
195
+ # <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
196
+ # <code>groupStats.list</code></a> to return a list of groups belonging to
197
+ # this project.
198
+ # Example: <code>projects/my-project-123/groups/my-group</code>
199
+ # @param [String] fields
200
+ # Selector specifying which fields to include in a partial response.
201
+ # @param [String] quota_user
202
+ # Available to use for quota purposes for server-side applications. Can be any
203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
204
+ # @param [Google::Apis::RequestOptions] options
205
+ # Request-specific options
206
+ #
207
+ # @yield [result, err] Result & error if block supplied
208
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] parsed result object
209
+ # @yieldparam err [StandardError] error object if request failed
210
+ #
211
+ # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
212
+ #
213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
216
+ def get_project_group(group_name, fields: nil, quota_user: nil, options: nil, &block)
217
+ command = make_simple_command(:get, 'v1beta1/{+groupName}', options)
218
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
219
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
220
+ command.params['groupName'] = group_name unless group_name.nil?
221
+ command.query['fields'] = fields unless fields.nil?
222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
+ execute_or_queue_command(command, &block)
224
+ end
225
+
226
+ # Replace the data for the specified group.
227
+ # Fails if the group does not exist.
228
+ # @param [String] name
229
+ # The group resource name.
230
+ # Example: <code>projects/my-project-123/groups/my-groupid</code>
231
+ # @param [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] error_group_object
232
+ # @param [String] fields
233
+ # Selector specifying which fields to include in a partial response.
234
+ # @param [String] quota_user
235
+ # Available to use for quota purposes for server-side applications. Can be any
236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
237
+ # @param [Google::Apis::RequestOptions] options
238
+ # Request-specific options
239
+ #
240
+ # @yield [result, err] Result & error if block supplied
241
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup] parsed result object
242
+ # @yieldparam err [StandardError] error object if request failed
243
+ #
244
+ # @return [Google::Apis::ClouderrorreportingV1beta1::ErrorGroup]
245
+ #
246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
249
+ def update_project_group(name, error_group_object = nil, fields: nil, quota_user: nil, options: nil, &block)
250
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
251
+ command.request_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
252
+ command.request_object = error_group_object
253
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup::Representation
254
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::ErrorGroup
255
+ command.params['name'] = name unless name.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Lists the specified groups.
262
+ # @param [String] project_name
263
+ # [Required] The resource name of the Google Cloud Platform project. Written
264
+ # as <code>projects/</code> plus the
265
+ # <a href="https://support.google.com/cloud/answer/6158840">Google Cloud
266
+ # Platform project ID</a>.
267
+ # Example: <code>projects/my-project-123</code>.
268
+ # @param [String] time_range_period
269
+ # Restricts the query to the specified time range.
270
+ # @param [String] alignment
271
+ # [Optional] The alignment of the timed counts to be returned.
272
+ # Default is `ALIGNMENT_EQUAL_AT_END`.
273
+ # @param [Array<String>, String] group_id
274
+ # [Optional] List all <code>ErrorGroupStats</code> with these IDs.
275
+ # @param [String] service_filter_service
276
+ # [Optional] The exact value to match against
277
+ # [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/
278
+ # ServiceContext#FIELDS.service).
279
+ # @param [Fixnum] page_size
280
+ # [Optional] The maximum number of results to return per response.
281
+ # Default is 20.
282
+ # @param [String] order
283
+ # [Optional] The sort order in which the results are returned.
284
+ # Default is `COUNT_DESC`.
285
+ # @param [String] service_filter_version
286
+ # [Optional] The exact value to match against
287
+ # [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/
288
+ # ServiceContext#FIELDS.version).
289
+ # @param [String] service_filter_resource_type
290
+ # [Optional] The exact value to match against
291
+ # [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/
292
+ # ServiceContext#FIELDS.resource_type).
293
+ # @param [String] alignment_time
294
+ # [Optional] Time where the timed counts shall be aligned if rounded
295
+ # alignment is chosen. Default is 00:00 UTC.
296
+ # @param [String] timed_count_duration
297
+ # [Optional] The preferred duration for a single returned `TimedCount`.
298
+ # If not set, no timed counts are returned.
299
+ # @param [String] page_token
300
+ # [Optional] A `next_page_token` provided by a previous response. To view
301
+ # additional results, pass this token along with the identical query
302
+ # parameters as the first request.
303
+ # @param [String] fields
304
+ # Selector specifying which fields to include in a partial response.
305
+ # @param [String] quota_user
306
+ # Available to use for quota purposes for server-side applications. Can be any
307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
308
+ # @param [Google::Apis::RequestOptions] options
309
+ # Request-specific options
310
+ #
311
+ # @yield [result, err] Result & error if block supplied
312
+ # @yieldparam result [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse] parsed result object
313
+ # @yieldparam err [StandardError] error object if request failed
314
+ #
315
+ # @return [Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse]
316
+ #
317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
320
+ def list_project_group_stats(project_name, time_range_period: nil, alignment: nil, group_id: nil, service_filter_service: nil, page_size: nil, order: nil, service_filter_version: nil, service_filter_resource_type: nil, alignment_time: nil, timed_count_duration: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
321
+ command = make_simple_command(:get, 'v1beta1/{+projectName}/groupStats', options)
322
+ command.response_representation = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse::Representation
323
+ command.response_class = Google::Apis::ClouderrorreportingV1beta1::ListGroupStatsResponse
324
+ command.params['projectName'] = project_name unless project_name.nil?
325
+ command.query['timeRange.period'] = time_range_period unless time_range_period.nil?
326
+ command.query['alignment'] = alignment unless alignment.nil?
327
+ command.query['groupId'] = group_id unless group_id.nil?
328
+ command.query['serviceFilter.service'] = service_filter_service unless service_filter_service.nil?
329
+ command.query['pageSize'] = page_size unless page_size.nil?
330
+ command.query['order'] = order unless order.nil?
331
+ command.query['serviceFilter.version'] = service_filter_version unless service_filter_version.nil?
332
+ command.query['serviceFilter.resourceType'] = service_filter_resource_type unless service_filter_resource_type.nil?
333
+ command.query['alignmentTime'] = alignment_time unless alignment_time.nil?
334
+ command.query['timedCountDuration'] = timed_count_duration unless timed_count_duration.nil?
335
+ command.query['pageToken'] = page_token unless page_token.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ protected
342
+
343
+ def apply_command_defaults(command)
344
+ command.query['key'] = key unless key.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ end
347
+ end
348
+ end
349
+ end
350
+ end