Skip to content

Commit 79bfc90

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 13d993d of spec repo
1 parent 2ad4eb4 commit 79bfc90

11 files changed

Lines changed: 102 additions & 905 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -52255,8 +52255,6 @@ components:
5225552255
items:
5225652256
$ref: "#/components/schemas/OrgGroupMembershipData"
5225752257
type: array
52258-
links:
52259-
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5226052258
meta:
5226152259
$ref: "#/components/schemas/OrgGroupPaginationMeta"
5226252260
required:
@@ -52374,8 +52372,6 @@ components:
5237452372
items:
5237552373
$ref: "#/components/schemas/OrgGroupMembershipData"
5237652374
type: array
52377-
links:
52378-
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5237952375
meta:
5238052376
$ref: "#/components/schemas/OrgGroupPaginationMeta"
5238152377
required:
@@ -52476,71 +52472,24 @@ components:
5247652472
required:
5247752473
- data
5247852474
type: object
52479-
OrgGroupPaginationLinks:
52480-
description: Pagination links for navigating between pages of an org group list response.
52481-
properties:
52482-
first:
52483-
description: Link to the first page.
52484-
type: string
52485-
last:
52486-
description: Link to the last page.
52487-
type: string
52488-
next:
52489-
description: Link to the next page.
52490-
nullable: true
52491-
type: string
52492-
prev:
52493-
description: Link to the previous page.
52494-
nullable: true
52495-
type: string
52496-
self:
52497-
description: Link to the current page.
52498-
type: string
52499-
type: object
5250052475
OrgGroupPaginationMeta:
52501-
description: Pagination metadata for org group list responses.
52476+
description: Pagination metadata.
5250252477
properties:
5250352478
page:
5250452479
$ref: "#/components/schemas/OrgGroupPaginationMetaPage"
52480+
required:
52481+
- page
5250552482
type: object
5250652483
OrgGroupPaginationMetaPage:
52507-
description: Page-based pagination details for org group list responses.
52484+
description: Page-based pagination details.
5250852485
properties:
52509-
first_number:
52510-
description: First page number.
52511-
format: int64
52512-
type: integer
52513-
last_number:
52514-
description: Last page number.
52515-
format: int64
52516-
nullable: true
52517-
type: integer
52518-
next_number:
52519-
description: Next page number.
52520-
format: int64
52521-
nullable: true
52522-
type: integer
52523-
number:
52524-
description: Page number.
52525-
format: int64
52526-
type: integer
52527-
prev_number:
52528-
description: Previous page number.
52529-
format: int64
52530-
nullable: true
52531-
type: integer
52532-
size:
52533-
description: Page size.
52534-
format: int64
52535-
type: integer
52536-
total:
52537-
description: Total number of results.
52486+
total_count:
52487+
description: The total number of items.
52488+
example: 42
5253852489
format: int64
5253952490
type: integer
52540-
type:
52541-
description: Pagination type.
52542-
example: "number_size"
52543-
type: string
52491+
required:
52492+
- total_count
5254452493
type: object
5254552494
OrgGroupPolicyAttributes:
5254652495
description: Attributes of an org group policy.
@@ -52730,8 +52679,6 @@ components:
5273052679
items:
5273152680
$ref: "#/components/schemas/OrgGroupPolicyData"
5273252681
type: array
52733-
links:
52734-
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5273552682
meta:
5273652683
$ref: "#/components/schemas/OrgGroupPaginationMeta"
5273752684
required:
@@ -52845,8 +52792,6 @@ components:
5284552792
items:
5284652793
$ref: "#/components/schemas/OrgGroupPolicyOverrideData"
5284752794
type: array
52848-
links:
52849-
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5285052795
meta:
5285152796
$ref: "#/components/schemas/OrgGroupPaginationMeta"
5285252797
required:
@@ -112046,22 +111991,9 @@ paths:
112046111991
id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
112047111992
type: org_groups
112048111993
type: org_group_memberships
112049-
links:
112050-
first: "https://api.datadoghq.com/api/v2/org_group_memberships?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112051-
last: "https://api.datadoghq.com/api/v2/org_group_memberships?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112052-
next:
112053-
prev:
112054-
self: "https://api.datadoghq.com/api/v2/org_group_memberships?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112055111994
meta:
112056111995
page:
112057-
first_number: 0
112058-
last_number: 0
112059-
next_number:
112060-
number: 0
112061-
prev_number:
112062-
size: 50
112063-
total: 1
112064-
type: number_size
111996+
total_count: 1
112065111997
schema:
112066111998
$ref: "#/components/schemas/OrgGroupMembershipListResponse"
112067111999
description: OK
@@ -112360,22 +112292,9 @@ paths:
112360112292
id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
112361112293
type: org_groups
112362112294
type: org_group_policies
112363-
links:
112364-
first: "https://api.datadoghq.com/api/v2/org_group_policies?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112365-
last: "https://api.datadoghq.com/api/v2/org_group_policies?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112366-
next:
112367-
prev:
112368-
self: "https://api.datadoghq.com/api/v2/org_group_policies?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112369112295
meta:
112370112296
page:
112371-
first_number: 0
112372-
last_number: 0
112373-
next_number:
112374-
number: 0
112375-
prev_number:
112376-
size: 50
112377-
total: 1
112378-
type: number_size
112297+
total_count: 1
112379112298
schema:
112380112299
$ref: "#/components/schemas/OrgGroupPolicyListResponse"
112381112300
description: OK
@@ -112764,22 +112683,9 @@ paths:
112764112683
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
112765112684
type: org_group_policies
112766112685
type: org_group_policy_overrides
112767-
links:
112768-
first: "https://api.datadoghq.com/api/v2/org_group_policy_overrides?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112769-
last: "https://api.datadoghq.com/api/v2/org_group_policy_overrides?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112770-
next:
112771-
prev:
112772-
self: "https://api.datadoghq.com/api/v2/org_group_policy_overrides?filter%5Borg_group_id%5D=a1b2c3d4-e5f6-7890-abcd-ef0123456789&page%5Bnumber%5D=0&page%5Bsize%5D=50"
112773112686
meta:
112774112687
page:
112775-
first_number: 0
112776-
last_number: 0
112777-
next_number:
112778-
number: 0
112779-
prev_number:
112780-
size: 50
112781-
total: 1
112782-
type: number_size
112688+
total_count: 1
112783112689
schema:
112784112690
$ref: "#/components/schemas/OrgGroupPolicyOverrideListResponse"
112785112691
description: OK
@@ -113118,22 +113024,9 @@ paths:
113118113024
owner_org_uuid: "b2c3d4e5-f6a7-8901-bcde-f01234567890"
113119113025
id: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
113120113026
type: org_groups
113121-
links:
113122-
first: "https://api.datadoghq.com/api/v2/org_groups?page%5Bnumber%5D=0&page%5Bsize%5D=50"
113123-
last: "https://api.datadoghq.com/api/v2/org_groups?page%5Bnumber%5D=0&page%5Bsize%5D=50"
113124-
next:
113125-
prev:
113126-
self: "https://api.datadoghq.com/api/v2/org_groups?page%5Bnumber%5D=0&page%5Bsize%5D=50"
113127113027
meta:
113128113028
page:
113129-
first_number: 0
113130-
last_number: 0
113131-
next_number:
113132-
number: 0
113133-
prev_number:
113134-
size: 50
113135-
total: 1
113136-
type: number_size
113029+
total_count: 1
113137113030
schema:
113138113031
$ref: "#/components/schemas/OrgGroupListResponse"
113139113032
description: OK

