google-api-client 0.17.3 → 0.17.4

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