Skip to content

Commit

Permalink
RUM Applications Management API add client_token (#1575)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Dec 6, 2022
1 parent 4aca7e3 commit 35b3ad7
Show file tree
Hide file tree
Showing 23 changed files with 769 additions and 51 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2022-11-30 16:38:26.358881",
"spec_repo_commit": "0035b416"
"regenerated": "2022-12-05 18:23:33.686537",
"spec_repo_commit": "1cc231e1"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-11-30 16:38:26.373501",
"spec_repo_commit": "0035b416"
"regenerated": "2022-12-05 18:23:33.698378",
"spec_repo_commit": "1cc231e1"
}
}
}
91 changes: 88 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6913,6 +6913,10 @@ components:
description: ID of the RUM application.
example: abcd1234-0000-0000-abcd-1234abcd5678
type: string
client_token:
description: Client token of the RUM application.
example: abcd1234efgh5678ijkl90abcd1234efgh0
type: string
created_at:
description: Timestamp in ms of the creation date.
example: 1659479836169
Expand All @@ -6923,9 +6927,12 @@ components:
example: john.doe
type: string
hash:
description: Client token of the RUM application.
example: abcd1234efgh5678ijkl90abcd1234efgh0
description: Hash of the RUM application. Optional.
type: string
is_active:
description: Indicates if the RUM application is active.
example: true
type: boolean
name:
description: Name of the RUM application.
example: my_rum_application
Expand All @@ -6952,6 +6959,7 @@ components:
type: string
required:
- application_id
- client_token
- created_at
- created_by_handle
- name
Expand Down Expand Up @@ -7003,6 +7011,83 @@ components:
type: string
x-enum-varnames:
- RUM_APPLICATION_CREATE
RUMApplicationList:
description: RUM application list.
properties:
attributes:
$ref: '#/components/schemas/RUMApplicationListAttributes'
type:
$ref: '#/components/schemas/RUMApplicationListType'
required:
- attributes
- type
type: object
RUMApplicationListAttributes:
description: RUM application list attributes.
properties:
application_id:
description: ID of the RUM application.
example: abcd1234-0000-0000-abcd-1234abcd5678
type: string
created_at:
description: Timestamp in ms of the creation date.
example: 1659479836169
format: int64
type: integer
created_by_handle:
description: Handle of the creator user.
example: john.doe
type: string
hash:
description: Hash of the RUM application. Optional.
type: string
is_active:
description: Indicates if the RUM application is active.
example: true
type: boolean
name:
description: Name of the RUM application.
example: my_rum_application
type: string
org_id:
description: Org ID of the RUM application.
example: 999
format: int32
maximum: 2147483647
type: integer
type:
description: Type of the RUM application. Supported values are `browser`,
`ios`, `android`, `react-native`, `flutter`.
example: browser
type: string
updated_at:
description: Timestamp in ms of the last update date.
example: 1659479836169
format: int64
type: integer
updated_by_handle:
description: Handle of the updater user.
example: jane.doe
type: string
required:
- application_id
- created_at
- created_by_handle
- name
- org_id
- type
- updated_at
- updated_by_handle
type: object
RUMApplicationListType:
default: rum_application
description: RUM application list type.
enum:
- rum_application
example: rum_application
type: string
x-enum-varnames:
- RUM_APPLICATION
RUMApplicationResponse:
description: RUM application response.
properties:
Expand Down Expand Up @@ -7069,7 +7154,7 @@ components:
data:
description: RUM applications array response.
items:
$ref: '#/components/schemas/RUMApplication'
$ref: '#/components/schemas/RUMApplicationList'
type: array
type: object
RUMBucketResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
/** RUM application attributes. */
@JsonPropertyOrder({
RUMApplicationAttributes.JSON_PROPERTY_APPLICATION_ID,
RUMApplicationAttributes.JSON_PROPERTY_CLIENT_TOKEN,
RUMApplicationAttributes.JSON_PROPERTY_CREATED_AT,
RUMApplicationAttributes.JSON_PROPERTY_CREATED_BY_HANDLE,
RUMApplicationAttributes.JSON_PROPERTY_HASH,
RUMApplicationAttributes.JSON_PROPERTY_IS_ACTIVE,
RUMApplicationAttributes.JSON_PROPERTY_NAME,
RUMApplicationAttributes.JSON_PROPERTY_ORG_ID,
RUMApplicationAttributes.JSON_PROPERTY_TYPE,
Expand All @@ -32,6 +34,9 @@ public class RUMApplicationAttributes {
public static final String JSON_PROPERTY_APPLICATION_ID = "application_id";
private String applicationId;

public static final String JSON_PROPERTY_CLIENT_TOKEN = "client_token";
private String clientToken;

public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private Long createdAt;

Expand All @@ -41,6 +46,9 @@ public class RUMApplicationAttributes {
public static final String JSON_PROPERTY_HASH = "hash";
private String hash;

public static final String JSON_PROPERTY_IS_ACTIVE = "is_active";
private Boolean isActive;

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

Expand All @@ -61,6 +69,7 @@ public RUMApplicationAttributes() {}
@JsonCreator
public RUMApplicationAttributes(
@JsonProperty(required = true, value = JSON_PROPERTY_APPLICATION_ID) String applicationId,
@JsonProperty(required = true, value = JSON_PROPERTY_CLIENT_TOKEN) String clientToken,
@JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) Long createdAt,
@JsonProperty(required = true, value = JSON_PROPERTY_CREATED_BY_HANDLE)
String createdByHandle,
Expand All @@ -71,6 +80,7 @@ public RUMApplicationAttributes(
@JsonProperty(required = true, value = JSON_PROPERTY_UPDATED_BY_HANDLE)
String updatedByHandle) {
this.applicationId = applicationId;
this.clientToken = clientToken;
this.createdAt = createdAt;
this.createdByHandle = createdByHandle;
this.name = name;
Expand Down Expand Up @@ -100,6 +110,26 @@ public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}

public RUMApplicationAttributes clientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}

/**
* Client token of the RUM application.
*
* @return clientToken
*/
@JsonProperty(JSON_PROPERTY_CLIENT_TOKEN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClientToken() {
return clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}

public RUMApplicationAttributes createdAt(Long createdAt) {
this.createdAt = createdAt;
return this;
Expand Down Expand Up @@ -146,7 +176,7 @@ public RUMApplicationAttributes hash(String hash) {
}

/**
* Client token of the RUM application.
* Hash of the RUM application. Optional.
*
* @return hash
*/
Expand All @@ -161,6 +191,27 @@ public void setHash(String hash) {
this.hash = hash;
}

public RUMApplicationAttributes isActive(Boolean isActive) {
this.isActive = isActive;
return this;
}

/**
* Indicates if the RUM application is active.
*
* @return isActive
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_ACTIVE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsActive() {
return isActive;
}

public void setIsActive(Boolean isActive) {
this.isActive = isActive;
}

public RUMApplicationAttributes name(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -273,9 +324,11 @@ public boolean equals(Object o) {
}
RUMApplicationAttributes rumApplicationAttributes = (RUMApplicationAttributes) o;
return Objects.equals(this.applicationId, rumApplicationAttributes.applicationId)
&& Objects.equals(this.clientToken, rumApplicationAttributes.clientToken)
&& Objects.equals(this.createdAt, rumApplicationAttributes.createdAt)
&& Objects.equals(this.createdByHandle, rumApplicationAttributes.createdByHandle)
&& Objects.equals(this.hash, rumApplicationAttributes.hash)
&& Objects.equals(this.isActive, rumApplicationAttributes.isActive)
&& Objects.equals(this.name, rumApplicationAttributes.name)
&& Objects.equals(this.orgId, rumApplicationAttributes.orgId)
&& Objects.equals(this.type, rumApplicationAttributes.type)
Expand All @@ -287,9 +340,11 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(
applicationId,
clientToken,
createdAt,
createdByHandle,
hash,
isActive,
name,
orgId,
type,
Expand All @@ -302,9 +357,11 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RUMApplicationAttributes {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdByHandle: ").append(toIndentedString(createdByHandle)).append("\n");
sb.append(" hash: ").append(toIndentedString(hash)).append("\n");
sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
Expand Down
Loading

0 comments on commit 35b3ad7

Please sign in to comment.