Class: Google::Apis::TestingV1::TestSetup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb

Overview

A description of how to set up the device prior to running the test

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestSetup

Returns a new instance of TestSetup



1370
1371
1372
# File 'generated/google/apis/testing_v1/classes.rb', line 1370

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accountGoogle::Apis::TestingV1::Account

Identifies an account and how to log into it Corresponds to the JSON property account



1343
1344
1345
# File 'generated/google/apis/testing_v1/classes.rb', line 1343

def 
  @account
end

#directories_to_pullArray<String>

The directories on the device to upload to GCS at the end of the test; they must be absolute, whitelisted paths. Refer to RegularFile for whitelisted paths. Optional Corresponds to the JSON property directoriesToPull

Returns:

  • (Array<String>)


1351
1352
1353
# File 'generated/google/apis/testing_v1/classes.rb', line 1351

def directories_to_pull
  @directories_to_pull
end

#environment_variablesArray<Google::Apis::TestingV1::EnvironmentVariable>

Environment variables to set for the test (only applicable for instrumentation tests). Corresponds to the JSON property environmentVariables



1357
1358
1359
# File 'generated/google/apis/testing_v1/classes.rb', line 1357

def environment_variables
  @environment_variables
end

#files_to_pushArray<Google::Apis::TestingV1::DeviceFile>

Optional Corresponds to the JSON property filesToPush



1362
1363
1364
# File 'generated/google/apis/testing_v1/classes.rb', line 1362

def files_to_push
  @files_to_push
end

#network_profileString

The network traffic profile used for running the test. Optional Corresponds to the JSON property networkProfile

Returns:

  • (String)


1368
1369
1370
# File 'generated/google/apis/testing_v1/classes.rb', line 1368

def network_profile
  @network_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1375
1376
1377
1378
1379
1380
1381
# File 'generated/google/apis/testing_v1/classes.rb', line 1375

def update!(**args)
  @account = args[:account] if args.key?(:account)
  @directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull)
  @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
  @files_to_push = args[:files_to_push] if args.key?(:files_to_push)
  @network_profile = args[:network_profile] if args.key?(:network_profile)
end