Skip to content

Commit f9cae9d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Sync 'status_pages.yaml' files with backend (#3872)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent bfcd807 commit f9cae9d

8 files changed

Lines changed: 40 additions & 1145 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -19304,10 +19304,6 @@ components:
1930419304
description: The title of the degradation.
1930519305
example: Elevated API Latency
1930619306
type: string
19307-
updates:
19308-
items:
19309-
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItems"
19310-
type: array
1931119307
required:
1931219308
- components_affected
1931319309
- status
@@ -19345,48 +19341,6 @@ components:
1934519341
- IDENTIFIED
1934619342
- MONITORING
1934719343
- RESOLVED
19348-
CreateDegradationRequestDataAttributesUpdatesItems:
19349-
description: A degradation update entry.
19350-
properties:
19351-
components_affected:
19352-
description: The components affected.
19353-
items:
19354-
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems"
19355-
type: array
19356-
description:
19357-
description: A description of the update.
19358-
example: ""
19359-
type: string
19360-
started_at:
19361-
description: Timestamp of when the update occurred.
19362-
example: ""
19363-
format: date-time
19364-
type: string
19365-
status:
19366-
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesStatus"
19367-
required:
19368-
- components_affected
19369-
- description
19370-
- started_at
19371-
- status
19372-
type: object
19373-
CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems:
19374-
description: A component affected by a degradation update.
19375-
properties:
19376-
id:
19377-
description: The ID of the component. Must be a component of type `component`.
19378-
example: ""
19379-
type: string
19380-
name:
19381-
description: The name of the component.
19382-
readOnly: true
19383-
type: string
19384-
status:
19385-
$ref: "#/components/schemas/StatusPagesComponentDataAttributesStatus"
19386-
required:
19387-
- id
19388-
- status
19389-
type: object
1939019344
CreateDeploymentGateParams:
1939119345
description: Parameters for creating a deployment gate.
1939219346
properties:
@@ -19755,10 +19709,6 @@ components:
1975519709
description: The title of the maintenance.
1975619710
example: "API Maintenance"
1975719711
type: string
19758-
updates:
19759-
items:
19760-
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItems"
19761-
type: array
1976219712
required:
1976319713
- components_affected
1976419714
- title
@@ -19786,48 +19736,6 @@ components:
1978619736
- id
1978719737
- status
1978819738
type: object
19789-
CreateMaintenanceRequestDataAttributesUpdatesItems:
19790-
description: A maintenance update entry.
19791-
properties:
19792-
components_affected:
19793-
description: The components affected.
19794-
items:
19795-
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems"
19796-
type: array
19797-
description:
19798-
description: A description of the update.
19799-
example: ""
19800-
type: string
19801-
started_at:
19802-
description: Timestamp of when the update occurred.
19803-
example: ""
19804-
format: date-time
19805-
type: string
19806-
status:
19807-
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsStatus"
19808-
required:
19809-
- components_affected
19810-
- description
19811-
- started_at
19812-
- status
19813-
type: object
19814-
CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems:
19815-
description: A component affected by a maintenance update.
19816-
properties:
19817-
id:
19818-
description: The ID of the component. Must be a component of type `component`.
19819-
example: ""
19820-
type: string
19821-
name:
19822-
description: The name of the component.
19823-
readOnly: true
19824-
type: string
19825-
status:
19826-
$ref: "#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus"
19827-
required:
19828-
- id
19829-
- status
19830-
type: object
1983119739
CreateMaintenanceRequestDataAttributesUpdatesItemsStatus:
1983219740
description: The status of a maintenance update.
1983319741
enum:
@@ -25007,6 +24915,9 @@ components:
2500724915
format: uuid
2500824916
readOnly: true
2500924917
type: string
24918+
last_modified_by_user_uuid:
24919+
description: UUID of the user who last modified the resource.
24920+
type: string
2501024921
modified_at:
2501124922
description: Timestamp of when the update was last modified.
2501224923
format: date-time

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

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
CreateDegradationRequestDataAttributes.JSON_PROPERTY_COMPONENTS_AFFECTED,
2525
CreateDegradationRequestDataAttributes.JSON_PROPERTY_DESCRIPTION,
2626
CreateDegradationRequestDataAttributes.JSON_PROPERTY_STATUS,
27-
CreateDegradationRequestDataAttributes.JSON_PROPERTY_TITLE,
28-
CreateDegradationRequestDataAttributes.JSON_PROPERTY_UPDATES
27+
CreateDegradationRequestDataAttributes.JSON_PROPERTY_TITLE
2928
})
3029
@jakarta.annotation.Generated(
3130
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -44,9 +43,6 @@ public class CreateDegradationRequestDataAttributes {
4443
public static final String JSON_PROPERTY_TITLE = "title";
4544
private String title;
4645

47-
public static final String JSON_PROPERTY_UPDATES = "updates";
48-
private List<CreateDegradationRequestDataAttributesUpdatesItems> updates = null;
49-
5046
public CreateDegradationRequestDataAttributes() {}
5147

5248
@JsonCreator
@@ -161,41 +157,6 @@ public void setTitle(String title) {
161157
this.title = title;
162158
}
163159

164-
public CreateDegradationRequestDataAttributes updates(
165-
List<CreateDegradationRequestDataAttributesUpdatesItems> updates) {
166-
this.updates = updates;
167-
for (CreateDegradationRequestDataAttributesUpdatesItems item : updates) {
168-
this.unparsed |= item.unparsed;
169-
}
170-
return this;
171-
}
172-
173-
public CreateDegradationRequestDataAttributes addUpdatesItem(
174-
CreateDegradationRequestDataAttributesUpdatesItems updatesItem) {
175-
if (this.updates == null) {
176-
this.updates = new ArrayList<>();
177-
}
178-
this.updates.add(updatesItem);
179-
this.unparsed |= updatesItem.unparsed;
180-
return this;
181-
}
182-
183-
/**
184-
* Getupdates
185-
*
186-
* @return updates
187-
*/
188-
@jakarta.annotation.Nullable
189-
@JsonProperty(JSON_PROPERTY_UPDATES)
190-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
191-
public List<CreateDegradationRequestDataAttributesUpdatesItems> getUpdates() {
192-
return updates;
193-
}
194-
195-
public void setUpdates(List<CreateDegradationRequestDataAttributesUpdatesItems> updates) {
196-
this.updates = updates;
197-
}
198-
199160
/**
200161
* A container for additional, undeclared properties. This is a holder for any undeclared
201162
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -258,15 +219,13 @@ public boolean equals(Object o) {
258219
&& Objects.equals(this.description, createDegradationRequestDataAttributes.description)
259220
&& Objects.equals(this.status, createDegradationRequestDataAttributes.status)
260221
&& Objects.equals(this.title, createDegradationRequestDataAttributes.title)
261-
&& Objects.equals(this.updates, createDegradationRequestDataAttributes.updates)
262222
&& Objects.equals(
263223
this.additionalProperties, createDegradationRequestDataAttributes.additionalProperties);
264224
}
265225

266226
@Override
267227
public int hashCode() {
268-
return Objects.hash(
269-
componentsAffected, description, status, title, updates, additionalProperties);
228+
return Objects.hash(componentsAffected, description, status, title, additionalProperties);
270229
}
271230

272231
@Override
@@ -277,7 +236,6 @@ public String toString() {
277236
sb.append(" description: ").append(toIndentedString(description)).append("\n");
278237
sb.append(" status: ").append(toIndentedString(status)).append("\n");
279238
sb.append(" title: ").append(toIndentedString(title)).append("\n");
280-
sb.append(" updates: ").append(toIndentedString(updates)).append("\n");
281239
sb.append(" additionalProperties: ")
282240
.append(toIndentedString(additionalProperties))
283241
.append("\n");

0 commit comments

Comments
 (0)