@@ -57,12 +57,15 @@ class SyntheticsTestRequest
5757 # DNS server port to use for DNS tests.
5858 attr_accessor :dns_server_port
5959
60- # Files to be used as part of the request in the test.
60+ # Files to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
6161 attr_accessor :files
6262
6363 # Specifies whether or not the request follows redirects.
6464 attr_accessor :follow_redirects
6565
66+ # Form to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
67+ attr_accessor :form
68+
6669 # Headers to include when performing the test.
6770 attr_accessor :headers
6871
@@ -139,6 +142,7 @@ def self.attribute_map
139142 :'dns_server_port' => :'dnsServerPort' ,
140143 :'files' => :'files' ,
141144 :'follow_redirects' => :'follow_redirects' ,
145+ :'form' => :'form' ,
142146 :'headers' => :'headers' ,
143147 :'host' => :'host' ,
144148 :'http_version' => :'httpVersion' ,
@@ -178,6 +182,7 @@ def self.openapi_types
178182 :'dns_server_port' => :'String' ,
179183 :'files' => :'Array<SyntheticsTestRequestBodyFile>' ,
180184 :'follow_redirects' => :'Boolean' ,
185+ :'form' => :'Hash<String, String>' ,
181186 :'headers' => :'Hash<String, String>' ,
182187 :'host' => :'String' ,
183188 :'http_version' => :'SyntheticsTestOptionsHTTPVersion' ,
@@ -277,6 +282,10 @@ def initialize(attributes = {})
277282 self . follow_redirects = attributes [ :'follow_redirects' ]
278283 end
279284
285+ if attributes . key? ( :'form' )
286+ self . form = attributes [ :'form' ]
287+ end
288+
280289 if attributes . key? ( :'headers' )
281290 self . headers = attributes [ :'headers' ]
282291 end
@@ -412,6 +421,7 @@ def ==(o)
412421 dns_server_port == o . dns_server_port &&
413422 files == o . files &&
414423 follow_redirects == o . follow_redirects &&
424+ form == o . form &&
415425 headers == o . headers &&
416426 host == o . host &&
417427 http_version == o . http_version &&
@@ -437,7 +447,7 @@ def ==(o)
437447 # @return [Integer] Hash code
438448 # @!visibility private
439449 def hash
440- [ allow_insecure , basic_auth , body , body_type , call_type , certificate , certificate_domains , check_certificate_revocation , compressed_json_descriptor , compressed_proto_file , dns_server , dns_server_port , files , follow_redirects , headers , host , http_version , is_message_base64_encoded , 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
450+ [ allow_insecure , basic_auth , body , body_type , call_type , certificate , certificate_domains , check_certificate_revocation , compressed_json_descriptor , compressed_proto_file , dns_server , dns_server_port , files , follow_redirects , form , headers , host , http_version , is_message_base64_encoded , 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
441451 end
442452 end
443453end
0 commit comments