Skip to content
Open
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
69 changes: 63 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25864,6 +25864,8 @@ components:
CreateConnectionRequestDataAttributes:
description: Attributes defining the data source connection, including join configuration and custom fields.
properties:
details:
$ref: "#/components/schemas/ListConnectionsResponseDataAttributesConnectionsItemsDetails"
fields:
description: List of custom attribute fields to import from the data source.
items:
Expand All @@ -25882,6 +25884,10 @@ components:
type: string
description: Additional key-value metadata associated with the connection.
type: object
name:
description: Display name of the connection.
maxLength: 255
type: string
type:
description: The type of data source connection (for example, ref_table).
example: ""
Expand Down Expand Up @@ -50747,13 +50753,15 @@ components:
type: object
FacetInfoRequestDataType:
default: users_facet_info_request
description: Users facet info request resource type.
description: Facet info request resource type.
enum:
- users_facet_info_request
- accounts_facet_info_request
example: users_facet_info_request
type: string
x-enum-varnames:
- USERS_FACET_INFO_REQUEST
- ACCOUNTS_FACET_INFO_REQUEST
FacetInfoResponse:
description: Response containing facet information for an attribute, including its distinct values and occurrence counts.
example:
Expand Down Expand Up @@ -50811,11 +50819,15 @@ components:
description: The numeric range of a facet attribute, representing the minimum and maximum observed values.
properties:
max:
description: The maximum observed value for the numeric facet attribute.
type: object
description: The maximum observed value for the numeric facet attribute. Null when no records match.
format: double
nullable: true
type: number
min:
description: The minimum observed value for the numeric facet attribute.
type: object
description: The minimum observed value for the numeric facet attribute. Null when no records match.
format: double
nullable: true
type: number
type: object
FacetInfoResponseDataAttributesResultValuesItems:
description: A single facet value with its occurrence count in the dataset.
Expand All @@ -50830,13 +50842,15 @@ components:
type: object
FacetInfoResponseDataType:
default: users_facet_info
description: Users facet info resource type.
description: Facet info resource type.
enum:
- users_facet_info
- accounts_facet_info
example: users_facet_info
type: string
x-enum-varnames:
- USERS_FACET_INFO
- ACCOUNTS_FACET_INFO
FastlyAPIKey:
description: The definition of the `FastlyAPIKey` object.
properties:
Expand Down Expand Up @@ -77532,6 +77546,8 @@ components:
created_by:
description: Identifier of the user who created the connection.
type: string
details:
$ref: "#/components/schemas/ListConnectionsResponseDataAttributesConnectionsItemsDetails"
fields:
description: List of custom attribute fields imported from the data source.
items:
Expand All @@ -77547,6 +77563,9 @@ components:
type: string
description: Additional key-value metadata associated with the connection.
type: object
name:
description: Display name of the connection.
type: string
type:
description: The type of data source connection (for example, ref_table).
type: string
Expand All @@ -77558,6 +77577,40 @@ components:
description: Identifier of the user who last updated the connection.
type: string
type: object
ListConnectionsResponseDataAttributesConnectionsItemsDetails:
description: Type-specific configuration of the connection. Only the field matching the connection type is set.
properties:
ref_table:
$ref: "#/components/schemas/ListConnectionsResponseDataAttributesConnectionsItemsDetailsRefTable"
snowflake:
$ref: "#/components/schemas/ListConnectionsResponseDataAttributesConnectionsItemsDetailsSnowflake"
type: object
ListConnectionsResponseDataAttributesConnectionsItemsDetailsRefTable:
description: Configuration of a reference table connection.
properties:
table_id:
description: Identifier of the reference table.
type: string
table_name:
description: Name of the reference table.
type: string
type: object
ListConnectionsResponseDataAttributesConnectionsItemsDetailsSnowflake:
description: Configuration of a Snowflake connection.
properties:
account_id:
description: Identifier of the Snowflake account.
type: string
database_name:
description: Name of the Snowflake database.
type: string
schema:
description: Name of the Snowflake schema.
type: string
table_name:
description: Name of the Snowflake table.
type: string
type: object
ListConnectionsResponseDataAttributesConnectionsItemsJoin:
description: The join configuration describing how the data source is linked to the entity.
properties:
Expand Down Expand Up @@ -141108,6 +141161,10 @@ components:
items:
$ref: "#/components/schemas/UpdateConnectionRequestDataAttributesFieldsToUpdateItems"
type: array
name:
description: New display name for the connection.
maxLength: 255
type: string
type: object
UpdateConnectionRequestDataAttributesFieldsToUpdateItems:
description: Specification for updating an existing field in a connection, including which field to modify and the new values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@
* Attributes defining the data source connection, including join configuration and custom fields.
*/
@JsonPropertyOrder({
CreateConnectionRequestDataAttributes.JSON_PROPERTY_DETAILS,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_FIELDS,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_JOIN_ATTRIBUTE,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_JOIN_TYPE,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_METADATA,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_NAME,
CreateConnectionRequestDataAttributes.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CreateConnectionRequestDataAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_DETAILS = "details";
private ListConnectionsResponseDataAttributesConnectionsItemsDetails details;

public static final String JSON_PROPERTY_FIELDS = "fields";
private List<CreateConnectionRequestDataAttributesFieldsItems> fields = null;

Expand All @@ -45,6 +50,9 @@ public class CreateConnectionRequestDataAttributes {
public static final String JSON_PROPERTY_METADATA = "metadata";
private Map<String, String> metadata = null;

public static final String JSON_PROPERTY_NAME = "name";
private String name;

public static final String JSON_PROPERTY_TYPE = "type";
private String type;

Expand All @@ -60,6 +68,33 @@ public CreateConnectionRequestDataAttributes(
this.type = type;
}

public CreateConnectionRequestDataAttributes details(
ListConnectionsResponseDataAttributesConnectionsItemsDetails details) {
this.details = details;
this.unparsed |= details.unparsed;
return this;
}

/**
* Type-specific configuration of the connection. Only the field matching the connection type is
* set.
*
* @return details
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ListConnectionsResponseDataAttributesConnectionsItemsDetails getDetails() {
return details;
}

public void setDetails(ListConnectionsResponseDataAttributesConnectionsItemsDetails details) {
this.details = details;
if (details != null) {
this.unparsed |= details.unparsed;
}
}

public CreateConnectionRequestDataAttributes fields(
List<CreateConnectionRequestDataAttributesFieldsItems> fields) {
this.fields = fields;
Expand Down Expand Up @@ -172,6 +207,27 @@ public void setMetadata(Map<String, String> metadata) {
this.metadata = metadata;
}

public CreateConnectionRequestDataAttributes name(String name) {
this.name = name;
return this;
}

/**
* Display name of the connection.
*
* @return name
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public CreateConnectionRequestDataAttributes type(String type) {
this.type = type;
return this;
Expand Down Expand Up @@ -249,28 +305,33 @@ public boolean equals(Object o) {
}
CreateConnectionRequestDataAttributes createConnectionRequestDataAttributes =
(CreateConnectionRequestDataAttributes) o;
return Objects.equals(this.fields, createConnectionRequestDataAttributes.fields)
return Objects.equals(this.details, createConnectionRequestDataAttributes.details)
&& Objects.equals(this.fields, createConnectionRequestDataAttributes.fields)
&& Objects.equals(this.joinAttribute, createConnectionRequestDataAttributes.joinAttribute)
&& Objects.equals(this.joinType, createConnectionRequestDataAttributes.joinType)
&& Objects.equals(this.metadata, createConnectionRequestDataAttributes.metadata)
&& Objects.equals(this.name, createConnectionRequestDataAttributes.name)
&& Objects.equals(this.type, createConnectionRequestDataAttributes.type)
&& Objects.equals(
this.additionalProperties, createConnectionRequestDataAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(fields, joinAttribute, joinType, metadata, type, additionalProperties);
return Objects.hash(
details, fields, joinAttribute, joinType, metadata, name, type, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateConnectionRequestDataAttributes {\n");
sb.append(" details: ").append(toIndentedString(details)).append("\n");
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
sb.append(" joinAttribute: ").append(toIndentedString(joinAttribute)).append("\n");
sb.append(" joinType: ").append(toIndentedString(joinType)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public FacetInfoRequestData type(FacetInfoRequestDataType type) {
}

/**
* Users facet info request resource type.
* Facet info request resource type.
*
* @return type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
import java.util.HashSet;
import java.util.Set;

/** Users facet info request resource type. */
/** Facet info request resource type. */
@JsonSerialize(using = FacetInfoRequestDataType.FacetInfoRequestDataTypeSerializer.class)
public class FacetInfoRequestDataType extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("users_facet_info_request"));
new HashSet<String>(Arrays.asList("users_facet_info_request", "accounts_facet_info_request"));

public static final FacetInfoRequestDataType USERS_FACET_INFO_REQUEST =
new FacetInfoRequestDataType("users_facet_info_request");
public static final FacetInfoRequestDataType ACCOUNTS_FACET_INFO_REQUEST =
new FacetInfoRequestDataType("accounts_facet_info_request");

FacetInfoRequestDataType(String value) {
super(value, allowedValues);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public FacetInfoResponseData type(FacetInfoResponseDataType type) {
}

/**
* Users facet info resource type.
* Facet info resource type.
*
* @return type
*/
Expand Down
Loading
Loading