google-api-client 0.13.6 → 0.14.0

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