diff --git a/.apigentools-info b/.apigentools-info index e7dd4e2644f..97b9541e26a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-08 14:02:25.501612", - "spec_repo_commit": "1920836f" + "regenerated": "2025-01-09 07:26:53.341253", + "spec_repo_commit": "3aea9230" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-08 14:02:25.524422", - "spec_repo_commit": "1920836f" + "regenerated": "2025-01-09 07:26:53.356807", + "spec_repo_commit": "3aea9230" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index fadab8d3ec6..32f1be566d5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1636,7 +1636,8 @@ components: - apm_retention_filter AppBuilderEvent: additionalProperties: {} - description: The definition of `AppBuilderEvent` object. + description: An event on a UI component that triggers a response or action in + an app. properties: name: $ref: '#/components/schemas/AppBuilderEventName' @@ -1693,40 +1694,58 @@ components: description: The definition of `AppMeta` object. properties: created_at: - description: The `AppMeta` `created_at`. + description: Timestamp of when the app was created. + format: date-time type: string deleted_at: - description: The `AppMeta` `deleted_at`. + description: Timestamp of when the app was deleted. + format: date-time type: string org_id: - description: The `AppMeta` `org_id`. + description: The Datadog organization ID that owns the app. format: int64 type: integer run_as_user: - description: The `AppMeta` `run_as_user`. + description: The user ID under which queries from the app are run. If unspecified, + the app runs as the user who created the app. type: string updated_at: - description: The `AppMeta` `updated_at`. + description: Timestamp of when the app was last updated. + format: date-time type: string updated_since_deployment: - description: The `AppMeta` `updated_since_deployment`. + description: Whether the app has been updated since it was last deployed. + Deployed apps are pinned to a specific version and do not automatically + update when the app is updated. type: boolean user_id: - description: The `AppMeta` `user_id`. + description: The ID of the user who created the app. format: int64 type: integer user_name: - description: The `AppMeta` `user_name`. + description: The name (or email address) of the user who created the app. type: string user_uuid: - description: The `AppMeta` `user_uuid`. + description: The UUID of the user who created the app. format: uuid type: string version: - description: The `AppMeta` `version`. + description: The version number of the app. This starts at 1 and increments + with each update. format: int64 type: integer type: object + AppRelationship: + description: The app's deployment relationship and custom connections. + properties: + connections: + description: Array of custom connections used by the app. + items: + $ref: '#/components/schemas/CustomConnection' + type: array + deployment: + $ref: '#/components/schemas/DeploymentRelationship' + type: object ApplicationKeyCreateAttributes: description: Attributes used to create an application Key. properties: @@ -5875,19 +5894,22 @@ components: - location type: object Component: - description: The definition of `Component` object. + description: A UI component in an app. See + for more details on the various components available. properties: events: - description: The `Component` `events`. + description: Events to listen for on the UI component. items: $ref: '#/components/schemas/AppBuilderEvent' type: array id: - description: The `Component` `id`. + description: The ID of the UI component. This property is deprecated, use + `name` to identify individual components instead. nullable: true type: string name: - description: The `Component` `name`. + description: A unique identifier for this UI component. The name will also + be visible in the app editor. example: '' type: string properties: @@ -5900,18 +5922,20 @@ components: - properties type: object ComponentGrid: - description: The definition of `ComponentGrid` object. + description: A grid component. properties: events: - description: The `ComponentGrid` `events`. + description: Events to listen for on the grid component. items: $ref: '#/components/schemas/AppBuilderEvent' type: array id: - description: The `ComponentGrid` `id`. + description: The ID of the grid component. This property is deprecated, + use `name` to identify individual components instead. type: string name: - description: The `ComponentGrid` `name`. + description: A unique identifier for this grid component. The name will + also be visible in the app editor. example: '' type: string properties: @@ -5924,14 +5948,14 @@ components: - properties type: object ComponentGridProperties: - description: The definition of `ComponentGridProperties` object. + description: Properties of a grid component. properties: backgroundColor: default: default - description: The `ComponentGridProperties` `backgroundColor`. + description: The background color of the grid. type: string children: - description: The `ComponentGridProperties` `children`. + description: The child components of the grid. items: $ref: '#/components/schemas/Component' type: array @@ -5939,13 +5963,14 @@ components: $ref: '#/components/schemas/ComponentGridPropertiesIsVisible' type: object ComponentGridPropertiesIsVisible: - description: The definition of `ComponentGridPropertiesIsVisible` object. + description: Whether the grid component and its children are visible. If a string, + it should be a valid JavaScript expression that evaluates to a boolean. oneOf: - type: string - default: true type: boolean ComponentGridType: - description: The definition of `ComponentGridType` object. + description: The grid component type. enum: - grid example: grid @@ -5954,10 +5979,12 @@ components: - GRID ComponentProperties: additionalProperties: {} - description: The definition of `ComponentProperties` object. + description: Properties of a UI component. Different component types can have + its own additional unique properties. See + for more details on the various components and their properties. properties: children: - description: The `ComponentProperties` `children`. + description: The child components of the UI component. items: $ref: '#/components/schemas/Component' type: array @@ -5965,7 +5992,8 @@ components: $ref: '#/components/schemas/ComponentPropertiesIsVisible' type: object ComponentPropertiesIsVisible: - description: The definition of `ComponentPropertiesIsVisible` object. + description: Whether the UI component is visible. If a string, it should be + a valid JavaScript expression that evaluates to a boolean. oneOf: - type: boolean - description: If a string, it should be a valid JavaScript expression that @@ -5973,7 +6001,7 @@ components: example: ${true} type: string ComponentType: - description: The definition of `ComponentType` object. + description: The UI component type. enum: - table - textInput @@ -7020,7 +7048,7 @@ components: x-enum-varnames: - COST_BY_ORG CreateAppRequest: - description: The definition of `CreateAppRequest` object. + description: A request object for creating a new app. example: data: attributes: @@ -7064,7 +7092,7 @@ components: $ref: '#/components/schemas/CreateAppRequestData' type: object CreateAppRequestData: - description: The definition of `CreateAppRequestData` object. + description: The data object containing the app definition. properties: attributes: $ref: '#/components/schemas/CreateAppRequestDataAttributes' @@ -7074,43 +7102,42 @@ components: - type type: object CreateAppRequestDataAttributes: - description: The definition of `CreateAppRequestDataAttributes` object. + description: App definition attributes such as name, description, and components. properties: components: - description: The `attributes` `components`. + description: The UI components that make up the app. items: $ref: '#/components/schemas/ComponentGrid' type: array description: - description: The `attributes` `description`. + description: A human-readable description for the app. type: string embeddedQueries: - description: The `attributes` `embeddedQueries`. + description: An array of queries, such as external actions and state variables, + that the app uses. items: $ref: '#/components/schemas/Query' type: array - inputSchema: - $ref: '#/components/schemas/InputSchema' name: - description: The `attributes` `name`. + description: The name of the app. type: string rootInstanceName: - description: The `attributes` `rootInstanceName`. + description: The name of the root component of the app. This should be a + `grid` component that contains all other components. type: string - scripts: - description: The `attributes` `scripts`. - items: - $ref: '#/components/schemas/Script' - type: array tags: - description: The `attributes` `tags`. + description: A list of tags for the app, which can be used to filter apps. + example: + - service:webshop-backend + - team:webshop items: + description: An individual tag for the app. type: string type: array type: object CreateAppRequestDataType: default: appDefinitions - description: The definition of `CreateAppRequestDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -7118,17 +7145,19 @@ components: x-enum-varnames: - APPDEFINITIONS CreateAppResponse: - description: The definition of `CreateAppResponse` object. + description: The response object after a new app has been successfully created, + with the app ID. properties: data: $ref: '#/components/schemas/CreateAppResponseData' type: object CreateAppResponseData: - description: The definition of `CreateAppResponseData` object. + description: The data object containing the app ID. properties: id: - description: The `data` `id`. + description: The ID of the created app. example: '' + format: uuid type: string type: $ref: '#/components/schemas/CreateAppResponseDataType' @@ -7138,7 +7167,7 @@ components: type: object CreateAppResponseDataType: default: appDefinitions - description: The definition of `CreateAppResponseDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -7499,38 +7528,40 @@ components: $ref: '#/components/schemas/CsmServerlessCoverageAnalysisData' type: object CustomConnection: - description: The definition of `CustomConnection` object. + description: A custom connection used by an app. properties: attributes: $ref: '#/components/schemas/CustomConnectionAttributes' id: - description: The `CustomConnection` `id`. + description: The ID of the custom connection. + format: uuid type: string type: $ref: '#/components/schemas/CustomConnectionType' type: object CustomConnectionAttributes: - description: The definition of `CustomConnectionAttributes` object. + description: The custom connection attributes. properties: name: - description: The `attributes` `name`. + description: The name of the custom connection. type: string onPremRunner: $ref: '#/components/schemas/CustomConnectionAttributesOnPremRunner' type: object CustomConnectionAttributesOnPremRunner: - description: The definition of `CustomConnectionAttributesOnPremRunner` object. + description: Information about the Private Action Runner used by the custom + connection, if the custom connection is associated with a Private Action Runner. properties: id: - description: The `onPremRunner` `id`. + description: The Private Action Runner ID. type: string url: - description: The `onPremRunner` `url`. + description: The URL of the Private Action Runner. type: string type: object CustomConnectionType: default: custom_connections - description: The definition of `CustomConnectionType` object. + description: The custom connection type. enum: - custom_connections type: string @@ -8918,7 +8949,7 @@ components: type: array type: object DeleteAppResponse: - description: The definition of `DeleteAppResponse` object. + description: The response object after an app has been successfully deleted. properties: data: $ref: '#/components/schemas/DeleteAppResponseData' @@ -8927,8 +8958,9 @@ components: description: The definition of `DeleteAppResponseData` object. properties: id: - description: The `data` `id`. + description: The ID of the deleted app. example: '' + format: uuid type: string type: $ref: '#/components/schemas/DeleteAppResponseDataType' @@ -8938,7 +8970,7 @@ components: type: object DeleteAppResponseDataType: default: appDefinitions - description: The definition of `DeleteAppResponseDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -8946,28 +8978,29 @@ components: x-enum-varnames: - APPDEFINITIONS DeleteAppsRequest: - description: The definition of `DeleteAppsRequest` object. + description: A request object for deleting multiple apps by ID. example: data: - - id: 29494ddd-ac13-46a7-8558-b05b050ee755 + - id: aea2ed17-b45f-40d0-ba59-c86b7972c901 type: appDefinitions - - id: 71c0d358-eac5-41e3-892d-a7467571b9b0 + - id: f69bb8be-6168-4fe7-a30d-370256b6504a type: appDefinitions - - id: 98e7e44d-1562-474a-90f7-3a94e739c006 + - id: ab1ed73e-13ad-4426-b0df-a0ff8876a088 type: appDefinitions properties: data: - description: The `DeleteAppsRequest` `data`. + description: An array of objects containing the IDs of the apps to delete. items: $ref: '#/components/schemas/DeleteAppsRequestDataItems' type: array type: object DeleteAppsRequestDataItems: - description: The definition of `DeleteAppsRequestDataItems` object. + description: An object containing the ID of an app to delete. properties: id: - description: The `items` `id`. + description: The ID of the app to delete. example: '' + format: uuid type: string type: $ref: '#/components/schemas/DeleteAppsRequestDataItemsType' @@ -8977,7 +9010,7 @@ components: type: object DeleteAppsRequestDataItemsType: default: appDefinitions - description: The definition of `DeleteAppsRequestDataItemsType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -8985,20 +9018,22 @@ components: x-enum-varnames: - APPDEFINITIONS DeleteAppsResponse: - description: The definition of `DeleteAppsResponse` object. + description: The response object after multiple apps have been successfully + deleted. properties: data: - description: The `DeleteAppsResponse` `data`. + description: An array of objects containing the IDs of the deleted apps. items: $ref: '#/components/schemas/DeleteAppsResponseDataItems' type: array type: object DeleteAppsResponseDataItems: - description: The definition of `DeleteAppsResponseDataItems` object. + description: An object containing the ID of a deleted app. properties: id: - description: The `items` `id`. + description: The ID of the deleted app. example: '' + format: uuid type: string type: $ref: '#/components/schemas/DeleteAppsResponseDataItemsType' @@ -9008,7 +9043,7 @@ components: type: object DeleteAppsResponseDataItemsType: default: appDefinitions - description: The definition of `DeleteAppsResponseDataItemsType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -9050,7 +9085,8 @@ components: - column_end type: object DeployAppResponse: - description: The definition of `DeployAppResponse` object. + description: The response object after an app has been successfully deployed + (published). properties: data: $ref: '#/components/schemas/DeployAppResponseData' @@ -9061,7 +9097,8 @@ components: attributes: $ref: '#/components/schemas/DeployAppResponseDataAttributes' id: - description: The `data` `id`. + description: The ID of the deployment. + format: uuid type: string meta: $ref: '#/components/schemas/DeploymentMeta' @@ -9069,47 +9106,28 @@ components: $ref: '#/components/schemas/DeployAppResponseDataType' type: object DeployAppResponseDataAttributes: - description: The definition of `DeployAppResponseDataAttributes` object. + description: The attributes object containing the app version ID. properties: app_version_id: - description: The `attributes` `app_version_id`. + description: The version ID of the app that was deployed. + format: uuid type: string type: object DeployAppResponseDataType: default: deployment - description: The definition of `DeployAppResponseDataType` object. + description: The deployment type. enum: - deployment type: string x-enum-varnames: - DEPLOYMENT - Deployment: - description: The definition of `Deployment` object. - properties: - attributes: - $ref: '#/components/schemas/DeploymentAttributes' - id: - description: The `Deployment` `id`. - type: string - meta: - $ref: '#/components/schemas/DeploymentMeta' - type: - $ref: '#/components/schemas/DeploymentType' - type: object - DeploymentAttributes: - description: The definition of `DeploymentAttributes` object. - properties: - app_version_id: - description: The `attributes` `app_version_id`. - type: string - type: object DeploymentIncluded: - description: The definition of `DeploymentIncluded` object. + description: The version of the app that was deployed (published). properties: attributes: $ref: '#/components/schemas/DeploymentIncludedAttributes' id: - description: The `DeploymentIncluded` `id`. + description: The deployment ID. type: string meta: $ref: '#/components/schemas/DeploymentIncludedMeta' @@ -9117,58 +9135,61 @@ components: $ref: '#/components/schemas/DeploymentIncludedType' type: object DeploymentIncludedAttributes: - description: The definition of `DeploymentIncludedAttributes` object. + description: The attributes object containing the deployed app's version ID. properties: app_version_id: - description: The `attributes` `app_version_id`. + description: The version ID of the app that was deployed. + format: uuid type: string type: object DeploymentIncludedMeta: description: The definition of `DeploymentIncludedMeta` object. properties: created_at: - description: The `meta` `created_at`. + description: Timestamp of when the deployment was created. + format: date-time type: string user_id: - description: The `meta` `user_id`. + description: The ID of the user who deployed the app. format: int64 type: integer user_name: - description: The `meta` `user_name`. + description: The name (or email address) of the user who deployed the app. type: string user_uuid: - description: The `meta` `user_uuid`. + description: The UUID of the user who deployed the app. format: uuid type: string type: object DeploymentIncludedType: default: deployment - description: The definition of `DeploymentIncludedType` object. + description: The deployment type. enum: - deployment type: string x-enum-varnames: - DEPLOYMENT DeploymentMeta: - description: The definition of `DeploymentMeta` object. + description: Metadata on an app deployment. properties: created_at: - description: The `DeploymentMeta` `created_at`. + description: Timestamp of when the deployment was created. + format: date-time type: string user_id: - description: The `DeploymentMeta` `user_id`. + description: The ID of the user who deployed the app. format: int64 type: integer user_name: - description: The `DeploymentMeta` `user_name`. + description: The name (or email address) of the user who deployed the app. type: string user_uuid: - description: The `DeploymentMeta` `user_uuid`. + description: The UUID of the user who deployed the app. format: uuid type: string type: object DeploymentRelationship: - description: The definition of `DeploymentRelationship` object. + description: Information pointing to the app's deployment status. properties: data: $ref: '#/components/schemas/DeploymentRelationshipData' @@ -9176,48 +9197,42 @@ components: $ref: '#/components/schemas/DeploymentRelationshipMeta' type: object DeploymentRelationshipData: - description: The definition of `DeploymentRelationshipData` object. + description: Data object containing the deployment ID. properties: id: - description: The `data` `id`. + description: The deployment ID. + format: uuid type: string type: $ref: '#/components/schemas/DeploymentRelationshipDataType' type: object DeploymentRelationshipDataType: default: deployment - description: The definition of `DeploymentRelationshipDataType` object. + description: The deployment type. enum: - deployment type: string x-enum-varnames: - DEPLOYMENT DeploymentRelationshipMeta: - description: The definition of `DeploymentRelationshipMeta` object. + description: Metadata object containing the deployment creation information. properties: created_at: - description: The `meta` `created_at`. + description: Timestamp of when the deployment was created. + format: date-time type: string user_id: - description: The `meta` `user_id`. + description: The ID of the user who deployed the app. format: int64 type: integer user_name: - description: The `meta` `user_name`. + description: The name (or email address) of the user who deployed the app. type: string user_uuid: - description: The `meta` `user_uuid`. + description: The UUID of the user who deployed the app. format: uuid type: string type: object - DeploymentType: - default: deployment - description: The definition of `DeploymentType` object. - enum: - - deployment - type: string - x-enum-varnames: - - DEPLOYMENT DetailedFinding: description: A single finding with with message and resource configuration. properties: @@ -9402,18 +9417,21 @@ components: type: string type: object DisableAppResponse: - description: The definition of `DisableAppResponse` object. + description: The response object after an app has been successfully disabled + (no longer published). properties: data: $ref: '#/components/schemas/DisableAppResponseData' type: object DisableAppResponseData: - description: The definition of `DisableAppResponseData` object. + description: The data object containing the deployment ID. properties: attributes: $ref: '#/components/schemas/DisableAppResponseDataAttributes' id: - description: The `data` `id`. + description: The ID of the deployment. Disabling an app counts as a new + deployment. + format: uuid type: string meta: $ref: '#/components/schemas/DeploymentMeta' @@ -9421,15 +9439,18 @@ components: $ref: '#/components/schemas/DisableAppResponseDataType' type: object DisableAppResponseDataAttributes: - description: The definition of `DisableAppResponseDataAttributes` object. + description: The attributes object containing the app version ID. properties: app_version_id: - description: The `attributes` `app_version_id`. + description: For a disabled app, this will always be the null UUID, i.e. + `00000000-0000-0000-0000-000000000000`. + example: 00000000-0000-0000-0000-000000000000 + format: uuid type: string type: object DisableAppResponseDataType: default: deployment - description: The definition of `DisableAppResponseDataType` object. + description: The deployment type. enum: - deployment type: string @@ -12230,28 +12251,29 @@ components: x-enum-varnames: - GCP_SERVICE_ACCOUNT GetAppResponse: - description: The definition of `GetAppResponse` object. + description: The full app definition response object. properties: data: $ref: '#/components/schemas/GetAppResponseData' included: - description: The `GetAppResponse` `included`. + description: Data on the version of the app that was deployed (published). items: $ref: '#/components/schemas/DeploymentIncluded' type: array meta: $ref: '#/components/schemas/AppMeta' relationship: - $ref: '#/components/schemas/GetAppResponseRelationship' + $ref: '#/components/schemas/AppRelationship' type: object GetAppResponseData: - description: The definition of `GetAppResponseData` object. + description: The data object containing the app definition. properties: attributes: $ref: '#/components/schemas/GetAppResponseDataAttributes' id: - description: The `data` `id`. + description: The ID of the app. example: '' + format: uuid type: string type: $ref: '#/components/schemas/GetAppResponseDataType' @@ -12261,63 +12283,51 @@ components: - attributes type: object GetAppResponseDataAttributes: - description: The definition of `GetAppResponseDataAttributes` object. + description: The app definition attributes such as name, description, and components. properties: components: - description: The `attributes` `components`. + description: The UI components that make up the app. items: $ref: '#/components/schemas/ComponentGrid' type: array description: - description: The `attributes` `description`. + description: A human-readable description for the app. type: string embeddedQueries: - description: The `attributes` `embeddedQueries`. + description: An array of queries, such as external actions and state variables, + that the app uses. items: $ref: '#/components/schemas/Query' type: array favorite: - description: The `attributes` `favorite`. + description: Whether the app is marked as a favorite by the current user. type: boolean - inputSchema: - $ref: '#/components/schemas/InputSchema' name: - description: The `attributes` `name`. + description: The name of the app. type: string rootInstanceName: - description: The `attributes` `rootInstanceName`. + description: The name of the root component of the app. This should be a + `grid` component that contains all other components. type: string - scripts: - description: The `attributes` `scripts`. - items: - $ref: '#/components/schemas/Script' - type: array tags: - description: The `attributes` `tags`. + description: A list of tags for the app, which can be used to filter apps. + example: + - service:webshop-backend + - team:webshop items: + description: An individual tag for the app. type: string type: array type: object GetAppResponseDataType: default: appDefinitions - description: The definition of `GetAppResponseDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions type: string x-enum-varnames: - APPDEFINITIONS - GetAppResponseRelationship: - description: The definition of `GetAppResponseRelationship` object. - properties: - connections: - description: The `relationship` `connections`. - items: - $ref: '#/components/schemas/CustomConnection' - type: array - deployment: - $ref: '#/components/schemas/DeploymentRelationship' - type: object GetDataDeletionsResponseBody: description: The response from the get data deletion requests endpoint. properties: @@ -15030,77 +15040,6 @@ components: - ONCALL - INCIDENT - RELATION - InputSchema: - description: The definition of `InputSchema` object. - properties: - data: - $ref: '#/components/schemas/InputSchemaData' - type: object - InputSchemaData: - description: The definition of `InputSchemaData` object. - properties: - attributes: - $ref: '#/components/schemas/InputSchemaDataAttributes' - id: - description: The `data` `id`. - type: string - type: - $ref: '#/components/schemas/InputSchemaDataType' - type: object - InputSchemaDataAttributes: - description: The definition of `InputSchemaDataAttributes` object. - properties: - parameters: - description: The `attributes` `parameters`. - items: - $ref: '#/components/schemas/InputSchemaDataAttributesParametersItems' - type: array - type: object - InputSchemaDataAttributesParametersItems: - description: The definition of `InputSchemaDataAttributesParametersItems` object. - properties: - data: - $ref: '#/components/schemas/InputSchemaDataAttributesParametersItemsData' - type: object - InputSchemaDataAttributesParametersItemsData: - description: The definition of `InputSchemaDataAttributesParametersItemsData` - object. - properties: - attributes: - $ref: '#/components/schemas/InputSchemaDataAttributesParametersItemsDataAttributes' - type: object - InputSchemaDataAttributesParametersItemsDataAttributes: - description: The definition of `InputSchemaDataAttributesParametersItemsDataAttributes` - object. - properties: - defaultValue: - description: The `attributes` `defaultValue`. - description: - description: The `attributes` `description`. - type: string - enum: - description: The `attributes` `enum`. - items: - type: string - type: array - label: - description: The `attributes` `label`. - type: string - name: - description: The `attributes` `name`. - type: string - type: - description: The `attributes` `type`. - type: string - type: object - InputSchemaDataType: - default: inputSchema - description: The definition of `InputSchemaDataType` object. - enum: - - inputSchema - type: string - x-enum-varnames: - - INPUTSCHEMA IntakePayloadAccepted: description: The payload accepted for intake. properties: @@ -15546,15 +15485,15 @@ components: $ref: '#/components/schemas/ApplicationKeyResponseMeta' type: object ListAppsResponse: - description: The definition of `ListAppsResponse` object. + description: A paginated list of apps matching the specified filters and sorting. properties: data: - description: The `ListAppsResponse` `data`. + description: An array of app definitions. items: $ref: '#/components/schemas/ListAppsResponseDataItems' type: array included: - description: The `ListAppsResponse` `included`. + description: Data on the version of the app that was deployed (published). items: $ref: '#/components/schemas/DeploymentIncluded' type: array @@ -15562,13 +15501,15 @@ components: $ref: '#/components/schemas/ListAppsResponseMeta' type: object ListAppsResponseDataItems: - description: The definition of `ListAppsResponseDataItems` object. + description: An app definition object. This only contains basic information + about the app such as ID, name, and tags. properties: attributes: $ref: '#/components/schemas/ListAppsResponseDataItemsAttributes' id: - description: The `items` `id`. + description: The ID of the app. example: '' + format: uuid type: string meta: $ref: '#/components/schemas/AppMeta' @@ -15582,35 +15523,41 @@ components: - attributes type: object ListAppsResponseDataItemsAttributes: - description: The definition of `ListAppsResponseDataItemsAttributes` object. + description: Basic information about the app such as name, description, and + tags. properties: description: - description: The `attributes` `description`. + description: A human-readable description for the app. type: string favorite: - description: The `attributes` `favorite`. + description: Whether the app is marked as a favorite by the current user. type: boolean name: - description: The `attributes` `name`. + description: The name of the app. type: string selfService: - description: The `attributes` `selfService`. + description: Whether the app is enabled for use in the Datadog self-service + hub. type: boolean tags: - description: The `attributes` `tags`. + description: A list of tags for the app, which can be used to filter apps. + example: + - service:webshop-backend + - team:webshop items: + description: An individual tag for the app. type: string type: array type: object ListAppsResponseDataItemsRelationships: - description: The definition of `ListAppsResponseDataItemsRelationships` object. + description: The app's deployment information. properties: deployment: $ref: '#/components/schemas/DeploymentRelationship' type: object ListAppsResponseDataItemsType: default: appDefinitions - description: The definition of `ListAppsResponseDataItemsType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -15618,20 +15565,21 @@ components: x-enum-varnames: - APPDEFINITIONS ListAppsResponseMeta: - description: The definition of `ListAppsResponseMeta` object. + description: Pagination metadata. properties: page: $ref: '#/components/schemas/ListAppsResponseMetaPage' type: object ListAppsResponseMetaPage: - description: The definition of `ListAppsResponseMetaPage` object. + description: Information on the total number of apps to be used for pagination. properties: totalCount: - description: The `page` `totalCount`. + description: The total number of apps under the Datadog organization, disregarding + any filters applied. format: int64 type: integer totalFilteredCount: - description: The `page` `totalFilteredCount`. + description: The total number of apps that match the specified filters. format: int64 type: integer type: object @@ -20466,19 +20414,22 @@ components: type: array type: object Query: - description: The definition of `Query` object. + description: A query used by an app. This can take the form of an external action, + a data transformation, or a state variable change. properties: events: - description: The `Query` `events`. + description: Events to listen for downstream of the query. items: $ref: '#/components/schemas/AppBuilderEvent' type: array id: - description: The `Query` `id`. + description: The ID of the query. example: '' + format: uuid type: string name: - description: The `Query` `name`. + description: The name of the query. The name should be unique within the + app, and will be visible in the app editor. example: '' type: string properties: @@ -20514,7 +20465,7 @@ components: - ASC - DESC QueryType: - description: The definition of `QueryType` object. + description: The query type. enum: - action - stateVariable @@ -23109,44 +23060,6 @@ components: type: string x-enum-varnames: - SCORECARD - Script: - description: The definition of `Script` object. - properties: - data: - $ref: '#/components/schemas/ScriptData' - type: object - ScriptData: - description: The definition of `ScriptData` object. - properties: - attributes: - $ref: '#/components/schemas/ScriptDataAttributes' - id: - description: The `data` `id`. - type: string - type: - $ref: '#/components/schemas/ScriptDataType' - type: object - ScriptDataAttributes: - description: The definition of `ScriptDataAttributes` object. - properties: - name: - description: The `attributes` `name`. - type: string - src: - description: The `attributes` `src`. - type: string - type: - description: The `attributes` `type`. - type: string - type: object - ScriptDataType: - default: scripts - description: The definition of `ScriptDataType` object. - enum: - - scripts - type: string - x-enum-varnames: - - SCRIPTS SecurityFilter: description: The security filter's properties. properties: @@ -28763,7 +28676,7 @@ components: type: string type: object UpdateAppRequest: - description: The definition of `UpdateAppRequest` object. + description: A request object for updating an existing app. example: data: attributes: @@ -28808,12 +28721,15 @@ components: $ref: '#/components/schemas/UpdateAppRequestData' type: object UpdateAppRequestData: - description: The definition of `UpdateAppRequestData` object. + description: The data object containing the new app definition. Any fields not + included in the request will remain unchanged. properties: attributes: $ref: '#/components/schemas/UpdateAppRequestDataAttributes' id: - description: The `data` `id`. + description: The ID of the app to update. The app ID must match the ID in + the URL path. + format: uuid type: string type: $ref: '#/components/schemas/UpdateAppRequestDataType' @@ -28821,43 +28737,48 @@ components: - type type: object UpdateAppRequestDataAttributes: - description: The definition of `UpdateAppRequestDataAttributes` object. + description: App definition attributes to be updated such as name, description, + and components. properties: components: - description: The `attributes` `components`. + description: The new UI components that make up the app. If this field is + set, all existing components will be replaced with the new components + under this field. items: $ref: '#/components/schemas/ComponentGrid' type: array description: - description: The `attributes` `description`. + description: The new human-readable description for the app. type: string embeddedQueries: - description: The `attributes` `embeddedQueries`. + description: The new array of queries, such as external actions and state + variables, that the app uses. If this field is set, all existing queries + will be replaced with the new queries under this field. items: $ref: '#/components/schemas/Query' type: array - inputSchema: - $ref: '#/components/schemas/InputSchema' name: - description: The `attributes` `name`. + description: The new name of the app. type: string rootInstanceName: - description: The `attributes` `rootInstanceName`. + description: The new name of the root component of the app. This should + be a `grid` component that contains all other components. type: string - scripts: - description: The `attributes` `scripts`. - items: - $ref: '#/components/schemas/Script' - type: array tags: - description: The `attributes` `tags`. + description: The new list of tags for the app, which can be used to filter + apps. If this field is set, any existing tags not included in the request + will be removed. + example: + - service:webshop-backend + - team:webshop items: + description: An individual tag for the app. type: string type: array type: object UpdateAppRequestDataType: default: appDefinitions - description: The definition of `UpdateAppRequestDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions @@ -28865,28 +28786,29 @@ components: x-enum-varnames: - APPDEFINITIONS UpdateAppResponse: - description: The definition of `UpdateAppResponse` object. + description: The response object after an app has been successfully updated. properties: data: $ref: '#/components/schemas/UpdateAppResponseData' included: - description: The `UpdateAppResponse` `included`. + description: Data on the version of the app that was deployed (published). items: $ref: '#/components/schemas/DeploymentIncluded' type: array meta: $ref: '#/components/schemas/AppMeta' relationship: - $ref: '#/components/schemas/UpdateAppResponseRelationship' + $ref: '#/components/schemas/AppRelationship' type: object UpdateAppResponseData: - description: The definition of `UpdateAppResponseData` object. + description: The data object containing the updated app definition. properties: attributes: $ref: '#/components/schemas/UpdateAppResponseDataAttributes' id: - description: The `data` `id`. + description: The ID of the updated app. example: '' + format: uuid type: string type: $ref: '#/components/schemas/UpdateAppResponseDataType' @@ -28896,63 +28818,52 @@ components: - attributes type: object UpdateAppResponseDataAttributes: - description: The definition of `UpdateAppResponseDataAttributes` object. + description: The updated app definition attributes such as name, description, + and components. properties: components: - description: The `attributes` `components`. + description: The UI components that make up the app. items: $ref: '#/components/schemas/ComponentGrid' type: array description: - description: The `attributes` `description`. + description: The human-readable description for the app. type: string embeddedQueries: - description: The `attributes` `embeddedQueries`. + description: An array of queries, such as external actions and state variables, + that the app uses. items: $ref: '#/components/schemas/Query' type: array favorite: - description: The `attributes` `favorite`. + description: Whether the app is marked as a favorite by the current user. type: boolean - inputSchema: - $ref: '#/components/schemas/InputSchema' name: - description: The `attributes` `name`. + description: The name of the app. type: string rootInstanceName: - description: The `attributes` `rootInstanceName`. + description: The name of the root component of the app. This should be a + `grid` component that contains all other components. type: string - scripts: - description: The `attributes` `scripts`. - items: - $ref: '#/components/schemas/Script' - type: array tags: - description: The `attributes` `tags`. + description: A list of tags for the app, which can be used to filter apps. + example: + - service:webshop-backend + - team:webshop items: + description: An individual tag for the app. type: string type: array type: object UpdateAppResponseDataType: default: appDefinitions - description: The definition of `UpdateAppResponseDataType` object. + description: The app definition type. enum: - appDefinitions example: appDefinitions type: string x-enum-varnames: - APPDEFINITIONS - UpdateAppResponseRelationship: - description: The definition of `UpdateAppResponseRelationship` object. - properties: - connections: - description: The `relationship` `connections`. - items: - $ref: '#/components/schemas/CustomConnection' - type: array - deployment: - $ref: '#/components/schemas/DeploymentRelationship' - type: object UpdateOpenAPIResponse: description: Response for `UpdateOpenAPI`. properties: @@ -31103,7 +31014,7 @@ paths: - apm_pipelines_write /api/v2/app-builder/apps: delete: - description: Delete multiple apps by ID + description: Delete multiple apps in a single request from a list of app IDs. operationId: DeleteApps requestBody: content: @@ -31148,7 +31059,9 @@ paths: x-unstable: '**Note**: App Builder API endpoints are still under active development and may change at any time.' get: - description: List all apps, with optional filters and sorting + description: List all apps, with optional filters and sorting. This endpoint + is paginated. Only basic app information such as the app ID, name, and description + is returned by this endpoint. operationId: ListApps parameters: - description: The number of apps to return per page. @@ -31255,7 +31168,7 @@ paths: x-unstable: '**Note**: App Builder API endpoints are still under active development and may change at any time.' post: - description: Create a new app, returning the app ID + description: Create a new app, returning the app ID. operationId: CreateApp requestBody: content: @@ -31269,7 +31182,7 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateAppResponse' - description: App Created + description: Created '400': content: application/json: @@ -31297,13 +31210,15 @@ paths: and may change at any time.' /api/v2/app-builder/apps/{app_id}: delete: - description: Delete an app by ID + description: Delete a single app. operationId: DeleteApp parameters: - - in: path + - description: The ID of the app to delete. + in: path name: app_id required: true schema: + format: uuid type: string responses: '200': @@ -31348,15 +31263,21 @@ paths: x-unstable: '**Note**: App Builder API endpoints are still under active development and may change at any time.' get: - description: Get the full definition of an app by ID + description: Get the full definition of an app. operationId: GetApp parameters: - - in: path + - description: The ID of the app to retrieve. + in: path name: app_id required: true schema: + format: uuid type: string - - in: query + - description: The version number of the app to retrieve. If not specified, + the latest version is returned. Version numbers start at 1 and increment + with each update. The special values `latest` and `deployed` can be used + to retrieve the latest version or the published version, respectively. + in: query name: version required: false schema: @@ -31399,13 +31320,15 @@ paths: x-unstable: '**Note**: App Builder API endpoints are still under active development and may change at any time.' patch: - description: Update an existing app by ID. Creates a new version of the app + description: Update an existing app. This creates a new version of the app. operationId: UpdateApp parameters: - - in: path + - description: The ID of the app to update. + in: path name: app_id required: true schema: + format: uuid type: string requestBody: content: @@ -31447,13 +31370,16 @@ paths: and may change at any time.' /api/v2/app-builder/apps/{app_id}/deployment: delete: - description: Disable an app by ID + description: Disable (no longer publish) an app. The app can still be updated + and deployed again in the future. operationId: DisableApp parameters: - - in: path + - description: The ID of the app to disable. + in: path name: app_id required: true schema: + format: uuid type: string responses: '200': @@ -31492,13 +31418,17 @@ paths: x-unstable: '**Note**: App Builder API endpoints are still under active development and may change at any time.' post: - description: Deploy (publish) an app by ID + description: Deploy (publish) an app for use by other users. You may also need + to set a [Restriction Policy](https://docs.datadoghq.com/api/latest/restriction-policies/) + on the app to ensure it is accessible to the correct users. operationId: DeployApp parameters: - - in: path + - description: The ID of the app to deploy. + in: path name: app_id required: true schema: + format: uuid type: string responses: '201': diff --git a/examples/v2/apps/CreateApp.java b/examples/v2/apps/CreateApp.java index 23c584fb4a2..10c09589323 100644 --- a/examples/v2/apps/CreateApp.java +++ b/examples/v2/apps/CreateApp.java @@ -1,4 +1,4 @@ -// Create App returns "App Created" response +// Create App returns "Created" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; diff --git a/examples/v2/apps/DeleteApp.java b/examples/v2/apps/DeleteApp.java index d87bdf504c7..31b134fb046 100644 --- a/examples/v2/apps/DeleteApp.java +++ b/examples/v2/apps/DeleteApp.java @@ -4,6 +4,7 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.AppsApi; import com.datadog.api.client.v2.model.DeleteAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -12,7 +13,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } try { DeleteAppResponse result = apiInstance.deleteApp(APP_DATA_ID); diff --git a/examples/v2/apps/DeleteApps.java b/examples/v2/apps/DeleteApps.java index 1d699b1c0d0..c46a8acddbf 100644 --- a/examples/v2/apps/DeleteApps.java +++ b/examples/v2/apps/DeleteApps.java @@ -8,6 +8,7 @@ import com.datadog.api.client.v2.model.DeleteAppsRequestDataItemsType; import com.datadog.api.client.v2.model.DeleteAppsResponse; import java.util.Collections; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -16,7 +17,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } DeleteAppsRequest body = new DeleteAppsRequest() diff --git a/examples/v2/apps/DeployApp.java b/examples/v2/apps/DeployApp.java index 44983e6577b..9e2c238e6ef 100644 --- a/examples/v2/apps/DeployApp.java +++ b/examples/v2/apps/DeployApp.java @@ -4,6 +4,7 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.AppsApi; import com.datadog.api.client.v2.model.DeployAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -12,7 +13,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } try { DeployAppResponse result = apiInstance.deployApp(APP_DATA_ID); diff --git a/examples/v2/apps/DisableApp.java b/examples/v2/apps/DisableApp.java index d3fb4a34ee2..090eecb24b6 100644 --- a/examples/v2/apps/DisableApp.java +++ b/examples/v2/apps/DisableApp.java @@ -4,6 +4,7 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.AppsApi; import com.datadog.api.client.v2.model.DisableAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -12,7 +13,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } try { DisableAppResponse result = apiInstance.disableApp(APP_DATA_ID); diff --git a/examples/v2/apps/GetApp.java b/examples/v2/apps/GetApp.java index d7ed390962e..3859b81017a 100644 --- a/examples/v2/apps/GetApp.java +++ b/examples/v2/apps/GetApp.java @@ -4,6 +4,7 @@ import com.datadog.api.client.ApiException; import com.datadog.api.client.v2.api.AppsApi; import com.datadog.api.client.v2.model.GetAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -12,7 +13,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } try { GetAppResponse result = apiInstance.getApp(APP_DATA_ID); diff --git a/examples/v2/apps/UpdateApp.java b/examples/v2/apps/UpdateApp.java index 86f6f4216a8..a7d7f619353 100644 --- a/examples/v2/apps/UpdateApp.java +++ b/examples/v2/apps/UpdateApp.java @@ -8,6 +8,7 @@ import com.datadog.api.client.v2.model.UpdateAppRequestDataAttributes; import com.datadog.api.client.v2.model.UpdateAppRequestDataType; import com.datadog.api.client.v2.model.UpdateAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { @@ -16,7 +17,12 @@ public static void main(String[] args) { AppsApi apiInstance = new AppsApi(defaultClient); // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); + UUID APP_DATA_ID = null; + try { + APP_DATA_ID = UUID.fromString(System.getenv("APP_DATA_ID")); + } catch (IllegalArgumentException e) { + System.err.println("Error parsing UUID: " + e.getMessage()); + } UpdateAppRequest body = new UpdateAppRequest() diff --git a/src/main/java/com/datadog/api/client/v2/api/AppsApi.java b/src/main/java/com/datadog/api/client/v2/api/AppsApi.java index 545161b41f3..6c88a357a71 100644 --- a/src/main/java/com/datadog/api/client/v2/api/AppsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/AppsApi.java @@ -86,7 +86,7 @@ public CompletableFuture createAppAsync(CreateAppRequest body } /** - * Create a new app, returning the app ID + * Create a new app, returning the app ID. * * @param body (required) * @return ApiResponse<CreateAppResponse> @@ -95,7 +95,7 @@ public CompletableFuture createAppAsync(CreateAppRequest body * * * - * + * * * * @@ -207,11 +207,11 @@ public CompletableFuture> createAppWithHttpInfoAs * *

