Skip to content

Commit

Permalink
Adds noScreenshot to SyntheticsStep (#1739)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 3, 2022
1 parent 88ce34f commit 92a9c3e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2022-11-01 20:07:43.573428",
"spec_repo_commit": "deeff34e"
"regenerated": "2022-11-02 20:10:47.186007",
"spec_repo_commit": "7c5579df"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-11-01 20:07:43.591441",
"spec_repo_commit": "deeff34e"
"regenerated": "2022-11-02 20:10:47.202972",
"spec_repo_commit": "7c5579df"
}
}
}
3 changes: 3 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12744,6 +12744,9 @@ components:
name:
description: The name of the step.
type: string
noScreenshot:
description: A boolean set to not take a screenshot for the step.
type: boolean
params:
description: The parameters of the step.
type: object
Expand Down
35 changes: 35 additions & 0 deletions api/datadogV1/model_synthetics_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type SyntheticsStep struct {
IsCritical *bool `json:"isCritical,omitempty"`
// The name of the step.
Name *string `json:"name,omitempty"`
// A boolean set to not take a screenshot for the step.
NoScreenshot *bool `json:"noScreenshot,omitempty"`
// The parameters of the step.
Params interface{} `json:"params,omitempty"`
// The time before declaring a step failed.
Expand Down Expand Up @@ -128,6 +130,34 @@ func (o *SyntheticsStep) SetName(v string) {
o.Name = &v
}

// GetNoScreenshot returns the NoScreenshot field value if set, zero value otherwise.
func (o *SyntheticsStep) GetNoScreenshot() bool {
if o == nil || o.NoScreenshot == nil {
var ret bool
return ret
}
return *o.NoScreenshot
}

// GetNoScreenshotOk returns a tuple with the NoScreenshot field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SyntheticsStep) GetNoScreenshotOk() (*bool, bool) {
if o == nil || o.NoScreenshot == nil {
return nil, false
}
return o.NoScreenshot, true
}

// HasNoScreenshot returns a boolean if a field has been set.
func (o *SyntheticsStep) HasNoScreenshot() bool {
return o != nil && o.NoScreenshot != nil
}

// SetNoScreenshot gets a reference to the given bool and assigns it to the NoScreenshot field.
func (o *SyntheticsStep) SetNoScreenshot(v bool) {
o.NoScreenshot = &v
}

// GetParams returns the Params field value if set, zero value otherwise.
func (o *SyntheticsStep) GetParams() interface{} {
if o == nil || o.Params == nil {
Expand Down Expand Up @@ -227,6 +257,9 @@ func (o SyntheticsStep) MarshalJSON() ([]byte, error) {
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.NoScreenshot != nil {
toSerialize["noScreenshot"] = o.NoScreenshot
}
if o.Params != nil {
toSerialize["params"] = o.Params
}
Expand All @@ -250,6 +283,7 @@ func (o *SyntheticsStep) UnmarshalJSON(bytes []byte) (err error) {
AllowFailure *bool `json:"allowFailure,omitempty"`
IsCritical *bool `json:"isCritical,omitempty"`
Name *string `json:"name,omitempty"`
NoScreenshot *bool `json:"noScreenshot,omitempty"`
Params interface{} `json:"params,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Type *SyntheticsStepType `json:"type,omitempty"`
Expand All @@ -274,6 +308,7 @@ func (o *SyntheticsStep) UnmarshalJSON(bytes []byte) (err error) {
o.AllowFailure = all.AllowFailure
o.IsCritical = all.IsCritical
o.Name = all.Name
o.NoScreenshot = all.NoScreenshot
o.Params = all.Params
o.Timeout = all.Timeout
o.Type = all.Type
Expand Down

0 comments on commit 92a9c3e

Please sign in to comment.