api/datadogV2/model_org_group_list_response.go

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ type OrgGroupListResponse struct {
1616
Data []OrgGroupData `json:"data"`
1717
// Related resources included in the response when requested with the `include` parameter.
1818
Included []OrgGroupMembershipData `json:"included,omitempty"`
19-
// Pagination links for navigating between pages of an org group list response.
20-
Links *OrgGroupPaginationLinks `json:"links,omitempty"`
21-
// Pagination metadata for org group list responses.
19+
// Pagination metadata.
2220
Meta *OrgGroupPaginationMeta `json:"meta,omitempty"`
2321
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2422
UnparsedObject map[string]interface{} `json:"-"`
@@ -94,34 +92,6 @@ func (o *OrgGroupListResponse) SetIncluded(v []OrgGroupMembershipData) {
9492
o.Included = v
9593
}
9694

97-
// GetLinks returns the Links field value if set, zero value otherwise.
98-
func (o *OrgGroupListResponse) GetLinks() OrgGroupPaginationLinks {
99-
if o == nil || o.Links == nil {
100-
var ret OrgGroupPaginationLinks
101-
return ret
102-
}
103-
return *o.Links
104-
}
105-
106-
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
107-
// and a boolean to check if the value has been set.
108-
func (o *OrgGroupListResponse) GetLinksOk() (*OrgGroupPaginationLinks, bool) {
109-
if o == nil || o.Links == nil {
110-
return nil, false
111-
}
112-
return o.Links, true
113-
}
114-
115-
// HasLinks returns a boolean if a field has been set.
116-
func (o *OrgGroupListResponse) HasLinks() bool {
117-
return o != nil && o.Links != nil
118-
}
119-
120-
// SetLinks gets a reference to the given OrgGroupPaginationLinks and assigns it to the Links field.
121-
func (o *OrgGroupListResponse) SetLinks(v OrgGroupPaginationLinks) {
122-
o.Links = &v
123-
}
124-
12595
// GetMeta returns the Meta field value if set, zero value otherwise.
12696
func (o *OrgGroupListResponse) GetMeta() OrgGroupPaginationMeta {
12797
if o == nil || o.Meta == nil {
@@ -160,9 +130,6 @@ func (o OrgGroupListResponse) MarshalJSON() ([]byte, error) {
160130
if o.Included != nil {
161131
toSerialize["included"] = o.Included
162132
}
163-
if o.Links != nil {
164-
toSerialize["links"] = o.Links
165-
}
166133
if o.Meta != nil {
167134
toSerialize["meta"] = o.Meta
168135
}
@@ -178,7 +145,6 @@ func (o *OrgGroupListResponse) UnmarshalJSON(bytes []byte) (err error) {
178145
all := struct {
179146
Data *[]OrgGroupData `json:"data"`
180147
Included []OrgGroupMembershipData `json:"included,omitempty"`
181-
Links *OrgGroupPaginationLinks `json:"links,omitempty"`
182148
Meta *OrgGroupPaginationMeta `json:"meta,omitempty"`
183149
}{}
184150
if err = datadog.Unmarshal(bytes, &all); err != nil {
@@ -189,18 +155,14 @@ func (o *OrgGroupListResponse) UnmarshalJSON(bytes []byte) (err error) {
189155
}
190156
additionalProperties := make(map[string]interface{})
191157
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
192-
datadog.DeleteKeys(additionalProperties, &[]string{"data", "included", "links", "meta"})
158+
datadog.DeleteKeys(additionalProperties, &[]string{"data", "included", "meta"})
193159
} else {
194160
return err
195161
}
196162

197163
hasInvalidField := false
198164
o.Data = *all.Data
199165
o.Included = all.Included
200-
if all.Links != nil && all.Links.UnparsedObject != nil && o.UnparsedObject == nil {
201-
hasInvalidField = true
202-
}
203-
o.Links = all.Links
204166
if all.Meta != nil && all.Meta.UnparsedObject != nil && o.UnparsedObject == nil {
205167
hasInvalidField = true
206168
}

api/datadogV2/model_org_group_membership_list_response.go

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ import (
1414
type OrgGroupMembershipListResponse struct {
1515
// An array of org group memberships.
1616
Data []OrgGroupMembershipData `json:"data"`
17-
// Pagination links for navigating between pages of an org group list response.
18-
Links *OrgGroupPaginationLinks `json:"links,omitempty"`
19-
// Pagination metadata for org group list responses.
17+
// Pagination metadata.
2018
Meta *OrgGroupPaginationMeta `json:"meta,omitempty"`
2119
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
2220
UnparsedObject map[string]interface{} `json:"-"`
@@ -64,34 +62,6 @@ func (o *OrgGroupMembershipListResponse) SetData(v []OrgGroupMembershipData) {
6462
o.Data = v
6563
}
6664

67-
// GetLinks returns the Links field value if set, zero value otherwise.
68-
func (o *OrgGroupMembershipListResponse) GetLinks() OrgGroupPaginationLinks {
69-
if o == nil || o.Links == nil {
70-
var ret OrgGroupPaginationLinks
71-
return ret
72-
}
73-
return *o.Links
74-
}
75-
76-
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
77-
// and a boolean to check if the value has been set.
78-
func (o *OrgGroupMembershipListResponse) GetLinksOk() (*OrgGroupPaginationLinks, bool) {
79-
if o == nil || o.Links == nil {
80-
return nil, false
81-
}
82-
return o.Links, true
83-
}
84-
85-
// HasLinks returns a boolean if a field has been set.
86-
func (o *OrgGroupMembershipListResponse) HasLinks() bool {
87-
return o != nil && o.Links != nil
88-
}
89-
90-
// SetLinks gets a reference to the given OrgGroupPaginationLinks and assigns it to the Links field.
91-
func (o *OrgGroupMembershipListResponse) SetLinks(v OrgGroupPaginationLinks) {
92-
o.Links = &v
93-
}
94-
9565
// GetMeta returns the Meta field value if set, zero value otherwise.
9666
func (o *OrgGroupMembershipListResponse) GetMeta() OrgGroupPaginationMeta {
9767
if o == nil || o.Meta == nil {
@@ -127,9 +97,6 @@ func (o OrgGroupMembershipListResponse) MarshalJSON() ([]byte, error) {
12797
return datadog.Marshal(o.UnparsedObject)
12898
}
12999
toSerialize["data"] = o.Data
130-
if o.Links != nil {
131-
toSerialize["links"] = o.Links
132-
}
133100
if o.Meta != nil {
134101
toSerialize["meta"] = o.Meta
135102
}
@@ -143,9 +110,8 @@ func (o OrgGroupMembershipListResponse) MarshalJSON() ([]byte, error) {
143110
// UnmarshalJSON deserializes the given payload.
144111
func (o *OrgGroupMembershipListResponse) UnmarshalJSON(bytes []byte) (err error) {
145112
all := struct {
146-
Data *[]OrgGroupMembershipData `json:"data"`
147-
Links *OrgGroupPaginationLinks `json:"links,omitempty"`
148-
Meta *OrgGroupPaginationMeta `json:"meta,omitempty"`
113+
Data *[]OrgGroupMembershipData `json:"data"`
114+
Meta *OrgGroupPaginationMeta `json:"meta,omitempty"`
149115
}{}
150116
if err = datadog.Unmarshal(bytes, &all); err != nil {
151117
return datadog.Unmarshal(bytes, &o.UnparsedObject)
@@ -155,17 +121,13 @@ func (o *OrgGroupMembershipListResponse) UnmarshalJSON(bytes []byte) (err error)
155121
}
156122
additionalProperties := make(map[string]interface{})
157123
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
158-
datadog.DeleteKeys(additionalProperties, &[]string{"data", "links", "meta"})
124+
datadog.DeleteKeys(additionalProperties, &[]string{"data", "meta"})
159125
} else {
160126
return err
161127
}
162128

163129
hasInvalidField := false
164130
o.Data = *all.Data
165-
if all.Links != nil && all.Links.UnparsedObject != nil && o.UnparsedObject == nil {
166-
hasInvalidField = true
167-
}
168-
o.Links = all.Links
169131
if all.Meta != nil && all.Meta.UnparsedObject != nil && o.UnparsedObject == nil {
170132
hasInvalidField = true
171133
}

0 commit comments

Comments
 (0)