Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 3 additions & 92 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19304,10 +19304,6 @@ components:
description: The title of the degradation.
example: Elevated API Latency
type: string
updates:
items:
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItems"
type: array
required:
- components_affected
- status
Expand Down Expand Up @@ -19345,48 +19341,6 @@ components:
- IDENTIFIED
- MONITORING
- RESOLVED
CreateDegradationRequestDataAttributesUpdatesItems:
description: A degradation update entry.
properties:
components_affected:
description: The components affected.
items:
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems"
type: array
description:
description: A description of the update.
example: ""
type: string
started_at:
description: Timestamp of when the update occurred.
example: ""
format: date-time
type: string
status:
$ref: "#/components/schemas/CreateDegradationRequestDataAttributesStatus"
required:
- components_affected
- description
- started_at
- status
type: object
CreateDegradationRequestDataAttributesUpdatesItemsComponentsAffectedItems:
description: A component affected by a degradation update.
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ""
type: string
name:
description: The name of the component.
readOnly: true
type: string
status:
$ref: "#/components/schemas/StatusPagesComponentDataAttributesStatus"
required:
- id
- status
type: object
CreateDeploymentGateParams:
description: Parameters for creating a deployment gate.
properties:
Expand Down Expand Up @@ -19755,10 +19709,6 @@ components:
description: The title of the maintenance.
example: "API Maintenance"
type: string
updates:
items:
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItems"
type: array
required:
- components_affected
- title
Expand Down Expand Up @@ -19786,48 +19736,6 @@ components:
- id
- status
type: object
CreateMaintenanceRequestDataAttributesUpdatesItems:
description: A maintenance update entry.
properties:
components_affected:
description: The components affected.
items:
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems"
type: array
description:
description: A description of the update.
example: ""
type: string
started_at:
description: Timestamp of when the update occurred.
example: ""
format: date-time
type: string
status:
$ref: "#/components/schemas/CreateMaintenanceRequestDataAttributesUpdatesItemsStatus"
required:
- components_affected
- description
- started_at
- status
type: object
CreateMaintenanceRequestDataAttributesUpdatesItemsComponentsAffectedItems:
description: A component affected by a maintenance update.
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ""
type: string
name:
description: The name of the component.
readOnly: true
type: string
status:
$ref: "#/components/schemas/PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus"
required:
- id
- status
type: object
CreateMaintenanceRequestDataAttributesUpdatesItemsStatus:
description: The status of a maintenance update.
enum:
Expand Down Expand Up @@ -25007,6 +24915,9 @@ components:
format: uuid
readOnly: true
type: string
last_modified_by_user_uuid:
description: UUID of the user who last modified the resource.
type: string
modified_at:
description: Timestamp of when the update was last modified.
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
CreateDegradationRequestDataAttributes.JSON_PROPERTY_COMPONENTS_AFFECTED,
CreateDegradationRequestDataAttributes.JSON_PROPERTY_DESCRIPTION,
CreateDegradationRequestDataAttributes.JSON_PROPERTY_STATUS,
CreateDegradationRequestDataAttributes.JSON_PROPERTY_TITLE,
CreateDegradationRequestDataAttributes.JSON_PROPERTY_UPDATES
CreateDegradationRequestDataAttributes.JSON_PROPERTY_TITLE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -44,9 +43,6 @@ public class CreateDegradationRequestDataAttributes {
public static final String JSON_PROPERTY_TITLE = "title";
private String title;

public static final String JSON_PROPERTY_UPDATES = "updates";
private List<CreateDegradationRequestDataAttributesUpdatesItems> updates = null;

public CreateDegradationRequestDataAttributes() {}

@JsonCreator
Expand Down Expand Up @@ -161,41 +157,6 @@ public void setTitle(String title) {
this.title = title;
}

public CreateDegradationRequestDataAttributes updates(
List<CreateDegradationRequestDataAttributesUpdatesItems> updates) {
this.updates = updates;
for (CreateDegradationRequestDataAttributesUpdatesItems item : updates) {
this.unparsed |= item.unparsed;
}
return this;
}

public CreateDegradationRequestDataAttributes addUpdatesItem(
CreateDegradationRequestDataAttributesUpdatesItems updatesItem) {
if (this.updates == null) {
this.updates = new ArrayList<>();
}
this.updates.add(updatesItem);
this.unparsed |= updatesItem.unparsed;
return this;
}

/**
* Getupdates
*
* @return updates
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_UPDATES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<CreateDegradationRequestDataAttributesUpdatesItems> getUpdates() {
return updates;
}

public void setUpdates(List<CreateDegradationRequestDataAttributesUpdatesItems> updates) {
this.updates = updates;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -258,15 +219,13 @@ public boolean equals(Object o) {
&& Objects.equals(this.description, createDegradationRequestDataAttributes.description)
&& Objects.equals(this.status, createDegradationRequestDataAttributes.status)
&& Objects.equals(this.title, createDegradationRequestDataAttributes.title)
&& Objects.equals(this.updates, createDegradationRequestDataAttributes.updates)
&& Objects.equals(
this.additionalProperties, createDegradationRequestDataAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(
componentsAffected, description, status, title, updates, additionalProperties);
return Objects.hash(componentsAffected, description, status, title, additionalProperties);
}

@Override
Expand All @@ -277,7 +236,6 @@ public String toString() {
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" updates: ").append(toIndentedString(updates)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading
Loading