@@ -22,6 +22,8 @@ type SyntheticsAPITestStep struct {
2222 ExtractedValues []SyntheticsParsingOptions `json:"extractedValues,omitempty"`
2323 // Generate variables using JavaScript.
2424 ExtractedValuesFromScript * string `json:"extractedValuesFromScript,omitempty"`
25+ // ID of the step.
26+ Id * string `json:"id,omitempty"`
2527 // Determines whether or not to consider the entire test as failed if this step fails.
2628 // Can be used only if `allowFailure` is `true`.
2729 IsCritical * bool `json:"isCritical,omitempty"`
@@ -194,6 +196,34 @@ func (o *SyntheticsAPITestStep) SetExtractedValuesFromScript(v string) {
194196 o .ExtractedValuesFromScript = & v
195197}
196198
199+ // GetId returns the Id field value if set, zero value otherwise.
200+ func (o * SyntheticsAPITestStep ) GetId () string {
201+ if o == nil || o .Id == nil {
202+ var ret string
203+ return ret
204+ }
205+ return * o .Id
206+ }
207+
208+ // GetIdOk returns a tuple with the Id field value if set, nil otherwise
209+ // and a boolean to check if the value has been set.
210+ func (o * SyntheticsAPITestStep ) GetIdOk () (* string , bool ) {
211+ if o == nil || o .Id == nil {
212+ return nil , false
213+ }
214+ return o .Id , true
215+ }
216+
217+ // HasId returns a boolean if a field has been set.
218+ func (o * SyntheticsAPITestStep ) HasId () bool {
219+ return o != nil && o .Id != nil
220+ }
221+
222+ // SetId gets a reference to the given string and assigns it to the Id field.
223+ func (o * SyntheticsAPITestStep ) SetId (v string ) {
224+ o .Id = & v
225+ }
226+
197227// GetIsCritical returns the IsCritical field value if set, zero value otherwise.
198228func (o * SyntheticsAPITestStep ) GetIsCritical () bool {
199229 if o == nil || o .IsCritical == nil {
@@ -338,6 +368,9 @@ func (o SyntheticsAPITestStep) MarshalJSON() ([]byte, error) {
338368 if o .ExtractedValuesFromScript != nil {
339369 toSerialize ["extractedValuesFromScript" ] = o .ExtractedValuesFromScript
340370 }
371+ if o .Id != nil {
372+ toSerialize ["id" ] = o .Id
373+ }
341374 if o .IsCritical != nil {
342375 toSerialize ["isCritical" ] = o .IsCritical
343376 }
@@ -362,6 +395,7 @@ func (o *SyntheticsAPITestStep) UnmarshalJSON(bytes []byte) (err error) {
362395 ExitIfSucceed * bool `json:"exitIfSucceed,omitempty"`
363396 ExtractedValues []SyntheticsParsingOptions `json:"extractedValues,omitempty"`
364397 ExtractedValuesFromScript * string `json:"extractedValuesFromScript,omitempty"`
398+ Id * string `json:"id,omitempty"`
365399 IsCritical * bool `json:"isCritical,omitempty"`
366400 Name * string `json:"name"`
367401 Request * SyntheticsTestRequest `json:"request"`
@@ -385,7 +419,7 @@ func (o *SyntheticsAPITestStep) UnmarshalJSON(bytes []byte) (err error) {
385419 }
386420 additionalProperties := make (map [string ]interface {})
387421 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
388- datadog .DeleteKeys (additionalProperties , & []string {"allowFailure" , "assertions" , "exitIfSucceed" , "extractedValues" , "extractedValuesFromScript" , "isCritical" , "name" , "request" , "retry" , "subtype" })
422+ datadog .DeleteKeys (additionalProperties , & []string {"allowFailure" , "assertions" , "exitIfSucceed" , "extractedValues" , "extractedValuesFromScript" , "id" , " isCritical" , "name" , "request" , "retry" , "subtype" })
389423 } else {
390424 return err
391425 }
@@ -396,6 +430,7 @@ func (o *SyntheticsAPITestStep) UnmarshalJSON(bytes []byte) (err error) {
396430 o .ExitIfSucceed = all .ExitIfSucceed
397431 o .ExtractedValues = all .ExtractedValues
398432 o .ExtractedValuesFromScript = all .ExtractedValuesFromScript
433+ o .Id = all .Id
399434 o .IsCritical = all .IsCritical
400435 o .Name = * all .Name
401436 if all .Request .UnparsedObject != nil && o .UnparsedObject == nil {
0 commit comments