google-apis-poly_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
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
+ module Google
16
+ module Apis
17
+ module PolyV1
18
+ # Version of the google-apis-poly_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201006"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,278 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PolyV1
24
+
25
+ class Asset
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AssetImportMessage
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class File
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Format
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class FormatComplexity
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ImageError
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListAssetsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListLikedAssetsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListUserAssetsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ObjParseError
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class PresentationParams
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Quaternion
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class RemixInfo
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class StartAssetImportResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class UserAsset
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Asset
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ property :author_name, as: 'authorName'
119
+ property :create_time, as: 'createTime'
120
+ property :description, as: 'description'
121
+ property :display_name, as: 'displayName'
122
+ collection :formats, as: 'formats', class: Google::Apis::PolyV1::Format, decorator: Google::Apis::PolyV1::Format::Representation
123
+
124
+ property :is_curated, as: 'isCurated'
125
+ property :license, as: 'license'
126
+ property :metadata, as: 'metadata'
127
+ property :name, as: 'name'
128
+ property :presentation_params, as: 'presentationParams', class: Google::Apis::PolyV1::PresentationParams, decorator: Google::Apis::PolyV1::PresentationParams::Representation
129
+
130
+ property :remix_info, as: 'remixInfo', class: Google::Apis::PolyV1::RemixInfo, decorator: Google::Apis::PolyV1::RemixInfo::Representation
131
+
132
+ property :thumbnail, as: 'thumbnail', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
133
+
134
+ property :update_time, as: 'updateTime'
135
+ property :visibility, as: 'visibility'
136
+ end
137
+ end
138
+
139
+ class AssetImportMessage
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :code, as: 'code'
143
+ property :file_path, as: 'filePath'
144
+ property :image_error, as: 'imageError', class: Google::Apis::PolyV1::ImageError, decorator: Google::Apis::PolyV1::ImageError::Representation
145
+
146
+ property :obj_parse_error, as: 'objParseError', class: Google::Apis::PolyV1::ObjParseError, decorator: Google::Apis::PolyV1::ObjParseError::Representation
147
+
148
+ end
149
+ end
150
+
151
+ class File
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :content_type, as: 'contentType'
155
+ property :relative_path, as: 'relativePath'
156
+ property :url, as: 'url'
157
+ end
158
+ end
159
+
160
+ class Format
161
+ # @private
162
+ class Representation < Google::Apis::Core::JsonRepresentation
163
+ property :format_complexity, as: 'formatComplexity', class: Google::Apis::PolyV1::FormatComplexity, decorator: Google::Apis::PolyV1::FormatComplexity::Representation
164
+
165
+ property :format_type, as: 'formatType'
166
+ collection :resources, as: 'resources', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
167
+
168
+ property :root, as: 'root', class: Google::Apis::PolyV1::File, decorator: Google::Apis::PolyV1::File::Representation
169
+
170
+ end
171
+ end
172
+
173
+ class FormatComplexity
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ property :lod_hint, as: 'lodHint'
177
+ property :triangle_count, :numeric_string => true, as: 'triangleCount'
178
+ end
179
+ end
180
+
181
+ class ImageError
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :code, as: 'code'
185
+ property :file_path, as: 'filePath'
186
+ end
187
+ end
188
+
189
+ class ListAssetsResponse
190
+ # @private
191
+ class Representation < Google::Apis::Core::JsonRepresentation
192
+ collection :assets, as: 'assets', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
193
+
194
+ property :next_page_token, as: 'nextPageToken'
195
+ property :total_size, as: 'totalSize'
196
+ end
197
+ end
198
+
199
+ class ListLikedAssetsResponse
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :assets, as: 'assets', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
203
+
204
+ property :next_page_token, as: 'nextPageToken'
205
+ property :total_size, as: 'totalSize'
206
+ end
207
+ end
208
+
209
+ class ListUserAssetsResponse
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :next_page_token, as: 'nextPageToken'
213
+ property :total_size, as: 'totalSize'
214
+ collection :user_assets, as: 'userAssets', class: Google::Apis::PolyV1::UserAsset, decorator: Google::Apis::PolyV1::UserAsset::Representation
215
+
216
+ end
217
+ end
218
+
219
+ class ObjParseError
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ property :code, as: 'code'
223
+ property :end_index, as: 'endIndex'
224
+ property :file_path, as: 'filePath'
225
+ property :line, as: 'line'
226
+ property :line_number, as: 'lineNumber'
227
+ property :start_index, as: 'startIndex'
228
+ end
229
+ end
230
+
231
+ class PresentationParams
232
+ # @private
233
+ class Representation < Google::Apis::Core::JsonRepresentation
234
+ property :background_color, as: 'backgroundColor'
235
+ property :color_space, as: 'colorSpace'
236
+ property :orienting_rotation, as: 'orientingRotation', class: Google::Apis::PolyV1::Quaternion, decorator: Google::Apis::PolyV1::Quaternion::Representation
237
+
238
+ end
239
+ end
240
+
241
+ class Quaternion
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :w, as: 'w'
245
+ property :x, as: 'x'
246
+ property :y, as: 'y'
247
+ property :z, as: 'z'
248
+ end
249
+ end
250
+
251
+ class RemixInfo
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ collection :source_asset, as: 'sourceAsset'
255
+ end
256
+ end
257
+
258
+ class StartAssetImportResponse
259
+ # @private
260
+ class Representation < Google::Apis::Core::JsonRepresentation
261
+ property :asset_id, as: 'assetId'
262
+ property :asset_import_id, as: 'assetImportId'
263
+ collection :asset_import_messages, as: 'assetImportMessages', class: Google::Apis::PolyV1::AssetImportMessage, decorator: Google::Apis::PolyV1::AssetImportMessage::Representation
264
+
265
+ property :publish_url, as: 'publishUrl'
266
+ end
267
+ end
268
+
269
+ class UserAsset
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :asset, as: 'asset', class: Google::Apis::PolyV1::Asset, decorator: Google::Apis::PolyV1::Asset::Representation
273
+
274
+ end
275
+ end
276
+ end
277
+ end
278
+ end
@@ -0,0 +1,266 @@
1
+ # Copyright 2020 Google LLC
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 PolyV1
23
+ # Poly API
24
+ #
25
+ # The Poly API provides read access to assets hosted on poly.google.com to all,
26
+ # and upload access to poly.google.com for whitelisted accounts.
27
+ #
28
+ # @example
29
+ # require 'google/apis/poly_v1'
30
+ #
31
+ # Poly = Google::Apis::PolyV1 # Alias the module
32
+ # service = Poly::PolyServiceService.new
33
+ #
34
+ # @see https://developers.google.com/poly/
35
+ class PolyServiceService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://poly.googleapis.com/', '',
48
+ client_name: 'google-apis-poly_v1',
49
+ client_version: Google::Apis::PolyV1::GEM_VERSION)
50
+ @batch_path = 'batch'
51
+ end
52
+
53
+ # Returns detailed information about an asset given its name. PRIVATE assets are
54
+ # returned only if the currently authenticated user (via OAuth token) is the
55
+ # author of the asset.
56
+ # @param [String] name
57
+ # Required. An asset's name in the form `assets/`ASSET_ID``.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::PolyV1::Asset] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::PolyV1::Asset]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_asset(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1/{+name}', options)
77
+ command.response_representation = Google::Apis::PolyV1::Asset::Representation
78
+ command.response_class = Google::Apis::PolyV1::Asset
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists all public, remixable assets. These are assets with an access level of
86
+ # PUBLIC and published under the CC-By license.
87
+ # @param [String] category
88
+ # Filter assets based on the specified category. Supported values are: `animals`,
89
+ # `architecture`, `art`, `food`, `nature`, `objects`, `people`, `scenes`, `
90
+ # technology`, and `transport`.
91
+ # @param [Boolean] curated
92
+ # Return only assets that have been curated by the Poly team.
93
+ # @param [String] format
94
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
95
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
96
+ # @param [String] keywords
97
+ # One or more search terms to be matched against all text that Poly has indexed
98
+ # for assets, which includes display_name, description, and tags. Multiple
99
+ # keywords should be separated by spaces.
100
+ # @param [String] max_complexity
101
+ # Returns assets that are of the specified complexity or less. Defaults to
102
+ # COMPLEX. For example, a request for MEDIUM assets also includes SIMPLE assets.
103
+ # @param [String] order_by
104
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
105
+ # OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of
106
+ # popularity and other features.
107
+ # @param [Fixnum] page_size
108
+ # The maximum number of assets to be returned. This value must be between `1`
109
+ # and `100`. Defaults to `20`.
110
+ # @param [String] page_token
111
+ # Specifies a continuation token from a previous search whose results were split
112
+ # into multiple pages. To get the next page, submit the same request specifying
113
+ # the value from next_page_token.
114
+ # @param [String] fields
115
+ # Selector specifying which fields to include in a partial response.
116
+ # @param [String] quota_user
117
+ # Available to use for quota purposes for server-side applications. Can be any
118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
119
+ # @param [Google::Apis::RequestOptions] options
120
+ # Request-specific options
121
+ #
122
+ # @yield [result, err] Result & error if block supplied
123
+ # @yieldparam result [Google::Apis::PolyV1::ListAssetsResponse] parsed result object
124
+ # @yieldparam err [StandardError] error object if request failed
125
+ #
126
+ # @return [Google::Apis::PolyV1::ListAssetsResponse]
127
+ #
128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
131
+ def list_assets(category: nil, curated: nil, format: nil, keywords: nil, max_complexity: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
132
+ command = make_simple_command(:get, 'v1/assets', options)
133
+ command.response_representation = Google::Apis::PolyV1::ListAssetsResponse::Representation
134
+ command.response_class = Google::Apis::PolyV1::ListAssetsResponse
135
+ command.query['category'] = category unless category.nil?
136
+ command.query['curated'] = curated unless curated.nil?
137
+ command.query['format'] = format unless format.nil?
138
+ command.query['keywords'] = keywords unless keywords.nil?
139
+ command.query['maxComplexity'] = max_complexity unless max_complexity.nil?
140
+ command.query['orderBy'] = order_by unless order_by.nil?
141
+ command.query['pageSize'] = page_size unless page_size.nil?
142
+ command.query['pageToken'] = page_token unless page_token.nil?
143
+ command.query['fields'] = fields unless fields.nil?
144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
145
+ execute_or_queue_command(command, &block)
146
+ end
147
+
148
+ # Lists assets authored by the given user. Only the value 'me', representing the
149
+ # currently-authenticated user, is supported. May include assets with an access
150
+ # level of PRIVATE or UNLISTED and assets which are All Rights Reserved for the
151
+ # currently-authenticated user.
152
+ # @param [String] name
153
+ # A valid user id. Currently, only the special value 'me', representing the
154
+ # currently-authenticated user is supported. To use 'me', you must pass an OAuth
155
+ # token with the request.
156
+ # @param [String] format
157
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
158
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
159
+ # @param [String] order_by
160
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
161
+ # OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of
162
+ # popularity and other features.
163
+ # @param [Fixnum] page_size
164
+ # The maximum number of assets to be returned. This value must be between `1`
165
+ # and `100`. Defaults to `20`.
166
+ # @param [String] page_token
167
+ # Specifies a continuation token from a previous search whose results were split
168
+ # into multiple pages. To get the next page, submit the same request specifying
169
+ # the value from next_page_token.
170
+ # @param [String] visibility
171
+ # The visibility of the assets to be returned. Defaults to
172
+ # VISIBILITY_UNSPECIFIED which returns all assets.
173
+ # @param [String] fields
174
+ # Selector specifying which fields to include in a partial response.
175
+ # @param [String] quota_user
176
+ # Available to use for quota purposes for server-side applications. Can be any
177
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
178
+ # @param [Google::Apis::RequestOptions] options
179
+ # Request-specific options
180
+ #
181
+ # @yield [result, err] Result & error if block supplied
182
+ # @yieldparam result [Google::Apis::PolyV1::ListUserAssetsResponse] parsed result object
183
+ # @yieldparam err [StandardError] error object if request failed
184
+ #
185
+ # @return [Google::Apis::PolyV1::ListUserAssetsResponse]
186
+ #
187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
190
+ def list_user_assets(name, format: nil, order_by: nil, page_size: nil, page_token: nil, visibility: nil, fields: nil, quota_user: nil, options: nil, &block)
191
+ command = make_simple_command(:get, 'v1/{+name}/assets', options)
192
+ command.response_representation = Google::Apis::PolyV1::ListUserAssetsResponse::Representation
193
+ command.response_class = Google::Apis::PolyV1::ListUserAssetsResponse
194
+ command.params['name'] = name unless name.nil?
195
+ command.query['format'] = format unless format.nil?
196
+ command.query['orderBy'] = order_by unless order_by.nil?
197
+ command.query['pageSize'] = page_size unless page_size.nil?
198
+ command.query['pageToken'] = page_token unless page_token.nil?
199
+ command.query['visibility'] = visibility unless visibility.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Lists assets that the user has liked. Only the value 'me', representing the
206
+ # currently-authenticated user, is supported. May include assets with an access
207
+ # level of UNLISTED.
208
+ # @param [String] name
209
+ # A valid user id. Currently, only the special value 'me', representing the
210
+ # currently-authenticated user is supported. To use 'me', you must pass an OAuth
211
+ # token with the request.
212
+ # @param [String] format
213
+ # Return only assets with the matching format. Acceptable values are: `BLOCKS`, `
214
+ # FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
215
+ # @param [String] order_by
216
+ # Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `
217
+ # OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which ranks assets based on
218
+ # how recently they were liked.
219
+ # @param [Fixnum] page_size
220
+ # The maximum number of assets to be returned. This value must be between `1`
221
+ # and `100`. Defaults to `20`.
222
+ # @param [String] page_token
223
+ # Specifies a continuation token from a previous search whose results were split
224
+ # into multiple pages. To get the next page, submit the same request specifying
225
+ # the value from next_page_token.
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::PolyV1::ListLikedAssetsResponse] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::PolyV1::ListLikedAssetsResponse]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def list_user_likedassets(name, format: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:get, 'v1/{+name}/likedassets', options)
245
+ command.response_representation = Google::Apis::PolyV1::ListLikedAssetsResponse::Representation
246
+ command.response_class = Google::Apis::PolyV1::ListLikedAssetsResponse
247
+ command.params['name'] = name unless name.nil?
248
+ command.query['format'] = format unless format.nil?
249
+ command.query['orderBy'] = order_by unless order_by.nil?
250
+ command.query['pageSize'] = page_size unless page_size.nil?
251
+ command.query['pageToken'] = page_token unless page_token.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
257
+ protected
258
+
259
+ def apply_command_defaults(command)
260
+ command.query['key'] = key unless key.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
+ end
263
+ end
264
+ end
265
+ end
266
+ end