Skip to content

Commit 6446366

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 32dfab8 of spec repo
1 parent 5b35065 commit 6446366

15 files changed

Lines changed: 50 additions & 720 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,20 +1051,6 @@ components:
10511051
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
10521052
format: uuid
10531053
type: string
1054-
OrgGroupInclude:
1055-
description: >-
1056-
List of related resources to include.
1057-
explode: false
1058-
in: query
1059-
name: include
1060-
required: false
1061-
schema:
1062-
example:
1063-
- memberships
1064-
items:
1065-
$ref: "#/components/schemas/OrgGroupIncludeOption"
1066-
type: array
1067-
style: form
10681054
OrgGroupMembershipFilterOrgGroupId:
10691055
description: Filter memberships by org group ID. Required when `filter[org_uuid]` is not provided.
10701056
in: query
@@ -58973,22 +58959,13 @@ components:
5897358959
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5897458960
format: uuid
5897558961
type: string
58976-
relationships:
58977-
$ref: "#/components/schemas/OrgGroupRelationships"
5897858962
type:
5897958963
$ref: "#/components/schemas/OrgGroupType"
5898058964
required:
5898158965
- id
5898258966
- type
5898358967
- attributes
5898458968
type: object
58985-
OrgGroupIncludeOption:
58986-
description: Allowed include options for org group endpoints.
58987-
enum:
58988-
- memberships
58989-
type: string
58990-
x-enum-varnames:
58991-
- MEMBERSHIPS
5899258969
OrgGroupListResponse:
5899358970
description: Response containing a list of org groups.
5899458971
properties:
@@ -58997,11 +58974,6 @@ components:
5899758974
items:
5899858975
$ref: "#/components/schemas/OrgGroupData"
5899958976
type: array
59000-
included:
59001-
description: Related resources included in the response when requested with the `include` parameter.
59002-
items:
59003-
$ref: "#/components/schemas/OrgGroupMembershipData"
59004-
type: array
5900558977
links:
5900658978
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5900758979
meta:
@@ -59128,20 +59100,6 @@ components:
5912859100
required:
5912959101
- data
5913059102
type: object
59131-
OrgGroupMembershipRelationshipData:
59132-
description: A reference to an org group membership.
59133-
properties:
59134-
id:
59135-
description: The ID of the membership.
59136-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59137-
format: uuid
59138-
type: string
59139-
type:
59140-
$ref: "#/components/schemas/OrgGroupMembershipType"
59141-
required:
59142-
- id
59143-
- type
59144-
type: object
5914559103
OrgGroupMembershipRelationships:
5914659104
description: Relationships of an org group membership.
5914759105
properties:
@@ -59212,17 +59170,6 @@ components:
5921259170
required:
5921359171
- data
5921459172
type: object
59215-
OrgGroupMembershipsRelationship:
59216-
description: Relationship to org group memberships.
59217-
properties:
59218-
data:
59219-
description: An array of membership relationship references.
59220-
items:
59221-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59222-
type: array
59223-
required:
59224-
- data
59225-
type: object
5922659173
OrgGroupPaginationLinks:
5922759174
description: Pagination links for navigating between pages of an org group list response.
5922859175
properties:
@@ -59456,18 +59403,18 @@ components:
5945659403
- attributes
5945759404
type: object
5945859405
OrgGroupPolicyEnforcementTier:
59459-
default: DEFAULT
59406+
default: OVERRIDE_ALLOWED
5946059407
description: >-
59461-
The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
59408+
The enforcement tier of the policy. `OVERRIDE_ALLOWED` means the policy is set but member orgs may mutate it. `GROUP_MANAGED` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
5946259409
enum:
59463-
- DEFAULT
59464-
- ENFORCE
59410+
- OVERRIDE_ALLOWED
59411+
- GROUP_MANAGED
5946559412
- DELEGATE
59466-
example: DEFAULT
59413+
example: OVERRIDE_ALLOWED
5946759414
type: string
5946859415
x-enum-varnames:
59469-
- DEFAULT
59470-
- ENFORCE
59416+
- OVERRIDE_ALLOWED
59417+
- GROUP_MANAGED
5947159418
- DELEGATE
5947259419
OrgGroupPolicyListResponse:
5947359420
description: Response containing a list of org group policies.
@@ -59808,12 +59755,6 @@ components:
5980859755
- id
5980959756
- type
5981059757
type: object
59811-
OrgGroupRelationships:
59812-
description: Relationships of an org group.
59813-
properties:
59814-
memberships:
59815-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
59816-
type: object
5981759758
OrgGroupResponse:
5981859759
description: Response containing a single org group.
5981959760
properties:
@@ -132865,7 +132806,7 @@ paths:
132865132806
- attributes:
132866132807
content:
132867132808
value: "UTC"
132868-
enforcement_tier: "DEFAULT"
132809+
enforcement_tier: "OVERRIDE_ALLOWED"
132869132810
modified_at: "2024-01-15T10:30:00Z"
132870132811
policy_name: "monitor_timezone"
132871132812
policy_type: "org_config"
@@ -132937,7 +132878,7 @@ paths:
132937132878
attributes:
132938132879
content:
132939132880
value: "UTC"
132940-
enforcement_tier: "DEFAULT"
132881+
enforcement_tier: "OVERRIDE_ALLOWED"
132941132882
policy_name: "monitor_timezone"
132942132883
policy_type: "org_config"
132943132884
relationships:
@@ -132960,7 +132901,7 @@ paths:
132960132901
attributes:
132961132902
content:
132962132903
value: "UTC"
132963-
enforcement_tier: "DEFAULT"
132904+
enforcement_tier: "OVERRIDE_ALLOWED"
132964132905
modified_at: "2024-01-15T10:30:00Z"
132965132906
policy_name: "monitor_timezone"
132966132907
policy_type: "org_config"
@@ -133069,7 +133010,7 @@ paths:
133069133010
attributes:
133070133011
content:
133071133012
value: "UTC"
133072-
enforcement_tier: "DEFAULT"
133013+
enforcement_tier: "OVERRIDE_ALLOWED"
133073133014
modified_at: "2024-01-15T10:30:00Z"
133074133015
policy_name: "monitor_timezone"
133075133016
policy_type: "org_config"
@@ -133133,7 +133074,7 @@ paths:
133133133074
attributes:
133134133075
content:
133135133076
value: "US/Eastern"
133136-
enforcement_tier: "ENFORCE"
133077+
enforcement_tier: "GROUP_MANAGED"
133137133078
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
133138133079
type: org_group_policies
133139133080
schema:
@@ -133150,7 +133091,7 @@ paths:
133150133091
attributes:
133151133092
content:
133152133093
value: "US/Eastern"
133153-
enforcement_tier: "ENFORCE"
133094+
enforcement_tier: "GROUP_MANAGED"
133154133095
modified_at: "2024-01-16T14:00:00Z"
133155133096
policy_name: "monitor_timezone"
133156133097
policy_type: "org_config"
@@ -133617,7 +133558,6 @@ paths:
133617133558
- $ref: "#/components/parameters/OrgGroupPageNumber"
133618133559
- $ref: "#/components/parameters/OrgGroupPageSize"
133619133560
- $ref: "#/components/parameters/OrgGroupSort"
133620-
- $ref: "#/components/parameters/OrgGroupInclude"
133621133561
responses:
133622133562
"200":
133623133563
content:

