Class: DatadogAPIClient::V1::SyntheticsBrowserTestConfig
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SyntheticsBrowserTestConfig
- Defined in:
- lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb
Overview
Configuration object for a Synthetic browser test.
Instance Attribute Summary collapse
-
#assertions ⇒ Object
Array of assertions used for the test.
-
#config_variables ⇒ Object
Array of variables used for the test.
-
#request ⇒ Object
Returns the value of attribute request.
-
#set_cookie ⇒ Object
Cookies to be used for the request, using the [Set-Cookie](developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax.
-
#variables ⇒ Object
Array of variables used for the test steps.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SyntheticsBrowserTestConfig
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SyntheticsBrowserTestConfig
Initializes the object
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 79 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsBrowserTestConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'assertions') if (value = attributes[:'assertions']).is_a?(Array) self.assertions = value end end if attributes.key?(:'config_variables') if (value = attributes[:'config_variables']).is_a?(Array) self.config_variables = value end end if attributes.key?(:'request') self.request = attributes[:'request'] end if attributes.key?(:'set_cookie') self. = attributes[:'set_cookie'] end if attributes.key?(:'variables') if (value = attributes[:'variables']).is_a?(Array) self.variables = value end end end |
Instance Attribute Details
#assertions ⇒ Object
Array of assertions used for the test.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 27 def assertions @assertions end |
#config_variables ⇒ Object
Array of variables used for the test.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 30 def config_variables @config_variables end |
#request ⇒ Object
Returns the value of attribute request.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 32 def request @request end |
#set_cookie ⇒ Object
Cookies to be used for the request, using the [Set-Cookie](developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 35 def @set_cookie end |
#variables ⇒ Object
Array of variables used for the test steps.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb', line 38 def variables @variables end |