google-api-client 0.47.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +77 -0
  3. data/CHANGELOG.md +64 -0
  4. data/generated/google/apis/bigquery_v2.rb +1 -1
  5. data/generated/google/apis/bigquery_v2/service.rb +1 -1
  6. data/generated/google/apis/billingbudgets_v1.rb +1 -1
  7. data/generated/google/apis/billingbudgets_v1/classes.rb +11 -0
  8. data/generated/google/apis/billingbudgets_v1/representations.rb +1 -0
  9. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  10. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +11 -0
  11. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  12. data/generated/google/apis/cloudasset_v1.rb +1 -1
  13. data/generated/google/apis/cloudasset_v1/classes.rb +697 -0
  14. data/generated/google/apis/cloudasset_v1/representations.rb +304 -0
  15. data/generated/google/apis/cloudasset_v1/service.rb +171 -0
  16. data/generated/google/apis/compute_v1.rb +1 -1
  17. data/generated/google/apis/compute_v1/classes.rb +238 -14
  18. data/generated/google/apis/compute_v1/representations.rb +41 -0
  19. data/generated/google/apis/compute_v1/service.rb +2 -0
  20. data/generated/google/apis/content_v2.rb +1 -1
  21. data/generated/google/apis/content_v2/service.rb +7 -7
  22. data/generated/google/apis/content_v2_1.rb +3 -4
  23. data/generated/google/apis/content_v2_1/classes.rb +899 -1054
  24. data/generated/google/apis/content_v2_1/representations.rb +206 -0
  25. data/generated/google/apis/content_v2_1/service.rb +912 -808
  26. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  27. data/generated/google/apis/datacatalog_v1beta1/classes.rb +24 -0
  28. data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -0
  29. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  30. data/generated/google/apis/dataflow_v1b3/classes.rb +12 -0
  31. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  32. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  33. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  34. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  35. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  36. data/generated/google/apis/datastore_v1.rb +1 -1
  37. data/generated/google/apis/datastore_v1/classes.rb +4 -4
  38. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  39. data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
  40. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  41. data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
  42. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
  43. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  44. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  45. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
  46. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
  47. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +20 -2
  50. data/generated/google/apis/dialogflow_v2/representations.rb +5 -2
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +20 -2
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +5 -2
  54. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  55. data/generated/google/apis/dialogflow_v3beta1/classes.rb +40 -2
  56. data/generated/google/apis/dialogflow_v3beta1/representations.rb +7 -2
  57. data/generated/google/apis/displayvideo_v1.rb +1 -1
  58. data/generated/google/apis/displayvideo_v1/classes.rb +178 -0
  59. data/generated/google/apis/displayvideo_v1/representations.rb +77 -0
  60. data/generated/google/apis/displayvideo_v1/service.rb +249 -9
  61. data/generated/google/apis/domains_v1alpha2.rb +1 -1
  62. data/generated/google/apis/domains_v1alpha2/classes.rb +6 -0
  63. data/generated/google/apis/domains_v1alpha2/representations.rb +1 -0
  64. data/generated/google/apis/domains_v1beta1.rb +1 -1
  65. data/generated/google/apis/domains_v1beta1/classes.rb +6 -0
  66. data/generated/google/apis/domains_v1beta1/representations.rb +1 -0
  67. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  68. data/generated/google/apis/eventarc_v1beta1/classes.rb +1 -3
  69. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  70. data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
  71. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  72. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
  73. data/generated/google/apis/firestore_v1.rb +1 -1
  74. data/generated/google/apis/firestore_v1/classes.rb +4 -4
  75. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  76. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
  77. data/generated/google/apis/games_v1.rb +1 -1
  78. data/generated/google/apis/games_v1/classes.rb +300 -0
  79. data/generated/google/apis/games_v1/representations.rb +116 -0
  80. data/generated/google/apis/games_v1/service.rb +34 -0
  81. data/generated/google/apis/gameservices_v1.rb +1 -1
  82. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  83. data/generated/google/apis/iam_v1.rb +2 -5
  84. data/generated/google/apis/iam_v1/service.rb +1 -4
  85. data/generated/google/apis/iamcredentials_v1.rb +3 -4
  86. data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
  87. data/generated/google/apis/logging_v2.rb +1 -1
  88. data/generated/google/apis/logging_v2/classes.rb +72 -0
  89. data/generated/google/apis/logging_v2/representations.rb +32 -0
  90. data/generated/google/apis/logging_v2/service.rb +345 -0
  91. data/generated/google/apis/people_v1.rb +1 -1
  92. data/generated/google/apis/people_v1/classes.rb +4 -4
  93. data/generated/google/apis/people_v1/service.rb +12 -12
  94. data/generated/google/apis/privateca_v1beta1.rb +34 -0
  95. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  96. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  97. data/generated/google/apis/privateca_v1beta1/service.rb +1487 -0
  98. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  99. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
  100. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
  101. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  102. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -2
  103. data/generated/google/apis/safebrowsing_v4.rb +35 -0
  104. data/generated/google/apis/safebrowsing_v4/classes.rb +909 -0
  105. data/generated/google/apis/safebrowsing_v4/representations.rb +445 -0
  106. data/generated/google/apis/safebrowsing_v4/service.rb +286 -0
  107. data/generated/google/apis/secretmanager_v1.rb +1 -1
  108. data/generated/google/apis/secretmanager_v1/classes.rb +1 -2
  109. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  110. data/generated/google/apis/secretmanager_v1beta1/classes.rb +1 -2
  111. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  112. data/generated/google/apis/servicecontrol_v1/classes.rb +45 -0
  113. data/generated/google/apis/servicecontrol_v1/representations.rb +6 -0
  114. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  115. data/generated/google/apis/servicecontrol_v2/classes.rb +45 -0
  116. data/generated/google/apis/servicecontrol_v2/representations.rb +6 -0
  117. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  118. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -60
  119. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -18
  120. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  121. data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -0
  122. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -0
  123. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  124. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  125. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +0 -34
  126. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -16
  127. data/generated/google/apis/smartdevicemanagement_v1/service.rb +3 -8
  128. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  129. data/generated/google/apis/sqladmin_v1beta4/classes.rb +28 -4
  130. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  131. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  132. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -5
  133. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  134. data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
  135. data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
  136. data/generated/google/apis/translate_v3.rb +1 -1
  137. data/generated/google/apis/translate_v3/classes.rb +2 -1
  138. data/generated/google/apis/translate_v3beta1.rb +1 -1
  139. data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
  140. data/generated/google/apis/vision_v1.rb +1 -1
  141. data/generated/google/apis/vision_v1/classes.rb +16 -16
  142. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  143. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  144. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  145. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  146. data/generated/google/apis/youtube_v3.rb +1 -1
  147. data/generated/google/apis/youtube_v3/service.rb +2 -2
  148. data/lib/google/apis/version.rb +1 -1
  149. metadata +16 -3