examples/v2/org-groups/CreateOrgGroupPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static void main(String[] args) {
3030
.attributes(
3131
new OrgGroupPolicyCreateAttributes()
3232
.content(Map.ofEntries(Map.entry("value", "UTC")))
33-
.enforcementTier(OrgGroupPolicyEnforcementTier.DEFAULT)
33+
.enforcementTier(OrgGroupPolicyEnforcementTier.OVERRIDE_ALLOWED)
3434
.policyName("monitor_timezone")
3535
.policyType(OrgGroupPolicyPolicyType.ORG_CONFIG))
3636
.relationships(

examples/v2/org-groups/UpdateOrgGroupPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static void main(String[] args) {
2525
.attributes(
2626
new OrgGroupPolicyUpdateAttributes()
2727
.content(Map.ofEntries(Map.entry("value", "UTC")))
28-
.enforcementTier(OrgGroupPolicyEnforcementTier.DEFAULT))
28+
.enforcementTier(OrgGroupPolicyEnforcementTier.OVERRIDE_ALLOWED))
2929
.id(UUID.fromString("1a2b3c4d-5e6f-7890-abcd-ef0123456789"))
3030
.type(OrgGroupPolicyType.ORG_GROUP_POLICIES));
3131

src/main/java/com/datadog/api/client/v2/api/OrgGroupsApi.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.datadog.api.client.ApiResponse;
66
import com.datadog.api.client.Pair;
77
import com.datadog.api.client.v2.model.OrgGroupCreateRequest;
8-
import com.datadog.api.client.v2.model.OrgGroupIncludeOption;
98
import com.datadog.api.client.v2.model.OrgGroupListResponse;
109
import com.datadog.api.client.v2.model.OrgGroupMembershipBulkUpdateRequest;
1110
import com.datadog.api.client.v2.model.OrgGroupMembershipListResponse;
@@ -2753,7 +2752,6 @@ public static class ListOrgGroupsOptionalParameters {
27532752
private Long pageNumber;
27542753
private Long pageSize;
27552754
private OrgGroupSortOption sort;
2756-
private List<OrgGroupIncludeOption> include;
27572755

27582756
/**
27592757
* Set pageNumber.
@@ -2789,17 +2787,6 @@ public ListOrgGroupsOptionalParameters sort(OrgGroupSortOption sort) {
27892787
this.sort = sort;
27902788
return this;
27912789
}
2792-
2793-
/**
2794-
* Set include.
2795-
*
2796-
* @param include List of related resources to include. (optional)
2797-
* @return ListOrgGroupsOptionalParameters
2798-
*/
2799-
public ListOrgGroupsOptionalParameters include(List<OrgGroupIncludeOption> include) {
2800-
this.include = include;
2801-
return this;
2802-
}
28032790
}
28042791

28052792
/**
@@ -2890,7 +2877,6 @@ public ApiResponse<OrgGroupListResponse> listOrgGroupsWithHttpInfo(
28902877
Long pageNumber = parameters.pageNumber;
28912878
Long pageSize = parameters.pageSize;
28922879
OrgGroupSortOption sort = parameters.sort;
2893-
List<OrgGroupIncludeOption> include = parameters.include;
28942880
// create path and map variables
28952881
String localVarPath = "/api/v2/org_groups";
28962882

@@ -2900,7 +2886,6 @@ public ApiResponse<OrgGroupListResponse> listOrgGroupsWithHttpInfo(
29002886
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber));
29012887
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize));
29022888
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
2903-
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "include", include));
29042889

29052890
Invocation.Builder builder =
29062891
apiClient.createBuilder(
@@ -2946,7 +2931,6 @@ public CompletableFuture<ApiResponse<OrgGroupListResponse>> listOrgGroupsWithHtt
29462931
Long pageNumber = parameters.pageNumber;
29472932
Long pageSize = parameters.pageSize;
29482933
OrgGroupSortOption sort = parameters.sort;
2949-
List<OrgGroupIncludeOption> include = parameters.include;
29502934
// create path and map variables
29512935
String localVarPath = "/api/v2/org_groups";
29522936

@@ -2956,7 +2940,6 @@ public CompletableFuture<ApiResponse<OrgGroupListResponse>> listOrgGroupsWithHtt
29562940
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber));
29572941
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize));
29582942
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
2959-
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "include", include));
29602943

29612944
Invocation.Builder builder;
29622945
try {

src/main/java/com/datadog/api/client/v2/model/OrgGroupData.java

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
@JsonPropertyOrder({
2323
OrgGroupData.JSON_PROPERTY_ATTRIBUTES,
2424
OrgGroupData.JSON_PROPERTY_ID,
25-
OrgGroupData.JSON_PROPERTY_RELATIONSHIPS,
2625
OrgGroupData.JSON_PROPERTY_TYPE
2726
})
2827
@jakarta.annotation.Generated(
@@ -35,9 +34,6 @@ public class OrgGroupData {
3534
public static final String JSON_PROPERTY_ID = "id";
3635
private UUID id;
3736

38-
public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships";
39-
private OrgGroupRelationships relationships;
40-
4137
public static final String JSON_PROPERTY_TYPE = "type";
4238
private OrgGroupType type;
4339

@@ -97,28 +93,6 @@ public void setId(UUID id) {
9793
this.id = id;
9894
}
9995

100-
public OrgGroupData relationships(OrgGroupRelationships relationships) {
101-
this.relationships = relationships;
102-
this.unparsed |= relationships.unparsed;
103-
return this;
104-
}
105-
106-
/**
107-
* Relationships of an org group.
108-
*
109-
* @return relationships
110-
*/
111-
@jakarta.annotation.Nullable
112-
@JsonProperty(JSON_PROPERTY_RELATIONSHIPS)
113-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114-
public OrgGroupRelationships getRelationships() {
115-
return relationships;
116-
}
117-
118-
public void setRelationships(OrgGroupRelationships relationships) {
119-
this.relationships = relationships;
120-
}
121-
12296
public OrgGroupData type(OrgGroupType type) {
12397
this.type = type;
12498
this.unparsed |= !type.isValid();
@@ -201,14 +175,13 @@ public boolean equals(Object o) {
201175
OrgGroupData orgGroupData = (OrgGroupData) o;
202176
return Objects.equals(this.attributes, orgGroupData.attributes)
203177
&& Objects.equals(this.id, orgGroupData.id)
204-
&& Objects.equals(this.relationships, orgGroupData.relationships)
205178
&& Objects.equals(this.type, orgGroupData.type)
206179
&& Objects.equals(this.additionalProperties, orgGroupData.additionalProperties);
207180
}
208181

209182
@Override
210183
public int hashCode() {
211-
return Objects.hash(attributes, id, relationships, type, additionalProperties);
184+
return Objects.hash(attributes, id, type, additionalProperties);
212185
}
213186

214187
@Override
@@ -217,7 +190,6 @@ public String toString() {
217190
sb.append("class OrgGroupData {\n");
218191
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
219192
sb.append(" id: ").append(toIndentedString(id)).append("\n");
220-
sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
221193
sb.append(" type: ").append(toIndentedString(type)).append("\n");
222194
sb.append(" additionalProperties: ")
223195
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)