See {@link #deleteAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to delete. (required) * @return DeleteAppResponse * @throws ApiException if fails to make API call */ - public DeleteAppResponse deleteApp(String appId) throws ApiException { + public DeleteAppResponse deleteApp(UUID appId) throws ApiException { return deleteAppWithHttpInfo(appId).getData(); } @@ -220,10 +220,10 @@ public DeleteAppResponse deleteApp(String appId) throws ApiException { * *

See {@link #deleteAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to delete. (required) * @return CompletableFuture<DeleteAppResponse> */ - public CompletableFuture deleteAppAsync(String appId) { + public CompletableFuture deleteAppAsync(UUID appId) { return deleteAppWithHttpInfoAsync(appId) .thenApply( response -> { @@ -232,9 +232,9 @@ public CompletableFuture deleteAppAsync(String appId) { } /** - * Delete an app by ID + * Delete a single app. * - * @param appId (required) + * @param appId The ID of the app to delete. (required) * @return ApiResponse<DeleteAppResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -249,7 +249,7 @@ public CompletableFuture deleteAppAsync(String appId) { *

*
Response details
Status Code Description Response Headers
201 App Created -
201 Created -
400 Bad Request -
403 Forbidden -
429 Too many requests -
429 Too many requests -
*/ - public ApiResponse deleteAppWithHttpInfo(String appId) throws ApiException { + public ApiResponse deleteAppWithHttpInfo(UUID appId) throws ApiException { // Check if unstable operation is enabled String operationId = "deleteApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -295,11 +295,10 @@ public ApiResponse deleteAppWithHttpInfo(String appId) throws * *

See {@link #deleteAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to delete. (required) * @return CompletableFuture<ApiResponse<DeleteAppResponse>> */ - public CompletableFuture> deleteAppWithHttpInfoAsync( - String appId) { + public CompletableFuture> deleteAppWithHttpInfoAsync(UUID appId) { // Check if unstable operation is enabled String operationId = "deleteApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -383,7 +382,7 @@ public CompletableFuture deleteAppsAsync(DeleteAppsRequest b } /** - * Delete multiple apps by ID + * Delete multiple apps in a single request from a list of app IDs. * * @param body (required) * @return ApiResponse<DeleteAppsResponse> @@ -505,11 +504,11 @@ public CompletableFuture> deleteAppsWithHttpInfo * *

See {@link #deployAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to deploy. (required) * @return DeployAppResponse * @throws ApiException if fails to make API call */ - public DeployAppResponse deployApp(String appId) throws ApiException { + public DeployAppResponse deployApp(UUID appId) throws ApiException { return deployAppWithHttpInfo(appId).getData(); } @@ -518,10 +517,10 @@ public DeployAppResponse deployApp(String appId) throws ApiException { * *

See {@link #deployAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to deploy. (required) * @return CompletableFuture<DeployAppResponse> */ - public CompletableFuture deployAppAsync(String appId) { + public CompletableFuture deployAppAsync(UUID appId) { return deployAppWithHttpInfoAsync(appId) .thenApply( response -> { @@ -530,9 +529,11 @@ public CompletableFuture deployAppAsync(String appId) { } /** - * Deploy (publish) an app by ID + * Deploy (publish) an app for use by other users. You may also need to set a Restriction Policy on + * the app to ensure it is accessible to the correct users. * - * @param appId (required) + * @param appId The ID of the app to deploy. (required) * @return ApiResponse<DeployAppResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -546,7 +547,7 @@ public CompletableFuture deployAppAsync(String appId) { * 429 Too many requests - * */ - public ApiResponse deployAppWithHttpInfo(String appId) throws ApiException { + public ApiResponse deployAppWithHttpInfo(UUID appId) throws ApiException { // Check if unstable operation is enabled String operationId = "deployApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -592,11 +593,10 @@ public ApiResponse deployAppWithHttpInfo(String appId) throws * *

See {@link #deployAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to deploy. (required) * @return CompletableFuture<ApiResponse<DeployAppResponse>> */ - public CompletableFuture> deployAppWithHttpInfoAsync( - String appId) { + public CompletableFuture> deployAppWithHttpInfoAsync(UUID appId) { // Check if unstable operation is enabled String operationId = "deployApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -655,11 +655,11 @@ public CompletableFuture> deployAppWithHttpInfoAs * *

See {@link #disableAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to disable. (required) * @return DisableAppResponse * @throws ApiException if fails to make API call */ - public DisableAppResponse disableApp(String appId) throws ApiException { + public DisableAppResponse disableApp(UUID appId) throws ApiException { return disableAppWithHttpInfo(appId).getData(); } @@ -668,10 +668,10 @@ public DisableAppResponse disableApp(String appId) throws ApiException { * *

See {@link #disableAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to disable. (required) * @return CompletableFuture<DisableAppResponse> */ - public CompletableFuture disableAppAsync(String appId) { + public CompletableFuture disableAppAsync(UUID appId) { return disableAppWithHttpInfoAsync(appId) .thenApply( response -> { @@ -680,9 +680,10 @@ public CompletableFuture disableAppAsync(String appId) { } /** - * Disable an app by ID + * Disable (no longer publish) an app. The app can still be updated and deployed again in the + * future. * - * @param appId (required) + * @param appId The ID of the app to disable. (required) * @return ApiResponse<DisableAppResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -696,7 +697,7 @@ public CompletableFuture disableAppAsync(String appId) { * 429 Too many requests - * */ - public ApiResponse disableAppWithHttpInfo(String appId) throws ApiException { + public ApiResponse disableAppWithHttpInfo(UUID appId) throws ApiException { // Check if unstable operation is enabled String operationId = "disableApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -742,11 +743,11 @@ public ApiResponse disableAppWithHttpInfo(String appId) thro * *

See {@link #disableAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to disable. (required) * @return CompletableFuture<ApiResponse<DisableAppResponse>> */ public CompletableFuture> disableAppWithHttpInfoAsync( - String appId) { + UUID appId) { // Check if unstable operation is enabled String operationId = "disableApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -807,7 +808,10 @@ public static class GetAppOptionalParameters { /** * Set version. * - * @param version (optional) + * @param version The version number of the app to retrieve. If not specified, the latest + * version is returned. Version numbers start at 1 and increment with each update. The + * special values latest and deployed can be used to retrieve the + * latest version or the published version, respectively. (optional) * @return GetAppOptionalParameters */ public GetAppOptionalParameters version(String version) { @@ -821,11 +825,11 @@ public GetAppOptionalParameters version(String version) { * *

See {@link #getAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @return GetAppResponse * @throws ApiException if fails to make API call */ - public GetAppResponse getApp(String appId) throws ApiException { + public GetAppResponse getApp(UUID appId) throws ApiException { return getAppWithHttpInfo(appId, new GetAppOptionalParameters()).getData(); } @@ -834,10 +838,10 @@ public GetAppResponse getApp(String appId) throws ApiException { * *

See {@link #getAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @return CompletableFuture<GetAppResponse> */ - public CompletableFuture getAppAsync(String appId) { + public CompletableFuture getAppAsync(UUID appId) { return getAppWithHttpInfoAsync(appId, new GetAppOptionalParameters()) .thenApply( response -> { @@ -850,12 +854,12 @@ public CompletableFuture getAppAsync(String appId) { * *

See {@link #getAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @param parameters Optional parameters for the request. * @return GetAppResponse * @throws ApiException if fails to make API call */ - public GetAppResponse getApp(String appId, GetAppOptionalParameters parameters) + public GetAppResponse getApp(UUID appId, GetAppOptionalParameters parameters) throws ApiException { return getAppWithHttpInfo(appId, parameters).getData(); } @@ -865,12 +869,12 @@ public GetAppResponse getApp(String appId, GetAppOptionalParameters parameters) * *

See {@link #getAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<GetAppResponse> */ public CompletableFuture getAppAsync( - String appId, GetAppOptionalParameters parameters) { + UUID appId, GetAppOptionalParameters parameters) { return getAppWithHttpInfoAsync(appId, parameters) .thenApply( response -> { @@ -879,9 +883,9 @@ public CompletableFuture getAppAsync( } /** - * Get the full definition of an app by ID + * Get the full definition of an app. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @param parameters Optional parameters for the request. * @return ApiResponse<GetAppResponse> * @throws ApiException if fails to make API call @@ -897,7 +901,7 @@ public CompletableFuture getAppAsync( * */ public ApiResponse getAppWithHttpInfo( - String appId, GetAppOptionalParameters parameters) throws ApiException { + UUID appId, GetAppOptionalParameters parameters) throws ApiException { // Check if unstable operation is enabled String operationId = "getApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -947,12 +951,12 @@ public ApiResponse getAppWithHttpInfo( * *

See {@link #getAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to retrieve. (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<GetAppResponse>> */ public CompletableFuture> getAppWithHttpInfoAsync( - String appId, GetAppOptionalParameters parameters) { + UUID appId, GetAppOptionalParameters parameters) { // Check if unstable operation is enabled String operationId = "getApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { @@ -1204,7 +1208,8 @@ public CompletableFuture listAppsAsync(ListAppsOptionalParamet } /** - * List all apps, with optional filters and sorting + * List all apps, with optional filters and sorting. This endpoint is paginated. Only basic app + * information such as the app ID, name, and description is returned by this endpoint. * * @param parameters Optional parameters for the request. * @return ApiResponse<ListAppsResponse> @@ -1362,12 +1367,12 @@ public CompletableFuture> listAppsWithHttpInfoAsyn * *

See {@link #updateAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to update. (required) * @param body (required) * @return UpdateAppResponse * @throws ApiException if fails to make API call */ - public UpdateAppResponse updateApp(String appId, UpdateAppRequest body) throws ApiException { + public UpdateAppResponse updateApp(UUID appId, UpdateAppRequest body) throws ApiException { return updateAppWithHttpInfo(appId, body).getData(); } @@ -1376,11 +1381,11 @@ public UpdateAppResponse updateApp(String appId, UpdateAppRequest body) throws A * *

See {@link #updateAppWithHttpInfoAsync}. * - * @param appId (required) + * @param appId The ID of the app to update. (required) * @param body (required) * @return CompletableFuture<UpdateAppResponse> */ - public CompletableFuture updateAppAsync(String appId, UpdateAppRequest body) { + public CompletableFuture updateAppAsync(UUID appId, UpdateAppRequest body) { return updateAppWithHttpInfoAsync(appId, body) .thenApply( response -> { @@ -1389,9 +1394,9 @@ public CompletableFuture updateAppAsync(String appId, UpdateA } /** - * Update an existing app by ID. Creates a new version of the app + * Update an existing app. This creates a new version of the app. * - * @param appId (required) + * @param appId The ID of the app to update. (required) * @param body (required) * @return ApiResponse<UpdateAppResponse> * @throws ApiException if fails to make API call @@ -1405,7 +1410,7 @@ public CompletableFuture updateAppAsync(String appId, UpdateA * 429 Too many requests - * */ - public ApiResponse updateAppWithHttpInfo(String appId, UpdateAppRequest body) + public ApiResponse updateAppWithHttpInfo(UUID appId, UpdateAppRequest body) throws ApiException { // Check if unstable operation is enabled String operationId = "updateApp"; @@ -1457,12 +1462,12 @@ public ApiResponse updateAppWithHttpInfo(String appId, Update * *

See {@link #updateAppWithHttpInfo}. * - * @param appId (required) + * @param appId The ID of the app to update. (required) * @param body (required) * @return CompletableFuture<ApiResponse<UpdateAppResponse>> */ public CompletableFuture> updateAppWithHttpInfoAsync( - String appId, UpdateAppRequest body) { + UUID appId, UpdateAppRequest body) { // Check if unstable operation is enabled String operationId = "updateApp"; if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { diff --git a/src/main/java/com/datadog/api/client/v2/model/AppBuilderEvent.java b/src/main/java/com/datadog/api/client/v2/model/AppBuilderEvent.java index 98eb2db281c..342fba1110a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AppBuilderEvent.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppBuilderEvent.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of AppBuilderEvent object. */ +/** An event on a UI component that triggers a response or action in an app. */ @JsonPropertyOrder({AppBuilderEvent.JSON_PROPERTY_NAME, AppBuilderEvent.JSON_PROPERTY_TYPE}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") diff --git a/src/main/java/com/datadog/api/client/v2/model/AppMeta.java b/src/main/java/com/datadog/api/client/v2/model/AppMeta.java index 0735550f0ee..4e01bec109c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AppMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppMeta.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -35,10 +36,10 @@ public class AppMeta { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private String createdAt; + private OffsetDateTime createdAt; public static final String JSON_PROPERTY_DELETED_AT = "deleted_at"; - private String deletedAt; + private OffsetDateTime deletedAt; public static final String JSON_PROPERTY_ORG_ID = "org_id"; private Long orgId; @@ -47,7 +48,7 @@ public class AppMeta { private String runAsUser; public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; - private String updatedAt; + private OffsetDateTime updatedAt; public static final String JSON_PROPERTY_UPDATED_SINCE_DEPLOYMENT = "updated_since_deployment"; private Boolean updatedSinceDeployment; @@ -64,45 +65,45 @@ public class AppMeta { public static final String JSON_PROPERTY_VERSION = "version"; private Long version; - public AppMeta createdAt(String createdAt) { + public AppMeta createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } /** - * The AppMeta created_at. + * Timestamp of when the app was created. * * @return createdAt */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCreatedAt() { + public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(String createdAt) { + public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } - public AppMeta deletedAt(String deletedAt) { + public AppMeta deletedAt(OffsetDateTime deletedAt) { this.deletedAt = deletedAt; return this; } /** - * The AppMeta deleted_at. + * Timestamp of when the app was deleted. * * @return deletedAt */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DELETED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeletedAt() { + public OffsetDateTime getDeletedAt() { return deletedAt; } - public void setDeletedAt(String deletedAt) { + public void setDeletedAt(OffsetDateTime deletedAt) { this.deletedAt = deletedAt; } @@ -112,7 +113,7 @@ public AppMeta orgId(Long orgId) { } /** - * The AppMeta org_id. + * The Datadog organization ID that owns the app. * * @return orgId */ @@ -133,7 +134,8 @@ public AppMeta runAsUser(String runAsUser) { } /** - * The AppMeta run_as_user. + * The user ID under which queries from the app are run. If unspecified, the app runs as the user + * who created the app. * * @return runAsUser */ @@ -148,24 +150,24 @@ public void setRunAsUser(String runAsUser) { this.runAsUser = runAsUser; } - public AppMeta updatedAt(String updatedAt) { + public AppMeta updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; } /** - * The AppMeta updated_at. + * Timestamp of when the app was last updated. * * @return updatedAt */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUpdatedAt() { + public OffsetDateTime getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(String updatedAt) { + public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } @@ -175,7 +177,8 @@ public AppMeta updatedSinceDeployment(Boolean updatedSinceDeployment) { } /** - * The AppMeta updated_since_deployment. + * Whether the app has been updated since it was last deployed. Deployed apps are pinned to a + * specific version and do not automatically update when the app is updated. * * @return updatedSinceDeployment */ @@ -196,7 +199,7 @@ public AppMeta userId(Long userId) { } /** - * The AppMeta user_id. + * The ID of the user who created the app. * * @return userId */ @@ -217,7 +220,7 @@ public AppMeta userName(String userName) { } /** - * The AppMeta user_name. + * The name (or email address) of the user who created the app. * * @return userName */ @@ -238,7 +241,7 @@ public AppMeta userUuid(UUID userUuid) { } /** - * The AppMeta user_uuid. + * The UUID of the user who created the app. * * @return userUuid */ @@ -259,7 +262,7 @@ public AppMeta version(Long version) { } /** - * The AppMeta version. + * The version number of the app. This starts at 1 and increments with each update. * * @return version */ diff --git a/src/main/java/com/datadog/api/client/v2/model/GetAppResponseRelationship.java b/src/main/java/com/datadog/api/client/v2/model/AppRelationship.java similarity index 78% rename from src/main/java/com/datadog/api/client/v2/model/GetAppResponseRelationship.java rename to src/main/java/com/datadog/api/client/v2/model/AppRelationship.java index bd0694c7da7..f676b68f37a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GetAppResponseRelationship.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppRelationship.java @@ -18,14 +18,14 @@ import java.util.Map; import java.util.Objects; -/** The definition of GetAppResponseRelationship object. */ +/** The app's deployment relationship and custom connections. */ @JsonPropertyOrder({ - GetAppResponseRelationship.JSON_PROPERTY_CONNECTIONS, - GetAppResponseRelationship.JSON_PROPERTY_DEPLOYMENT + AppRelationship.JSON_PROPERTY_CONNECTIONS, + AppRelationship.JSON_PROPERTY_DEPLOYMENT }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class GetAppResponseRelationship { +public class AppRelationship { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_CONNECTIONS = "connections"; private List connections = null; @@ -33,7 +33,7 @@ public class GetAppResponseRelationship { public static final String JSON_PROPERTY_DEPLOYMENT = "deployment"; private DeploymentRelationship deployment; - public GetAppResponseRelationship connections(List connections) { + public AppRelationship connections(List connections) { this.connections = connections; for (CustomConnection item : connections) { this.unparsed |= item.unparsed; @@ -41,7 +41,7 @@ public GetAppResponseRelationship connections(List connections return this; } - public GetAppResponseRelationship addConnectionsItem(CustomConnection connectionsItem) { + public AppRelationship addConnectionsItem(CustomConnection connectionsItem) { if (this.connections == null) { this.connections = new ArrayList<>(); } @@ -51,7 +51,7 @@ public GetAppResponseRelationship addConnectionsItem(CustomConnection connection } /** - * The relationship connections. + * Array of custom connections used by the app. * * @return connections */ @@ -66,14 +66,14 @@ public void setConnections(List connections) { this.connections = connections; } - public GetAppResponseRelationship deployment(DeploymentRelationship deployment) { + public AppRelationship deployment(DeploymentRelationship deployment) { this.deployment = deployment; this.unparsed |= deployment.unparsed; return this; } /** - * The definition of DeploymentRelationship object. + * Information pointing to the app's deployment status. * * @return deployment */ @@ -100,10 +100,10 @@ public void setDeployment(DeploymentRelationship deployment) { * * @param key The arbitrary key to set * @param value The associated value - * @return GetAppResponseRelationship + * @return AppRelationship */ @JsonAnySetter - public GetAppResponseRelationship putAdditionalProperty(String key, Object value) { + public AppRelationship putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -134,7 +134,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this GetAppResponseRelationship object is equal to o. */ + /** Return true if this AppRelationship object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -143,11 +143,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetAppResponseRelationship getAppResponseRelationship = (GetAppResponseRelationship) o; - return Objects.equals(this.connections, getAppResponseRelationship.connections) - && Objects.equals(this.deployment, getAppResponseRelationship.deployment) - && Objects.equals( - this.additionalProperties, getAppResponseRelationship.additionalProperties); + AppRelationship appRelationship = (AppRelationship) o; + return Objects.equals(this.connections, appRelationship.connections) + && Objects.equals(this.deployment, appRelationship.deployment) + && Objects.equals(this.additionalProperties, appRelationship.additionalProperties); } @Override @@ -158,7 +157,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GetAppResponseRelationship {\n"); + sb.append("class AppRelationship {\n"); sb.append(" connections: ").append(toIndentedString(connections)).append("\n"); sb.append(" deployment: ").append(toIndentedString(deployment)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/Component.java b/src/main/java/com/datadog/api/client/v2/model/Component.java index debd0e273c5..a918bcb0e09 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Component.java +++ b/src/main/java/com/datadog/api/client/v2/model/Component.java @@ -20,7 +20,11 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** The definition of Component object. */ +/** + * A UI component in an app. See https://docs.datadoghq.com/service_management/app_builder/components/ + * for more details on the various components available. + */ @JsonPropertyOrder({ Component.JSON_PROPERTY_EVENTS, Component.JSON_PROPERTY_ID, @@ -80,7 +84,7 @@ public Component addEventsItem(AppBuilderEvent eventsItem) { } /** - * The Component events. + * Events to listen for on the UI component. * * @return events */ @@ -101,7 +105,8 @@ public Component id(String id) { } /** - * The Component id. + * The ID of the UI component. This property is deprecated, use name to identify + * individual components instead. * * @return id */ @@ -132,7 +137,7 @@ public Component name(String name) { } /** - * The Component name. + * A unique identifier for this UI component. The name will also be visible in the app editor. * * @return name */ @@ -153,7 +158,10 @@ public Component properties(ComponentProperties properties) { } /** - * The definition of ComponentProperties object. + * Properties of a UI component. Different component types can have its own additional unique + * properties. See https://docs.datadoghq.com/service_management/app_builder/components/ + * for more details on the various components and their properties. * * @return properties */ @@ -174,7 +182,7 @@ public Component type(ComponentType type) { } /** - * The definition of ComponentType object. + * The UI component type. * * @return type */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ComponentGrid.java b/src/main/java/com/datadog/api/client/v2/model/ComponentGrid.java index 2e8c1e91dd3..9ca4828141a 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ComponentGrid.java +++ b/src/main/java/com/datadog/api/client/v2/model/ComponentGrid.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of ComponentGrid object. */ +/** A grid component. */ @JsonPropertyOrder({ ComponentGrid.JSON_PROPERTY_EVENTS, ComponentGrid.JSON_PROPERTY_ID, @@ -79,7 +79,7 @@ public ComponentGrid addEventsItem(AppBuilderEvent eventsItem) { } /** - * The ComponentGrid events. + * Events to listen for on the grid component. * * @return events */ @@ -100,7 +100,8 @@ public ComponentGrid id(String id) { } /** - * The ComponentGrid id. + * The ID of the grid component. This property is deprecated, use name to identify + * individual components instead. * * @return id */ @@ -121,7 +122,7 @@ public ComponentGrid name(String name) { } /** - * The ComponentGrid name. + * A unique identifier for this grid component. The name will also be visible in the app editor. * * @return name */ @@ -142,7 +143,7 @@ public ComponentGrid properties(ComponentGridProperties properties) { } /** - * The definition of ComponentGridProperties object. + * Properties of a grid component. * * @return properties */ @@ -163,7 +164,7 @@ public ComponentGrid type(ComponentGridType type) { } /** - * The definition of ComponentGridType object. + * The grid component type. * * @return type */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ComponentGridProperties.java b/src/main/java/com/datadog/api/client/v2/model/ComponentGridProperties.java index 111e2484083..4def4b3fa65 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ComponentGridProperties.java +++ b/src/main/java/com/datadog/api/client/v2/model/ComponentGridProperties.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of ComponentGridProperties object. */ +/** Properties of a grid component. */ @JsonPropertyOrder({ ComponentGridProperties.JSON_PROPERTY_BACKGROUND_COLOR, ComponentGridProperties.JSON_PROPERTY_CHILDREN, @@ -43,7 +43,7 @@ public ComponentGridProperties backgroundColor(String backgroundColor) { } /** - * The ComponentGridProperties backgroundColor. + * The background color of the grid. * * @return backgroundColor */ @@ -76,7 +76,7 @@ public ComponentGridProperties addChildrenItem(Component childrenItem) { } /** - * The ComponentGridProperties children. + * The child components of the grid. * * @return children */ @@ -98,7 +98,8 @@ public ComponentGridProperties isVisible(ComponentGridPropertiesIsVisible isVisi } /** - * The definition of ComponentGridPropertiesIsVisible object. + * Whether the grid component and its children are visible. If a string, it should be a valid + * JavaScript expression that evaluates to a boolean. * * @return isVisible */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ComponentGridType.java b/src/main/java/com/datadog/api/client/v2/model/ComponentGridType.java index e469df77806..5884c9b8514 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ComponentGridType.java +++ b/src/main/java/com/datadog/api/client/v2/model/ComponentGridType.java @@ -18,7 +18,7 @@ import java.util.HashSet; import java.util.Set; -/** The definition of ComponentGridType object. */ +/** The grid component type. */ @JsonSerialize(using = ComponentGridType.ComponentGridTypeSerializer.class) public class ComponentGridType extends ModelEnum { diff --git a/src/main/java/com/datadog/api/client/v2/model/ComponentProperties.java b/src/main/java/com/datadog/api/client/v2/model/ComponentProperties.java index 29670fc8e6c..62aa8fcc10b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ComponentProperties.java +++ b/src/main/java/com/datadog/api/client/v2/model/ComponentProperties.java @@ -18,7 +18,12 @@ import java.util.Map; import java.util.Objects; -/** The definition of ComponentProperties object. */ +/** + * Properties of a UI component. Different component types can have its own additional unique + * properties. See https://docs.datadoghq.com/service_management/app_builder/components/ + * for more details on the various components and their properties. + */ @JsonPropertyOrder({ ComponentProperties.JSON_PROPERTY_CHILDREN, ComponentProperties.JSON_PROPERTY_IS_VISIBLE @@ -51,7 +56,7 @@ public ComponentProperties addChildrenItem(Component childrenItem) { } /** - * The ComponentProperties children. + * The child components of the UI component. * * @return children */ @@ -73,7 +78,8 @@ public ComponentProperties isVisible(ComponentPropertiesIsVisible isVisible) { } /** - * The definition of ComponentPropertiesIsVisible object. + * Whether the UI component is visible. If a string, it should be a valid JavaScript expression + * that evaluates to a boolean. * * @return isVisible */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ComponentType.java b/src/main/java/com/datadog/api/client/v2/model/ComponentType.java index c29c3223c05..3b054e00567 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ComponentType.java +++ b/src/main/java/com/datadog/api/client/v2/model/ComponentType.java @@ -18,7 +18,7 @@ import java.util.HashSet; import java.util.Set; -/** The definition of ComponentType object. */ +/** The UI component type. */ @JsonSerialize(using = ComponentType.ComponentTypeSerializer.class) public class ComponentType extends ModelEnum { diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequest.java b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequest.java index dee6d8896e0..50ef3da9d3e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequest.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequest.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateAppRequest object. */ +/** A request object for creating a new app. */ @JsonPropertyOrder({CreateAppRequest.JSON_PROPERTY_DATA}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -32,7 +32,7 @@ public CreateAppRequest data(CreateAppRequestData data) { } /** - * The definition of CreateAppRequestData object. + * The data object containing the app definition. * * @return data */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestData.java b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestData.java index e464271eed5..dfa2cf24660 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestData.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestData.java @@ -17,7 +17,7 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateAppRequestData object. */ +/** The data object containing the app definition. */ @JsonPropertyOrder({ CreateAppRequestData.JSON_PROPERTY_ATTRIBUTES, CreateAppRequestData.JSON_PROPERTY_TYPE @@ -48,7 +48,7 @@ public CreateAppRequestData attributes(CreateAppRequestDataAttributes attributes } /** - * The definition of CreateAppRequestDataAttributes object. + * App definition attributes such as name, description, and components. * * @return attributes */ @@ -70,7 +70,7 @@ public CreateAppRequestData type(CreateAppRequestDataType type) { } /** - * The definition of CreateAppRequestDataType object. + * The app definition type. * * @return type */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestDataAttributes.java index 2d2990a1eda..da0eeb01d30 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CreateAppRequestDataAttributes.java @@ -18,15 +18,13 @@ import java.util.Map; import java.util.Objects; -/** The definition of CreateAppRequestDataAttributes object. */ +/** App definition attributes such as name, description, and components. */ @JsonPropertyOrder({ CreateAppRequestDataAttributes.JSON_PROPERTY_COMPONENTS, CreateAppRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, CreateAppRequestDataAttributes.JSON_PROPERTY_EMBEDDED_QUERIES, - CreateAppRequestDataAttributes.JSON_PROPERTY_INPUT_SCHEMA, CreateAppRequestDataAttributes.JSON_PROPERTY_NAME, CreateAppRequestDataAttributes.JSON_PROPERTY_ROOT_INSTANCE_NAME, - CreateAppRequestDataAttributes.JSON_PROPERTY_SCRIPTS, CreateAppRequestDataAttributes.JSON_PROPERTY_TAGS }) @jakarta.annotation.Generated( @@ -42,18 +40,12 @@ public class CreateAppRequestDataAttributes { public static final String JSON_PROPERTY_EMBEDDED_QUERIES = "embeddedQueries"; private List embeddedQueries = null; - public static final String JSON_PROPERTY_INPUT_SCHEMA = "inputSchema"; - private InputSchema inputSchema; - public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_ROOT_INSTANCE_NAME = "rootInstanceName"; private String rootInstanceName; - public static final String JSON_PROPERTY_SCRIPTS = "scripts"; - private List