@@ -54,12 +54,15 @@ class SyntheticsTestRequest
5454 # DNS server port to use for DNS tests.
5555 attr_accessor :dns_server_port
5656
57- # Files to be used as part of the request in the test.
57+ # Files to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
5858 attr_accessor :files
5959
6060 # Specifies whether or not the request follows redirects.
6161 attr_accessor :follow_redirects
6262
63+ # Form to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
64+ attr_accessor :form
65+
6366 # Headers to include when performing the test.
6467 attr_accessor :headers
6568
@@ -132,6 +135,7 @@ def self.attribute_map
132135 :'dns_server_port' => :'dnsServerPort' ,
133136 :'files' => :'files' ,
134137 :'follow_redirects' => :'follow_redirects' ,
138+ :'form' => :'form' ,
135139 :'headers' => :'headers' ,
136140 :'host' => :'host' ,
137141 :'http_version' => :'httpVersion' ,
@@ -169,6 +173,7 @@ def self.openapi_types
169173 :'dns_server_port' => :'String' ,
170174 :'files' => :'Array<SyntheticsTestRequestBodyFile>' ,
171175 :'follow_redirects' => :'Boolean' ,
176+ :'form' => :'Hash<String, String>' ,
172177 :'headers' => :'Hash<String, String>' ,
173178 :'host' => :'String' ,
174179 :'http_version' => :'SyntheticsTestOptionsHTTPVersion' ,
@@ -263,6 +268,10 @@ def initialize(attributes = {})
263268 self . follow_redirects = attributes [ :'follow_redirects' ]
264269 end
265270
271+ if attributes . key? ( :'form' )
272+ self . form = attributes [ :'form' ]
273+ end
274+
266275 if attributes . key? ( :'headers' )
267276 self . headers = attributes [ :'headers' ]
268277 end
@@ -393,6 +402,7 @@ def ==(o)
393402 dns_server_port == o . dns_server_port &&
394403 files == o . files &&
395404 follow_redirects == o . follow_redirects &&
405+ form == o . form &&
396406 headers == o . headers &&
397407 host == o . host &&
398408 http_version == o . http_version &&
@@ -417,7 +427,7 @@ def ==(o)
417427 # @return [Integer] Hash code
418428 # @!visibility private
419429 def hash
420- [ allow_insecure , basic_auth , body , body_type , call_type , certificate , certificate_domains , compressed_json_descriptor , compressed_proto_file , dns_server , dns_server_port , files , follow_redirects , headers , host , http_version , message , metadata , method , no_saving_response_body , number_of_packets , persist_cookies , port , proxy , query , servername , service , should_track_hops , timeout , url , additional_properties ] . hash
430+ [ allow_insecure , basic_auth , body , body_type , call_type , certificate , certificate_domains , compressed_json_descriptor , compressed_proto_file , dns_server , dns_server_port , files , follow_redirects , form , headers , host , http_version , message , metadata , method , no_saving_response_body , number_of_packets , persist_cookies , port , proxy , query , servername , service , should_track_hops , timeout , url , additional_properties ] . hash
421431 end
422432 end
423433end
0 commit comments