@@ -0,0 +1,1762 @@
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 DatalabelingV1beta1
23
+ # Data Labeling API
24
+ #
25
+ # Public API for Google Cloud AI Data Labeling Service.
26
+ #
27
+ # @example
28
+ # require 'google/apis/datalabeling_v1beta1'
29
+ #
30
+ # Datalabeling = Google::Apis::DatalabelingV1beta1 # Alias the module
31
+ # service = Datalabeling::DataLabelingService.new
32
+ #
33
+ # @see https://cloud.google.com/data-labeling/docs/
34
+ class DataLabelingService < 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
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://datalabeling.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Creates an annotation spec set by providing a set of labels.
51
+ # @param [String] parent
52
+ # Required. AnnotationSpecSet resource parent, format: projects/`project_id`
53
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest] google_cloud_datalabeling_v1beta1_create_annotation_spec_set_request_object
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def create_project_annotation_spec_set(parent, google_cloud_datalabeling_v1beta1_create_annotation_spec_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:post, 'v1beta1/{+parent}/annotationSpecSets', options)
73
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest::Representation
74
+ command.request_object = google_cloud_datalabeling_v1beta1_create_annotation_spec_set_request_object
75
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet::Representation
76
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet
77
+ command.params['parent'] = parent unless parent.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Deletes an annotation spec set by resource name.
84
+ # @param [String] name
85
+ # Required. AnnotationSpec resource name, format: `projects/`project_id`/
86
+ # annotationSpecSets/`annotation_spec_set_id``.
87
+ # @param [String] fields
88
+ # Selector specifying which fields to include in a partial response.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def delete_project_annotation_spec_set(name, fields: nil, quota_user: nil, options: nil, &block)
105
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
106
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
107
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
108
+ command.params['name'] = name unless name.nil?
109
+ command.query['fields'] = fields unless fields.nil?
110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ execute_or_queue_command(command, &block)
112
+ end
113
+
114
+ # Gets an annotation spec set by resource name.
115
+ # @param [String] name
116
+ # Required. AnnotationSpecSet resource name, format: projects/`project_id`/
117
+ # annotationSpecSets/`annotation_spec_set_id`
118
+ # @param [String] fields
119
+ # Selector specifying which fields to include in a partial response.
120
+ # @param [String] quota_user
121
+ # Available to use for quota purposes for server-side applications. Can be any
122
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet] parsed result object
128
+ # @yieldparam err [StandardError] error object if request failed
129
+ #
130
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet]
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 get_project_annotation_spec_set(name, fields: nil, quota_user: nil, options: nil, &block)
136
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
137
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet::Representation
138
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpecSet
139
+ command.params['name'] = name unless name.nil?
140
+ command.query['fields'] = fields unless fields.nil?
141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
142
+ execute_or_queue_command(command, &block)
143
+ end
144
+
145
+ # Lists annotation spec sets for a project. Pagination is supported.
146
+ # @param [String] parent
147
+ # Required. Parent of AnnotationSpecSet resource, format: projects/`project_id`
148
+ # @param [String] filter
149
+ # Optional. Filter is not supported at this moment.
150
+ # @param [Fixnum] page_size
151
+ # Optional. Requested page size. Server may return fewer results than requested.
152
+ # Default value is 100.
153
+ # @param [String] page_token
154
+ # Optional. A token identifying a page of results for the server to return.
155
+ # Typically obtained by ListAnnotationSpecSetsResponse.next_page_token of the
156
+ # previous [DataLabelingService.ListAnnotationSpecSets] call. Return first page
157
+ # if empty.
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [String] quota_user
161
+ # Available to use for quota purposes for server-side applications. Can be any
162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [Google::Apis::RequestOptions] options
164
+ # Request-specific options
165
+ #
166
+ # @yield [result, err] Result & error if block supplied
167
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse] parsed result object
168
+ # @yieldparam err [StandardError] error object if request failed
169
+ #
170
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse]
171
+ #
172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
175
+ def list_project_annotation_spec_sets(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:get, 'v1beta1/{+parent}/annotationSpecSets', options)
177
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse::Representation
178
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse
179
+ command.params['parent'] = parent unless parent.nil?
180
+ command.query['filter'] = filter unless filter.nil?
181
+ command.query['pageSize'] = page_size unless page_size.nil?
182
+ command.query['pageToken'] = page_token unless page_token.nil?
183
+ command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ execute_or_queue_command(command, &block)
186
+ end
187
+
188
+ # Creates dataset. If success return a Dataset resource.
189
+ # @param [String] parent
190
+ # Required. Dataset resource parent, format: projects/`project_id`
191
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateDatasetRequest] google_cloud_datalabeling_v1beta1_create_dataset_request_object
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ def create_project_dataset(parent, google_cloud_datalabeling_v1beta1_create_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
210
+ command = make_simple_command(:post, 'v1beta1/{+parent}/datasets', options)
211
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateDatasetRequest::Representation
212
+ command.request_object = google_cloud_datalabeling_v1beta1_create_dataset_request_object
213
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset::Representation
214
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset
215
+ command.params['parent'] = parent unless parent.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
221
+ # Deletes a dataset by resource name.
222
+ # @param [String] name
223
+ # Required. Dataset resource name, format: projects/`project_id`/datasets/`
224
+ # dataset_id`
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def delete_project_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
244
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
245
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
246
+ command.params['name'] = name unless name.nil?
247
+ command.query['fields'] = fields unless fields.nil?
248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
249
+ execute_or_queue_command(command, &block)
250
+ end
251
+
252
+ # Exports data and annotations from dataset.
253
+ # @param [String] name
254
+ # Required. Dataset resource name, format: projects/`project_id`/datasets/`
255
+ # dataset_id`
256
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ExportDataRequest] google_cloud_datalabeling_v1beta1_export_data_request_object
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def export_project_dataset_data(name, google_cloud_datalabeling_v1beta1_export_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:post, 'v1beta1/{+name}:exportData', options)
276
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ExportDataRequest::Representation
277
+ command.request_object = google_cloud_datalabeling_v1beta1_export_data_request_object
278
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
279
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
280
+ command.params['name'] = name unless name.nil?
281
+ command.query['fields'] = fields unless fields.nil?
282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
283
+ execute_or_queue_command(command, &block)
284
+ end
285
+
286
+ # Gets dataset by resource name.
287
+ # @param [String] name
288
+ # Required. Dataset resource name, format: projects/`project_id`/datasets/`
289
+ # dataset_id`
290
+ # @param [String] fields
291
+ # Selector specifying which fields to include in a partial response.
292
+ # @param [String] quota_user
293
+ # Available to use for quota purposes for server-side applications. Can be any
294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
295
+ # @param [Google::Apis::RequestOptions] options
296
+ # Request-specific options
297
+ #
298
+ # @yield [result, err] Result & error if block supplied
299
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset] parsed result object
300
+ # @yieldparam err [StandardError] error object if request failed
301
+ #
302
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset]
303
+ #
304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
307
+ def get_project_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
308
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
309
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset::Representation
310
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Dataset
311
+ command.params['name'] = name unless name.nil?
312
+ command.query['fields'] = fields unless fields.nil?
313
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
314
+ execute_or_queue_command(command, &block)
315
+ end
316
+
317
+ # Imports data into dataset based on source locations defined in request. It can
318
+ # be called multiple times for the same dataset. Each dataset can only have one
319
+ # long running operation running on it. For example, no labeling task (also long
320
+ # running operation) can be started while importing is still ongoing. Vice versa.
321
+ # @param [String] name
322
+ # Required. Dataset resource name, format: projects/`project_id`/datasets/`
323
+ # dataset_id`
324
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImportDataRequest] google_cloud_datalabeling_v1beta1_import_data_request_object
325
+ # @param [String] fields
326
+ # Selector specifying which fields to include in a partial response.
327
+ # @param [String] quota_user
328
+ # Available to use for quota purposes for server-side applications. Can be any
329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
330
+ # @param [Google::Apis::RequestOptions] options
331
+ # Request-specific options
332
+ #
333
+ # @yield [result, err] Result & error if block supplied
334
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
335
+ # @yieldparam err [StandardError] error object if request failed
336
+ #
337
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
338
+ #
339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
342
+ def import_project_dataset_data(name, google_cloud_datalabeling_v1beta1_import_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
343
+ command = make_simple_command(:post, 'v1beta1/{+name}:importData', options)
344
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ImportDataRequest::Representation
345
+ command.request_object = google_cloud_datalabeling_v1beta1_import_data_request_object
346
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
347
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
348
+ command.params['name'] = name unless name.nil?
349
+ command.query['fields'] = fields unless fields.nil?
350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
351
+ execute_or_queue_command(command, &block)
352
+ end
353
+
354
+ # Lists datasets under a project. Pagination is supported.
355
+ # @param [String] parent
356
+ # Required. Dataset resource parent, format: projects/`project_id`
357
+ # @param [String] filter
358
+ # Optional. Filter on dataset is not supported at this moment.
359
+ # @param [Fixnum] page_size
360
+ # Optional. Requested page size. Server may return fewer results than requested.
361
+ # Default value is 100.
362
+ # @param [String] page_token
363
+ # Optional. A token identifying a page of results for the server to return.
364
+ # Typically obtained by ListDatasetsResponse.next_page_token of the previous [
365
+ # DataLabelingService.ListDatasets] call. Returns the first page if empty.
366
+ # @param [String] fields
367
+ # Selector specifying which fields to include in a partial response.
368
+ # @param [String] quota_user
369
+ # Available to use for quota purposes for server-side applications. Can be any
370
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
371
+ # @param [Google::Apis::RequestOptions] options
372
+ # Request-specific options
373
+ #
374
+ # @yield [result, err] Result & error if block supplied
375
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDatasetsResponse] parsed result object
376
+ # @yieldparam err [StandardError] error object if request failed
377
+ #
378
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDatasetsResponse]
379
+ #
380
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
381
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
382
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
383
+ def list_project_datasets(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
384
+ command = make_simple_command(:get, 'v1beta1/{+parent}/datasets', options)
385
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDatasetsResponse::Representation
386
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDatasetsResponse
387
+ command.params['parent'] = parent unless parent.nil?
388
+ command.query['filter'] = filter unless filter.nil?
389
+ command.query['pageSize'] = page_size unless page_size.nil?
390
+ command.query['pageToken'] = page_token unless page_token.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ execute_or_queue_command(command, &block)
394
+ end
395
+
396
+ # Deletes an annotated dataset by resource name.
397
+ # @param [String] name
398
+ # Required. Name of the annotated dataset to delete, format: projects/`
399
+ # project_id`/datasets/`dataset_id`/annotatedDatasets/ `annotated_dataset_id`
400
+ # @param [String] fields
401
+ # Selector specifying which fields to include in a partial response.
402
+ # @param [String] quota_user
403
+ # Available to use for quota purposes for server-side applications. Can be any
404
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
405
+ # @param [Google::Apis::RequestOptions] options
406
+ # Request-specific options
407
+ #
408
+ # @yield [result, err] Result & error if block supplied
409
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
410
+ # @yieldparam err [StandardError] error object if request failed
411
+ #
412
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
413
+ #
414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
417
+ def delete_project_dataset_annotated_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
418
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
419
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
420
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
421
+ command.params['name'] = name unless name.nil?
422
+ command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ execute_or_queue_command(command, &block)
425
+ end
426
+
427
+ # Gets an annotated dataset by resource name.
428
+ # @param [String] name
429
+ # Required. Name of the annotated dataset to get, format: projects/`project_id`/
430
+ # datasets/`dataset_id`/annotatedDatasets/ `annotated_dataset_id`
431
+ # @param [String] fields
432
+ # Selector specifying which fields to include in a partial response.
433
+ # @param [String] quota_user
434
+ # Available to use for quota purposes for server-side applications. Can be any
435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
436
+ # @param [Google::Apis::RequestOptions] options
437
+ # Request-specific options
438
+ #
439
+ # @yield [result, err] Result & error if block supplied
440
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotatedDataset] parsed result object
441
+ # @yieldparam err [StandardError] error object if request failed
442
+ #
443
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotatedDataset]
444
+ #
445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
448
+ def get_project_dataset_annotated_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
449
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
450
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotatedDataset::Representation
451
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotatedDataset
452
+ command.params['name'] = name unless name.nil?
453
+ command.query['fields'] = fields unless fields.nil?
454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
458
+ # Lists annotated datasets for a dataset. Pagination is supported.
459
+ # @param [String] parent
460
+ # Required. Name of the dataset to list annotated datasets, format: projects/`
461
+ # project_id`/datasets/`dataset_id`
462
+ # @param [String] filter
463
+ # Optional. Filter is not supported at this moment.
464
+ # @param [Fixnum] page_size
465
+ # Optional. Requested page size. Server may return fewer results than requested.
466
+ # Default value is 100.
467
+ # @param [String] page_token
468
+ # Optional. A token identifying a page of results for the server to return.
469
+ # Typically obtained by ListAnnotatedDatasetsResponse.next_page_token of the
470
+ # previous [DataLabelingService.ListAnnotatedDatasets] call. Return first page
471
+ # if empty.
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
474
+ # @param [String] quota_user
475
+ # Available to use for quota purposes for server-side applications. Can be any
476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def list_project_dataset_annotated_datasets(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:get, 'v1beta1/{+parent}/annotatedDatasets', options)
491
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse::Representation
492
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse
493
+ command.params['parent'] = parent unless parent.nil?
494
+ command.query['filter'] = filter unless filter.nil?
495
+ command.query['pageSize'] = page_size unless page_size.nil?
496
+ command.query['pageToken'] = page_token unless page_token.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # Gets a data item in a dataset by resource name. This API can be called after
503
+ # data are imported into dataset.
504
+ # @param [String] name
505
+ # Required. The name of the data item to get, format: projects/`project_id`/
506
+ # datasets/`dataset_id`/dataItems/`data_item_id`
507
+ # @param [String] fields
508
+ # Selector specifying which fields to include in a partial response.
509
+ # @param [String] quota_user
510
+ # Available to use for quota purposes for server-side applications. Can be any
511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
512
+ # @param [Google::Apis::RequestOptions] options
513
+ # Request-specific options
514
+ #
515
+ # @yield [result, err] Result & error if block supplied
516
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem] parsed result object
517
+ # @yieldparam err [StandardError] error object if request failed
518
+ #
519
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem]
520
+ #
521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
524
+ def get_project_dataset_annotated_dataset_data_item(name, fields: nil, quota_user: nil, options: nil, &block)
525
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
526
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem::Representation
527
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem
528
+ command.params['name'] = name unless name.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ execute_or_queue_command(command, &block)
532
+ end
533
+
534
+ # Lists data items in a dataset. This API can be called after data are imported
535
+ # into dataset. Pagination is supported.
536
+ # @param [String] parent
537
+ # Required. Name of the dataset to list data items, format: projects/`project_id`
538
+ # /datasets/`dataset_id`
539
+ # @param [String] filter
540
+ # Optional. Filter is not supported at this moment.
541
+ # @param [Fixnum] page_size
542
+ # Optional. Requested page size. Server may return fewer results than requested.
543
+ # Default value is 100.
544
+ # @param [String] page_token
545
+ # Optional. A token identifying a page of results for the server to return.
546
+ # Typically obtained by ListDataItemsResponse.next_page_token of the previous [
547
+ # DataLabelingService.ListDataItems] call. Return first page if empty.
548
+ # @param [String] fields
549
+ # Selector specifying which fields to include in a partial response.
550
+ # @param [String] quota_user
551
+ # Available to use for quota purposes for server-side applications. Can be any
552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
553
+ # @param [Google::Apis::RequestOptions] options
554
+ # Request-specific options
555
+ #
556
+ # @yield [result, err] Result & error if block supplied
557
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse] parsed result object
558
+ # @yieldparam err [StandardError] error object if request failed
559
+ #
560
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse]
561
+ #
562
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
565
+ def list_project_dataset_annotated_dataset_data_items(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
566
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dataItems', options)
567
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse::Representation
568
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse
569
+ command.params['parent'] = parent unless parent.nil?
570
+ command.query['filter'] = filter unless filter.nil?
571
+ command.query['pageSize'] = page_size unless page_size.nil?
572
+ command.query['pageToken'] = page_token unless page_token.nil?
573
+ command.query['fields'] = fields unless fields.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ execute_or_queue_command(command, &block)
576
+ end
577
+
578
+ # Gets an example by resource name, including both data and annotation.
579
+ # @param [String] name
580
+ # Required. Name of example, format: projects/`project_id`/datasets/`dataset_id`/
581
+ # annotatedDatasets/ `annotated_dataset_id`/examples/`example_id`
582
+ # @param [String] filter
583
+ # Optional. An expression for filtering Examples. Filter by annotation_spec.
584
+ # display_name is supported. Format "annotation_spec.display_name = `
585
+ # display_name`"
586
+ # @param [String] fields
587
+ # Selector specifying which fields to include in a partial response.
588
+ # @param [String] quota_user
589
+ # Available to use for quota purposes for server-side applications. Can be any
590
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [Google::Apis::RequestOptions] options
592
+ # Request-specific options
593
+ #
594
+ # @yield [result, err] Result & error if block supplied
595
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example] parsed result object
596
+ # @yieldparam err [StandardError] error object if request failed
597
+ #
598
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example]
599
+ #
600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
603
+ def get_project_dataset_annotated_dataset_example(name, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
604
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
605
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example::Representation
606
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Example
607
+ command.params['name'] = name unless name.nil?
608
+ command.query['filter'] = filter unless filter.nil?
609
+ command.query['fields'] = fields unless fields.nil?
610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
611
+ execute_or_queue_command(command, &block)
612
+ end
613
+
614
+ # Lists examples in an annotated dataset. Pagination is supported.
615
+ # @param [String] parent
616
+ # Required. Example resource parent.
617
+ # @param [String] filter
618
+ # Optional. An expression for filtering Examples. For annotated datasets that
619
+ # have annotation spec set, filter by annotation_spec.display_name is supported.
620
+ # Format "annotation_spec.display_name = `display_name`"
621
+ # @param [Fixnum] page_size
622
+ # Optional. Requested page size. Server may return fewer results than requested.
623
+ # Default value is 100.
624
+ # @param [String] page_token
625
+ # Optional. A token identifying a page of results for the server to return.
626
+ # Typically obtained by ListExamplesResponse.next_page_token of the previous [
627
+ # DataLabelingService.ListExamples] call. Return first page if empty.
628
+ # @param [String] fields
629
+ # Selector specifying which fields to include in a partial response.
630
+ # @param [String] quota_user
631
+ # Available to use for quota purposes for server-side applications. Can be any
632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
633
+ # @param [Google::Apis::RequestOptions] options
634
+ # Request-specific options
635
+ #
636
+ # @yield [result, err] Result & error if block supplied
637
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListExamplesResponse] parsed result object
638
+ # @yieldparam err [StandardError] error object if request failed
639
+ #
640
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListExamplesResponse]
641
+ #
642
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
643
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
644
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
645
+ def list_project_dataset_annotated_dataset_examples(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
646
+ command = make_simple_command(:get, 'v1beta1/{+parent}/examples', options)
647
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListExamplesResponse::Representation
648
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListExamplesResponse
649
+ command.params['parent'] = parent unless parent.nil?
650
+ command.query['filter'] = filter unless filter.nil?
651
+ command.query['pageSize'] = page_size unless page_size.nil?
652
+ command.query['pageToken'] = page_token unless page_token.nil?
653
+ command.query['fields'] = fields unless fields.nil?
654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
655
+ execute_or_queue_command(command, &block)
656
+ end
657
+
658
+ # Delete a FeedbackThread.
659
+ # @param [String] name
660
+ # Required. Name of the FeedbackThread that is going to be deleted. Format: '
661
+ # projects/`project_id`/datasets/`dataset_id`/annotatedDatasets/`
662
+ # annotated_dataset_id`/feedbackThreads/`feedback_thread_id`'.
663
+ # @param [String] fields
664
+ # Selector specifying which fields to include in a partial response.
665
+ # @param [String] quota_user
666
+ # Available to use for quota purposes for server-side applications. Can be any
667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
668
+ # @param [Google::Apis::RequestOptions] options
669
+ # Request-specific options
670
+ #
671
+ # @yield [result, err] Result & error if block supplied
672
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
673
+ # @yieldparam err [StandardError] error object if request failed
674
+ #
675
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
676
+ #
677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
680
+ def delete_project_dataset_annotated_dataset_feedback_thread(name, fields: nil, quota_user: nil, options: nil, &block)
681
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
682
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
683
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
684
+ command.params['name'] = name unless name.nil?
685
+ command.query['fields'] = fields unless fields.nil?
686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
687
+ execute_or_queue_command(command, &block)
688
+ end
689
+
690
+ # Get a FeedbackThread object.
691
+ # @param [String] name
692
+ # Required. Name of the feedback. Format: 'projects/`project_id`/datasets/`
693
+ # dataset_id`/annotatedDatasets/`annotated_dataset_id`/feedbackThreads/`
694
+ # feedback_thread_id`'.
695
+ # @param [String] fields
696
+ # Selector specifying which fields to include in a partial response.
697
+ # @param [String] quota_user
698
+ # Available to use for quota purposes for server-side applications. Can be any
699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
700
+ # @param [Google::Apis::RequestOptions] options
701
+ # Request-specific options
702
+ #
703
+ # @yield [result, err] Result & error if block supplied
704
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackThread] parsed result object
705
+ # @yieldparam err [StandardError] error object if request failed
706
+ #
707
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackThread]
708
+ #
709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
712
+ def get_project_dataset_annotated_dataset_feedback_thread(name, fields: nil, quota_user: nil, options: nil, &block)
713
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
714
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackThread::Representation
715
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackThread
716
+ command.params['name'] = name unless name.nil?
717
+ command.query['fields'] = fields unless fields.nil?
718
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
719
+ execute_or_queue_command(command, &block)
720
+ end
721
+
722
+ # List FeedbackThreads with pagination.
723
+ # @param [String] parent
724
+ # Required. FeedbackThread resource parent. Format: "projects/`project_id`/
725
+ # datasets/`dataset_id`/annotatedDatasets/`annotated_dataset_id`"
726
+ # @param [Fixnum] page_size
727
+ # Optional. Requested page size. Server may return fewer results than requested.
728
+ # Default value is 100.
729
+ # @param [String] page_token
730
+ # Optional. A token identifying a page of results for the server to return.
731
+ # Typically obtained by ListFeedbackThreads.next_page_token of the previous [
732
+ # DataLabelingService.ListFeedbackThreads] call. Return first page if empty.
733
+ # @param [String] fields
734
+ # Selector specifying which fields to include in a partial response.
735
+ # @param [String] quota_user
736
+ # Available to use for quota purposes for server-side applications. Can be any
737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse] parsed result object
743
+ # @yieldparam err [StandardError] error object if request failed
744
+ #
745
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse]
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 list_project_dataset_annotated_dataset_feedback_threads(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
751
+ command = make_simple_command(:get, 'v1beta1/{+parent}/feedbackThreads', options)
752
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse::Representation
753
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse
754
+ command.params['parent'] = parent unless parent.nil?
755
+ command.query['pageSize'] = page_size unless page_size.nil?
756
+ command.query['pageToken'] = page_token unless page_token.nil?
757
+ command.query['fields'] = fields unless fields.nil?
758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
759
+ execute_or_queue_command(command, &block)
760
+ end
761
+
762
+ # Create a FeedbackMessage object.
763
+ # @param [String] parent
764
+ # Required. FeedbackMessage resource parent, format: projects/`project_id`/
765
+ # datasets/`dataset_id`/annotatedDatasets/`annotated_dataset_id`/feedbackThreads/
766
+ # `feedback_thread_id`.
767
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage] google_cloud_datalabeling_v1beta1_feedback_message_object
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def create_project_dataset_annotated_dataset_feedback_thread_feedback_message(parent, google_cloud_datalabeling_v1beta1_feedback_message_object = nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:post, 'v1beta1/{+parent}/feedbackMessages', options)
787
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage::Representation
788
+ command.request_object = google_cloud_datalabeling_v1beta1_feedback_message_object
789
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
790
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
791
+ command.params['parent'] = parent unless parent.nil?
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ execute_or_queue_command(command, &block)
795
+ end
796
+
797
+ # Delete a FeedbackMessage.
798
+ # @param [String] name
799
+ # Required. Name of the FeedbackMessage that is going to be deleted. Format: '
800
+ # projects/`project_id`/datasets/`dataset_id`/annotatedDatasets/`
801
+ # annotated_dataset_id`/feedbackThreads/`feedback_thread_id`/feedbackMessages/`
802
+ # feedback_message_id`'.
803
+ # @param [String] fields
804
+ # Selector specifying which fields to include in a partial response.
805
+ # @param [String] quota_user
806
+ # Available to use for quota purposes for server-side applications. Can be any
807
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
808
+ # @param [Google::Apis::RequestOptions] options
809
+ # Request-specific options
810
+ #
811
+ # @yield [result, err] Result & error if block supplied
812
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
813
+ # @yieldparam err [StandardError] error object if request failed
814
+ #
815
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
816
+ #
817
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
818
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
819
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
820
+ def delete_project_dataset_annotated_dataset_feedback_thread_feedback_message(name, fields: nil, quota_user: nil, options: nil, &block)
821
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
822
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
823
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
824
+ command.params['name'] = name unless name.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Get a FeedbackMessage object.
831
+ # @param [String] name
832
+ # Required. Name of the feedback. Format: 'projects/`project_id`/datasets/`
833
+ # dataset_id`/annotatedDatasets/`annotated_dataset_id`/feedbackThreads/`
834
+ # feedback_thread_id`/feedbackMessages/`feedback_message_id`'.
835
+ # @param [String] fields
836
+ # Selector specifying which fields to include in a partial response.
837
+ # @param [String] quota_user
838
+ # Available to use for quota purposes for server-side applications. Can be any
839
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def get_project_dataset_annotated_dataset_feedback_thread_feedback_message(name, fields: nil, quota_user: nil, options: nil, &block)
853
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
854
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage::Representation
855
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1FeedbackMessage
856
+ command.params['name'] = name unless name.nil?
857
+ command.query['fields'] = fields unless fields.nil?
858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
862
+ # List FeedbackMessages with pagination.
863
+ # @param [String] parent
864
+ # Required. FeedbackMessage resource parent. Format: "projects/`project_id`/
865
+ # datasets/`dataset_id`/annotatedDatasets/`annotated_dataset_id`/feedbackThreads/
866
+ # `feedback_thread_id`"
867
+ # @param [Fixnum] page_size
868
+ # Optional. Requested page size. Server may return fewer results than requested.
869
+ # Default value is 100.
870
+ # @param [String] page_token
871
+ # Optional. A token identifying a page of results for the server to return.
872
+ # Typically obtained by ListFeedbackMessages.next_page_token of the previous [
873
+ # DataLabelingService.ListFeedbackMessages] call. Return first page if empty.
874
+ # @param [String] fields
875
+ # Selector specifying which fields to include in a partial response.
876
+ # @param [String] quota_user
877
+ # Available to use for quota purposes for server-side applications. Can be any
878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
879
+ # @param [Google::Apis::RequestOptions] options
880
+ # Request-specific options
881
+ #
882
+ # @yield [result, err] Result & error if block supplied
883
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse] parsed result object
884
+ # @yieldparam err [StandardError] error object if request failed
885
+ #
886
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse]
887
+ #
888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
891
+ def list_project_dataset_annotated_dataset_feedback_thread_feedback_messages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
892
+ command = make_simple_command(:get, 'v1beta1/{+parent}/feedbackMessages', options)
893
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse::Representation
894
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse
895
+ command.params['parent'] = parent unless parent.nil?
896
+ command.query['pageSize'] = page_size unless page_size.nil?
897
+ command.query['pageToken'] = page_token unless page_token.nil?
898
+ command.query['fields'] = fields unless fields.nil?
899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ # Gets a data item in a dataset by resource name. This API can be called after
904
+ # data are imported into dataset.
905
+ # @param [String] name
906
+ # Required. The name of the data item to get, format: projects/`project_id`/
907
+ # datasets/`dataset_id`/dataItems/`data_item_id`
908
+ # @param [String] fields
909
+ # Selector specifying which fields to include in a partial response.
910
+ # @param [String] quota_user
911
+ # Available to use for quota purposes for server-side applications. Can be any
912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
913
+ # @param [Google::Apis::RequestOptions] options
914
+ # Request-specific options
915
+ #
916
+ # @yield [result, err] Result & error if block supplied
917
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem] parsed result object
918
+ # @yieldparam err [StandardError] error object if request failed
919
+ #
920
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem]
921
+ #
922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
925
+ def get_project_dataset_data_item(name, fields: nil, quota_user: nil, options: nil, &block)
926
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
927
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem::Representation
928
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1DataItem
929
+ command.params['name'] = name unless name.nil?
930
+ command.query['fields'] = fields unless fields.nil?
931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
932
+ execute_or_queue_command(command, &block)
933
+ end
934
+
935
+ # Lists data items in a dataset. This API can be called after data are imported
936
+ # into dataset. Pagination is supported.
937
+ # @param [String] parent
938
+ # Required. Name of the dataset to list data items, format: projects/`project_id`
939
+ # /datasets/`dataset_id`
940
+ # @param [String] filter
941
+ # Optional. Filter is not supported at this moment.
942
+ # @param [Fixnum] page_size
943
+ # Optional. Requested page size. Server may return fewer results than requested.
944
+ # Default value is 100.
945
+ # @param [String] page_token
946
+ # Optional. A token identifying a page of results for the server to return.
947
+ # Typically obtained by ListDataItemsResponse.next_page_token of the previous [
948
+ # DataLabelingService.ListDataItems] call. Return first page if empty.
949
+ # @param [String] fields
950
+ # Selector specifying which fields to include in a partial response.
951
+ # @param [String] quota_user
952
+ # Available to use for quota purposes for server-side applications. Can be any
953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
954
+ # @param [Google::Apis::RequestOptions] options
955
+ # Request-specific options
956
+ #
957
+ # @yield [result, err] Result & error if block supplied
958
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse] parsed result object
959
+ # @yieldparam err [StandardError] error object if request failed
960
+ #
961
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse]
962
+ #
963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
966
+ def list_project_dataset_data_items(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
967
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dataItems', options)
968
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse::Representation
969
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListDataItemsResponse
970
+ command.params['parent'] = parent unless parent.nil?
971
+ command.query['filter'] = filter unless filter.nil?
972
+ command.query['pageSize'] = page_size unless page_size.nil?
973
+ command.query['pageToken'] = page_token unless page_token.nil?
974
+ command.query['fields'] = fields unless fields.nil?
975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
976
+ execute_or_queue_command(command, &block)
977
+ end
978
+
979
+ # Gets an evaluation by resource name (to search, use projects.evaluations.
980
+ # search).
981
+ # @param [String] name
982
+ # Required. Name of the evaluation. Format: "projects/`project_id`/datasets/ `
983
+ # dataset_id`/evaluations/`evaluation_id`'
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # Available to use for quota purposes for server-side applications. Can be any
988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
989
+ # @param [Google::Apis::RequestOptions] options
990
+ # Request-specific options
991
+ #
992
+ # @yield [result, err] Result & error if block supplied
993
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Evaluation] parsed result object
994
+ # @yieldparam err [StandardError] error object if request failed
995
+ #
996
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Evaluation]
997
+ #
998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
+ def get_project_dataset_evaluation(name, fields: nil, quota_user: nil, options: nil, &block)
1002
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1003
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Evaluation::Representation
1004
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Evaluation
1005
+ command.params['name'] = name unless name.nil?
1006
+ command.query['fields'] = fields unless fields.nil?
1007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
+ execute_or_queue_command(command, &block)
1009
+ end
1010
+
1011
+ # Searches example comparisons from an evaluation. The return format is a list
1012
+ # of example comparisons that show ground truth and prediction(s) for a single
1013
+ # input. Search by providing an evaluation ID.
1014
+ # @param [String] parent
1015
+ # Required. Name of the Evaluation resource to search for example comparisons
1016
+ # from. Format: "projects/`project_id`/datasets/`dataset_id`/evaluations/ `
1017
+ # evaluation_id`"
1018
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest] google_cloud_datalabeling_v1beta1_search_example_comparisons_request_object
1019
+ # @param [String] fields
1020
+ # Selector specifying which fields to include in a partial response.
1021
+ # @param [String] quota_user
1022
+ # Available to use for quota purposes for server-side applications. Can be any
1023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
+ # @param [Google::Apis::RequestOptions] options
1025
+ # Request-specific options
1026
+ #
1027
+ # @yield [result, err] Result & error if block supplied
1028
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse] parsed result object
1029
+ # @yieldparam err [StandardError] error object if request failed
1030
+ #
1031
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse]
1032
+ #
1033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1036
+ def search_project_dataset_evaluation_example_comparisons(parent, google_cloud_datalabeling_v1beta1_search_example_comparisons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1037
+ command = make_simple_command(:post, 'v1beta1/{+parent}/exampleComparisons:search', options)
1038
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest::Representation
1039
+ command.request_object = google_cloud_datalabeling_v1beta1_search_example_comparisons_request_object
1040
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse::Representation
1041
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse
1042
+ command.params['parent'] = parent unless parent.nil?
1043
+ command.query['fields'] = fields unless fields.nil?
1044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1045
+ execute_or_queue_command(command, &block)
1046
+ end
1047
+
1048
+ # Starts a labeling task for image. The type of image labeling task is
1049
+ # configured by feature in the request.
1050
+ # @param [String] parent
1051
+ # Required. Name of the dataset to request labeling task, format: projects/`
1052
+ # project_id`/datasets/`dataset_id`
1053
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelImageRequest] google_cloud_datalabeling_v1beta1_label_image_request_object
1054
+ # @param [String] fields
1055
+ # Selector specifying which fields to include in a partial response.
1056
+ # @param [String] quota_user
1057
+ # Available to use for quota purposes for server-side applications. Can be any
1058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1059
+ # @param [Google::Apis::RequestOptions] options
1060
+ # Request-specific options
1061
+ #
1062
+ # @yield [result, err] Result & error if block supplied
1063
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
1064
+ # @yieldparam err [StandardError] error object if request failed
1065
+ #
1066
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
1067
+ #
1068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1071
+ def label_project_dataset_image(parent, google_cloud_datalabeling_v1beta1_label_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1072
+ command = make_simple_command(:post, 'v1beta1/{+parent}/image:label', options)
1073
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelImageRequest::Representation
1074
+ command.request_object = google_cloud_datalabeling_v1beta1_label_image_request_object
1075
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
1076
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
1077
+ command.params['parent'] = parent unless parent.nil?
1078
+ command.query['fields'] = fields unless fields.nil?
1079
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1080
+ execute_or_queue_command(command, &block)
1081
+ end
1082
+
1083
+ # Starts a labeling task for text. The type of text labeling task is configured
1084
+ # by feature in the request.
1085
+ # @param [String] parent
1086
+ # Required. Name of the data set to request labeling task, format: projects/`
1087
+ # project_id`/datasets/`dataset_id`
1088
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelTextRequest] google_cloud_datalabeling_v1beta1_label_text_request_object
1089
+ # @param [String] fields
1090
+ # Selector specifying which fields to include in a partial response.
1091
+ # @param [String] quota_user
1092
+ # Available to use for quota purposes for server-side applications. Can be any
1093
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1094
+ # @param [Google::Apis::RequestOptions] options
1095
+ # Request-specific options
1096
+ #
1097
+ # @yield [result, err] Result & error if block supplied
1098
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
1099
+ # @yieldparam err [StandardError] error object if request failed
1100
+ #
1101
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
1102
+ #
1103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1106
+ def label_project_dataset_text(parent, google_cloud_datalabeling_v1beta1_label_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1107
+ command = make_simple_command(:post, 'v1beta1/{+parent}/text:label', options)
1108
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelTextRequest::Representation
1109
+ command.request_object = google_cloud_datalabeling_v1beta1_label_text_request_object
1110
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
1111
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
1112
+ command.params['parent'] = parent unless parent.nil?
1113
+ command.query['fields'] = fields unless fields.nil?
1114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1115
+ execute_or_queue_command(command, &block)
1116
+ end
1117
+
1118
+ # Starts a labeling task for video. The type of video labeling task is
1119
+ # configured by feature in the request.
1120
+ # @param [String] parent
1121
+ # Required. Name of the dataset to request labeling task, format: projects/`
1122
+ # project_id`/datasets/`dataset_id`
1123
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelVideoRequest] google_cloud_datalabeling_v1beta1_label_video_request_object
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
+ # @param [Google::Apis::RequestOptions] options
1130
+ # Request-specific options
1131
+ #
1132
+ # @yield [result, err] Result & error if block supplied
1133
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
1137
+ #
1138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
+ def label_project_dataset_video(parent, google_cloud_datalabeling_v1beta1_label_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1142
+ command = make_simple_command(:post, 'v1beta1/{+parent}/video:label', options)
1143
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1LabelVideoRequest::Representation
1144
+ command.request_object = google_cloud_datalabeling_v1beta1_label_video_request_object
1145
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
1146
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
1147
+ command.params['parent'] = parent unless parent.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Creates an evaluation job.
1154
+ # @param [String] parent
1155
+ # Required. Evaluation job resource parent. Format: "projects/`project_id`"
1156
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest] google_cloud_datalabeling_v1beta1_create_evaluation_job_request_object
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def create_project_evaluation_job(parent, google_cloud_datalabeling_v1beta1_create_evaluation_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1175
+ command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationJobs', options)
1176
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest::Representation
1177
+ command.request_object = google_cloud_datalabeling_v1beta1_create_evaluation_job_request_object
1178
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob::Representation
1179
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob
1180
+ command.params['parent'] = parent unless parent.nil?
1181
+ command.query['fields'] = fields unless fields.nil?
1182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1183
+ execute_or_queue_command(command, &block)
1184
+ end
1185
+
1186
+ # Stops and deletes an evaluation job.
1187
+ # @param [String] name
1188
+ # Required. Name of the evaluation job that is going to be deleted. Format: "
1189
+ # projects/`project_id`/evaluationJobs/`evaluation_job_id`"
1190
+ # @param [String] fields
1191
+ # Selector specifying which fields to include in a partial response.
1192
+ # @param [String] quota_user
1193
+ # Available to use for quota purposes for server-side applications. Can be any
1194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1195
+ # @param [Google::Apis::RequestOptions] options
1196
+ # Request-specific options
1197
+ #
1198
+ # @yield [result, err] Result & error if block supplied
1199
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1200
+ # @yieldparam err [StandardError] error object if request failed
1201
+ #
1202
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1203
+ #
1204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1207
+ def delete_project_evaluation_job(name, fields: nil, quota_user: nil, options: nil, &block)
1208
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1209
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1210
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1211
+ command.params['name'] = name unless name.nil?
1212
+ command.query['fields'] = fields unless fields.nil?
1213
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1214
+ execute_or_queue_command(command, &block)
1215
+ end
1216
+
1217
+ # Gets an evaluation job by resource name.
1218
+ # @param [String] name
1219
+ # Required. Name of the evaluation job. Format: "projects/`project_id` /
1220
+ # evaluationJobs/`evaluation_job_id`"
1221
+ # @param [String] fields
1222
+ # Selector specifying which fields to include in a partial response.
1223
+ # @param [String] quota_user
1224
+ # Available to use for quota purposes for server-side applications. Can be any
1225
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1226
+ # @param [Google::Apis::RequestOptions] options
1227
+ # Request-specific options
1228
+ #
1229
+ # @yield [result, err] Result & error if block supplied
1230
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob] parsed result object
1231
+ # @yieldparam err [StandardError] error object if request failed
1232
+ #
1233
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob]
1234
+ #
1235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1238
+ def get_project_evaluation_job(name, fields: nil, quota_user: nil, options: nil, &block)
1239
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1240
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob::Representation
1241
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob
1242
+ command.params['name'] = name unless name.nil?
1243
+ command.query['fields'] = fields unless fields.nil?
1244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1245
+ execute_or_queue_command(command, &block)
1246
+ end
1247
+
1248
+ # Lists all evaluation jobs within a project with possible filters. Pagination
1249
+ # is supported.
1250
+ # @param [String] parent
1251
+ # Required. Evaluation job resource parent. Format: "projects/`project_id`"
1252
+ # @param [String] filter
1253
+ # Optional. You can filter the jobs to list by model_id (also known as
1254
+ # model_name, as described in EvaluationJob.modelVersion) or by evaluation job
1255
+ # state (as described in EvaluationJob.state). To filter by both criteria, use
1256
+ # the `AND` operator or the `OR` operator. For example, you can use the
1257
+ # following string for your filter: "evaluation_job.model_id = `model_name` AND
1258
+ # evaluation_job.state = `evaluation_job_state`"
1259
+ # @param [Fixnum] page_size
1260
+ # Optional. Requested page size. Server may return fewer results than requested.
1261
+ # Default value is 100.
1262
+ # @param [String] page_token
1263
+ # Optional. A token identifying a page of results for the server to return.
1264
+ # Typically obtained by the nextPageToken in the response to the previous
1265
+ # request. The request returns the first page if this is empty.
1266
+ # @param [String] fields
1267
+ # Selector specifying which fields to include in a partial response.
1268
+ # @param [String] quota_user
1269
+ # Available to use for quota purposes for server-side applications. Can be any
1270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1271
+ # @param [Google::Apis::RequestOptions] options
1272
+ # Request-specific options
1273
+ #
1274
+ # @yield [result, err] Result & error if block supplied
1275
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse] parsed result object
1276
+ # @yieldparam err [StandardError] error object if request failed
1277
+ #
1278
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse]
1279
+ #
1280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1283
+ def list_project_evaluation_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1284
+ command = make_simple_command(:get, 'v1beta1/{+parent}/evaluationJobs', options)
1285
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse::Representation
1286
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse
1287
+ command.params['parent'] = parent unless parent.nil?
1288
+ command.query['filter'] = filter unless filter.nil?
1289
+ command.query['pageSize'] = page_size unless page_size.nil?
1290
+ command.query['pageToken'] = page_token unless page_token.nil?
1291
+ command.query['fields'] = fields unless fields.nil?
1292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1293
+ execute_or_queue_command(command, &block)
1294
+ end
1295
+
1296
+ # Updates an evaluation job. You can only update certain fields of the job's
1297
+ # EvaluationJobConfig: `humanAnnotationConfig.instruction`, `exampleCount`, and `
1298
+ # exampleSamplePercentage`. If you want to change any other aspect of the
1299
+ # evaluation job, you must delete the job and create a new one.
1300
+ # @param [String] name
1301
+ # Output only. After you create a job, Data Labeling Service assigns a name to
1302
+ # the job with the following format: "projects/`project_id`/evaluationJobs/ `
1303
+ # evaluation_job_id`"
1304
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob] google_cloud_datalabeling_v1beta1_evaluation_job_object
1305
+ # @param [String] update_mask
1306
+ # Optional. Mask for which fields to update. You can only provide the following
1307
+ # fields: * `evaluationJobConfig.humanAnnotationConfig.instruction` * `
1308
+ # evaluationJobConfig.exampleCount` * `evaluationJobConfig.
1309
+ # exampleSamplePercentage` You can provide more than one of these fields by
1310
+ # separating them with commas.
1311
+ # @param [String] fields
1312
+ # Selector specifying which fields to include in a partial response.
1313
+ # @param [String] quota_user
1314
+ # Available to use for quota purposes for server-side applications. Can be any
1315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1316
+ # @param [Google::Apis::RequestOptions] options
1317
+ # Request-specific options
1318
+ #
1319
+ # @yield [result, err] Result & error if block supplied
1320
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob] parsed result object
1321
+ # @yieldparam err [StandardError] error object if request failed
1322
+ #
1323
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob]
1324
+ #
1325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1328
+ def patch_project_evaluation_job(name, google_cloud_datalabeling_v1beta1_evaluation_job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1329
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1330
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob::Representation
1331
+ command.request_object = google_cloud_datalabeling_v1beta1_evaluation_job_object
1332
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob::Representation
1333
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJob
1334
+ command.params['name'] = name unless name.nil?
1335
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1336
+ command.query['fields'] = fields unless fields.nil?
1337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
+ execute_or_queue_command(command, &block)
1339
+ end
1340
+
1341
+ # Pauses an evaluation job. Pausing an evaluation job that is already in a `
1342
+ # PAUSED` state is a no-op.
1343
+ # @param [String] name
1344
+ # Required. Name of the evaluation job that is going to be paused. Format: "
1345
+ # projects/`project_id`/evaluationJobs/`evaluation_job_id`"
1346
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest] google_cloud_datalabeling_v1beta1_pause_evaluation_job_request_object
1347
+ # @param [String] fields
1348
+ # Selector specifying which fields to include in a partial response.
1349
+ # @param [String] quota_user
1350
+ # Available to use for quota purposes for server-side applications. Can be any
1351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1352
+ # @param [Google::Apis::RequestOptions] options
1353
+ # Request-specific options
1354
+ #
1355
+ # @yield [result, err] Result & error if block supplied
1356
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1357
+ # @yieldparam err [StandardError] error object if request failed
1358
+ #
1359
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1360
+ #
1361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1364
+ def pause_project_evaluation_job(name, google_cloud_datalabeling_v1beta1_pause_evaluation_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1365
+ command = make_simple_command(:post, 'v1beta1/{+name}:pause', options)
1366
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest::Representation
1367
+ command.request_object = google_cloud_datalabeling_v1beta1_pause_evaluation_job_request_object
1368
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1369
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1370
+ command.params['name'] = name unless name.nil?
1371
+ command.query['fields'] = fields unless fields.nil?
1372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1373
+ execute_or_queue_command(command, &block)
1374
+ end
1375
+
1376
+ # Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
1377
+ # Resuming a running or scheduled evaluation job is a no-op.
1378
+ # @param [String] name
1379
+ # Required. Name of the evaluation job that is going to be resumed. Format: "
1380
+ # projects/`project_id`/evaluationJobs/`evaluation_job_id`"
1381
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest] google_cloud_datalabeling_v1beta1_resume_evaluation_job_request_object
1382
+ # @param [String] fields
1383
+ # Selector specifying which fields to include in a partial response.
1384
+ # @param [String] quota_user
1385
+ # Available to use for quota purposes for server-side applications. Can be any
1386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1387
+ # @param [Google::Apis::RequestOptions] options
1388
+ # Request-specific options
1389
+ #
1390
+ # @yield [result, err] Result & error if block supplied
1391
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1392
+ # @yieldparam err [StandardError] error object if request failed
1393
+ #
1394
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1395
+ #
1396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1399
+ def resume_project_evaluation_job(name, google_cloud_datalabeling_v1beta1_resume_evaluation_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1400
+ command = make_simple_command(:post, 'v1beta1/{+name}:resume', options)
1401
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest::Representation
1402
+ command.request_object = google_cloud_datalabeling_v1beta1_resume_evaluation_job_request_object
1403
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1404
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1405
+ command.params['name'] = name unless name.nil?
1406
+ command.query['fields'] = fields unless fields.nil?
1407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1408
+ execute_or_queue_command(command, &block)
1409
+ end
1410
+
1411
+ # Searches evaluations within a project.
1412
+ # @param [String] parent
1413
+ # Required. Evaluation search parent (project ID). Format: "projects/ `
1414
+ # project_id`"
1415
+ # @param [String] filter
1416
+ # Optional. To search evaluations, you can filter by the following: *
1417
+ # evaluation_job.evaluation_job_id (the last part of EvaluationJob.name) *
1418
+ # evaluation_job.model_id (the `model_name` portion of EvaluationJob.
1419
+ # modelVersion) * evaluation_job.evaluation_job_run_time_start (Minimum
1420
+ # threshold for the evaluationJobRunTime that created the evaluation) *
1421
+ # evaluation_job.evaluation_job_run_time_end (Maximum threshold for the
1422
+ # evaluationJobRunTime that created the evaluation) * evaluation_job.job_state (
1423
+ # EvaluationJob.state) * annotation_spec.display_name (the Evaluation contains a
1424
+ # metric for the annotation spec with this displayName) To filter by multiple
1425
+ # critiera, use the `AND` operator or the `OR` operator. The following examples
1426
+ # shows a string that filters by several critiera: "evaluation_job.
1427
+ # evaluation_job_id = `evaluation_job_id` AND evaluation_job.model_id = `
1428
+ # model_name` AND evaluation_job.evaluation_job_run_time_start = `timestamp_1`
1429
+ # AND evaluation_job.evaluation_job_run_time_end = `timestamp_2` AND
1430
+ # annotation_spec.display_name = `display_name`"
1431
+ # @param [Fixnum] page_size
1432
+ # Optional. Requested page size. Server may return fewer results than requested.
1433
+ # Default value is 100.
1434
+ # @param [String] page_token
1435
+ # Optional. A token identifying a page of results for the server to return.
1436
+ # Typically obtained by the nextPageToken of the response to a previous search
1437
+ # request. If you don't specify this field, the API call requests the first page
1438
+ # of the search.
1439
+ # @param [String] fields
1440
+ # Selector specifying which fields to include in a partial response.
1441
+ # @param [String] quota_user
1442
+ # Available to use for quota purposes for server-side applications. Can be any
1443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1444
+ # @param [Google::Apis::RequestOptions] options
1445
+ # Request-specific options
1446
+ #
1447
+ # @yield [result, err] Result & error if block supplied
1448
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse] parsed result object
1449
+ # @yieldparam err [StandardError] error object if request failed
1450
+ #
1451
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse]
1452
+ #
1453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1456
+ def search_project_evaluations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1457
+ command = make_simple_command(:get, 'v1beta1/{+parent}/evaluations:search', options)
1458
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse::Representation
1459
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse
1460
+ command.params['parent'] = parent unless parent.nil?
1461
+ command.query['filter'] = filter unless filter.nil?
1462
+ command.query['pageSize'] = page_size unless page_size.nil?
1463
+ command.query['pageToken'] = page_token unless page_token.nil?
1464
+ command.query['fields'] = fields unless fields.nil?
1465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Creates an instruction for how data should be labeled.
1470
+ # @param [String] parent
1471
+ # Required. Instruction resource parent, format: projects/`project_id`
1472
+ # @param [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateInstructionRequest] google_cloud_datalabeling_v1beta1_create_instruction_request_object
1473
+ # @param [String] fields
1474
+ # Selector specifying which fields to include in a partial response.
1475
+ # @param [String] quota_user
1476
+ # Available to use for quota purposes for server-side applications. Can be any
1477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1478
+ # @param [Google::Apis::RequestOptions] options
1479
+ # Request-specific options
1480
+ #
1481
+ # @yield [result, err] Result & error if block supplied
1482
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
1483
+ # @yieldparam err [StandardError] error object if request failed
1484
+ #
1485
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
1486
+ #
1487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1490
+ def create_project_instruction(parent, google_cloud_datalabeling_v1beta1_create_instruction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1491
+ command = make_simple_command(:post, 'v1beta1/{+parent}/instructions', options)
1492
+ command.request_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1CreateInstructionRequest::Representation
1493
+ command.request_object = google_cloud_datalabeling_v1beta1_create_instruction_request_object
1494
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
1495
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
1496
+ command.params['parent'] = parent unless parent.nil?
1497
+ command.query['fields'] = fields unless fields.nil?
1498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1499
+ execute_or_queue_command(command, &block)
1500
+ end
1501
+
1502
+ # Deletes an instruction object by resource name.
1503
+ # @param [String] name
1504
+ # Required. Instruction resource name, format: projects/`project_id`/
1505
+ # instructions/`instruction_id`
1506
+ # @param [String] fields
1507
+ # Selector specifying which fields to include in a partial response.
1508
+ # @param [String] quota_user
1509
+ # Available to use for quota purposes for server-side applications. Can be any
1510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1511
+ # @param [Google::Apis::RequestOptions] options
1512
+ # Request-specific options
1513
+ #
1514
+ # @yield [result, err] Result & error if block supplied
1515
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1516
+ # @yieldparam err [StandardError] error object if request failed
1517
+ #
1518
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1519
+ #
1520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1523
+ def delete_project_instruction(name, fields: nil, quota_user: nil, options: nil, &block)
1524
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1525
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1526
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1527
+ command.params['name'] = name unless name.nil?
1528
+ command.query['fields'] = fields unless fields.nil?
1529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1530
+ execute_or_queue_command(command, &block)
1531
+ end
1532
+
1533
+ # Gets an instruction by resource name.
1534
+ # @param [String] name
1535
+ # Required. Instruction resource name, format: projects/`project_id`/
1536
+ # instructions/`instruction_id`
1537
+ # @param [String] fields
1538
+ # Selector specifying which fields to include in a partial response.
1539
+ # @param [String] quota_user
1540
+ # Available to use for quota purposes for server-side applications. Can be any
1541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1542
+ # @param [Google::Apis::RequestOptions] options
1543
+ # Request-specific options
1544
+ #
1545
+ # @yield [result, err] Result & error if block supplied
1546
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Instruction] parsed result object
1547
+ # @yieldparam err [StandardError] error object if request failed
1548
+ #
1549
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Instruction]
1550
+ #
1551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1554
+ def get_project_instruction(name, fields: nil, quota_user: nil, options: nil, &block)
1555
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1556
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Instruction::Representation
1557
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Instruction
1558
+ command.params['name'] = name unless name.nil?
1559
+ command.query['fields'] = fields unless fields.nil?
1560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1561
+ execute_or_queue_command(command, &block)
1562
+ end
1563
+
1564
+ # Lists instructions for a project. Pagination is supported.
1565
+ # @param [String] parent
1566
+ # Required. Instruction resource parent, format: projects/`project_id`
1567
+ # @param [String] filter
1568
+ # Optional. Filter is not supported at this moment.
1569
+ # @param [Fixnum] page_size
1570
+ # Optional. Requested page size. Server may return fewer results than requested.
1571
+ # Default value is 100.
1572
+ # @param [String] page_token
1573
+ # Optional. A token identifying a page of results for the server to return.
1574
+ # Typically obtained by ListInstructionsResponse.next_page_token of the previous
1575
+ # [DataLabelingService.ListInstructions] call. Return first page if empty.
1576
+ # @param [String] fields
1577
+ # Selector specifying which fields to include in a partial response.
1578
+ # @param [String] quota_user
1579
+ # Available to use for quota purposes for server-side applications. Can be any
1580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1581
+ # @param [Google::Apis::RequestOptions] options
1582
+ # Request-specific options
1583
+ #
1584
+ # @yield [result, err] Result & error if block supplied
1585
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListInstructionsResponse] parsed result object
1586
+ # @yieldparam err [StandardError] error object if request failed
1587
+ #
1588
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListInstructionsResponse]
1589
+ #
1590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1593
+ def list_project_instructions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1594
+ command = make_simple_command(:get, 'v1beta1/{+parent}/instructions', options)
1595
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListInstructionsResponse::Representation
1596
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1ListInstructionsResponse
1597
+ command.params['parent'] = parent unless parent.nil?
1598
+ command.query['filter'] = filter unless filter.nil?
1599
+ command.query['pageSize'] = page_size unless page_size.nil?
1600
+ command.query['pageToken'] = page_token unless page_token.nil?
1601
+ command.query['fields'] = fields unless fields.nil?
1602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1603
+ execute_or_queue_command(command, &block)
1604
+ end
1605
+
1606
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1607
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1608
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1609
+ # Clients can use Operations.GetOperation or other methods to check whether the
1610
+ # cancellation succeeded or whether the operation completed despite cancellation.
1611
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1612
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1613
+ # corresponding to `Code.CANCELLED`.
1614
+ # @param [String] name
1615
+ # The name of the operation resource to be cancelled.
1616
+ # @param [String] fields
1617
+ # Selector specifying which fields to include in a partial response.
1618
+ # @param [String] quota_user
1619
+ # Available to use for quota purposes for server-side applications. Can be any
1620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1621
+ # @param [Google::Apis::RequestOptions] options
1622
+ # Request-specific options
1623
+ #
1624
+ # @yield [result, err] Result & error if block supplied
1625
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1626
+ # @yieldparam err [StandardError] error object if request failed
1627
+ #
1628
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1629
+ #
1630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1633
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1634
+ command = make_simple_command(:get, 'v1beta1/{+name}:cancel', options)
1635
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1636
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1637
+ command.params['name'] = name unless name.nil?
1638
+ command.query['fields'] = fields unless fields.nil?
1639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1640
+ execute_or_queue_command(command, &block)
1641
+ end
1642
+
1643
+ # Deletes a long-running operation. This method indicates that the client is no
1644
+ # longer interested in the operation result. It does not cancel the operation.
1645
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1646
+ # UNIMPLEMENTED`.
1647
+ # @param [String] name
1648
+ # The name of the operation resource to be deleted.
1649
+ # @param [String] fields
1650
+ # Selector specifying which fields to include in a partial response.
1651
+ # @param [String] quota_user
1652
+ # Available to use for quota purposes for server-side applications. Can be any
1653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1654
+ # @param [Google::Apis::RequestOptions] options
1655
+ # Request-specific options
1656
+ #
1657
+ # @yield [result, err] Result & error if block supplied
1658
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty] parsed result object
1659
+ # @yieldparam err [StandardError] error object if request failed
1660
+ #
1661
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty]
1662
+ #
1663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1666
+ def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1667
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
1668
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty::Representation
1669
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleProtobufEmpty
1670
+ command.params['name'] = name unless name.nil?
1671
+ command.query['fields'] = fields unless fields.nil?
1672
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1673
+ execute_or_queue_command(command, &block)
1674
+ end
1675
+
1676
+ # Gets the latest state of a long-running operation. Clients can use this method
1677
+ # to poll the operation result at intervals as recommended by the API service.
1678
+ # @param [String] name
1679
+ # The name of the operation resource.
1680
+ # @param [String] fields
1681
+ # Selector specifying which fields to include in a partial response.
1682
+ # @param [String] quota_user
1683
+ # Available to use for quota purposes for server-side applications. Can be any
1684
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1685
+ # @param [Google::Apis::RequestOptions] options
1686
+ # Request-specific options
1687
+ #
1688
+ # @yield [result, err] Result & error if block supplied
1689
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation] parsed result object
1690
+ # @yieldparam err [StandardError] error object if request failed
1691
+ #
1692
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation]
1693
+ #
1694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1697
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1698
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1699
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation::Representation
1700
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningOperation
1701
+ command.params['name'] = name unless name.nil?
1702
+ command.query['fields'] = fields unless fields.nil?
1703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1704
+ execute_or_queue_command(command, &block)
1705
+ end
1706
+
1707
+ # Lists operations that match the specified filter in the request. If the server
1708
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1709
+ # binding allows API services to override the binding to use different resource
1710
+ # name schemes, such as `users/*/operations`. To override the binding, API
1711
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1712
+ # service configuration. For backwards compatibility, the default name includes
1713
+ # the operations collection id, however overriding users must ensure the name
1714
+ # binding is the parent resource, without the operations collection id.
1715
+ # @param [String] name
1716
+ # The name of the operation's parent resource.
1717
+ # @param [String] filter
1718
+ # The standard list filter.
1719
+ # @param [Fixnum] page_size
1720
+ # The standard list page size.
1721
+ # @param [String] page_token
1722
+ # The standard list page token.
1723
+ # @param [String] fields
1724
+ # Selector specifying which fields to include in a partial response.
1725
+ # @param [String] quota_user
1726
+ # Available to use for quota purposes for server-side applications. Can be any
1727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1728
+ # @param [Google::Apis::RequestOptions] options
1729
+ # Request-specific options
1730
+ #
1731
+ # @yield [result, err] Result & error if block supplied
1732
+ # @yieldparam result [Google::Apis::DatalabelingV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
1733
+ # @yieldparam err [StandardError] error object if request failed
1734
+ #
1735
+ # @return [Google::Apis::DatalabelingV1beta1::GoogleLongrunningListOperationsResponse]
1736
+ #
1737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1740
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1741
+ command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
1742
+ command.response_representation = Google::Apis::DatalabelingV1beta1::GoogleLongrunningListOperationsResponse::Representation
1743
+ command.response_class = Google::Apis::DatalabelingV1beta1::GoogleLongrunningListOperationsResponse
1744
+ command.params['name'] = name unless name.nil?
1745
+ command.query['filter'] = filter unless filter.nil?
1746
+ command.query['pageSize'] = page_size unless page_size.nil?
1747
+ command.query['pageToken'] = page_token unless page_token.nil?
1748
+ command.query['fields'] = fields unless fields.nil?
1749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1750
+ execute_or_queue_command(command, &block)
1751
+ end
1752
+
1753
+ protected
1754
+
1755
+ def apply_command_defaults(command)
1756
+ command.query['key'] = key unless key.nil?
1757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1758
+ end
1759
+ end
1760
+ end
1761
+ end
1762
+ end