Skip to content

Commit 48a3cc3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8e38215 of spec repo
1 parent 94f5973 commit 48a3cc3

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
@@ -59225,22 +59211,13 @@ components:
5922559211
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5922659212
format: uuid
5922759213
type: string
59228-
relationships:
59229-
$ref: "#/components/schemas/OrgGroupRelationships"
5923059214
type:
5923159215
$ref: "#/components/schemas/OrgGroupType"
5923259216
required:
5923359217
- id
5923459218
- type
5923559219
- attributes
5923659220
type: object
59237-
OrgGroupIncludeOption:
59238-
description: Allowed include options for org group endpoints.
59239-
enum:
59240-
- memberships
59241-
type: string
59242-
x-enum-varnames:
59243-
- MEMBERSHIPS
5924459221
OrgGroupListResponse:
5924559222
description: Response containing a list of org groups.
5924659223
properties:
@@ -59249,11 +59226,6 @@ components:
5924959226
items:
5925059227
$ref: "#/components/schemas/OrgGroupData"
5925159228
type: array
59252-
included:
59253-
description: Related resources included in the response when requested with the `include` parameter.
59254-
items:
59255-
$ref: "#/components/schemas/OrgGroupMembershipData"
59256-
type: array
5925759229
links:
5925859230
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5925959231
meta:
@@ -59380,20 +59352,6 @@ components:
5938059352
required:
5938159353
- data
5938259354
type: object
59383-
OrgGroupMembershipRelationshipData:
59384-
description: A reference to an org group membership.
59385-
properties:
59386-
id:
59387-
description: The ID of the membership.
59388-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59389-
format: uuid
59390-
type: string
59391-
type:
59392-
$ref: "#/components/schemas/OrgGroupMembershipType"
59393-
required:
59394-
- id
59395-
- type
59396-
type: object
5939759355
OrgGroupMembershipRelationships:
5939859356
description: Relationships of an org group membership.
5939959357
properties:
@@ -59464,17 +59422,6 @@ components:
5946459422
required:
5946559423
- data
5946659424
type: object
59467-
OrgGroupMembershipsRelationship:
59468-
description: Relationship to org group memberships.
59469-
properties:
59470-
data:
59471-
description: An array of membership relationship references.
59472-
items:
59473-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59474-
type: array
59475-
required:
59476-
- data
59477-
type: object
5947859425
OrgGroupPaginationLinks:
5947959426
description: Pagination links for navigating between pages of an org group list response.
5948059427
properties:
@@ -59708,18 +59655,18 @@ components:
5970859655
- attributes
5970959656
type: object
5971059657
OrgGroupPolicyEnforcementTier:
59711-
default: DEFAULT
59658+
default: OVERRIDE_ALLOWED
5971259659
description: >-
59713-
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.
59660+
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.
5971459661
enum:
59715-
- DEFAULT
59716-
- ENFORCE
59662+
- OVERRIDE_ALLOWED
59663+
- GROUP_MANAGED
5971759664
- DELEGATE
59718-
example: DEFAULT
59665+
example: OVERRIDE_ALLOWED
5971959666
type: string
5972059667
x-enum-varnames:
59721-
- DEFAULT
59722-
- ENFORCE
59668+
- OVERRIDE_ALLOWED
59669+
- GROUP_MANAGED
5972359670
- DELEGATE
5972459671
OrgGroupPolicyListResponse:
5972559672
description: Response containing a list of org group policies.
@@ -60060,12 +60007,6 @@ components:
6006060007
- id
6006160008
- type
6006260009
type: object
60063-
OrgGroupRelationships:
60064-
description: Relationships of an org group.
60065-
properties:
60066-
memberships:
60067-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
60068-
type: object
6006960010
OrgGroupResponse:
6007060011
description: Response containing a single org group.
6007160012
properties:
@@ -133887,7 +133828,7 @@ paths:
133887133828
- attributes:
133888133829
content:
133889133830
value: "UTC"
133890-
enforcement_tier: "DEFAULT"
133831+
enforcement_tier: "OVERRIDE_ALLOWED"
133891133832
modified_at: "2024-01-15T10:30:00Z"
133892133833
policy_name: "monitor_timezone"
133893133834
policy_type: "org_config"
@@ -133959,7 +133900,7 @@ paths:
133959133900
attributes:
133960133901
content:
133961133902
value: "UTC"
133962-
enforcement_tier: "DEFAULT"
133903+
enforcement_tier: "OVERRIDE_ALLOWED"
133963133904
policy_name: "monitor_timezone"
133964133905
policy_type: "org_config"
133965133906
relationships:
@@ -133982,7 +133923,7 @@ paths:
133982133923
attributes:
133983133924
content:
133984133925
value: "UTC"
133985-
enforcement_tier: "DEFAULT"
133926+
enforcement_tier: "OVERRIDE_ALLOWED"
133986133927
modified_at: "2024-01-15T10:30:00Z"
133987133928
policy_name: "monitor_timezone"
133988133929
policy_type: "org_config"
@@ -134091,7 +134032,7 @@ paths:
134091134032
attributes:
134092134033
content:
134093134034
value: "UTC"
134094-
enforcement_tier: "DEFAULT"
134035+
enforcement_tier: "OVERRIDE_ALLOWED"
134095134036
modified_at: "2024-01-15T10:30:00Z"
134096134037
policy_name: "monitor_timezone"
134097134038
policy_type: "org_config"
@@ -134155,7 +134096,7 @@ paths:
134155134096
attributes:
134156134097
content:
134157134098
value: "US/Eastern"
134158-
enforcement_tier: "ENFORCE"
134099+
enforcement_tier: "GROUP_MANAGED"
134159134100
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
134160134101
type: org_group_policies
134161134102
schema:
@@ -134172,7 +134113,7 @@ paths:
134172134113
attributes:
134173134114
content:
134174134115
value: "US/Eastern"
134175-
enforcement_tier: "ENFORCE"
134116+
enforcement_tier: "GROUP_MANAGED"
134176134117
modified_at: "2024-01-16T14:00:00Z"
134177134118
policy_name: "monitor_timezone"
134178134119
policy_type: "org_config"
@@ -134639,7 +134580,6 @@ paths:
134639134580
- $ref: "#/components/parameters/OrgGroupPageNumber"
134640134581
- $ref: "#/components/parameters/OrgGroupPageSize"
134641134582
- $ref: "#/components/parameters/OrgGroupSort"
134642-
- $ref: "#/components/parameters/OrgGroupInclude"
134643134583
responses:
134644134584
"200":
134645134585
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)