diff --git a/.apigentools-info b/.apigentools-info index 79fe8cc16df..8e1812c0c5b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-24 15:02:25.293273", - "spec_repo_commit": "582cdbd4" + "regenerated": "2025-01-24 20:40:41.152061", + "spec_repo_commit": "c6ec55eb" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-24 15:02:25.309336", - "spec_repo_commit": "582cdbd4" + "regenerated": "2025-01-24 20:40:41.167595", + "spec_repo_commit": "c6ec55eb" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c8e2261b218..98324635ee3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1824,7 +1824,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' @@ -1844,6 +1845,7 @@ components: - close - open - executionFinished + example: click type: string x-enum-varnames: - PAGECHANGE @@ -1867,6 +1869,7 @@ components: - openUrl - downloadFile - setStateVariableValue + example: triggerQuery type: string x-enum-varnames: - CUSTOM @@ -1877,44 +1880,77 @@ components: - OPENURL - DOWNLOADFILE - SETSTATEVARIABLEVALUE + AppDefinitionType: + default: appDefinitions + description: The app definition type. + enum: + - appDefinitions + example: appDefinitions + type: string + x-enum-varnames: + - APPDEFINITIONS + AppDeploymentType: + default: deployment + description: The deployment type. + enum: + - deployment + example: deployment + type: string + x-enum-varnames: + - DEPLOYMENT AppMeta: - description: The definition of `AppMeta` object. + description: Metadata of an app. 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`. - 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 was updated since it was last published. Published + 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 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 publication 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: @@ -2077,6 +2113,7 @@ components: - -created_at - -updated_at - -user_name + example: -created_at type: string x-enum-varnames: - NAME @@ -6066,19 +6103,21 @@ components: - location type: object Component: - description: The definition of `Component` object. + description: '[Definition of a UI component in the app](https://docs.datadoghq.com/service_management/app_builder/components/)' 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. This name is also + visible in the app editor. example: '' type: string properties: @@ -6091,18 +6130,21 @@ components: - properties type: object ComponentGrid: - description: The definition of `ComponentGrid` object. + description: A grid component. The grid component is the root canvas for an + app and contains all other components. 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. This name is also + visible in the app editor. example: '' type: string properties: @@ -6115,14 +6157,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 @@ -6130,13 +6172,15 @@ 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 must be a valid JavaScript expression that evaluates to a boolean. oneOf: - type: string - default: true type: boolean ComponentGridType: - description: The definition of `ComponentGridType` object. + default: grid + description: The grid component type. enum: - grid example: grid @@ -6145,10 +6189,12 @@ components: - GRID ComponentProperties: additionalProperties: {} - description: The definition of `ComponentProperties` object. + description: Properties of a UI component. Different component types can have + their own additional unique properties. See the [components documentation](https://docs.datadoghq.com/service_management/app_builder/components/) + for more detail on each component type and its properties. properties: children: - description: The `ComponentProperties` `children`. + description: The child components of the UI component. items: $ref: '#/components/schemas/Component' type: array @@ -6156,15 +6202,16 @@ components: $ref: '#/components/schemas/ComponentPropertiesIsVisible' type: object ComponentPropertiesIsVisible: - description: The definition of `ComponentPropertiesIsVisible` object. + description: Whether the UI component is visible. If this is a string, it must + 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 - evaluates to a boolean. + - description: If this is a string, it must be a valid JavaScript expression + that evaluates to a boolean. example: ${true} type: string ComponentType: - description: The definition of `ComponentType` object. + description: The UI component type. enum: - table - textInput @@ -6186,7 +6233,7 @@ components: - search - container - calloutValue - example: table + example: text type: string x-enum-varnames: - TABLE @@ -7225,7 +7272,7 @@ components: $ref: '#/components/schemas/ActionConnectionData' type: object CreateAppRequest: - description: The definition of `CreateAppRequest` object. + description: A request object for creating a new app. example: data: attributes: @@ -7269,87 +7316,70 @@ 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' type: - $ref: '#/components/schemas/CreateAppRequestDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - 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 must 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. - enum: - - appDefinitions - example: appDefinitions - type: string - x-enum-varnames: - - APPDEFINITIONS CreateAppResponse: - description: The definition of `CreateAppResponse` object. + description: The response object after a new app is 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`. - example: '' + description: The ID of the created app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/CreateAppResponseDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type type: object - CreateAppResponseDataType: - default: appDefinitions - description: The definition of `CreateAppResponseDataType` object. - enum: - - appDefinitions - example: appDefinitions - type: string - x-enum-varnames: - - APPDEFINITIONS CreateDataDeletionRequestBody: description: Object needed to create a data deletion request. properties: @@ -7751,40 +7781,44 @@ 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + 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 + example: custom_connections type: string x-enum-varnames: - CUSTOM_CONNECTIONS @@ -9175,7 +9209,7 @@ components: format: int64 type: integer DeleteAppResponse: - description: The definition of `DeleteAppResponse` object. + description: The response object after an app is successfully deleted. properties: data: $ref: '#/components/schemas/DeleteAppResponseData' @@ -9184,94 +9218,70 @@ components: description: The definition of `DeleteAppResponseData` object. properties: id: - description: The `data` `id`. - example: '' + description: The ID of the deleted app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/DeleteAppResponseDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type type: object - DeleteAppResponseDataType: - default: appDefinitions - description: The definition of `DeleteAppResponseDataType` object. - enum: - - appDefinitions - example: appDefinitions - type: string - 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`. - example: '' + description: The ID of the app to delete. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/DeleteAppsRequestDataItemsType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type type: object - DeleteAppsRequestDataItemsType: - default: appDefinitions - description: The definition of `DeleteAppsRequestDataItemsType` object. - enum: - - appDefinitions - example: appDefinitions - type: string - x-enum-varnames: - - APPDEFINITIONS DeleteAppsResponse: - description: The definition of `DeleteAppsResponse` object. + description: The response object after multiple apps are 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`. - example: '' + description: The ID of the deleted app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/DeleteAppsResponseDataItemsType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type type: object - DeleteAppsResponseDataItemsType: - default: appDefinitions - description: The definition of `DeleteAppsResponseDataItemsType` object. - enum: - - appDefinitions - example: appDefinitions - type: string - x-enum-varnames: - - APPDEFINITIONS DependencyLocation: description: Static library vulnerability location. properties: @@ -9306,175 +9316,71 @@ components: - column_start - column_end type: object - DeployAppResponse: - description: The definition of `DeployAppResponse` object. - properties: - data: - $ref: '#/components/schemas/DeployAppResponseData' - type: object - DeployAppResponseData: - description: The definition of `DeployAppResponseData` object. - properties: - attributes: - $ref: '#/components/schemas/DeployAppResponseDataAttributes' - id: - description: The `data` `id`. - type: string - meta: - $ref: '#/components/schemas/DeploymentMeta' - type: - $ref: '#/components/schemas/DeployAppResponseDataType' - type: object - DeployAppResponseDataAttributes: - description: The definition of `DeployAppResponseDataAttributes` object. - properties: - app_version_id: - description: The `attributes` `app_version_id`. - type: string - type: object - DeployAppResponseDataType: - default: deployment - description: The definition of `DeployAppResponseDataType` object. - enum: - - deployment - type: string - x-enum-varnames: - - DEPLOYMENT Deployment: - description: The definition of `Deployment` object. + description: The version of the app that was published. properties: attributes: $ref: '#/components/schemas/DeploymentAttributes' id: - description: The `Deployment` `id`. + description: The deployment ID. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string meta: - $ref: '#/components/schemas/DeploymentMeta' + $ref: '#/components/schemas/DeploymentMetadata' type: - $ref: '#/components/schemas/DeploymentType' + $ref: '#/components/schemas/AppDeploymentType' 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. - properties: - attributes: - $ref: '#/components/schemas/DeploymentIncludedAttributes' - id: - description: The `DeploymentIncluded` `id`. - type: string - meta: - $ref: '#/components/schemas/DeploymentIncludedMeta' - type: - $ref: '#/components/schemas/DeploymentIncludedType' - type: object - DeploymentIncludedAttributes: - description: The definition of `DeploymentIncludedAttributes` object. + description: The attributes object containing the version ID of the published + app. properties: app_version_id: - description: The `attributes` `app_version_id`. - type: string - type: object - DeploymentIncludedMeta: - description: The definition of `DeploymentIncludedMeta` object. - properties: - created_at: - description: The `meta` `created_at`. - type: string - user_id: - description: The `meta` `user_id`. - format: int64 - type: integer - user_name: - description: The `meta` `user_name`. - type: string - user_uuid: - description: The `meta` `user_uuid`. + description: The version ID of the app that was published. For an unpublished + app, this is always the nil UUID (`00000000-0000-0000-0000-000000000000`). + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 format: uuid type: string type: object - DeploymentIncludedType: - default: deployment - description: The definition of `DeploymentIncludedType` object. - enum: - - deployment - type: string - x-enum-varnames: - - DEPLOYMENT - DeploymentMeta: - description: The definition of `DeploymentMeta` object. + DeploymentMetadata: + description: Metadata object containing the publication creation information. properties: created_at: - description: The `DeploymentMeta` `created_at`. + description: Timestamp of when the app was published. + format: date-time type: string user_id: - description: The `DeploymentMeta` `user_id`. + description: The ID of the user who published the app. format: int64 type: integer user_name: - description: The `DeploymentMeta` `user_name`. + description: The name (or email address) of the user who published the app. type: string user_uuid: - description: The `DeploymentMeta` `user_uuid`. + description: The UUID of the user who published the app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 format: uuid type: string type: object DeploymentRelationship: - description: The definition of `DeploymentRelationship` object. + description: Information pointing to the app's publication status. properties: data: $ref: '#/components/schemas/DeploymentRelationshipData' meta: - $ref: '#/components/schemas/DeploymentRelationshipMeta' + $ref: '#/components/schemas/DeploymentMetadata' type: object DeploymentRelationshipData: - description: The definition of `DeploymentRelationshipData` object. + description: Data object containing the deployment ID. properties: id: - description: The `data` `id`. - type: string - type: - $ref: '#/components/schemas/DeploymentRelationshipDataType' - type: object - DeploymentRelationshipDataType: - default: deployment - description: The definition of `DeploymentRelationshipDataType` object. - enum: - - deployment - type: string - x-enum-varnames: - - DEPLOYMENT - DeploymentRelationshipMeta: - description: The definition of `DeploymentRelationshipMeta` object. - properties: - created_at: - description: The `meta` `created_at`. - type: string - user_id: - description: The `meta` `user_id`. - format: int64 - type: integer - user_name: - description: The `meta` `user_name`. - type: string - user_uuid: - description: The `meta` `user_uuid`. + description: The deployment ID. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 format: uuid type: string + type: + $ref: '#/components/schemas/AppDeploymentType' 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: @@ -9658,40 +9564,6 @@ components: description: The type of the resource. The value should always be device. type: string type: object - DisableAppResponse: - description: The definition of `DisableAppResponse` object. - properties: - data: - $ref: '#/components/schemas/DisableAppResponseData' - type: object - DisableAppResponseData: - description: The definition of `DisableAppResponseData` object. - properties: - attributes: - $ref: '#/components/schemas/DisableAppResponseDataAttributes' - id: - description: The `data` `id`. - type: string - meta: - $ref: '#/components/schemas/DeploymentMeta' - type: - $ref: '#/components/schemas/DisableAppResponseDataType' - type: object - DisableAppResponseDataAttributes: - description: The definition of `DisableAppResponseDataAttributes` object. - properties: - app_version_id: - description: The `attributes` `app_version_id`. - type: string - type: object - DisableAppResponseDataType: - default: deployment - description: The definition of `DisableAppResponseDataType` object. - enum: - - deployment - type: string - x-enum-varnames: - - DEPLOYMENT DomainAllowlist: description: The email domain allowlist for an org. properties: @@ -12497,94 +12369,74 @@ components: $ref: '#/components/schemas/ActionConnectionData' type: object 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 published. items: - $ref: '#/components/schemas/DeploymentIncluded' + $ref: '#/components/schemas/Deployment' 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`. - example: '' + description: The ID of the app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/GetAppResponseDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type - 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 must 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. - 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: @@ -15502,77 +15354,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: @@ -16018,92 +15799,92 @@ 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 published. items: - $ref: '#/components/schemas/DeploymentIncluded' + $ref: '#/components/schemas/Deployment' type: array meta: $ref: '#/components/schemas/ListAppsResponseMeta' type: object ListAppsResponseDataItems: - description: The definition of `ListAppsResponseDataItems` object. + description: An app definition object. This contains only basic information + about the app such as ID, name, and tags. properties: attributes: $ref: '#/components/schemas/ListAppsResponseDataItemsAttributes' id: - description: The `items` `id`. - example: '' + description: The ID of the app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string meta: $ref: '#/components/schemas/AppMeta' relationships: $ref: '#/components/schemas/ListAppsResponseDataItemsRelationships' type: - $ref: '#/components/schemas/ListAppsResponseDataItemsType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type - 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 publication information. properties: deployment: $ref: '#/components/schemas/DeploymentRelationship' type: object - ListAppsResponseDataItemsType: - default: appDefinitions - description: The definition of `ListAppsResponseDataItemsType` object. - enum: - - appDefinitions - example: appDefinitions - type: string - 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 @@ -21079,24 +20860,34 @@ components: $ref: '#/components/schemas/Project' type: array type: object + PublishAppResponse: + description: The response object after an app is successfully published. + properties: + data: + $ref: '#/components/schemas/Deployment' + 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`. - example: '' + description: The ID of the query. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string name: - description: The `Query` `name`. + description: The name of the query. The name must be unique within the app + and is visible in the app editor. example: '' type: string properties: - description: The `Query` `properties`. + description: The properties of the query. The properties vary depending + on the query type. type: $ref: '#/components/schemas/QueryType' required: @@ -21128,7 +20919,7 @@ components: - ASC - DESC QueryType: - description: The definition of `QueryType` object. + description: The query type. enum: - action - stateVariable @@ -23945,44 +23736,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: @@ -29696,6 +29449,12 @@ components: example: min type: string type: object + UnpublishAppResponse: + description: The response object after an app is successfully unpublished. + properties: + data: + $ref: '#/components/schemas/Deployment' + type: object UpdateActionConnectionRequest: description: Request used to update an action connection. properties: @@ -29711,7 +29470,7 @@ components: $ref: '#/components/schemas/ActionConnectionData' type: object UpdateAppRequest: - description: The definition of `UpdateAppRequest` object. + description: A request object for updating an existing app. example: data: attributes: @@ -29756,151 +29515,132 @@ 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 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/UpdateAppRequestDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - 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 are 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 + are 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 must 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 + are 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. - enum: - - appDefinitions - example: appDefinitions - type: string - x-enum-varnames: - - APPDEFINITIONS UpdateAppResponse: - description: The definition of `UpdateAppResponse` object. + description: The response object after an app is successfully updated. properties: data: $ref: '#/components/schemas/UpdateAppResponseData' included: - description: The `UpdateAppResponse` `included`. + description: Data on the version of the app that was published. items: - $ref: '#/components/schemas/DeploymentIncluded' + $ref: '#/components/schemas/Deployment' 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`. - example: '' + description: The ID of the updated app. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + format: uuid type: string type: - $ref: '#/components/schemas/UpdateAppResponseDataType' + $ref: '#/components/schemas/AppDefinitionType' required: - id - type - 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 must 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. - 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: @@ -32248,7 +31988,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: @@ -32285,15 +32025,17 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: Delete Multiple Apps tags: - - Apps + - App Builder x-permission: operator: OR permissions: - apps_write x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might 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. @@ -32317,6 +32059,7 @@ paths: schema: type: string - description: Filter apps by the app creator's UUID. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 in: query name: filter[user_uuid] required: false @@ -32392,15 +32135,15 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: List Apps tags: - - Apps + - App Builder x-permission: operator: OR permissions: - apps_run x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might 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: @@ -32414,7 +32157,7 @@ paths: application/json: schema: $ref: '#/components/schemas/CreateAppResponse' - description: App Created + description: Created '400': content: application/json: @@ -32431,7 +32174,7 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: Create App tags: - - Apps + - App Builder x-permission: operator: AND permissions: @@ -32439,16 +32182,19 @@ paths: - connections_resolve - workflows_run x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + in: path name: app_id required: true schema: + format: uuid type: string responses: '200': @@ -32485,23 +32231,30 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: Delete App tags: - - Apps + - App Builder x-permission: operator: OR permissions: - apps_write x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + 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: @@ -32535,22 +32288,25 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: Get App tags: - - Apps + - App Builder x-permission: operator: AND permissions: - apps_run - connections_read x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might 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. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + in: path name: app_id required: true schema: + format: uuid type: string requestBody: content: @@ -32581,7 +32337,7 @@ paths: $ref: '#/components/responses/TooManyRequestsResponse' summary: Update App tags: - - Apps + - App Builder x-permission: operator: AND permissions: @@ -32589,23 +32345,29 @@ paths: - connections_resolve - workflows_run x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might change at any time.' /api/v2/app-builder/apps/{app_id}/deployment: delete: - description: Disable an app by ID - operationId: DisableApp - parameters: - - in: path + description: Unpublish an app, removing the live version of the app. Unpublishing + creates a new instance of a `deployment` object on the app, with a nil `app_version_id` + (`00000000-0000-0000-0000-000000000000`). The app can still be updated and + published again in the future. + operationId: UnpublishApp + parameters: + - description: The ID of the app to unpublish. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + in: path name: app_id required: true schema: + format: uuid type: string responses: '200': content: application/json: schema: - $ref: '#/components/schemas/DisableAppResponse' + $ref: '#/components/schemas/UnpublishAppResponse' description: OK '400': content: @@ -32627,30 +32389,35 @@ paths: description: Not Found '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Disable App + summary: Unpublish App tags: - - Apps + - App Builder x-permission: operator: OR permissions: - apps_write x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might change at any time.' post: - description: Deploy (publish) an app by ID - operationId: DeployApp + description: Publish an app for use by other users. To ensure the app is accessible + to the correct users, you also need to set a [Restriction Policy](https://docs.datadoghq.com/api/latest/restriction-policies/) + on the app if a policy does not yet exist. + operationId: PublishApp parameters: - - in: path + - description: The ID of the app to publish. + example: 65bb1f25-52e1-4510-9f8d-22d1516ed693 + in: path name: app_id required: true schema: + format: uuid type: string responses: '201': content: application/json: schema: - $ref: '#/components/schemas/DeployAppResponse' + $ref: '#/components/schemas/PublishAppResponse' description: Created '400': content: @@ -32672,15 +32439,15 @@ paths: description: Not Found '429': $ref: '#/components/responses/TooManyRequestsResponse' - summary: Deploy App + summary: Publish App tags: - - Apps + - App Builder x-permission: operator: OR permissions: - apps_write x-unstable: '**Note**: App Builder API endpoints are still under active development - and may change at any time.' + and might change at any time.' /api/v2/application_keys: get: description: List all application keys available for your org @@ -49809,7 +49576,7 @@ tags: and integrate secure, customized applications into your monitoring stack that are built to accelerate remediation at scale. These API endpoints allow you to create, read, update, delete, and publish apps. - name: Apps + name: App Builder - description: Search your Audit Logs events over HTTP. name: Audit - description: '[The AuthN Mappings API](https://docs.datadoghq.com/account_management/authn_mapping/?tab=example) diff --git a/examples/v2/apps/CreateApp.java b/examples/v2/app-builder/CreateApp.java similarity index 92% rename from examples/v2/apps/CreateApp.java rename to examples/v2/app-builder/CreateApp.java index 23c584fb4a2..e52371499e1 100644 --- a/examples/v2/apps/CreateApp.java +++ b/examples/v2/app-builder/CreateApp.java @@ -1,8 +1,9 @@ -// Create App returns "App Created" response +// Create App returns "Created" response import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; +import com.datadog.api.client.v2.model.AppDefinitionType; import com.datadog.api.client.v2.model.Component; import com.datadog.api.client.v2.model.ComponentGrid; import com.datadog.api.client.v2.model.ComponentGridProperties; @@ -13,7 +14,6 @@ import com.datadog.api.client.v2.model.CreateAppRequest; import com.datadog.api.client.v2.model.CreateAppRequestData; import com.datadog.api.client.v2.model.CreateAppRequestDataAttributes; -import com.datadog.api.client.v2.model.CreateAppRequestDataType; import com.datadog.api.client.v2.model.CreateAppResponse; import java.util.Collections; @@ -21,7 +21,7 @@ public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.createApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(defaultClient); CreateAppRequest body = new CreateAppRequest() @@ -62,13 +62,13 @@ public static void main(String[] args) { .description("This is a simple example app") .name("Example App") .rootInstanceName("grid0")) - .type(CreateAppRequestDataType.APPDEFINITIONS)); + .type(AppDefinitionType.APPDEFINITIONS)); try { CreateAppResponse result = apiInstance.createApp(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#createApp"); + System.err.println("Exception when calling AppBuilderApi#createApp"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/apps/DeleteApp.java b/examples/v2/app-builder/DeleteApp.java similarity index 64% rename from examples/v2/apps/DeleteApp.java rename to examples/v2/app-builder/DeleteApp.java index d87bdf504c7..80213b9961e 100644 --- a/examples/v2/apps/DeleteApp.java +++ b/examples/v2/app-builder/DeleteApp.java @@ -2,23 +2,29 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; import com.datadog.api.client.v2.model.DeleteAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.deleteApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(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); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#deleteApp"); + System.err.println("Exception when calling AppBuilderApi#deleteApp"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/apps/DeleteApps.java b/examples/v2/app-builder/DeleteApps.java similarity index 67% rename from examples/v2/apps/DeleteApps.java rename to examples/v2/app-builder/DeleteApps.java index 1d699b1c0d0..59b8e9bcf53 100644 --- a/examples/v2/apps/DeleteApps.java +++ b/examples/v2/app-builder/DeleteApps.java @@ -2,21 +2,27 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; +import com.datadog.api.client.v2.model.AppDefinitionType; import com.datadog.api.client.v2.model.DeleteAppsRequest; import com.datadog.api.client.v2.model.DeleteAppsRequestDataItems; -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) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.deleteApps", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(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() @@ -24,13 +30,13 @@ public static void main(String[] args) { Collections.singletonList( new DeleteAppsRequestDataItems() .id(APP_DATA_ID) - .type(DeleteAppsRequestDataItemsType.APPDEFINITIONS))); + .type(AppDefinitionType.APPDEFINITIONS))); try { DeleteAppsResponse result = apiInstance.deleteApps(body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#deleteApps"); + System.err.println("Exception when calling AppBuilderApi#deleteApps"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/apps/GetApp.java b/examples/v2/app-builder/GetApp.java similarity index 64% rename from examples/v2/apps/GetApp.java rename to examples/v2/app-builder/GetApp.java index d7ed390962e..9e247d0678d 100644 --- a/examples/v2/apps/GetApp.java +++ b/examples/v2/app-builder/GetApp.java @@ -2,23 +2,29 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; import com.datadog.api.client.v2.model.GetAppResponse; +import java.util.UUID; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.getApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(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); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#getApp"); + System.err.println("Exception when calling AppBuilderApi#getApp"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/apps/ListApps.java b/examples/v2/app-builder/ListApps.java similarity index 79% rename from examples/v2/apps/ListApps.java rename to examples/v2/app-builder/ListApps.java index 9cce73af2d8..002bab09962 100644 --- a/examples/v2/apps/ListApps.java +++ b/examples/v2/app-builder/ListApps.java @@ -2,20 +2,20 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; import com.datadog.api.client.v2.model.ListAppsResponse; public class Example { public static void main(String[] args) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.listApps", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(defaultClient); try { ListAppsResponse result = apiInstance.listApps(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#listApps"); + System.err.println("Exception when calling AppBuilderApi#listApps"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/app-builder/PublishApp.java b/examples/v2/app-builder/PublishApp.java new file mode 100644 index 00000000000..6bf460fb57b --- /dev/null +++ b/examples/v2/app-builder/PublishApp.java @@ -0,0 +1,34 @@ +// Publish App returns "Created" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.AppBuilderApi; +import com.datadog.api.client.v2.model.PublishAppResponse; +import java.util.UUID; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.publishApp", true); + AppBuilderApi apiInstance = new AppBuilderApi(defaultClient); + + // there is a valid "app" in the system + 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 { + PublishAppResponse result = apiInstance.publishApp(APP_DATA_ID); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppBuilderApi#publishApp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/app-builder/UnpublishApp.java b/examples/v2/app-builder/UnpublishApp.java new file mode 100644 index 00000000000..ac89ef8b4de --- /dev/null +++ b/examples/v2/app-builder/UnpublishApp.java @@ -0,0 +1,34 @@ +// Unpublish App returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.AppBuilderApi; +import com.datadog.api.client.v2.model.UnpublishAppResponse; +import java.util.UUID; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.unpublishApp", true); + AppBuilderApi apiInstance = new AppBuilderApi(defaultClient); + + // there is a valid "app" in the system + 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 { + UnpublishAppResponse result = apiInstance.unpublishApp(APP_DATA_ID); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppBuilderApi#unpublishApp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/apps/UpdateApp.java b/examples/v2/app-builder/UpdateApp.java similarity index 70% rename from examples/v2/apps/UpdateApp.java rename to examples/v2/app-builder/UpdateApp.java index 86f6f4216a8..e481f198235 100644 --- a/examples/v2/apps/UpdateApp.java +++ b/examples/v2/app-builder/UpdateApp.java @@ -2,21 +2,27 @@ import com.datadog.api.client.ApiClient; import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; +import com.datadog.api.client.v2.api.AppBuilderApi; +import com.datadog.api.client.v2.model.AppDefinitionType; import com.datadog.api.client.v2.model.UpdateAppRequest; import com.datadog.api.client.v2.model.UpdateAppRequestData; 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) { ApiClient defaultClient = ApiClient.getDefaultApiClient(); defaultClient.setUnstableOperationEnabled("v2.updateApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); + AppBuilderApi apiInstance = new AppBuilderApi(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() @@ -27,13 +33,13 @@ public static void main(String[] args) { .name("Updated Name") .rootInstanceName("grid0")) .id(APP_DATA_ID) - .type(UpdateAppRequestDataType.APPDEFINITIONS)); + .type(AppDefinitionType.APPDEFINITIONS)); try { UpdateAppResponse result = apiInstance.updateApp(APP_DATA_ID, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#updateApp"); + System.err.println("Exception when calling AppBuilderApi#updateApp"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); diff --git a/examples/v2/apps/DeployApp.java b/examples/v2/apps/DeployApp.java deleted file mode 100644 index 44983e6577b..00000000000 --- a/examples/v2/apps/DeployApp.java +++ /dev/null @@ -1,28 +0,0 @@ -// Deploy App returns "Created" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; -import com.datadog.api.client.v2.model.DeployAppResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.deployApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); - - // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); - - try { - DeployAppResponse result = apiInstance.deployApp(APP_DATA_ID); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#deployApp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/apps/DisableApp.java b/examples/v2/apps/DisableApp.java deleted file mode 100644 index d3fb4a34ee2..00000000000 --- a/examples/v2/apps/DisableApp.java +++ /dev/null @@ -1,28 +0,0 @@ -// Disable App returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.AppsApi; -import com.datadog.api.client.v2.model.DisableAppResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.disableApp", true); - AppsApi apiInstance = new AppsApi(defaultClient); - - // there is a valid "app" in the system - String APP_DATA_ID = System.getenv("APP_DATA_ID"); - - try { - DisableAppResponse result = apiInstance.disableApp(APP_DATA_ID); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AppsApi#disableApp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 9193f5f54bb..3dcf4ac5797 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -375,10 +375,10 @@ public class ApiClient { put("v2.createApp", false); put("v2.deleteApp", false); put("v2.deleteApps", false); - put("v2.deployApp", false); - put("v2.disableApp", false); put("v2.getApp", false); put("v2.listApps", false); + put("v2.publishApp", false); + put("v2.unpublishApp", false); put("v2.updateApp", false); put("v2.getActiveBillingDimensions", false); put("v2.getMonthlyCostAttribution", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/AppsApi.java b/src/main/java/com/datadog/api/client/v2/api/AppBuilderApi.java similarity index 86% rename from src/main/java/com/datadog/api/client/v2/api/AppsApi.java rename to src/main/java/com/datadog/api/client/v2/api/AppBuilderApi.java index 545161b41f3..601688d2004 100644 --- a/src/main/java/com/datadog/api/client/v2/api/AppsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/AppBuilderApi.java @@ -10,10 +10,10 @@ import com.datadog.api.client.v2.model.DeleteAppResponse; import com.datadog.api.client.v2.model.DeleteAppsRequest; import com.datadog.api.client.v2.model.DeleteAppsResponse; -import com.datadog.api.client.v2.model.DeployAppResponse; -import com.datadog.api.client.v2.model.DisableAppResponse; import com.datadog.api.client.v2.model.GetAppResponse; import com.datadog.api.client.v2.model.ListAppsResponse; +import com.datadog.api.client.v2.model.PublishAppResponse; +import com.datadog.api.client.v2.model.UnpublishAppResponse; import com.datadog.api.client.v2.model.UpdateAppRequest; import com.datadog.api.client.v2.model.UpdateAppResponse; import jakarta.ws.rs.client.Invocation; @@ -27,14 +27,14 @@ @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AppsApi { +public class AppBuilderApi { private ApiClient apiClient; - public AppsApi() { + public AppBuilderApi() { this(ApiClient.getDefaultApiClient()); } - public AppsApi(ApiClient apiClient) { + public AppBuilderApi(ApiClient apiClient) { this.apiClient = apiClient; } @@ -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 * * * - * + * * * * @@ -123,7 +123,7 @@ public ApiResponse createAppWithHttpInfo(CreateAppRequest bod Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.createApp", + "v2.AppBuilderApi.createApp", localVarPath, new ArrayList(), localVarHeaderParams, @@ -179,7 +179,7 @@ public CompletableFuture> createAppWithHttpInfoAs try { builder = apiClient.createBuilder( - "v2.AppsApi.createApp", + "v2.AppBuilderApi.createApp", localVarPath, new ArrayList(), localVarHeaderParams, @@ -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)) { @@ -272,7 +272,7 @@ public ApiResponse deleteAppWithHttpInfo(String appId) throws Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.deleteApp", + "v2.AppBuilderApi.deleteApp", localVarPath, new ArrayList(), localVarHeaderParams, @@ -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)) { @@ -330,7 +329,7 @@ public CompletableFuture> deleteAppWithHttpInfoAs try { builder = apiClient.createBuilder( - "v2.AppsApi.deleteApp", + "v2.AppBuilderApi.deleteApp", localVarPath, new ArrayList(), localVarHeaderParams, @@ -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> @@ -421,7 +420,7 @@ public ApiResponse deleteAppsWithHttpInfo(DeleteAppsRequest Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.deleteApps", + "v2.AppBuilderApi.deleteApps", localVarPath, new ArrayList(), localVarHeaderParams, @@ -477,7 +476,7 @@ public CompletableFuture> deleteAppsWithHttpInfo try { builder = apiClient.createBuilder( - "v2.AppsApi.deleteApps", + "v2.AppBuilderApi.deleteApps", localVarPath, new ArrayList(), localVarHeaderParams, @@ -500,306 +499,6 @@ public CompletableFuture> deleteAppsWithHttpInfo new GenericType() {}); } - /** - * Deploy App. - * - *

See {@link #deployAppWithHttpInfo}. - * - * @param appId (required) - * @return DeployAppResponse - * @throws ApiException if fails to make API call - */ - public DeployAppResponse deployApp(String appId) throws ApiException { - return deployAppWithHttpInfo(appId).getData(); - } - - /** - * Deploy App. - * - *

See {@link #deployAppWithHttpInfoAsync}. - * - * @param appId (required) - * @return CompletableFuture<DeployAppResponse> - */ - public CompletableFuture deployAppAsync(String appId) { - return deployAppWithHttpInfoAsync(appId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Deploy (publish) an app by ID - * - * @param appId (required) - * @return ApiResponse<DeployAppResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
201 Created -
400 Bad Request -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse deployAppWithHttpInfo(String appId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "deployApp"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } - Object localVarPostBody = null; - - // verify the required parameter 'appId' is set - if (appId == null) { - throw new ApiException(400, "Missing the required parameter 'appId' when calling deployApp"); - } - // create path and map variables - String localVarPath = - "/api/v2/app-builder/apps/{app_id}/deployment" - .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.AppsApi.deployApp", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Deploy App. - * - *

See {@link #deployAppWithHttpInfo}. - * - * @param appId (required) - * @return CompletableFuture<ApiResponse<DeployAppResponse>> - */ - public CompletableFuture> deployAppWithHttpInfoAsync( - String appId) { - // Check if unstable operation is enabled - String operationId = "deployApp"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } - Object localVarPostBody = null; - - // verify the required parameter 'appId' is set - if (appId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(400, "Missing the required parameter 'appId' when calling deployApp")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/app-builder/apps/{app_id}/deployment" - .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.AppsApi.deployApp", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Disable App. - * - *

See {@link #disableAppWithHttpInfo}. - * - * @param appId (required) - * @return DisableAppResponse - * @throws ApiException if fails to make API call - */ - public DisableAppResponse disableApp(String appId) throws ApiException { - return disableAppWithHttpInfo(appId).getData(); - } - - /** - * Disable App. - * - *

See {@link #disableAppWithHttpInfoAsync}. - * - * @param appId (required) - * @return CompletableFuture<DisableAppResponse> - */ - public CompletableFuture disableAppAsync(String appId) { - return disableAppWithHttpInfoAsync(appId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Disable an app by ID - * - * @param appId (required) - * @return ApiResponse<DisableAppResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse disableAppWithHttpInfo(String appId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "disableApp"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } - Object localVarPostBody = null; - - // verify the required parameter 'appId' is set - if (appId == null) { - throw new ApiException(400, "Missing the required parameter 'appId' when calling disableApp"); - } - // create path and map variables - String localVarPath = - "/api/v2/app-builder/apps/{app_id}/deployment" - .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.AppsApi.disableApp", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth"}); - return apiClient.invokeAPI( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Disable App. - * - *

See {@link #disableAppWithHttpInfo}. - * - * @param appId (required) - * @return CompletableFuture<ApiResponse<DisableAppResponse>> - */ - public CompletableFuture> disableAppWithHttpInfoAsync( - String appId) { - // Check if unstable operation is enabled - String operationId = "disableApp"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } - Object localVarPostBody = null; - - // verify the required parameter 'appId' is set - if (appId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(400, "Missing the required parameter 'appId' when calling disableApp")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/app-builder/apps/{app_id}/deployment" - .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.AppsApi.disableApp", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** Manage optional parameters to getApp. */ public static class GetAppOptionalParameters { private String version; @@ -807,7 +506,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 +523,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 +536,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 +552,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 +567,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 +581,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 +599,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)) { @@ -924,7 +626,7 @@ public ApiResponse getAppWithHttpInfo( Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.getApp", + "v2.AppBuilderApi.getApp", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -947,12 +649,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)) { @@ -987,7 +689,7 @@ public CompletableFuture> getAppWithHttpInfoAsync( try { builder = apiClient.createBuilder( - "v2.AppsApi.getApp", + "v2.AppBuilderApi.getApp", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -1204,7 +906,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> @@ -1261,7 +964,7 @@ public ApiResponse listAppsWithHttpInfo(ListAppsOptionalParame Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.listApps", + "v2.AppBuilderApi.listApps", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -1334,7 +1037,7 @@ public CompletableFuture> listAppsWithHttpInfoAsyn try { builder = apiClient.createBuilder( - "v2.AppsApi.listApps", + "v2.AppBuilderApi.listApps", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -1357,17 +1060,326 @@ public CompletableFuture> listAppsWithHttpInfoAsyn new GenericType() {}); } + /** + * Publish App. + * + *

See {@link #publishAppWithHttpInfo}. + * + * @param appId The ID of the app to publish. (required) + * @return PublishAppResponse + * @throws ApiException if fails to make API call + */ + public PublishAppResponse publishApp(UUID appId) throws ApiException { + return publishAppWithHttpInfo(appId).getData(); + } + + /** + * Publish App. + * + *

See {@link #publishAppWithHttpInfoAsync}. + * + * @param appId The ID of the app to publish. (required) + * @return CompletableFuture<PublishAppResponse> + */ + public CompletableFuture publishAppAsync(UUID appId) { + return publishAppWithHttpInfoAsync(appId) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Publish an app for use by other users. To ensure the app is accessible to the correct users, + * you also need to set a Restriction Policy on + * the app if a policy does not yet exist. + * + * @param appId The ID of the app to publish. (required) + * @return ApiResponse<PublishAppResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
201 Created -
400 Bad Request -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse publishAppWithHttpInfo(UUID appId) throws ApiException { + // Check if unstable operation is enabled + String operationId = "publishApp"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = null; + + // verify the required parameter 'appId' is set + if (appId == null) { + throw new ApiException(400, "Missing the required parameter 'appId' when calling publishApp"); + } + // create path and map variables + String localVarPath = + "/api/v2/app-builder/apps/{app_id}/deployment" + .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.AppBuilderApi.publishApp", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Publish App. + * + *

See {@link #publishAppWithHttpInfo}. + * + * @param appId The ID of the app to publish. (required) + * @return CompletableFuture<ApiResponse<PublishAppResponse>> + */ + public CompletableFuture> publishAppWithHttpInfoAsync( + UUID appId) { + // Check if unstable operation is enabled + String operationId = "publishApp"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = null; + + // verify the required parameter 'appId' is set + if (appId == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(400, "Missing the required parameter 'appId' when calling publishApp")); + return result; + } + // create path and map variables + String localVarPath = + "/api/v2/app-builder/apps/{app_id}/deployment" + .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.AppBuilderApi.publishApp", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Unpublish App. + * + *

See {@link #unpublishAppWithHttpInfo}. + * + * @param appId The ID of the app to unpublish. (required) + * @return UnpublishAppResponse + * @throws ApiException if fails to make API call + */ + public UnpublishAppResponse unpublishApp(UUID appId) throws ApiException { + return unpublishAppWithHttpInfo(appId).getData(); + } + + /** + * Unpublish App. + * + *

See {@link #unpublishAppWithHttpInfoAsync}. + * + * @param appId The ID of the app to unpublish. (required) + * @return CompletableFuture<UnpublishAppResponse> + */ + public CompletableFuture unpublishAppAsync(UUID appId) { + return unpublishAppWithHttpInfoAsync(appId) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Unpublish an app, removing the live version of the app. Unpublishing creates a new instance of + * a deployment object on the app, with a nil app_version_id ( + * 00000000-0000-0000-0000-000000000000). The app can still be updated and published again + * in the future. + * + * @param appId The ID of the app to unpublish. (required) + * @return ApiResponse<UnpublishAppResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse unpublishAppWithHttpInfo(UUID appId) + throws ApiException { + // Check if unstable operation is enabled + String operationId = "unpublishApp"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = null; + + // verify the required parameter 'appId' is set + if (appId == null) { + throw new ApiException( + 400, "Missing the required parameter 'appId' when calling unpublishApp"); + } + // create path and map variables + String localVarPath = + "/api/v2/app-builder/apps/{app_id}/deployment" + .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.AppBuilderApi.unpublishApp", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + return apiClient.invokeAPI( + "DELETE", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Unpublish App. + * + *

See {@link #unpublishAppWithHttpInfo}. + * + * @param appId The ID of the app to unpublish. (required) + * @return CompletableFuture<ApiResponse<UnpublishAppResponse>> + */ + public CompletableFuture> unpublishAppWithHttpInfoAsync( + UUID appId) { + // Check if unstable operation is enabled + String operationId = "unpublishApp"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = null; + + // verify the required parameter 'appId' is set + if (appId == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'appId' when calling unpublishApp")); + return result; + } + // create path and map variables + String localVarPath = + "/api/v2/app-builder/apps/{app_id}/deployment" + .replaceAll("\\{" + "app_id" + "\\}", apiClient.escapeString(appId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.AppBuilderApi.unpublishApp", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "DELETE", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + /** * Update App. * *

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 +1388,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 +1401,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 +1417,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"; @@ -1434,7 +1446,7 @@ public ApiResponse updateAppWithHttpInfo(String appId, Update Invocation.Builder builder = apiClient.createBuilder( - "v2.AppsApi.updateApp", + "v2.AppBuilderApi.updateApp", localVarPath, new ArrayList(), localVarHeaderParams, @@ -1457,12 +1469,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)) { @@ -1501,7 +1513,7 @@ public CompletableFuture> updateAppWithHttpInfoAs try { builder = apiClient.createBuilder( - "v2.AppsApi.updateApp", + "v2.AppBuilderApi.updateApp", localVarPath, new ArrayList(), localVarHeaderParams, 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/GetAppResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/AppDefinitionType.java similarity index 57% rename from src/main/java/com/datadog/api/client/v2/model/GetAppResponseDataType.java rename to src/main/java/com/datadog/api/client/v2/model/AppDefinitionType.java index 6a5c2ef7442..edbb79fee37 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GetAppResponseDataType.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppDefinitionType.java @@ -18,40 +18,37 @@ import java.util.HashSet; import java.util.Set; -/** The definition of GetAppResponseDataType object. */ -@JsonSerialize(using = GetAppResponseDataType.GetAppResponseDataTypeSerializer.class) -public class GetAppResponseDataType extends ModelEnum { +/** The app definition type. */ +@JsonSerialize(using = AppDefinitionType.AppDefinitionTypeSerializer.class) +public class AppDefinitionType extends ModelEnum { private static final Set allowedValues = new HashSet(Arrays.asList("appDefinitions")); - public static final GetAppResponseDataType APPDEFINITIONS = - new GetAppResponseDataType("appDefinitions"); + public static final AppDefinitionType APPDEFINITIONS = new AppDefinitionType("appDefinitions"); - GetAppResponseDataType(String value) { + AppDefinitionType(String value) { super(value, allowedValues); } - public static class GetAppResponseDataTypeSerializer - extends StdSerializer { - public GetAppResponseDataTypeSerializer(Class t) { + public static class AppDefinitionTypeSerializer extends StdSerializer { + public AppDefinitionTypeSerializer(Class t) { super(t); } - public GetAppResponseDataTypeSerializer() { + public AppDefinitionTypeSerializer() { this(null); } @Override - public void serialize( - GetAppResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + public void serialize(AppDefinitionType value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.value); } } @JsonCreator - public static GetAppResponseDataType fromValue(String value) { - return new GetAppResponseDataType(value); + public static AppDefinitionType fromValue(String value) { + return new AppDefinitionType(value); } } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScriptDataType.java b/src/main/java/com/datadog/api/client/v2/model/AppDeploymentType.java similarity index 59% rename from src/main/java/com/datadog/api/client/v2/model/ScriptDataType.java rename to src/main/java/com/datadog/api/client/v2/model/AppDeploymentType.java index 6405154c139..7f3ee768fbc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScriptDataType.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppDeploymentType.java @@ -18,36 +18,36 @@ import java.util.HashSet; import java.util.Set; -/** The definition of ScriptDataType object. */ -@JsonSerialize(using = ScriptDataType.ScriptDataTypeSerializer.class) -public class ScriptDataType extends ModelEnum { +/** The deployment type. */ +@JsonSerialize(using = AppDeploymentType.AppDeploymentTypeSerializer.class) +public class AppDeploymentType extends ModelEnum { - private static final Set allowedValues = new HashSet(Arrays.asList("scripts")); + private static final Set allowedValues = new HashSet(Arrays.asList("deployment")); - public static final ScriptDataType SCRIPTS = new ScriptDataType("scripts"); + public static final AppDeploymentType DEPLOYMENT = new AppDeploymentType("deployment"); - ScriptDataType(String value) { + AppDeploymentType(String value) { super(value, allowedValues); } - public static class ScriptDataTypeSerializer extends StdSerializer { - public ScriptDataTypeSerializer(Class t) { + public static class AppDeploymentTypeSerializer extends StdSerializer { + public AppDeploymentTypeSerializer(Class t) { super(t); } - public ScriptDataTypeSerializer() { + public AppDeploymentTypeSerializer() { this(null); } @Override - public void serialize(ScriptDataType value, JsonGenerator jgen, SerializerProvider provider) + public void serialize(AppDeploymentType value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { jgen.writeObject(value.value); } } @JsonCreator - public static ScriptDataType fromValue(String value) { - return new ScriptDataType(value); + public static AppDeploymentType fromValue(String value) { + return new AppDeploymentType(value); } } 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..3b4d4658224 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,17 +12,17 @@ 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; import java.util.UUID; -/** The definition of AppMeta object. */ +/** Metadata of an app. */ @JsonPropertyOrder({ AppMeta.JSON_PROPERTY_CREATED_AT, AppMeta.JSON_PROPERTY_DELETED_AT, AppMeta.JSON_PROPERTY_ORG_ID, - AppMeta.JSON_PROPERTY_RUN_AS_USER, AppMeta.JSON_PROPERTY_UPDATED_AT, AppMeta.JSON_PROPERTY_UPDATED_SINCE_DEPLOYMENT, AppMeta.JSON_PROPERTY_USER_ID, @@ -35,19 +35,16 @@ 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; - public static final String JSON_PROPERTY_RUN_AS_USER = "run_as_user"; - 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 +61,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 +109,7 @@ public AppMeta orgId(Long orgId) { } /** - * The AppMeta org_id. + * The Datadog organization ID that owns the app. * * @return orgId */ @@ -127,45 +124,24 @@ public void setOrgId(Long orgId) { this.orgId = orgId; } - public AppMeta runAsUser(String runAsUser) { - this.runAsUser = runAsUser; - return this; - } - - /** - * The AppMeta run_as_user. - * - * @return runAsUser - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RUN_AS_USER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRunAsUser() { - return runAsUser; - } - - 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 +151,8 @@ public AppMeta updatedSinceDeployment(Boolean updatedSinceDeployment) { } /** - * The AppMeta updated_since_deployment. + * Whether the app was updated since it was last published. Published apps are pinned to a + * specific version and do not automatically update when the app is updated. * * @return updatedSinceDeployment */ @@ -196,7 +173,7 @@ public AppMeta userId(Long userId) { } /** - * The AppMeta user_id. + * The ID of the user who created the app. * * @return userId */ @@ -217,7 +194,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 +215,7 @@ public AppMeta userUuid(UUID userUuid) { } /** - * The AppMeta user_uuid. + * The UUID of the user who created the app. * * @return userUuid */ @@ -259,7 +236,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 */ @@ -333,7 +310,6 @@ public boolean equals(Object o) { return Objects.equals(this.createdAt, appMeta.createdAt) && Objects.equals(this.deletedAt, appMeta.deletedAt) && Objects.equals(this.orgId, appMeta.orgId) - && Objects.equals(this.runAsUser, appMeta.runAsUser) && Objects.equals(this.updatedAt, appMeta.updatedAt) && Objects.equals(this.updatedSinceDeployment, appMeta.updatedSinceDeployment) && Objects.equals(this.userId, appMeta.userId) @@ -349,7 +325,6 @@ public int hashCode() { createdAt, deletedAt, orgId, - runAsUser, updatedAt, updatedSinceDeployment, userId, @@ -366,7 +341,6 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" deletedAt: ").append(toIndentedString(deletedAt)).append("\n"); sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n"); - sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" updatedSinceDeployment: ") .append(toIndentedString(updatedSinceDeployment)) 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..6ae8ee62a1a 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 publication 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 publication 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..59b58e0c3ff 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,10 @@ import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** The definition of Component object. */ +/** + * Definition of a + * UI component in the app + */ @JsonPropertyOrder({ Component.JSON_PROPERTY_EVENTS, Component.JSON_PROPERTY_ID, @@ -80,7 +83,7 @@ public Component addEventsItem(AppBuilderEvent eventsItem) { } /** - * The Component events. + * Events to listen for on the UI component. * * @return events */ @@ -101,7 +104,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 +136,7 @@ public Component name(String name) { } /** - * The Component name. + * A unique identifier for this UI component. This name is also visible in the app editor. * * @return name */ @@ -153,7 +157,10 @@ public Component properties(ComponentProperties properties) { } /** - * The definition of ComponentProperties object. + * Properties of a UI component. Different component types can have their own additional unique + * properties. See the components + * documentation for more detail on each component type and its properties. * * @return properties */ @@ -174,7 +181,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..bafebf2e782 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,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of ComponentGrid object. */ +/** + * A grid component. The grid component is the root canvas for an app and contains all other + * components. + */ @JsonPropertyOrder({ ComponentGrid.JSON_PROPERTY_EVENTS, ComponentGrid.JSON_PROPERTY_ID, @@ -44,7 +47,7 @@ public class ComponentGrid { private ComponentGridProperties properties; public static final String JSON_PROPERTY_TYPE = "type"; - private ComponentGridType type; + private ComponentGridType type = ComponentGridType.GRID; public ComponentGrid() {} @@ -79,7 +82,7 @@ public ComponentGrid addEventsItem(AppBuilderEvent eventsItem) { } /** - * The ComponentGrid events. + * Events to listen for on the grid component. * * @return events */ @@ -100,7 +103,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 +125,7 @@ public ComponentGrid name(String name) { } /** - * The ComponentGrid name. + * A unique identifier for this grid component. This name is also visible in the app editor. * * @return name */ @@ -142,7 +146,7 @@ public ComponentGrid properties(ComponentGridProperties properties) { } /** - * The definition of ComponentGridProperties object. + * Properties of a grid component. * * @return properties */ @@ -163,7 +167,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..1616e3d7799 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 must 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..2c890d2bd04 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 their own additional unique + * properties. See the components + * documentation for more detail on each component type and its 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 this is a string, it must 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..a9e6dcac719 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 @@ -30,13 +30,13 @@ public class CreateAppRequestData { private CreateAppRequestDataAttributes attributes; public static final String JSON_PROPERTY_TYPE = "type"; - private CreateAppRequestDataType type = CreateAppRequestDataType.APPDEFINITIONS; + private AppDefinitionType type = AppDefinitionType.APPDEFINITIONS; public CreateAppRequestData() {} @JsonCreator public CreateAppRequestData( - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) CreateAppRequestDataType type) { + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) AppDefinitionType type) { this.type = type; this.unparsed |= !type.isValid(); } @@ -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 */ @@ -63,24 +63,24 @@ public void setAttributes(CreateAppRequestDataAttributes attributes) { this.attributes = attributes; } - public CreateAppRequestData type(CreateAppRequestDataType type) { + public CreateAppRequestData type(AppDefinitionType type) { this.type = type; this.unparsed |= !type.isValid(); return this; } /** - * The definition of CreateAppRequestDataType object. + * The app definition type. * * @return type */ @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAppRequestDataType getType() { + public AppDefinitionType getType() { return type; } - public void setType(CreateAppRequestDataType type) { + public void setType(AppDefinitionType type) { if (!type.isValid()) { this.unparsed = true; } 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..49180abf57c 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