google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,1236 @@
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 ToolresultsV1beta3
23
+ # Cloud Tool Results API
24
+ #
25
+ # Reads and publishes results from Firebase Test Lab.
26
+ #
27
+ # @example
28
+ # require 'google/apis/toolresults_v1beta3'
29
+ #
30
+ # Toolresults = Google::Apis::ToolresultsV1beta3 # Alias the module
31
+ # service = Toolresults::ToolResultsService.new
32
+ #
33
+ # @see https://firebase.google.com/docs/test-lab/
34
+ class ToolResultsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'toolresults/v1beta3/projects/')
53
+ end
54
+
55
+ # Gets the Tool Results settings for a project.
56
+ # May return any of the following canonical error codes:
57
+ # - PERMISSION_DENIED - if the user is not authorized to read from project
58
+ # @param [String] project_id
59
+ # A Project id.
60
+ # Required.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # Overrides userIp if both are provided.
67
+ # @param [String] user_ip
68
+ # IP address of the site where the request originates. Use this if you want to
69
+ # enforce per-user limits.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ProjectSettings] parsed result object
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [Google::Apis::ToolresultsV1beta3::ProjectSettings]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def get_project_settings(project_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
+ command = make_simple_command(:get, '{projectId}/settings', options)
84
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ProjectSettings::Representation
85
+ command.response_class = Google::Apis::ToolresultsV1beta3::ProjectSettings
86
+ command.params['projectId'] = project_id unless project_id.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ command.query['userIp'] = user_ip unless user_ip.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # Creates resources for settings which have not yet been set.
94
+ # Currently, this creates a single resource: a Google Cloud Storage bucket, to
95
+ # be used as the default bucket for this project. The bucket is created in the
96
+ # name of the user calling. Except in rare cases, calling this method in
97
+ # parallel from multiple clients will only create a single bucket. In order to
98
+ # avoid unnecessary storage charges, the bucket is configured to automatically
99
+ # delete objects older than 90 days.
100
+ # The bucket is created with the project-private ACL: All project team members
101
+ # are given permissions to the bucket and objects created within it according to
102
+ # their roles. Project owners have owners rights, and so on. The default ACL on
103
+ # objects created in the bucket is project-private as well. See Google Cloud
104
+ # Storage documentation for more details.
105
+ # If there is already a default bucket set and the project can access the bucket,
106
+ # this call does nothing. However, if the project doesn't have the permission
107
+ # to access the bucket or the bucket is deteleted, a new bucket will be created.
108
+ # May return any canonical error codes, including the following:
109
+ # - PERMISSION_DENIED - if the user is not authorized to write to project - Any
110
+ # error code raised by Google Cloud Storage
111
+ # @param [String] project_id
112
+ # A Project id.
113
+ # Required.
114
+ # @param [String] fields
115
+ # Selector specifying which fields to include in a partial response.
116
+ # @param [String] quota_user
117
+ # Available to use for quota purposes for server-side applications. Can be any
118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
119
+ # Overrides userIp if both are provided.
120
+ # @param [String] user_ip
121
+ # IP address of the site where the request originates. Use this if you want to
122
+ # enforce per-user limits.
123
+ # @param [Google::Apis::RequestOptions] options
124
+ # Request-specific options
125
+ #
126
+ # @yield [result, err] Result & error if block supplied
127
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ProjectSettings] parsed result object
128
+ # @yieldparam err [StandardError] error object if request failed
129
+ #
130
+ # @return [Google::Apis::ToolresultsV1beta3::ProjectSettings]
131
+ #
132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
135
+ def initialize_project_settings(project_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
136
+ command = make_simple_command(:post, '{projectId}:initializeSettings', options)
137
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ProjectSettings::Representation
138
+ command.response_class = Google::Apis::ToolresultsV1beta3::ProjectSettings
139
+ command.params['projectId'] = project_id unless project_id.nil?
140
+ command.query['fields'] = fields unless fields.nil?
141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
142
+ command.query['userIp'] = user_ip unless user_ip.nil?
143
+ execute_or_queue_command(command, &block)
144
+ end
145
+
146
+ # Creates a History.
147
+ # The returned History will have the id set.
148
+ # May return any of the following canonical error codes:
149
+ # - PERMISSION_DENIED - if the user is not authorized to write to project -
150
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing
151
+ # project does not exist
152
+ # @param [String] project_id
153
+ # A Project id.
154
+ # Required.
155
+ # @param [Google::Apis::ToolresultsV1beta3::History] history_object
156
+ # @param [String] request_id
157
+ # A unique request ID for server to detect duplicated requests. For example, a
158
+ # UUID.
159
+ # Optional, but strongly recommended.
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # Overrides userIp if both are provided.
166
+ # @param [String] user_ip
167
+ # IP address of the site where the request originates. Use this if you want to
168
+ # enforce per-user limits.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::History] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::ToolresultsV1beta3::History]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def create_project_history(project_id, history_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
182
+ command = make_simple_command(:post, '{projectId}/histories', options)
183
+ command.request_representation = Google::Apis::ToolresultsV1beta3::History::Representation
184
+ command.request_object = history_object
185
+ command.response_representation = Google::Apis::ToolresultsV1beta3::History::Representation
186
+ command.response_class = Google::Apis::ToolresultsV1beta3::History
187
+ command.params['projectId'] = project_id unless project_id.nil?
188
+ command.query['requestId'] = request_id unless request_id.nil?
189
+ command.query['fields'] = fields unless fields.nil?
190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
191
+ command.query['userIp'] = user_ip unless user_ip.nil?
192
+ execute_or_queue_command(command, &block)
193
+ end
194
+
195
+ # Gets a History.
196
+ # May return any of the following canonical error codes:
197
+ # - PERMISSION_DENIED - if the user is not authorized to read project -
198
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History
199
+ # does not exist
200
+ # @param [String] project_id
201
+ # A Project id.
202
+ # Required.
203
+ # @param [String] history_id
204
+ # A History id.
205
+ # Required.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # Overrides userIp if both are provided.
212
+ # @param [String] user_ip
213
+ # IP address of the site where the request originates. Use this if you want to
214
+ # enforce per-user limits.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::History] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::ToolresultsV1beta3::History]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def get_project_history(project_id, history_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
228
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}', options)
229
+ command.response_representation = Google::Apis::ToolresultsV1beta3::History::Representation
230
+ command.response_class = Google::Apis::ToolresultsV1beta3::History
231
+ command.params['projectId'] = project_id unless project_id.nil?
232
+ command.params['historyId'] = history_id unless history_id.nil?
233
+ command.query['fields'] = fields unless fields.nil?
234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
235
+ command.query['userIp'] = user_ip unless user_ip.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
239
+ # Lists Histories for a given Project.
240
+ # The histories are sorted by modification time in descending order. The
241
+ # history_id key will be used to order the history with the same modification
242
+ # time.
243
+ # May return any of the following canonical error codes:
244
+ # - PERMISSION_DENIED - if the user is not authorized to read project -
245
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History
246
+ # does not exist
247
+ # @param [String] project_id
248
+ # A Project id.
249
+ # Required.
250
+ # @param [String] filter_by_name
251
+ # If set, only return histories with the given name.
252
+ # Optional.
253
+ # @param [Fixnum] page_size
254
+ # The maximum number of Histories to fetch.
255
+ # Default value: 20. The server will use this default if the field is not set or
256
+ # has a value of 0. Any value greater than 100 will be treated as 100.
257
+ # Optional.
258
+ # @param [String] page_token
259
+ # A continuation token to resume the query at the next item.
260
+ # Optional.
261
+ # @param [String] fields
262
+ # Selector specifying which fields to include in a partial response.
263
+ # @param [String] quota_user
264
+ # Available to use for quota purposes for server-side applications. Can be any
265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
266
+ # Overrides userIp if both are provided.
267
+ # @param [String] user_ip
268
+ # IP address of the site where the request originates. Use this if you want to
269
+ # enforce per-user limits.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListHistoriesResponse] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::ToolresultsV1beta3::ListHistoriesResponse]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def list_project_histories(project_id, filter_by_name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
+ command = make_simple_command(:get, '{projectId}/histories', options)
284
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListHistoriesResponse::Representation
285
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListHistoriesResponse
286
+ command.params['projectId'] = project_id unless project_id.nil?
287
+ command.query['filterByName'] = filter_by_name unless filter_by_name.nil?
288
+ command.query['pageSize'] = page_size unless page_size.nil?
289
+ command.query['pageToken'] = page_token unless page_token.nil?
290
+ command.query['fields'] = fields unless fields.nil?
291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
292
+ command.query['userIp'] = user_ip unless user_ip.nil?
293
+ execute_or_queue_command(command, &block)
294
+ end
295
+
296
+ # Creates an Execution.
297
+ # The returned Execution will have the id set.
298
+ # May return any of the following canonical error codes:
299
+ # - PERMISSION_DENIED - if the user is not authorized to write to project -
300
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing
301
+ # History does not exist
302
+ # @param [String] project_id
303
+ # A Project id.
304
+ # Required.
305
+ # @param [String] history_id
306
+ # A History id.
307
+ # Required.
308
+ # @param [Google::Apis::ToolresultsV1beta3::Execution] execution_object
309
+ # @param [String] request_id
310
+ # A unique request ID for server to detect duplicated requests. For example, a
311
+ # UUID.
312
+ # Optional, but strongly recommended.
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
315
+ # @param [String] quota_user
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # Overrides userIp if both are provided.
319
+ # @param [String] user_ip
320
+ # IP address of the site where the request originates. Use this if you want to
321
+ # enforce per-user limits.
322
+ # @param [Google::Apis::RequestOptions] options
323
+ # Request-specific options
324
+ #
325
+ # @yield [result, err] Result & error if block supplied
326
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Execution] parsed result object
327
+ # @yieldparam err [StandardError] error object if request failed
328
+ #
329
+ # @return [Google::Apis::ToolresultsV1beta3::Execution]
330
+ #
331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
334
+ def create_project_history_execution(project_id, history_id, execution_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
335
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions', options)
336
+ command.request_representation = Google::Apis::ToolresultsV1beta3::Execution::Representation
337
+ command.request_object = execution_object
338
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Execution::Representation
339
+ command.response_class = Google::Apis::ToolresultsV1beta3::Execution
340
+ command.params['projectId'] = project_id unless project_id.nil?
341
+ command.params['historyId'] = history_id unless history_id.nil?
342
+ command.query['requestId'] = request_id unless request_id.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ command.query['userIp'] = user_ip unless user_ip.nil?
346
+ execute_or_queue_command(command, &block)
347
+ end
348
+
349
+ # Gets an Execution.
350
+ # May return any of the following canonical error codes:
351
+ # - PERMISSION_DENIED - if the user is not authorized to write to project -
352
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Execution
353
+ # does not exist
354
+ # @param [String] project_id
355
+ # A Project id.
356
+ # Required.
357
+ # @param [String] history_id
358
+ # A History id.
359
+ # Required.
360
+ # @param [String] execution_id
361
+ # An Execution id.
362
+ # Required.
363
+ # @param [String] fields
364
+ # Selector specifying which fields to include in a partial response.
365
+ # @param [String] quota_user
366
+ # Available to use for quota purposes for server-side applications. Can be any
367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
368
+ # Overrides userIp if both are provided.
369
+ # @param [String] user_ip
370
+ # IP address of the site where the request originates. Use this if you want to
371
+ # enforce per-user limits.
372
+ # @param [Google::Apis::RequestOptions] options
373
+ # Request-specific options
374
+ #
375
+ # @yield [result, err] Result & error if block supplied
376
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Execution] parsed result object
377
+ # @yieldparam err [StandardError] error object if request failed
378
+ #
379
+ # @return [Google::Apis::ToolresultsV1beta3::Execution]
380
+ #
381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
384
+ def get_project_history_execution(project_id, history_id, execution_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
385
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}', options)
386
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Execution::Representation
387
+ command.response_class = Google::Apis::ToolresultsV1beta3::Execution
388
+ command.params['projectId'] = project_id unless project_id.nil?
389
+ command.params['historyId'] = history_id unless history_id.nil?
390
+ command.params['executionId'] = execution_id unless execution_id.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ command.query['userIp'] = user_ip unless user_ip.nil?
394
+ execute_or_queue_command(command, &block)
395
+ end
396
+
397
+ # Lists Histories for a given Project.
398
+ # The executions are sorted by creation_time in descending order. The
399
+ # execution_id key will be used to order the executions with the same
400
+ # creation_time.
401
+ # May return any of the following canonical error codes:
402
+ # - PERMISSION_DENIED - if the user is not authorized to read project -
403
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing
404
+ # History does not exist
405
+ # @param [String] project_id
406
+ # A Project id.
407
+ # Required.
408
+ # @param [String] history_id
409
+ # A History id.
410
+ # Required.
411
+ # @param [Fixnum] page_size
412
+ # The maximum number of Executions to fetch.
413
+ # Default value: 25. The server will use this default if the field is not set or
414
+ # has a value of 0.
415
+ # Optional.
416
+ # @param [String] page_token
417
+ # A continuation token to resume the query at the next item.
418
+ # Optional.
419
+ # @param [String] fields
420
+ # Selector specifying which fields to include in a partial response.
421
+ # @param [String] quota_user
422
+ # Available to use for quota purposes for server-side applications. Can be any
423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
424
+ # Overrides userIp if both are provided.
425
+ # @param [String] user_ip
426
+ # IP address of the site where the request originates. Use this if you want to
427
+ # enforce per-user limits.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListExecutionsResponse] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::ToolresultsV1beta3::ListExecutionsResponse]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def list_project_history_executions(project_id, history_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
441
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions', options)
442
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListExecutionsResponse::Representation
443
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListExecutionsResponse
444
+ command.params['projectId'] = project_id unless project_id.nil?
445
+ command.params['historyId'] = history_id unless history_id.nil?
446
+ command.query['pageSize'] = page_size unless page_size.nil?
447
+ command.query['pageToken'] = page_token unless page_token.nil?
448
+ command.query['fields'] = fields unless fields.nil?
449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
450
+ command.query['userIp'] = user_ip unless user_ip.nil?
451
+ execute_or_queue_command(command, &block)
452
+ end
453
+
454
+ # Updates an existing Execution with the supplied partial entity.
455
+ # May return any of the following canonical error codes:
456
+ # - PERMISSION_DENIED - if the user is not authorized to write to project -
457
+ # INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
458
+ # requested state transition is illegal - NOT_FOUND - if the containing History
459
+ # does not exist
460
+ # @param [String] project_id
461
+ # A Project id. Required.
462
+ # @param [String] history_id
463
+ # Required.
464
+ # @param [String] execution_id
465
+ # Required.
466
+ # @param [Google::Apis::ToolresultsV1beta3::Execution] execution_object
467
+ # @param [String] request_id
468
+ # A unique request ID for server to detect duplicated requests. For example, a
469
+ # UUID.
470
+ # Optional, but strongly recommended.
471
+ # @param [String] fields
472
+ # Selector specifying which fields to include in a partial response.
473
+ # @param [String] quota_user
474
+ # Available to use for quota purposes for server-side applications. Can be any
475
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
476
+ # Overrides userIp if both are provided.
477
+ # @param [String] user_ip
478
+ # IP address of the site where the request originates. Use this if you want to
479
+ # enforce per-user limits.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Execution] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::ToolresultsV1beta3::Execution]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def patch_project_history_execution(project_id, history_id, execution_id, execution_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
493
+ command = make_simple_command(:patch, '{projectId}/histories/{historyId}/executions/{executionId}', options)
494
+ command.request_representation = Google::Apis::ToolresultsV1beta3::Execution::Representation
495
+ command.request_object = execution_object
496
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Execution::Representation
497
+ command.response_class = Google::Apis::ToolresultsV1beta3::Execution
498
+ command.params['projectId'] = project_id unless project_id.nil?
499
+ command.params['historyId'] = history_id unless history_id.nil?
500
+ command.params['executionId'] = execution_id unless execution_id.nil?
501
+ command.query['requestId'] = request_id unless request_id.nil?
502
+ command.query['fields'] = fields unless fields.nil?
503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
504
+ command.query['userIp'] = user_ip unless user_ip.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
508
+ # Creates a Step.
509
+ # The returned Step will have the id set.
510
+ # May return any of the following canonical error codes:
511
+ # - PERMISSION_DENIED - if the user is not authorized to write to project -
512
+ # INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
513
+ # step is too large (more than 10Mib) - NOT_FOUND - if the containing Execution
514
+ # does not exist
515
+ # @param [String] project_id
516
+ # A Project id.
517
+ # Required.
518
+ # @param [String] history_id
519
+ # A History id.
520
+ # Required.
521
+ # @param [String] execution_id
522
+ # A Execution id.
523
+ # Required.
524
+ # @param [Google::Apis::ToolresultsV1beta3::Step] step_object
525
+ # @param [String] request_id
526
+ # A unique request ID for server to detect duplicated requests. For example, a
527
+ # UUID.
528
+ # Optional, but strongly recommended.
529
+ # @param [String] fields
530
+ # Selector specifying which fields to include in a partial response.
531
+ # @param [String] quota_user
532
+ # Available to use for quota purposes for server-side applications. Can be any
533
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
534
+ # Overrides userIp if both are provided.
535
+ # @param [String] user_ip
536
+ # IP address of the site where the request originates. Use this if you want to
537
+ # enforce per-user limits.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Step] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::ToolresultsV1beta3::Step]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def create_project_history_execution_step(project_id, history_id, execution_id, step_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
551
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions/{executionId}/steps', options)
552
+ command.request_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
553
+ command.request_object = step_object
554
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
555
+ command.response_class = Google::Apis::ToolresultsV1beta3::Step
556
+ command.params['projectId'] = project_id unless project_id.nil?
557
+ command.params['historyId'] = history_id unless history_id.nil?
558
+ command.params['executionId'] = execution_id unless execution_id.nil?
559
+ command.query['requestId'] = request_id unless request_id.nil?
560
+ command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
562
+ command.query['userIp'] = user_ip unless user_ip.nil?
563
+ execute_or_queue_command(command, &block)
564
+ end
565
+
566
+ # Gets a Step.
567
+ # May return any of the following canonical error codes:
568
+ # - PERMISSION_DENIED - if the user is not authorized to read project -
569
+ # INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Step does
570
+ # not exist
571
+ # @param [String] project_id
572
+ # A Project id.
573
+ # Required.
574
+ # @param [String] history_id
575
+ # A History id.
576
+ # Required.
577
+ # @param [String] execution_id
578
+ # A Execution id.
579
+ # Required.
580
+ # @param [String] step_id
581
+ # A Step id.
582
+ # Required.
583
+ # @param [String] fields
584
+ # Selector specifying which fields to include in a partial response.
585
+ # @param [String] quota_user
586
+ # Available to use for quota purposes for server-side applications. Can be any
587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
588
+ # Overrides userIp if both are provided.
589
+ # @param [String] user_ip
590
+ # IP address of the site where the request originates. Use this if you want to
591
+ # enforce per-user limits.
592
+ # @param [Google::Apis::RequestOptions] options
593
+ # Request-specific options
594
+ #
595
+ # @yield [result, err] Result & error if block supplied
596
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Step] parsed result object
597
+ # @yieldparam err [StandardError] error object if request failed
598
+ #
599
+ # @return [Google::Apis::ToolresultsV1beta3::Step]
600
+ #
601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
604
+ def get_project_history_execution_step(project_id, history_id, execution_id, step_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
605
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}', options)
606
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
607
+ command.response_class = Google::Apis::ToolresultsV1beta3::Step
608
+ command.params['projectId'] = project_id unless project_id.nil?
609
+ command.params['historyId'] = history_id unless history_id.nil?
610
+ command.params['executionId'] = execution_id unless execution_id.nil?
611
+ command.params['stepId'] = step_id unless step_id.nil?
612
+ command.query['fields'] = fields unless fields.nil?
613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
614
+ command.query['userIp'] = user_ip unless user_ip.nil?
615
+ execute_or_queue_command(command, &block)
616
+ end
617
+
618
+ # Retrieves a PerfMetricsSummary.
619
+ # May return any of the following error code(s): - NOT_FOUND - The specified
620
+ # PerfMetricsSummary does not exist
621
+ # @param [String] project_id
622
+ # The cloud project
623
+ # @param [String] history_id
624
+ # A tool results history ID.
625
+ # @param [String] execution_id
626
+ # A tool results execution ID.
627
+ # @param [String] step_id
628
+ # A tool results step ID.
629
+ # @param [String] fields
630
+ # Selector specifying which fields to include in a partial response.
631
+ # @param [String] quota_user
632
+ # Available to use for quota purposes for server-side applications. Can be any
633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
+ # Overrides userIp if both are provided.
635
+ # @param [String] user_ip
636
+ # IP address of the site where the request originates. Use this if you want to
637
+ # enforce per-user limits.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::PerfMetricsSummary] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::ToolresultsV1beta3::PerfMetricsSummary]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def get_project_history_execution_step_perf_metrics_summary(project_id, history_id, execution_id, step_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
651
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary', options)
652
+ command.response_representation = Google::Apis::ToolresultsV1beta3::PerfMetricsSummary::Representation
653
+ command.response_class = Google::Apis::ToolresultsV1beta3::PerfMetricsSummary
654
+ command.params['projectId'] = project_id unless project_id.nil?
655
+ command.params['historyId'] = history_id unless history_id.nil?
656
+ command.params['executionId'] = execution_id unless execution_id.nil?
657
+ command.params['stepId'] = step_id unless step_id.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ command.query['userIp'] = user_ip unless user_ip.nil?
661
+ execute_or_queue_command(command, &block)
662
+ end
663
+
664
+ # Lists Steps for a given Execution.
665
+ # The steps are sorted by creation_time in descending order. The step_id key
666
+ # will be used to order the steps with the same creation_time.
667
+ # May return any of the following canonical error codes:
668
+ # - PERMISSION_DENIED - if the user is not authorized to read project -
669
+ # INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if an
670
+ # argument in the request happens to be invalid; e.g. if an attempt is made to
671
+ # list the children of a nonexistent Step - NOT_FOUND - if the containing
672
+ # Execution does not exist
673
+ # @param [String] project_id
674
+ # A Project id.
675
+ # Required.
676
+ # @param [String] history_id
677
+ # A History id.
678
+ # Required.
679
+ # @param [String] execution_id
680
+ # A Execution id.
681
+ # Required.
682
+ # @param [Fixnum] page_size
683
+ # The maximum number of Steps to fetch.
684
+ # Default value: 25. The server will use this default if the field is not set or
685
+ # has a value of 0.
686
+ # Optional.
687
+ # @param [String] page_token
688
+ # A continuation token to resume the query at the next item.
689
+ # Optional.
690
+ # @param [String] fields
691
+ # Selector specifying which fields to include in a partial response.
692
+ # @param [String] quota_user
693
+ # Available to use for quota purposes for server-side applications. Can be any
694
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
695
+ # Overrides userIp if both are provided.
696
+ # @param [String] user_ip
697
+ # IP address of the site where the request originates. Use this if you want to
698
+ # enforce per-user limits.
699
+ # @param [Google::Apis::RequestOptions] options
700
+ # Request-specific options
701
+ #
702
+ # @yield [result, err] Result & error if block supplied
703
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListStepsResponse] parsed result object
704
+ # @yieldparam err [StandardError] error object if request failed
705
+ #
706
+ # @return [Google::Apis::ToolresultsV1beta3::ListStepsResponse]
707
+ #
708
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
709
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
710
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
711
+ def list_project_history_execution_steps(project_id, history_id, execution_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
712
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps', options)
713
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListStepsResponse::Representation
714
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListStepsResponse
715
+ command.params['projectId'] = project_id unless project_id.nil?
716
+ command.params['historyId'] = history_id unless history_id.nil?
717
+ command.params['executionId'] = execution_id unless execution_id.nil?
718
+ command.query['pageSize'] = page_size unless page_size.nil?
719
+ command.query['pageToken'] = page_token unless page_token.nil?
720
+ command.query['fields'] = fields unless fields.nil?
721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
722
+ command.query['userIp'] = user_ip unless user_ip.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
726
+ # Updates an existing Step with the supplied partial entity.
727
+ # May return any of the following canonical error codes:
728
+ # - PERMISSION_DENIED - if the user is not authorized to write project -
729
+ # INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
730
+ # requested state transition is illegal (e.g try to upload a duplicate xml file),
731
+ # if the updated step is too large (more than 10Mib) - NOT_FOUND - if the
732
+ # containing Execution does not exist
733
+ # @param [String] project_id
734
+ # A Project id.
735
+ # Required.
736
+ # @param [String] history_id
737
+ # A History id.
738
+ # Required.
739
+ # @param [String] execution_id
740
+ # A Execution id.
741
+ # Required.
742
+ # @param [String] step_id
743
+ # A Step id.
744
+ # Required.
745
+ # @param [Google::Apis::ToolresultsV1beta3::Step] step_object
746
+ # @param [String] request_id
747
+ # A unique request ID for server to detect duplicated requests. For example, a
748
+ # UUID.
749
+ # Optional, but strongly recommended.
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # Overrides userIp if both are provided.
756
+ # @param [String] user_ip
757
+ # IP address of the site where the request originates. Use this if you want to
758
+ # enforce per-user limits.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Step] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::ToolresultsV1beta3::Step]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def patch_project_history_execution_step(project_id, history_id, execution_id, step_id, step_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
772
+ command = make_simple_command(:patch, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}', options)
773
+ command.request_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
774
+ command.request_object = step_object
775
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
776
+ command.response_class = Google::Apis::ToolresultsV1beta3::Step
777
+ command.params['projectId'] = project_id unless project_id.nil?
778
+ command.params['historyId'] = history_id unless history_id.nil?
779
+ command.params['executionId'] = execution_id unless execution_id.nil?
780
+ command.params['stepId'] = step_id unless step_id.nil?
781
+ command.query['requestId'] = request_id unless request_id.nil?
782
+ command.query['fields'] = fields unless fields.nil?
783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
784
+ command.query['userIp'] = user_ip unless user_ip.nil?
785
+ execute_or_queue_command(command, &block)
786
+ end
787
+
788
+ # Publish xml files to an existing Step.
789
+ # May return any of the following canonical error codes:
790
+ # - PERMISSION_DENIED - if the user is not authorized to write project -
791
+ # INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the
792
+ # requested state transition is illegal, e.g try to upload a duplicate xml file
793
+ # or a file too large. - NOT_FOUND - if the containing Execution does not exist
794
+ # @param [String] project_id
795
+ # A Project id.
796
+ # Required.
797
+ # @param [String] history_id
798
+ # A History id.
799
+ # Required.
800
+ # @param [String] execution_id
801
+ # A Execution id.
802
+ # Required.
803
+ # @param [String] step_id
804
+ # A Step id. Note: This step must include a TestExecutionStep.
805
+ # Required.
806
+ # @param [Google::Apis::ToolresultsV1beta3::PublishXunitXmlFilesRequest] publish_xunit_xml_files_request_object
807
+ # @param [String] fields
808
+ # Selector specifying which fields to include in a partial response.
809
+ # @param [String] quota_user
810
+ # Available to use for quota purposes for server-side applications. Can be any
811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
812
+ # Overrides userIp if both are provided.
813
+ # @param [String] user_ip
814
+ # IP address of the site where the request originates. Use this if you want to
815
+ # enforce per-user limits.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::Step] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::ToolresultsV1beta3::Step]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def publish_step_xunit_xml_files(project_id, history_id, execution_id, step_id, publish_xunit_xml_files_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
829
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles', options)
830
+ command.request_representation = Google::Apis::ToolresultsV1beta3::PublishXunitXmlFilesRequest::Representation
831
+ command.request_object = publish_xunit_xml_files_request_object
832
+ command.response_representation = Google::Apis::ToolresultsV1beta3::Step::Representation
833
+ command.response_class = Google::Apis::ToolresultsV1beta3::Step
834
+ command.params['projectId'] = project_id unless project_id.nil?
835
+ command.params['historyId'] = history_id unless history_id.nil?
836
+ command.params['executionId'] = execution_id unless execution_id.nil?
837
+ command.params['stepId'] = step_id unless step_id.nil?
838
+ command.query['fields'] = fields unless fields.nil?
839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
840
+ command.query['userIp'] = user_ip unless user_ip.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Creates a PerfMetricsSummary resource.
845
+ # May return any of the following error code(s): - ALREADY_EXISTS - A
846
+ # PerfMetricSummary already exists for the given Step - NOT_FOUND - The
847
+ # containing Step does not exist
848
+ # @param [String] project_id
849
+ # The cloud project
850
+ # @param [String] history_id
851
+ # A tool results history ID.
852
+ # @param [String] execution_id
853
+ # A tool results execution ID.
854
+ # @param [String] step_id
855
+ # A tool results step ID.
856
+ # @param [Google::Apis::ToolresultsV1beta3::PerfMetricsSummary] perf_metrics_summary_object
857
+ # @param [String] fields
858
+ # Selector specifying which fields to include in a partial response.
859
+ # @param [String] quota_user
860
+ # Available to use for quota purposes for server-side applications. Can be any
861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
862
+ # Overrides userIp if both are provided.
863
+ # @param [String] user_ip
864
+ # IP address of the site where the request originates. Use this if you want to
865
+ # enforce per-user limits.
866
+ # @param [Google::Apis::RequestOptions] options
867
+ # Request-specific options
868
+ #
869
+ # @yield [result, err] Result & error if block supplied
870
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::PerfMetricsSummary] parsed result object
871
+ # @yieldparam err [StandardError] error object if request failed
872
+ #
873
+ # @return [Google::Apis::ToolresultsV1beta3::PerfMetricsSummary]
874
+ #
875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
878
+ def create_project_history_execution_step_perf_metrics_summary(project_id, history_id, execution_id, step_id, perf_metrics_summary_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
879
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary', options)
880
+ command.request_representation = Google::Apis::ToolresultsV1beta3::PerfMetricsSummary::Representation
881
+ command.request_object = perf_metrics_summary_object
882
+ command.response_representation = Google::Apis::ToolresultsV1beta3::PerfMetricsSummary::Representation
883
+ command.response_class = Google::Apis::ToolresultsV1beta3::PerfMetricsSummary
884
+ command.params['projectId'] = project_id unless project_id.nil?
885
+ command.params['historyId'] = history_id unless history_id.nil?
886
+ command.params['executionId'] = execution_id unless execution_id.nil?
887
+ command.params['stepId'] = step_id unless step_id.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ command.query['userIp'] = user_ip unless user_ip.nil?
891
+ execute_or_queue_command(command, &block)
892
+ end
893
+
894
+ # Creates a PerfSampleSeries.
895
+ # May return any of the following error code(s): - ALREADY_EXISTS -
896
+ # PerfMetricSummary already exists for the given Step - NOT_FOUND - The
897
+ # containing Step does not exist
898
+ # @param [String] project_id
899
+ # The cloud project
900
+ # @param [String] history_id
901
+ # A tool results history ID.
902
+ # @param [String] execution_id
903
+ # A tool results execution ID.
904
+ # @param [String] step_id
905
+ # A tool results step ID.
906
+ # @param [Google::Apis::ToolresultsV1beta3::PerfSampleSeries] perf_sample_series_object
907
+ # @param [String] fields
908
+ # Selector specifying which fields to include in a partial response.
909
+ # @param [String] quota_user
910
+ # Available to use for quota purposes for server-side applications. Can be any
911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
912
+ # Overrides userIp if both are provided.
913
+ # @param [String] user_ip
914
+ # IP address of the site where the request originates. Use this if you want to
915
+ # enforce per-user limits.
916
+ # @param [Google::Apis::RequestOptions] options
917
+ # Request-specific options
918
+ #
919
+ # @yield [result, err] Result & error if block supplied
920
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::PerfSampleSeries] parsed result object
921
+ # @yieldparam err [StandardError] error object if request failed
922
+ #
923
+ # @return [Google::Apis::ToolresultsV1beta3::PerfSampleSeries]
924
+ #
925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
928
+ def create_project_history_execution_step_perf_sample_series(project_id, history_id, execution_id, step_id, perf_sample_series_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
929
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries', options)
930
+ command.request_representation = Google::Apis::ToolresultsV1beta3::PerfSampleSeries::Representation
931
+ command.request_object = perf_sample_series_object
932
+ command.response_representation = Google::Apis::ToolresultsV1beta3::PerfSampleSeries::Representation
933
+ command.response_class = Google::Apis::ToolresultsV1beta3::PerfSampleSeries
934
+ command.params['projectId'] = project_id unless project_id.nil?
935
+ command.params['historyId'] = history_id unless history_id.nil?
936
+ command.params['executionId'] = execution_id unless execution_id.nil?
937
+ command.params['stepId'] = step_id unless step_id.nil?
938
+ command.query['fields'] = fields unless fields.nil?
939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
940
+ command.query['userIp'] = user_ip unless user_ip.nil?
941
+ execute_or_queue_command(command, &block)
942
+ end
943
+
944
+ # Gets a PerfSampleSeries.
945
+ # May return any of the following error code(s): - NOT_FOUND - The specified
946
+ # PerfSampleSeries does not exist
947
+ # @param [String] project_id
948
+ # The cloud project
949
+ # @param [String] history_id
950
+ # A tool results history ID.
951
+ # @param [String] execution_id
952
+ # A tool results execution ID.
953
+ # @param [String] step_id
954
+ # A tool results step ID.
955
+ # @param [String] sample_series_id
956
+ # A sample series id
957
+ # @param [String] fields
958
+ # Selector specifying which fields to include in a partial response.
959
+ # @param [String] quota_user
960
+ # Available to use for quota purposes for server-side applications. Can be any
961
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
962
+ # Overrides userIp if both are provided.
963
+ # @param [String] user_ip
964
+ # IP address of the site where the request originates. Use this if you want to
965
+ # enforce per-user limits.
966
+ # @param [Google::Apis::RequestOptions] options
967
+ # Request-specific options
968
+ #
969
+ # @yield [result, err] Result & error if block supplied
970
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::PerfSampleSeries] parsed result object
971
+ # @yieldparam err [StandardError] error object if request failed
972
+ #
973
+ # @return [Google::Apis::ToolresultsV1beta3::PerfSampleSeries]
974
+ #
975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
978
+ def get_project_history_execution_step_perf_sample_series(project_id, history_id, execution_id, step_id, sample_series_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
979
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}', options)
980
+ command.response_representation = Google::Apis::ToolresultsV1beta3::PerfSampleSeries::Representation
981
+ command.response_class = Google::Apis::ToolresultsV1beta3::PerfSampleSeries
982
+ command.params['projectId'] = project_id unless project_id.nil?
983
+ command.params['historyId'] = history_id unless history_id.nil?
984
+ command.params['executionId'] = execution_id unless execution_id.nil?
985
+ command.params['stepId'] = step_id unless step_id.nil?
986
+ command.params['sampleSeriesId'] = sample_series_id unless sample_series_id.nil?
987
+ command.query['fields'] = fields unless fields.nil?
988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
989
+ command.query['userIp'] = user_ip unless user_ip.nil?
990
+ execute_or_queue_command(command, &block)
991
+ end
992
+
993
+ # Lists PerfSampleSeries for a given Step.
994
+ # The request provides an optional filter which specifies one or more
995
+ # PerfMetricsType to include in the result; if none returns all. The resulting
996
+ # PerfSampleSeries are sorted by ids.
997
+ # May return any of the following canonical error codes: - NOT_FOUND - The
998
+ # containing Step does not exist
999
+ # @param [String] project_id
1000
+ # The cloud project
1001
+ # @param [String] history_id
1002
+ # A tool results history ID.
1003
+ # @param [String] execution_id
1004
+ # A tool results execution ID.
1005
+ # @param [String] step_id
1006
+ # A tool results step ID.
1007
+ # @param [Array<String>, String] filter
1008
+ # Specify one or more PerfMetricType values such as CPU to filter the result
1009
+ # @param [String] fields
1010
+ # Selector specifying which fields to include in a partial response.
1011
+ # @param [String] quota_user
1012
+ # Available to use for quota purposes for server-side applications. Can be any
1013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1014
+ # Overrides userIp if both are provided.
1015
+ # @param [String] user_ip
1016
+ # IP address of the site where the request originates. Use this if you want to
1017
+ # enforce per-user limits.
1018
+ # @param [Google::Apis::RequestOptions] options
1019
+ # Request-specific options
1020
+ #
1021
+ # @yield [result, err] Result & error if block supplied
1022
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListPerfSampleSeriesResponse] parsed result object
1023
+ # @yieldparam err [StandardError] error object if request failed
1024
+ #
1025
+ # @return [Google::Apis::ToolresultsV1beta3::ListPerfSampleSeriesResponse]
1026
+ #
1027
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1028
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1029
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1030
+ def list_project_history_execution_step_perf_sample_series(project_id, history_id, execution_id, step_id, filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1031
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries', options)
1032
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListPerfSampleSeriesResponse::Representation
1033
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListPerfSampleSeriesResponse
1034
+ command.params['projectId'] = project_id unless project_id.nil?
1035
+ command.params['historyId'] = history_id unless history_id.nil?
1036
+ command.params['executionId'] = execution_id unless execution_id.nil?
1037
+ command.params['stepId'] = step_id unless step_id.nil?
1038
+ command.query['filter'] = filter unless filter.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ command.query['userIp'] = user_ip unless user_ip.nil?
1042
+ execute_or_queue_command(command, &block)
1043
+ end
1044
+
1045
+ # Creates a batch of PerfSamples - a client can submit multiple batches of Perf
1046
+ # Samples through repeated calls to this method in order to split up a large
1047
+ # request payload - duplicates and existing timestamp entries will be ignored. -
1048
+ # the batch operation may partially succeed - the set of elements successfully
1049
+ # inserted is returned in the response (omits items which already existed in the
1050
+ # database).
1051
+ # May return any of the following canonical error codes: - NOT_FOUND - The
1052
+ # containing PerfSampleSeries does not exist
1053
+ # @param [String] project_id
1054
+ # The cloud project
1055
+ # @param [String] history_id
1056
+ # A tool results history ID.
1057
+ # @param [String] execution_id
1058
+ # A tool results execution ID.
1059
+ # @param [String] step_id
1060
+ # A tool results step ID.
1061
+ # @param [String] sample_series_id
1062
+ # A sample series id
1063
+ # @param [Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesRequest] batch_create_perf_samples_request_object
1064
+ # @param [String] fields
1065
+ # Selector specifying which fields to include in a partial response.
1066
+ # @param [String] quota_user
1067
+ # Available to use for quota purposes for server-side applications. Can be any
1068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1069
+ # Overrides userIp if both are provided.
1070
+ # @param [String] user_ip
1071
+ # IP address of the site where the request originates. Use this if you want to
1072
+ # enforce per-user limits.
1073
+ # @param [Google::Apis::RequestOptions] options
1074
+ # Request-specific options
1075
+ #
1076
+ # @yield [result, err] Result & error if block supplied
1077
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesResponse] parsed result object
1078
+ # @yieldparam err [StandardError] error object if request failed
1079
+ #
1080
+ # @return [Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesResponse]
1081
+ #
1082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
+ def batch_create_perf_samples(project_id, history_id, execution_id, step_id, sample_series_id, batch_create_perf_samples_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1086
+ command = make_simple_command(:post, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate', options)
1087
+ command.request_representation = Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesRequest::Representation
1088
+ command.request_object = batch_create_perf_samples_request_object
1089
+ command.response_representation = Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesResponse::Representation
1090
+ command.response_class = Google::Apis::ToolresultsV1beta3::BatchCreatePerfSamplesResponse
1091
+ command.params['projectId'] = project_id unless project_id.nil?
1092
+ command.params['historyId'] = history_id unless history_id.nil?
1093
+ command.params['executionId'] = execution_id unless execution_id.nil?
1094
+ command.params['stepId'] = step_id unless step_id.nil?
1095
+ command.params['sampleSeriesId'] = sample_series_id unless sample_series_id.nil?
1096
+ command.query['fields'] = fields unless fields.nil?
1097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1098
+ command.query['userIp'] = user_ip unless user_ip.nil?
1099
+ execute_or_queue_command(command, &block)
1100
+ end
1101
+
1102
+ # Lists the Performance Samples of a given Sample Series - The list results are
1103
+ # sorted by timestamps ascending - The default page size is 500 samples; and
1104
+ # maximum size allowed 5000 - The response token indicates the last returned
1105
+ # PerfSample timestamp - When the results size exceeds the page size, submit a
1106
+ # subsequent request including the page token to return the rest of the samples
1107
+ # up to the page limit
1108
+ # May return any of the following canonical error codes: - OUT_OF_RANGE - The
1109
+ # specified request page_token is out of valid range - NOT_FOUND - The
1110
+ # containing PerfSampleSeries does not exist
1111
+ # @param [String] project_id
1112
+ # The cloud project
1113
+ # @param [String] history_id
1114
+ # A tool results history ID.
1115
+ # @param [String] execution_id
1116
+ # A tool results execution ID.
1117
+ # @param [String] step_id
1118
+ # A tool results step ID.
1119
+ # @param [String] sample_series_id
1120
+ # A sample series id
1121
+ # @param [Fixnum] page_size
1122
+ # The default page size is 500 samples, and the maximum size is 5000. If the
1123
+ # page_size is greater than 5000, the effective page size will be 5000
1124
+ # @param [String] page_token
1125
+ # Optional, the next_page_token returned in the previous response
1126
+ # @param [String] fields
1127
+ # Selector specifying which fields to include in a partial response.
1128
+ # @param [String] quota_user
1129
+ # Available to use for quota purposes for server-side applications. Can be any
1130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1131
+ # Overrides userIp if both are provided.
1132
+ # @param [String] user_ip
1133
+ # IP address of the site where the request originates. Use this if you want to
1134
+ # enforce per-user limits.
1135
+ # @param [Google::Apis::RequestOptions] options
1136
+ # Request-specific options
1137
+ #
1138
+ # @yield [result, err] Result & error if block supplied
1139
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListPerfSamplesResponse] parsed result object
1140
+ # @yieldparam err [StandardError] error object if request failed
1141
+ #
1142
+ # @return [Google::Apis::ToolresultsV1beta3::ListPerfSamplesResponse]
1143
+ #
1144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
+ def list_project_history_execution_step_perf_sample_series_samples(project_id, history_id, execution_id, step_id, sample_series_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1148
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples', options)
1149
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListPerfSamplesResponse::Representation
1150
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListPerfSamplesResponse
1151
+ command.params['projectId'] = project_id unless project_id.nil?
1152
+ command.params['historyId'] = history_id unless history_id.nil?
1153
+ command.params['executionId'] = execution_id unless execution_id.nil?
1154
+ command.params['stepId'] = step_id unless step_id.nil?
1155
+ command.params['sampleSeriesId'] = sample_series_id unless sample_series_id.nil?
1156
+ command.query['pageSize'] = page_size unless page_size.nil?
1157
+ command.query['pageToken'] = page_token unless page_token.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ command.query['userIp'] = user_ip unless user_ip.nil?
1161
+ execute_or_queue_command(command, &block)
1162
+ end
1163
+
1164
+ # Lists thumbnails of images attached to a step.
1165
+ # May return any of the following canonical error codes: - PERMISSION_DENIED -
1166
+ # if the user is not authorized to read from the project, or from any of the
1167
+ # images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
1168
+ # step does not exist, or if any of the images do not exist
1169
+ # @param [String] project_id
1170
+ # A Project id.
1171
+ # Required.
1172
+ # @param [String] history_id
1173
+ # A History id.
1174
+ # Required.
1175
+ # @param [String] execution_id
1176
+ # An Execution id.
1177
+ # Required.
1178
+ # @param [String] step_id
1179
+ # A Step id.
1180
+ # Required.
1181
+ # @param [Fixnum] page_size
1182
+ # The maximum number of thumbnails to fetch.
1183
+ # Default value: 50. The server will use this default if the field is not set or
1184
+ # has a value of 0.
1185
+ # Optional.
1186
+ # @param [String] page_token
1187
+ # A continuation token to resume the query at the next item.
1188
+ # Optional.
1189
+ # @param [String] fields
1190
+ # Selector specifying which fields to include in a partial response.
1191
+ # @param [String] quota_user
1192
+ # Available to use for quota purposes for server-side applications. Can be any
1193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1194
+ # Overrides userIp if both are provided.
1195
+ # @param [String] user_ip
1196
+ # IP address of the site where the request originates. Use this if you want to
1197
+ # enforce per-user limits.
1198
+ # @param [Google::Apis::RequestOptions] options
1199
+ # Request-specific options
1200
+ #
1201
+ # @yield [result, err] Result & error if block supplied
1202
+ # @yieldparam result [Google::Apis::ToolresultsV1beta3::ListStepThumbnailsResponse] parsed result object
1203
+ # @yieldparam err [StandardError] error object if request failed
1204
+ #
1205
+ # @return [Google::Apis::ToolresultsV1beta3::ListStepThumbnailsResponse]
1206
+ #
1207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1210
+ def list_project_history_execution_step_thumbnails(project_id, history_id, execution_id, step_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1211
+ command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails', options)
1212
+ command.response_representation = Google::Apis::ToolresultsV1beta3::ListStepThumbnailsResponse::Representation
1213
+ command.response_class = Google::Apis::ToolresultsV1beta3::ListStepThumbnailsResponse
1214
+ command.params['projectId'] = project_id unless project_id.nil?
1215
+ command.params['historyId'] = history_id unless history_id.nil?
1216
+ command.params['executionId'] = execution_id unless execution_id.nil?
1217
+ command.params['stepId'] = step_id unless step_id.nil?
1218
+ command.query['pageSize'] = page_size unless page_size.nil?
1219
+ command.query['pageToken'] = page_token unless page_token.nil?
1220
+ command.query['fields'] = fields unless fields.nil?
1221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1222
+ command.query['userIp'] = user_ip unless user_ip.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1226
+ protected
1227
+
1228
+ def apply_command_defaults(command)
1229
+ command.query['key'] = key unless key.nil?
1230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1231
+ command.query['userIp'] = user_ip unless user_ip.nil?
1232
+ end
1233
+ end
1234
+ end
1235
+ end
1236
+ end