Skip to content

Commit 64c70c6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 61aecfb of spec repo
1 parent 9614de2 commit 64c70c6

146 files changed

Lines changed: 23158 additions & 711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 2458 additions & 82 deletions
Large diffs are not rendered by default.

api/datadogV2/api_status_pages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (r *CreateStatusPageOptionalParameters) WithInclude(include string) *Create
381381
}
382382

383383
// CreateStatusPage Create status page.
384-
// Creates a new status page. **Note**: Publishing a status page on creation via the `enabled` property will be deprecated. Use the dedicated [publish](#publish-status-page) status page endpoint after creation instead.
384+
// Creates a new status page in an unpublished state. Use the dedicated [publish](#publish-status-page) status page endpoint to publish the page after creation.
385385
func (a *StatusPagesApi) CreateStatusPage(ctx _context.Context, body CreateStatusPageRequest, o ...CreateStatusPageOptionalParameters) (StatusPage, *_nethttp.Response, error) {
386386
var (
387387
localVarHTTPMethod = _nethttp.MethodPost

api/datadogV2/api_synthetics.go

Lines changed: 658 additions & 0 deletions
Large diffs are not rendered by default.

api/datadogV2/doc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,16 +924,21 @@
924924
// - [SyntheticsApi.GetApiMultistepSubtestParents]
925925
// - [SyntheticsApi.GetApiMultistepSubtests]
926926
// - [SyntheticsApi.GetOnDemandConcurrencyCap]
927+
// - [SyntheticsApi.GetSyntheticsBrowserTestResult]
927928
// - [SyntheticsApi.GetSyntheticsFastTestResult]
928929
// - [SyntheticsApi.GetSyntheticsNetworkTest]
929930
// - [SyntheticsApi.GetSyntheticsSuite]
931+
// - [SyntheticsApi.GetSyntheticsTestResult]
930932
// - [SyntheticsApi.GetSyntheticsTestVersion]
931933
// - [SyntheticsApi.GetTestFileDownloadUrl]
932934
// - [SyntheticsApi.GetTestFileMultipartPresignedUrls]
933935
// - [SyntheticsApi.GetTestParentSuites]
936+
// - [SyntheticsApi.ListSyntheticsBrowserTestLatestResults]
937+
// - [SyntheticsApi.ListSyntheticsTestLatestResults]
934938
// - [SyntheticsApi.ListSyntheticsTestVersions]
935939
// - [SyntheticsApi.PatchGlobalVariable]
936940
// - [SyntheticsApi.PatchTestSuite]
941+
// - [SyntheticsApi.PollSyntheticsTestResults]
937942
// - [SyntheticsApi.SearchSuites]
938943
// - [SyntheticsApi.SetOnDemandConcurrencyCap]
939944
// - [SyntheticsApi.UpdateSyntheticsNetworkTest]

api/datadogV2/model_create_status_page_request_data_attributes.go

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ type CreateStatusPageRequestDataAttributes struct {
2020
DomainPrefix string `json:"domain_prefix"`
2121
// Base64-encoded image data included in email notifications sent to status page subscribers.
2222
EmailHeaderImage *string `json:"email_header_image,omitempty"`
23-
// Whether the status page is enabled.
24-
Enabled bool `json:"enabled"`
2523
// Base64-encoded image data displayed in the browser tab.
2624
Favicon *string `json:"favicon,omitempty"`
2725
// The name of the status page.
@@ -41,10 +39,9 @@ type CreateStatusPageRequestDataAttributes struct {
4139
// This constructor will assign default values to properties that have it defined,
4240
// and makes sure properties required by API are set, but the set of arguments
4341
// will change when the set of required properties is changed.
44-
func NewCreateStatusPageRequestDataAttributes(domainPrefix string, enabled bool, name string, typeVar CreateStatusPageRequestDataAttributesType, visualizationType CreateStatusPageRequestDataAttributesVisualizationType) *CreateStatusPageRequestDataAttributes {
42+
func NewCreateStatusPageRequestDataAttributes(domainPrefix string, name string, typeVar CreateStatusPageRequestDataAttributesType, visualizationType CreateStatusPageRequestDataAttributesVisualizationType) *CreateStatusPageRequestDataAttributes {
4543
this := CreateStatusPageRequestDataAttributes{}
4644
this.DomainPrefix = domainPrefix
47-
this.Enabled = enabled
4845
this.Name = name
4946
this.Type = typeVar
5047
this.VisualizationType = visualizationType
@@ -166,29 +163,6 @@ func (o *CreateStatusPageRequestDataAttributes) SetEmailHeaderImage(v string) {
166163
o.EmailHeaderImage = &v
167164
}
168165

169-
// GetEnabled returns the Enabled field value.
170-
func (o *CreateStatusPageRequestDataAttributes) GetEnabled() bool {
171-
if o == nil {
172-
var ret bool
173-
return ret
174-
}
175-
return o.Enabled
176-
}
177-
178-
// GetEnabledOk returns a tuple with the Enabled field value
179-
// and a boolean to check if the value has been set.
180-
func (o *CreateStatusPageRequestDataAttributes) GetEnabledOk() (*bool, bool) {
181-
if o == nil {
182-
return nil, false
183-
}
184-
return &o.Enabled, true
185-
}
186-
187-
// SetEnabled sets field value.
188-
func (o *CreateStatusPageRequestDataAttributes) SetEnabled(v bool) {
189-
o.Enabled = v
190-
}
191-
192166
// GetFavicon returns the Favicon field value if set, zero value otherwise.
193167
func (o *CreateStatusPageRequestDataAttributes) GetFavicon() string {
194168
if o == nil || o.Favicon == nil {
@@ -330,7 +304,6 @@ func (o CreateStatusPageRequestDataAttributes) MarshalJSON() ([]byte, error) {
330304
if o.EmailHeaderImage != nil {
331305
toSerialize["email_header_image"] = o.EmailHeaderImage
332306
}
333-
toSerialize["enabled"] = o.Enabled
334307
if o.Favicon != nil {
335308
toSerialize["favicon"] = o.Favicon
336309
}
@@ -354,7 +327,6 @@ func (o *CreateStatusPageRequestDataAttributes) UnmarshalJSON(bytes []byte) (err
354327
Components []CreateStatusPageRequestDataAttributesComponentsItems `json:"components,omitempty"`
355328
DomainPrefix *string `json:"domain_prefix"`
356329
EmailHeaderImage *string `json:"email_header_image,omitempty"`
357-
Enabled *bool `json:"enabled"`
358330
Favicon *string `json:"favicon,omitempty"`
359331
Name *string `json:"name"`
360332
SubscriptionsEnabled *bool `json:"subscriptions_enabled,omitempty"`
@@ -367,9 +339,6 @@ func (o *CreateStatusPageRequestDataAttributes) UnmarshalJSON(bytes []byte) (err
367339
if all.DomainPrefix == nil {
368340
return fmt.Errorf("required field domain_prefix missing")
369341
}
370-
if all.Enabled == nil {
371-
return fmt.Errorf("required field enabled missing")
372-
}
373342
if all.Name == nil {
374343
return fmt.Errorf("required field name missing")
375344
}
@@ -381,7 +350,7 @@ func (o *CreateStatusPageRequestDataAttributes) UnmarshalJSON(bytes []byte) (err
381350
}
382351
additionalProperties := make(map[string]interface{})
383352
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
384-
datadog.DeleteKeys(additionalProperties, &[]string{"company_logo", "components", "domain_prefix", "email_header_image", "enabled", "favicon", "name", "subscriptions_enabled", "type", "visualization_type"})
353+
datadog.DeleteKeys(additionalProperties, &[]string{"company_logo", "components", "domain_prefix", "email_header_image", "favicon", "name", "subscriptions_enabled", "type", "visualization_type"})
385354
} else {
386355
return err
387356
}
@@ -391,7 +360,6 @@ func (o *CreateStatusPageRequestDataAttributes) UnmarshalJSON(bytes []byte) (err
391360
o.Components = all.Components
392361
o.DomainPrefix = *all.DomainPrefix
393362
o.EmailHeaderImage = all.EmailHeaderImage
394-
o.Enabled = *all.Enabled
395363
o.Favicon = all.Favicon
396364
o.Name = *all.Name
397365
o.SubscriptionsEnabled = all.SubscriptionsEnabled

api/datadogV2/model_synthetics_fast_test_result_attributes.go

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ import (
1010

1111
// SyntheticsFastTestResultAttributes Attributes of the fast test result.
1212
type SyntheticsFastTestResultAttributes struct {
13-
// Device information for browser-based fast tests.
14-
Device *SyntheticsFastTestResultDevice `json:"device,omitempty"`
15-
// Location from which the fast test was executed.
16-
Location *SyntheticsFastTestResultLocation `json:"location,omitempty"`
13+
// Device information for the test result (browser and mobile tests).
14+
Device *SyntheticsTestResultDevice `json:"device,omitempty"`
15+
// Location information for a Synthetic test result.
16+
Location *SyntheticsTestResultLocation `json:"location,omitempty"`
1717
// Detailed result data for the fast test run. The exact shape of nested fields
1818
// (`request`, `response`, `assertions`, etc.) depends on the test subtype.
1919
Result *SyntheticsFastTestResultDetail `json:"result,omitempty"`
2020
// Subtype of the Synthetic test that produced this result.
2121
TestSubType *SyntheticsFastTestSubType `json:"test_sub_type,omitempty"`
22-
// The type of the Synthetic test that produced this result (for example, `api` or `browser`).
23-
TestType *string `json:"test_type,omitempty"`
22+
// Type of the Synthetic fast test that produced this result.
23+
TestType *SyntheticsFastTestType `json:"test_type,omitempty"`
2424
// Version of the test at the time the fast test was triggered.
2525
TestVersion *int64 `json:"test_version,omitempty"`
2626
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -46,17 +46,17 @@ func NewSyntheticsFastTestResultAttributesWithDefaults() *SyntheticsFastTestResu
4646
}
4747

4848
// GetDevice returns the Device field value if set, zero value otherwise.
49-
func (o *SyntheticsFastTestResultAttributes) GetDevice() SyntheticsFastTestResultDevice {
49+
func (o *SyntheticsFastTestResultAttributes) GetDevice() SyntheticsTestResultDevice {
5050
if o == nil || o.Device == nil {
51-
var ret SyntheticsFastTestResultDevice
51+
var ret SyntheticsTestResultDevice
5252
return ret
5353
}
5454
return *o.Device
5555
}
5656

5757
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
5858
// and a boolean to check if the value has been set.
59-
func (o *SyntheticsFastTestResultAttributes) GetDeviceOk() (*SyntheticsFastTestResultDevice, bool) {
59+
func (o *SyntheticsFastTestResultAttributes) GetDeviceOk() (*SyntheticsTestResultDevice, bool) {
6060
if o == nil || o.Device == nil {
6161
return nil, false
6262
}
@@ -68,23 +68,23 @@ func (o *SyntheticsFastTestResultAttributes) HasDevice() bool {
6868
return o != nil && o.Device != nil
6969
}
7070

71-
// SetDevice gets a reference to the given SyntheticsFastTestResultDevice and assigns it to the Device field.
72-
func (o *SyntheticsFastTestResultAttributes) SetDevice(v SyntheticsFastTestResultDevice) {
71+
// SetDevice gets a reference to the given SyntheticsTestResultDevice and assigns it to the Device field.
72+
func (o *SyntheticsFastTestResultAttributes) SetDevice(v SyntheticsTestResultDevice) {
7373
o.Device = &v
7474
}
7575

7676
// GetLocation returns the Location field value if set, zero value otherwise.
77-
func (o *SyntheticsFastTestResultAttributes) GetLocation() SyntheticsFastTestResultLocation {
77+
func (o *SyntheticsFastTestResultAttributes) GetLocation() SyntheticsTestResultLocation {
7878
if o == nil || o.Location == nil {
79-
var ret SyntheticsFastTestResultLocation
79+
var ret SyntheticsTestResultLocation
8080
return ret
8181
}
8282
return *o.Location
8383
}
8484

8585
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
8686
// and a boolean to check if the value has been set.
87-
func (o *SyntheticsFastTestResultAttributes) GetLocationOk() (*SyntheticsFastTestResultLocation, bool) {
87+
func (o *SyntheticsFastTestResultAttributes) GetLocationOk() (*SyntheticsTestResultLocation, bool) {
8888
if o == nil || o.Location == nil {
8989
return nil, false
9090
}
@@ -96,8 +96,8 @@ func (o *SyntheticsFastTestResultAttributes) HasLocation() bool {
9696
return o != nil && o.Location != nil
9797
}
9898

99-
// SetLocation gets a reference to the given SyntheticsFastTestResultLocation and assigns it to the Location field.
100-
func (o *SyntheticsFastTestResultAttributes) SetLocation(v SyntheticsFastTestResultLocation) {
99+
// SetLocation gets a reference to the given SyntheticsTestResultLocation and assigns it to the Location field.
100+
func (o *SyntheticsFastTestResultAttributes) SetLocation(v SyntheticsTestResultLocation) {
101101
o.Location = &v
102102
}
103103

@@ -158,17 +158,17 @@ func (o *SyntheticsFastTestResultAttributes) SetTestSubType(v SyntheticsFastTest
158158
}
159159

160160
// GetTestType returns the TestType field value if set, zero value otherwise.
161-
func (o *SyntheticsFastTestResultAttributes) GetTestType() string {
161+
func (o *SyntheticsFastTestResultAttributes) GetTestType() SyntheticsFastTestType {
162162
if o == nil || o.TestType == nil {
163-
var ret string
163+
var ret SyntheticsFastTestType
164164
return ret
165165
}
166166
return *o.TestType
167167
}
168168

169169
// GetTestTypeOk returns a tuple with the TestType field value if set, nil otherwise
170170
// and a boolean to check if the value has been set.
171-
func (o *SyntheticsFastTestResultAttributes) GetTestTypeOk() (*string, bool) {
171+
func (o *SyntheticsFastTestResultAttributes) GetTestTypeOk() (*SyntheticsFastTestType, bool) {
172172
if o == nil || o.TestType == nil {
173173
return nil, false
174174
}
@@ -180,8 +180,8 @@ func (o *SyntheticsFastTestResultAttributes) HasTestType() bool {
180180
return o != nil && o.TestType != nil
181181
}
182182

183-
// SetTestType gets a reference to the given string and assigns it to the TestType field.
184-
func (o *SyntheticsFastTestResultAttributes) SetTestType(v string) {
183+
// SetTestType gets a reference to the given SyntheticsFastTestType and assigns it to the TestType field.
184+
func (o *SyntheticsFastTestResultAttributes) SetTestType(v SyntheticsFastTestType) {
185185
o.TestType = &v
186186
}
187187

@@ -247,12 +247,12 @@ func (o SyntheticsFastTestResultAttributes) MarshalJSON() ([]byte, error) {
247247
// UnmarshalJSON deserializes the given payload.
248248
func (o *SyntheticsFastTestResultAttributes) UnmarshalJSON(bytes []byte) (err error) {
249249
all := struct {
250-
Device *SyntheticsFastTestResultDevice `json:"device,omitempty"`
251-
Location *SyntheticsFastTestResultLocation `json:"location,omitempty"`
252-
Result *SyntheticsFastTestResultDetail `json:"result,omitempty"`
253-
TestSubType *SyntheticsFastTestSubType `json:"test_sub_type,omitempty"`
254-
TestType *string `json:"test_type,omitempty"`
255-
TestVersion *int64 `json:"test_version,omitempty"`
250+
Device *SyntheticsTestResultDevice `json:"device,omitempty"`
251+
Location *SyntheticsTestResultLocation `json:"location,omitempty"`
252+
Result *SyntheticsFastTestResultDetail `json:"result,omitempty"`
253+
TestSubType *SyntheticsFastTestSubType `json:"test_sub_type,omitempty"`
254+
TestType *SyntheticsFastTestType `json:"test_type,omitempty"`
255+
TestVersion *int64 `json:"test_version,omitempty"`
256256
}{}
257257
if err = datadog.Unmarshal(bytes, &all); err != nil {
258258
return datadog.Unmarshal(bytes, &o.UnparsedObject)
@@ -282,7 +282,11 @@ func (o *SyntheticsFastTestResultAttributes) UnmarshalJSON(bytes []byte) (err er
282282
} else {
283283
o.TestSubType = all.TestSubType
284284
}
285-
o.TestType = all.TestType
285+
if all.TestType != nil && !all.TestType.IsValid() {
286+
hasInvalidField = true
287+
} else {
288+
o.TestType = all.TestType
289+
}
286290
o.TestVersion = all.TestVersion
287291

288292
if len(additionalProperties) > 0 {

0 commit comments

Comments
 (0)