You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::DeviceFarm::Types::CreateUploadRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb

Overview

Note:

When making an API call, you may pass CreateUploadRequest data as a hash:

{
  project_arn: "AmazonResourceName", # required
  name: "Name", # required
  type: "ANDROID_APP", # required, accepts ANDROID_APP, IOS_APP, WEB_APP, EXTERNAL_DATA, APPIUM_JAVA_JUNIT_TEST_PACKAGE, APPIUM_JAVA_TESTNG_TEST_PACKAGE, APPIUM_PYTHON_TEST_PACKAGE, APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE, APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE, APPIUM_WEB_PYTHON_TEST_PACKAGE, CALABASH_TEST_PACKAGE, INSTRUMENTATION_TEST_PACKAGE, UIAUTOMATION_TEST_PACKAGE, UIAUTOMATOR_TEST_PACKAGE, XCTEST_TEST_PACKAGE, XCTEST_UI_TEST_PACKAGE
  content_type: "ContentType",
}

Represents a request to the create upload operation.

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

The upload's content type (for example, "application/octet-stream").

Returns:

  • (String)


578
579
580
581
582
583
584
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 578

class CreateUploadRequest < Struct.new(
  :project_arn,
  :name,
  :type,
  :content_type)
  include Aws::Structure
end

#nameString

The upload's file name. The name should not contain the '/' character. If uploading an iOS app, the file name needs to end with the .ipa extension. If uploading an Android app, the file name needs to end with the .apk extension. For all others, the file name must end with the .zip file extension.

Returns:

  • (String)


578
579
580
581
582
583
584
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 578

class CreateUploadRequest < Struct.new(
  :project_arn,
  :name,
  :type,
  :content_type)
  include Aws::Structure
end

#project_arnString

The ARN of the project for the upload.

Returns:

  • (String)


578
579
580
581
582
583
584
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 578

class CreateUploadRequest < Struct.new(
  :project_arn,
  :name,
  :type,
  :content_type)
  include Aws::Structure
end

#typeString

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data upload.

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

Returns:

  • (String)


578
579
580
581
582
583
584
# File 'gems/aws-sdk-devicefarm/lib/aws-sdk-devicefarm/types.rb', line 578

class CreateUploadRequest < Struct.new(
  :project_arn,
  :name,
  :type,
  :content_type)
  include Aws::Structure
end