class Google::Apis::AndroidpublisherV3::AndroidPublisherService
def upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
-
(Google::Apis::AuthorizationError)
- Authorization is required -
(Google::Apis::ClientError)
- The request is invalid and should not be retried without modification -
(Google::Apis::ServerError)
- An error occurred on the server and the request can be retried
Returns:
-
(Google::Apis::AndroidpublisherV3::ImagesUploadResponse)
-
Other tags:
- Yieldparam: err - error object if request failed
Yieldparam: result - parsed result object
Other tags:
- Yield: - Result & error if block supplied
Parameters:
-
options
(Google::Apis::RequestOptions
) -- -
content_type
(String
) -- -
upload_source
(IO, String
) -- -
quota_user
(String
) -- -
fields
(String
) -- -
image_type
(String
) -- -
language
(String
) -- -
edit_id
(String
) -- -
package_name
(String
) --
def upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) else command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options) command.upload_source = upload_source command.upload_content_type = content_type end command.response_representation = Google::Apis::AndroidpublisherV3::ImagesUploadResponse::Representation command.response_class = Google::Apis::AndroidpublisherV3::ImagesUploadResponse command.params['packageName'] = package_name unless package_name.nil? command.params['editId'] = edit_id unless edit_id.nil? command.params['language'] = language unless language.nil? command.params['imageType'] = image_type unless image_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end