diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index b0582321989..9ba1c46d05e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -7593,6 +7593,12 @@ components: type: object MetricsListResponse: description: Object listing all metric names stored by Datadog since a given time. + example: + from: "1571011200" + metrics: + - system.cpu.idle + - system.mem.free + - aws.ec2.cpuutilization properties: from: description: Time when the metrics were active, seconds since the Unix epoch. diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c1ed2925666..d24dd4587d4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1557,14 +1557,6 @@ components: required: true schema: type: string - SecurityMonitoringDatasetID: - description: The UUID of the dataset. - in: path - name: dataset_id - required: true - schema: - example: 123e4567-e89b-12d3-a456-426614174000 - type: string SecurityMonitoringIntegrationConfigID: description: The ID of the entity context sync configuration. in: path @@ -74011,495 +74003,6 @@ components: $ref: "#/components/schemas/SecurityMonitoringCriticalAsset" type: array type: object - SecurityMonitoringDatasetAttributesRequest: - description: The attributes of a dataset create or update request. - properties: - definition: - $ref: "#/components/schemas/SecurityMonitoringDatasetDefinition" - description: - description: The description of the dataset. Maximum 255 characters. - example: A sample dataset used for detection rules. - type: string - version: - description: |- - The expected current version of the dataset for optimistic concurrency control on updates. - If the dataset's current version does not match, the request is rejected with a 409 Conflict. - example: 1 - format: int64 - type: integer - required: - - definition - type: object - SecurityMonitoringDatasetAttributesResponse: - description: The attributes of a Cloud SIEM dataset. - properties: - createdAt: - description: The creation timestamp of the dataset, in ISO 8601 format. - example: "2025-03-20T10:00:00Z" - type: string - createdByHandle: - description: The Datadog handle of the user who created the dataset. - example: bruce.lee - type: string - createdByName: - description: The display name of the user who created the dataset. - example: Bruce Lee - type: string - definition: - $ref: "#/components/schemas/SecurityMonitoringDatasetDefinition" - description: - description: The description of the dataset. - example: A sample dataset used for detection rules. - type: string - id: - description: The UUID of the dataset. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - isDefault: - description: Whether the dataset is an out-of-the-box dataset provided by Datadog. - example: false - type: boolean - isDeprecated: - description: Whether the dataset is marked as deprecated. - example: false - type: boolean - modifiedAt: - description: The timestamp of the last modification of the dataset, in ISO 8601 format. - example: "2025-03-20T10:00:00Z" - type: string - name: - description: The unique name of the dataset. - example: sample_dataset - type: string - updatedByHandle: - description: The Datadog handle of the user who last updated the dataset. - example: bruce.lee - nullable: true - type: string - updatedByName: - description: The display name of the user who last updated the dataset. - example: Bruce Lee - nullable: true - type: string - version: - description: The current version of the dataset. - example: 1 - format: int64 - type: integer - required: - - id - - name - - description - - version - - definition - - createdAt - - createdByHandle - - createdByName - - modifiedAt - - updatedByHandle - - updatedByName - - isDefault - - isDeprecated - type: object - SecurityMonitoringDatasetColumn: - description: A column exposed by an event platform dataset. - properties: - column: - description: The name of the column. - example: message - type: string - type: - description: The type of the column value. - example: string - type: string - required: - - column - - type - type: object - SecurityMonitoringDatasetCreateData: - description: The data wrapper of a dataset create request. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetAttributesRequest" - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetCreateType" - required: - - type - - attributes - type: object - SecurityMonitoringDatasetCreateRequest: - description: Request body for creating a Cloud SIEM dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetCreateData" - required: - - data - type: object - SecurityMonitoringDatasetCreateResponse: - description: Response returned after creating a dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetCreateResponseData" - required: - - data - type: object - SecurityMonitoringDatasetCreateResponseData: - description: The data wrapper of a dataset create response. - properties: - id: - description: The UUID of the newly created dataset. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetType" - required: - - id - - type - type: object - SecurityMonitoringDatasetCreateType: - description: The type of resource for a dataset create request. - enum: - - datasetCreate - example: datasetCreate - type: string - x-enum-varnames: - - DATASET_CREATE - SecurityMonitoringDatasetData: - description: The data wrapper of a dataset response. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetAttributesResponse" - id: - description: The UUID of the dataset. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetType" - required: - - id - - type - - attributes - type: object - SecurityMonitoringDatasetDefinition: - description: |- - The definition of the dataset. The shape depends on the value of `data_source`. - Use `reference_table` or `managed_resource` for a referential dataset, or one of the - event platform sources (for example `logs`, `audit`, `events`, `spans`, `rum`) for - an event platform dataset. - properties: - columns: - description: For event platform datasets, the list of columns exposed by the dataset. - items: - $ref: "#/components/schemas/SecurityMonitoringDatasetColumn" - type: array - data_source: - description: The data source backing this dataset definition. - example: logs - type: string - indexes: - description: For event platform datasets, the list of indexes to query. - items: - type: string - type: array - name: - description: The unique name of the dataset. Must start with a lowercase letter and contain only lowercase letters, digits, and underscores (max 255 characters). - example: sample_dataset - type: string - query_filter: - description: For referential datasets, an optional filter expression applied to the table. - example: status = 'active' - type: string - search: - $ref: "#/components/schemas/SecurityMonitoringDatasetSearch" - storage: - description: Storage tier the dataset reads from. Applies to event platform datasets. - example: hot - type: string - table_name: - description: For referential datasets, the name of the underlying table. - example: my_reference_table - type: string - time_window: - $ref: "#/components/schemas/SecurityMonitoringDatasetTimeWindow" - required: - - data_source - - name - type: object - SecurityMonitoringDatasetDependenciesRequest: - description: Request body for retrieving dependencies of a batch of datasets. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependenciesRequestData" - required: - - data - type: object - SecurityMonitoringDatasetDependenciesRequestAttributes: - description: The attributes of a dataset dependencies request. - properties: - datasetIds: - description: The list of dataset UUIDs to query dependencies for. Must contain between 1 and 100 items. - example: - - 123e4567-e89b-12d3-a456-426614174000 - items: - type: string - type: array - required: - - datasetIds - type: object - SecurityMonitoringDatasetDependenciesRequestData: - description: The data wrapper of a dataset dependencies request. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependenciesRequestAttributes" - required: - - attributes - type: object - SecurityMonitoringDatasetDependenciesResponse: - description: Response listing the dependents of each requested dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependenciesResponseData" - required: - - data - type: object - SecurityMonitoringDatasetDependenciesResponseData: - description: The list of dataset dependents entries. - items: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependentsData" - type: array - SecurityMonitoringDatasetDependentsAttributes: - description: The attributes of a dataset dependents entry. - properties: - count: - description: The number of resources that depend on the dataset. - example: 0 - format: int64 - type: integer - datasetId: - description: The UUID of the dataset whose dependencies are being reported. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - ids: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependentsIds" - resource_type: - description: The type of resource that depends on the dataset. - example: security_detection_rule - type: string - required: - - datasetId - - resource_type - - ids - - count - type: object - SecurityMonitoringDatasetDependentsData: - description: A single entry describing the dependents of one dataset. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependentsAttributes" - id: - description: The UUID of the dataset. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependentsType" - required: - - id - - type - - attributes - type: object - SecurityMonitoringDatasetDependentsIds: - description: The list of resource IDs that depend on the dataset. - example: [] - items: - type: string - type: array - SecurityMonitoringDatasetDependentsType: - description: The type of resource for a dataset dependents entry. - enum: - - datasetDependents - example: datasetDependents - type: string - x-enum-varnames: - - DATASET_DEPENDENTS - SecurityMonitoringDatasetResponse: - description: Response containing a single Cloud SIEM dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetData" - required: - - data - type: object - SecurityMonitoringDatasetSearch: - description: The search clause applied to an event platform dataset. - properties: - query: - description: The search query expression. - example: "*" - type: string - required: - - query - type: object - SecurityMonitoringDatasetTimeWindow: - description: An optional time window that overrides the default query time range. - properties: - from: - description: Inclusive start of the time window, in milliseconds since the Unix epoch. - example: 1700000000000 - format: int64 - type: integer - to: - description: Exclusive end of the time window, in milliseconds since the Unix epoch. - example: 1700003600000 - format: int64 - type: integer - type: object - SecurityMonitoringDatasetType: - description: The type of resource for a dataset response. - enum: - - dataset - example: dataset - type: string - x-enum-varnames: - - DATASET - SecurityMonitoringDatasetUpdateData: - description: The data wrapper of a dataset update request. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetAttributesRequest" - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetUpdateType" - required: - - type - - attributes - type: object - SecurityMonitoringDatasetUpdateRequest: - description: Request body for updating a Cloud SIEM dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetUpdateData" - required: - - data - type: object - SecurityMonitoringDatasetUpdateType: - description: The type of resource for a dataset update request. - enum: - - datasetUpdate - example: datasetUpdate - type: string - x-enum-varnames: - - DATASET_UPDATE - SecurityMonitoringDatasetVersionChanges: - description: The list of field changes between this version of the dataset and the previous one. - items: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionFieldChange" - type: array - SecurityMonitoringDatasetVersionEntry: - description: A single entry in the version history of a dataset. - properties: - changes: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionChanges" - dataset: - $ref: "#/components/schemas/SecurityMonitoringDatasetAttributesResponse" - required: - - dataset - - changes - type: object - SecurityMonitoringDatasetVersionFieldChange: - description: A single field change between two versions of a dataset. - properties: - current: - description: The current value of the field, serialized as a JSON value. - example: New description. - field: - description: The name of the field that changed. - example: description - type: string - previous: - description: The previous value of the field, serialized as a JSON value. - example: Old description. - required: - - field - - previous - - current - type: object - SecurityMonitoringDatasetVersionHistoryAttributes: - description: The attributes of a dataset version history response. - properties: - count: - description: The total number of versions available for this dataset. - example: 1 - format: int64 - type: integer - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionHistoryEntries" - required: - - data - - count - type: object - SecurityMonitoringDatasetVersionHistoryData: - description: The data wrapper of a dataset version history response. - properties: - attributes: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionHistoryAttributes" - id: - description: The UUID of the dataset. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - type: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionHistoryType" - required: - - id - - type - - attributes - type: object - SecurityMonitoringDatasetVersionHistoryEntries: - additionalProperties: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionEntry" - description: A map from version number (as a string) to the dataset state at that version. - type: object - SecurityMonitoringDatasetVersionHistoryResponse: - description: Response containing the version history of a Cloud SIEM dataset. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionHistoryData" - required: - - data - type: object - SecurityMonitoringDatasetVersionHistoryType: - description: The type of resource for a dataset version history response. - enum: - - dataset_version_history - example: dataset_version_history - type: string - x-enum-varnames: - - DATASET_VERSION_HISTORY - SecurityMonitoringDatasetsListData: - description: A list of dataset data items. - items: - $ref: "#/components/schemas/SecurityMonitoringDatasetData" - type: array - SecurityMonitoringDatasetsListMeta: - description: Metadata returned with a list of datasets. - properties: - totalCount: - description: The total number of datasets matching the request, across all pages. - example: 1 - format: int64 - type: integer - required: - - totalCount - type: object - SecurityMonitoringDatasetsListResponse: - description: Response containing a paginated list of Cloud SIEM datasets. - properties: - data: - $ref: "#/components/schemas/SecurityMonitoringDatasetsListData" - meta: - $ref: "#/components/schemas/SecurityMonitoringDatasetsListMeta" - required: - - data - - meta - type: object SecurityMonitoringEntityContextEntityType: default: entity description: |- @@ -130787,10 +130290,21 @@ paths: examples: default: value: - data: [] + data: + - id: system.cpu.user + type: metrics + - attributes: + created_at: "2020-03-25T09:48:37.463835Z" + metric_type: gauge + modified_at: "2020-04-25T09:48:37.463835Z" + tags: + - app + - datacenter + id: http.endpoint.request + type: manage_tags meta: pagination: - next_cursor: + next_cursor: eyJhZnRlciI6Imh0dHAuZW5kcG9pbnQucmVxdWVzdCJ9 schema: $ref: "#/components/schemas/MetricsAndMetricTagConfigurationsResponse" description: Success @@ -131184,12 +130698,30 @@ paths: id: http.endpoint.request relationships: dashboards: - data: [] + data: + - id: abc-def-xyz + type: dashboards monitors: - data: [] + data: + - id: "1775073" + type: monitors notebooks: data: [] + slos: + data: [] type: metrics + included: + - attributes: + popularity: 3.0 + title: My Dashboard + url: /dashboard/abc-def-xyz + id: abc-def-xyz + type: dashboards + - attributes: + title: CPU utilization is high + url: /monitors/1775073 + id: "1775073" + type: monitors schema: $ref: "#/components/schemas/MetricAssetsResponse" description: Success @@ -131333,8 +130865,17 @@ paths: examples: default: value: - data: [] - meta: {} + data: + - attributes: + cardinality_delta: 25 + id: host + type: tag_cardinality + - attributes: + cardinality_delta: 5 + id: env + type: tag_cardinality + meta: + metric_name: system.cpu.user schema: $ref: "#/components/schemas/MetricTagCardinalitiesResponse" description: Success @@ -150115,644 +149656,6 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/security_monitoring/datasets: - get: - description: |- - List all Cloud SIEM datasets available to the organization, including both - customer-defined datasets and Datadog out-of-the-box datasets. - operationId: ListSecurityMonitoringDatasets - parameters: - - description: Size for a given page. The maximum allowed value is 100. - in: query - name: page[size] - required: false - schema: - default: 50 - example: 50 - format: int64 - type: integer - - description: Specific page number to return. - in: query - name: page[number] - required: false - schema: - default: 1 - example: 1 - format: int64 - type: integer - - description: Attribute used to sort datasets. Prefix with `-` to sort in descending order. - in: query - name: sort - required: false - schema: - example: name - type: string - - description: A search query to filter datasets by name or description. - in: query - name: filter[query] - required: false - schema: - example: sample_dataset - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - createdAt: "2025-03-20T10:00:00Z" - createdByHandle: bruce.lee - createdByName: Bruce Lee - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: A sample dataset used for detection rules. - id: 123e4567-e89b-12d3-a456-426614174000 - isDefault: false - isDeprecated: false - modifiedAt: "2025-03-20T10:00:00Z" - name: sample_dataset - updatedByHandle: - updatedByName: - version: 1 - id: 123e4567-e89b-12d3-a456-426614174000 - type: dataset - meta: - totalCount: 1 - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetsListResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_read - summary: List datasets - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_read - - security_monitoring_dataset_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - post: - description: |- - Create a new Cloud SIEM dataset. A dataset bundles a data source, a set of - indexes, and a search query that can be referenced from detection rules. - operationId: CreateSecurityMonitoringDataset - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: A sample dataset used for detection rules. - type: datasetCreate - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetCreateRequest" - required: true - responses: - "201": - content: - application/json: - examples: - default: - value: - data: - id: 123e4567-e89b-12d3-a456-426614174000 - type: dataset - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetCreateResponse" - description: Created - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Conflict - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_write - summary: Create a dataset - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_write - - security_monitoring_dataset_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/security_monitoring/datasets/dependencies: - post: - description: |- - Return, for each of the requested datasets, the list of detection rules that depend - on it. Useful for understanding the impact of updating or deleting a dataset. - operationId: BatchGetSecurityMonitoringDatasetDependencies - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - datasetIds: - - 123e4567-e89b-12d3-a456-426614174000 - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependenciesRequest" - required: true - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - count: 0 - datasetId: 123e4567-e89b-12d3-a456-426614174000 - ids: [] - resource_type: security_detection_rule - id: 123e4567-e89b-12d3-a456-426614174000 - type: datasetDependents - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetDependenciesResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_read - summary: Get dataset dependencies - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_read - - security_monitoring_dataset_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/security_monitoring/datasets/{dataset_id}: - delete: - description: |- - Delete a Cloud SIEM dataset. Out-of-the-box datasets cannot be deleted and - deleting a dataset that is referenced by a detection rule is rejected. - operationId: DeleteSecurityMonitoringDataset - parameters: - - $ref: "#/components/parameters/SecurityMonitoringDatasetID" - responses: - "204": - description: No Content - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_write - summary: Delete a dataset - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_write - - security_monitoring_dataset_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - get: - description: Get the current version of a Cloud SIEM dataset by ID. - operationId: GetSecurityMonitoringDataset - parameters: - - $ref: "#/components/parameters/SecurityMonitoringDatasetID" - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - createdAt: "2025-03-20T10:00:00Z" - createdByHandle: bruce.lee - createdByName: Bruce Lee - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: A sample dataset used for detection rules. - id: 123e4567-e89b-12d3-a456-426614174000 - isDefault: false - isDeprecated: false - modifiedAt: "2025-03-20T10:00:00Z" - name: sample_dataset - updatedByHandle: - updatedByName: - version: 1 - id: 123e4567-e89b-12d3-a456-426614174000 - type: dataset - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_read - summary: Get a dataset - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_read - - security_monitoring_dataset_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - patch: - description: |- - Update an existing Cloud SIEM dataset. The current version of the dataset can be - provided to detect concurrent modifications. - operationId: UpdateSecurityMonitoringDataset - parameters: - - $ref: "#/components/parameters/SecurityMonitoringDatasetID" - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: An updated description for the dataset. - version: 1 - type: datasetUpdate - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetUpdateRequest" - required: true - responses: - "204": - description: No Content - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "409": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Conflict - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_write - summary: Update a dataset - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_write - - security_monitoring_dataset_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/security_monitoring/datasets/{dataset_id}/version/{version}: - get: - description: Retrieve a specific historical version of a Cloud SIEM dataset. - operationId: GetSecurityMonitoringDatasetByVersion - parameters: - - $ref: "#/components/parameters/SecurityMonitoringDatasetID" - - description: The version number of the dataset to retrieve. - in: path - name: version - required: true - schema: - example: 1 - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - createdAt: "2025-03-20T10:00:00Z" - createdByHandle: bruce.lee - createdByName: Bruce Lee - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: A sample dataset used for detection rules. - id: 123e4567-e89b-12d3-a456-426614174000 - isDefault: false - isDeprecated: false - modifiedAt: "2025-03-20T10:00:00Z" - name: sample_dataset - updatedByHandle: - updatedByName: - version: 1 - id: 123e4567-e89b-12d3-a456-426614174000 - type: dataset - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_read - summary: Get a dataset at a specific version - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_read - - security_monitoring_dataset_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/security_monitoring/datasets/{dataset_id}/version_history: - get: - description: Retrieve the version history of a Cloud SIEM dataset, including the changes made at each version. - operationId: GetSecurityMonitoringDatasetVersionHistory - parameters: - - $ref: "#/components/parameters/SecurityMonitoringDatasetID" - - description: Size for a given page. The maximum allowed value is 100. - in: query - name: page[size] - required: false - schema: - default: 10 - example: 10 - format: int64 - type: integer - - description: Specific page number to return. - in: query - name: page[number] - required: false - schema: - default: 0 - example: 0 - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - count: 1 - data: - "1": - changes: [] - dataset: - createdAt: "2025-03-20T10:00:00Z" - createdByHandle: bruce.lee - createdByName: Bruce Lee - definition: - columns: - - column: message - type: string - data_source: logs - indexes: - - main - name: sample_dataset - search: - query: "*" - description: A sample dataset used for detection rules. - id: 123e4567-e89b-12d3-a456-426614174000 - isDefault: false - isDeprecated: false - modifiedAt: "2025-03-20T10:00:00Z" - name: sample_dataset - updatedByHandle: - updatedByName: - version: 1 - id: 123e4567-e89b-12d3-a456-426614174000 - type: dataset_version_history - schema: - $ref: "#/components/schemas/SecurityMonitoringDatasetVersionHistoryResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Not Found - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - security_monitoring_rules_read - summary: Get the version history of a dataset - tags: - - Security Monitoring - "x-permission": - operator: OR - permissions: - - security_monitoring_rules_read - - security_monitoring_dataset_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security_monitoring/entity_context: get: description: |- diff --git a/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.java b/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.java deleted file mode 100644 index 30c263fb812..00000000000 --- a/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.java +++ /dev/null @@ -1,43 +0,0 @@ -// Get dataset dependencies returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesRequestAttributes; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesRequestData; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesResponse; -import java.util.Collections; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled( - "v2.batchGetSecurityMonitoringDatasetDependencies", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - SecurityMonitoringDatasetDependenciesRequest body = - new SecurityMonitoringDatasetDependenciesRequest() - .data( - new SecurityMonitoringDatasetDependenciesRequestData() - .attributes( - new SecurityMonitoringDatasetDependenciesRequestAttributes() - .datasetIds( - Collections.singletonList( - "123e4567-e89b-12d3-a456-426614174000")))); - - try { - SecurityMonitoringDatasetDependenciesResponse result = - apiInstance.batchGetSecurityMonitoringDatasetDependencies(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling" - + " SecurityMonitoringApi#batchGetSecurityMonitoringDatasetDependencies"); - 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/security-monitoring/CreateSecurityMonitoringDataset.java b/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.java deleted file mode 100644 index f836aa57131..00000000000 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.java +++ /dev/null @@ -1,63 +0,0 @@ -// Create a dataset returns "Created" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetAttributesRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetColumn; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateData; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateType; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDefinition; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetSearch; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetTimeWindow; -import java.util.Collections; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.createSecurityMonitoringDataset", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - SecurityMonitoringDatasetCreateRequest body = - new SecurityMonitoringDatasetCreateRequest() - .data( - new SecurityMonitoringDatasetCreateData() - .attributes( - new SecurityMonitoringDatasetAttributesRequest() - .definition( - new SecurityMonitoringDatasetDefinition() - .columns( - Collections.singletonList( - new SecurityMonitoringDatasetColumn() - .column("message") - .type("string"))) - .dataSource("logs") - .name("sample_dataset") - .queryFilter("status = 'active'") - .search(new SecurityMonitoringDatasetSearch().query("*")) - .storage("hot") - .tableName("my_reference_table") - .timeWindow( - new SecurityMonitoringDatasetTimeWindow() - .from(1700000000000L) - .to(1700003600000L))) - .description("A sample dataset used for detection rules.") - .version(1L)) - .type(SecurityMonitoringDatasetCreateType.DATASET_CREATE)); - - try { - SecurityMonitoringDatasetCreateResponse result = - apiInstance.createSecurityMonitoringDataset(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#createSecurityMonitoringDataset"); - 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/security-monitoring/DeleteSecurityMonitoringDataset.java b/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.java deleted file mode 100644 index 3d2dfc6b9be..00000000000 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.java +++ /dev/null @@ -1,24 +0,0 @@ -// Delete a dataset returns "No Content" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.deleteSecurityMonitoringDataset", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - try { - apiInstance.deleteSecurityMonitoringDataset("123e4567-e89b-12d3-a456-426614174000"); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#deleteSecurityMonitoringDataset"); - 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/security-monitoring/GetSecurityMonitoringDataset.java b/examples/v2/security-monitoring/GetSecurityMonitoringDataset.java deleted file mode 100644 index 8a6642f31f7..00000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDataset.java +++ /dev/null @@ -1,27 +0,0 @@ -// Get a dataset returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getSecurityMonitoringDataset", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - try { - SecurityMonitoringDatasetResponse result = - apiInstance.getSecurityMonitoringDataset("123e4567-e89b-12d3-a456-426614174000"); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#getSecurityMonitoringDataset"); - 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/security-monitoring/GetSecurityMonitoringDatasetByVersion.java b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.java deleted file mode 100644 index f59cfe76391..00000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.java +++ /dev/null @@ -1,28 +0,0 @@ -// Get a dataset at a specific version returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.getSecurityMonitoringDatasetByVersion", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - try { - SecurityMonitoringDatasetResponse result = - apiInstance.getSecurityMonitoringDatasetByVersion( - "123e4567-e89b-12d3-a456-426614174000", 1L); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#getSecurityMonitoringDatasetByVersion"); - 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/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.java b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.java deleted file mode 100644 index c4e2c0c5904..00000000000 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.java +++ /dev/null @@ -1,30 +0,0 @@ -// Get the version history of a dataset returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetVersionHistoryResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled( - "v2.getSecurityMonitoringDatasetVersionHistory", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - try { - SecurityMonitoringDatasetVersionHistoryResponse result = - apiInstance.getSecurityMonitoringDatasetVersionHistory( - "123e4567-e89b-12d3-a456-426614174000"); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling" - + " SecurityMonitoringApi#getSecurityMonitoringDatasetVersionHistory"); - 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/security-monitoring/ListSecurityMonitoringDatasets.java b/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.java deleted file mode 100644 index 78a43a4854c..00000000000 --- a/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.java +++ /dev/null @@ -1,26 +0,0 @@ -// List datasets returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetsListResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.listSecurityMonitoringDatasets", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - try { - SecurityMonitoringDatasetsListResponse result = apiInstance.listSecurityMonitoringDatasets(); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#listSecurityMonitoringDatasets"); - 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/security-monitoring/UpdateSecurityMonitoringDataset.java b/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.java deleted file mode 100644 index c4bac43b142..00000000000 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.java +++ /dev/null @@ -1,60 +0,0 @@ -// Update a dataset returns "No Content" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SecurityMonitoringApi; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetAttributesRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetColumn; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDefinition; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetSearch; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetTimeWindow; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetUpdateData; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetUpdateRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetUpdateType; -import java.util.Collections; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setUnstableOperationEnabled("v2.updateSecurityMonitoringDataset", true); - SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); - - SecurityMonitoringDatasetUpdateRequest body = - new SecurityMonitoringDatasetUpdateRequest() - .data( - new SecurityMonitoringDatasetUpdateData() - .attributes( - new SecurityMonitoringDatasetAttributesRequest() - .definition( - new SecurityMonitoringDatasetDefinition() - .columns( - Collections.singletonList( - new SecurityMonitoringDatasetColumn() - .column("message") - .type("string"))) - .dataSource("logs") - .name("sample_dataset") - .queryFilter("status = 'active'") - .search(new SecurityMonitoringDatasetSearch().query("*")) - .storage("hot") - .tableName("my_reference_table") - .timeWindow( - new SecurityMonitoringDatasetTimeWindow() - .from(1700000000000L) - .to(1700003600000L))) - .description("A sample dataset used for detection rules.") - .version(1L)) - .type(SecurityMonitoringDatasetUpdateType.DATASET_UPDATE)); - - try { - apiInstance.updateSecurityMonitoringDataset("123e4567-e89b-12d3-a456-426614174000", body); - } catch (ApiException e) { - System.err.println( - "Exception when calling SecurityMonitoringApi#updateSecurityMonitoringDataset"); - 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 68d8583171e..f46b090fe53 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -881,21 +881,18 @@ public class ApiClient { put("v2.getAWSCloudAuthPersonaMapping", false); put("v2.listAWSCloudAuthPersonaMappings", false); put("v2.activateContentPack", false); - put("v2.batchGetSecurityMonitoringDatasetDependencies", false); put("v2.bulkCreateSampleLogGenerationSubscriptions", false); put("v2.bulkExportSecurityMonitoringTerraformResources", false); put("v2.cancelHistoricalJob", false); put("v2.convertJobResultToSignal", false); put("v2.convertSecurityMonitoringTerraformResource", false); put("v2.createSampleLogGenerationSubscription", false); - put("v2.createSecurityMonitoringDataset", false); put("v2.createSecurityMonitoringIntegrationConfig", false); put("v2.createStaticAnalysisAst", false); put("v2.createStaticAnalysisServerAnalysis", false); put("v2.deactivateContentPack", false); put("v2.deleteHistoricalJob", false); put("v2.deleteSampleLogGenerationSubscription", false); - put("v2.deleteSecurityMonitoringDataset", false); put("v2.deleteSecurityMonitoringIntegrationConfig", false); put("v2.exportSecurityMonitoringTerraformResource", false); put("v2.getContentPacksStates", false); @@ -905,9 +902,6 @@ public class ApiClient { put("v2.getIndicatorOfCompromise", false); put("v2.getRuleVersionHistory", false); put("v2.getSecretsRules", false); - put("v2.getSecurityMonitoringDataset", false); - put("v2.getSecurityMonitoringDatasetByVersion", false); - put("v2.getSecurityMonitoringDatasetVersionHistory", false); put("v2.getSecurityMonitoringHistsignal", false); put("v2.getSecurityMonitoringHistsignalsByJobId", false); put("v2.getSecurityMonitoringIntegrationConfig", false); @@ -922,7 +916,6 @@ public class ApiClient { put("v2.listMultipleRulesets", false); put("v2.listSampleLogGenerationSubscriptions", false); put("v2.listScannedAssetsMetadata", false); - put("v2.listSecurityMonitoringDatasets", false); put("v2.listSecurityMonitoringHistsignals", false); put("v2.listSecurityMonitoringIntegrationConfigs", false); put("v2.listStaticAnalysisCodegenRulesets", false); @@ -932,7 +925,6 @@ public class ApiClient { put("v2.muteSecurityFindings", false); put("v2.runHistoricalJob", false); put("v2.searchSecurityMonitoringHistsignals", false); - put("v2.updateSecurityMonitoringDataset", false); put("v2.updateSecurityMonitoringIntegrationConfig", false); put("v2.validateSecurityMonitoringIntegrationConfig", false); put("v2.validateSecurityMonitoringIntegrationCredentials", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index ddd14d878b4..76c02b96bdd 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -83,14 +83,6 @@ import com.datadog.api.client.v2.model.SecurityMonitoringCriticalAssetResponse; import com.datadog.api.client.v2.model.SecurityMonitoringCriticalAssetUpdateRequest; import com.datadog.api.client.v2.model.SecurityMonitoringCriticalAssetsResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetCreateResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetDependenciesResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetUpdateRequest; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetVersionHistoryResponse; -import com.datadog.api.client.v2.model.SecurityMonitoringDatasetsListResponse; import com.datadog.api.client.v2.model.SecurityMonitoringIntegrationConfigCreateRequest; import com.datadog.api.client.v2.model.SecurityMonitoringIntegrationConfigResponse; import com.datadog.api.client.v2.model.SecurityMonitoringIntegrationConfigUpdateRequest; @@ -640,169 +632,6 @@ public CompletableFuture> attachJiraIssueWithHt new GenericType() {}); } - /** - * Get dataset dependencies. - * - *

See {@link #batchGetSecurityMonitoringDatasetDependenciesWithHttpInfo}. - * - * @param body (required) - * @return SecurityMonitoringDatasetDependenciesResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetDependenciesResponse - batchGetSecurityMonitoringDatasetDependencies( - SecurityMonitoringDatasetDependenciesRequest body) throws ApiException { - return batchGetSecurityMonitoringDatasetDependenciesWithHttpInfo(body).getData(); - } - - /** - * Get dataset dependencies. - * - *

See {@link #batchGetSecurityMonitoringDatasetDependenciesWithHttpInfoAsync}. - * - * @param body (required) - * @return CompletableFuture<SecurityMonitoringDatasetDependenciesResponse> - */ - public CompletableFuture - batchGetSecurityMonitoringDatasetDependenciesAsync( - SecurityMonitoringDatasetDependenciesRequest body) { - return batchGetSecurityMonitoringDatasetDependenciesWithHttpInfoAsync(body) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Return, for each of the requested datasets, the list of detection rules that depend on it. - * Useful for understanding the impact of updating or deleting a dataset. - * - * @param body (required) - * @return ApiResponse<SecurityMonitoringDatasetDependenciesResponse> - * @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 -
429 Too many requests -
- */ - public ApiResponse - batchGetSecurityMonitoringDatasetDependenciesWithHttpInfo( - SecurityMonitoringDatasetDependenciesRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "batchGetSecurityMonitoringDatasetDependencies"; - 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 = body; - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - 400, - "Missing the required parameter 'body' when calling" - + " batchGetSecurityMonitoringDatasetDependencies"); - } - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets/dependencies"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.batchGetSecurityMonitoringDatasetDependencies", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get dataset dependencies. - * - *

See {@link #batchGetSecurityMonitoringDatasetDependenciesWithHttpInfo}. - * - * @param body (required) - * @return - * CompletableFuture<ApiResponse<SecurityMonitoringDatasetDependenciesResponse>> - */ - public CompletableFuture> - batchGetSecurityMonitoringDatasetDependenciesWithHttpInfoAsync( - SecurityMonitoringDatasetDependenciesRequest body) { - // Check if unstable operation is enabled - String operationId = "batchGetSecurityMonitoringDatasetDependencies"; - 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 = body; - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'body' when calling" - + " batchGetSecurityMonitoringDatasetDependencies")); - return result; - } - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets/dependencies"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.batchGetSecurityMonitoringDatasetDependencies", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** * Bulk subscribe to sample log generation. * @@ -3539,166 +3368,6 @@ public SecurityMonitoringCriticalAssetResponse createSecurityMonitoringCriticalA new GenericType() {}); } - /** - * Create a dataset. - * - *

See {@link #createSecurityMonitoringDatasetWithHttpInfo}. - * - * @param body (required) - * @return SecurityMonitoringDatasetCreateResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetCreateResponse createSecurityMonitoringDataset( - SecurityMonitoringDatasetCreateRequest body) throws ApiException { - return createSecurityMonitoringDatasetWithHttpInfo(body).getData(); - } - - /** - * Create a dataset. - * - *

See {@link #createSecurityMonitoringDatasetWithHttpInfoAsync}. - * - * @param body (required) - * @return CompletableFuture<SecurityMonitoringDatasetCreateResponse> - */ - public CompletableFuture - createSecurityMonitoringDatasetAsync(SecurityMonitoringDatasetCreateRequest body) { - return createSecurityMonitoringDatasetWithHttpInfoAsync(body) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Create a new Cloud SIEM dataset. A dataset bundles a data source, a set of indexes, and a - * search query that can be referenced from detection rules. - * - * @param body (required) - * @return ApiResponse<SecurityMonitoringDatasetCreateResponse> - * @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 -
409 Conflict -
429 Too many requests -
- */ - public ApiResponse - createSecurityMonitoringDatasetWithHttpInfo(SecurityMonitoringDatasetCreateRequest body) - throws ApiException { - // Check if unstable operation is enabled - String operationId = "createSecurityMonitoringDataset"; - 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 = body; - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - 400, - "Missing the required parameter 'body' when calling createSecurityMonitoringDataset"); - } - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.createSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Create a dataset. - * - *

See {@link #createSecurityMonitoringDatasetWithHttpInfo}. - * - * @param body (required) - * @return CompletableFuture<ApiResponse<SecurityMonitoringDatasetCreateResponse>> - */ - public CompletableFuture> - createSecurityMonitoringDatasetWithHttpInfoAsync( - SecurityMonitoringDatasetCreateRequest body) { - // Check if unstable operation is enabled - String operationId = "createSecurityMonitoringDataset"; - 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 = body; - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'body' when calling" - + " createSecurityMonitoringDataset")); - return result; - } - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.createSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** * Create an entity context sync configuration. * @@ -5659,179 +5328,22 @@ public ApiResponse deleteSecurityMonitoringCriticalAssetWithHttpInfo(Strin } /** - * Delete a dataset. + * Delete an entity context sync configuration. * - *

See {@link #deleteSecurityMonitoringDatasetWithHttpInfo}. + *

See {@link #deleteSecurityMonitoringIntegrationConfigWithHttpInfo}. * - * @param datasetId The UUID of the dataset. (required) + * @param integrationConfigId The ID of the entity context sync configuration. (required) * @throws ApiException if fails to make API call */ - public void deleteSecurityMonitoringDataset(String datasetId) throws ApiException { - deleteSecurityMonitoringDatasetWithHttpInfo(datasetId); + public void deleteSecurityMonitoringIntegrationConfig(String integrationConfigId) + throws ApiException { + deleteSecurityMonitoringIntegrationConfigWithHttpInfo(integrationConfigId); } /** - * Delete a dataset. + * Delete an entity context sync configuration. * - *

See {@link #deleteSecurityMonitoringDatasetWithHttpInfoAsync}. - * - * @param datasetId The UUID of the dataset. (required) - * @return CompletableFuture - */ - public CompletableFuture deleteSecurityMonitoringDatasetAsync(String datasetId) { - return deleteSecurityMonitoringDatasetWithHttpInfoAsync(datasetId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Delete a Cloud SIEM dataset. Out-of-the-box datasets cannot be deleted and deleting a dataset - * that is referenced by a detection rule is rejected. - * - * @param datasetId The UUID of the dataset. (required) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
403 Forbidden -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse deleteSecurityMonitoringDatasetWithHttpInfo(String datasetId) - throws ApiException { - // Check if unstable operation is enabled - String operationId = "deleteSecurityMonitoringDataset"; - 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 'datasetId' is set - if (datasetId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " deleteSecurityMonitoringDataset"); - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.deleteSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - null); - } - - /** - * Delete a dataset. - * - *

See {@link #deleteSecurityMonitoringDatasetWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @return CompletableFuture<ApiResponse<Void>> - */ - public CompletableFuture> deleteSecurityMonitoringDatasetWithHttpInfoAsync( - String datasetId) { - // Check if unstable operation is enabled - String operationId = "deleteSecurityMonitoringDataset"; - 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 'datasetId' is set - if (datasetId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " deleteSecurityMonitoringDataset")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.deleteSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "DELETE", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - null); - } - - /** - * Delete an entity context sync configuration. - * - *

See {@link #deleteSecurityMonitoringIntegrationConfigWithHttpInfo}. - * - * @param integrationConfigId The ID of the entity context sync configuration. (required) - * @throws ApiException if fails to make API call - */ - public void deleteSecurityMonitoringIntegrationConfig(String integrationConfigId) - throws ApiException { - deleteSecurityMonitoringIntegrationConfigWithHttpInfo(integrationConfigId); - } - - /** - * Delete an entity context sync configuration. - * - *

See {@link #deleteSecurityMonitoringIntegrationConfigWithHttpInfoAsync}. + *

See {@link #deleteSecurityMonitoringIntegrationConfigWithHttpInfoAsync}. * * @param integrationConfigId The ID of the entity context sync configuration. (required) * @return CompletableFuture @@ -9889,582 +9401,16 @@ public SecurityMonitoringCriticalAssetResponse getSecurityMonitoringCriticalAsse } /** - * Get a critical asset. - * - *

See {@link #getSecurityMonitoringCriticalAssetWithHttpInfoAsync}. - * - * @param criticalAssetId The ID of the critical asset. (required) - * @return CompletableFuture<SecurityMonitoringCriticalAssetResponse> - */ - public CompletableFuture - getSecurityMonitoringCriticalAssetAsync(String criticalAssetId) { - return getSecurityMonitoringCriticalAssetWithHttpInfoAsync(criticalAssetId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the details of a specific critical asset. - * - * @param criticalAssetId The ID of the critical asset. (required) - * @return ApiResponse<SecurityMonitoringCriticalAssetResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
403 Not Authorized -
404 Not Found -
429 Too many requests -
- */ - public ApiResponse - getSecurityMonitoringCriticalAssetWithHttpInfo(String criticalAssetId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'criticalAssetId' is set - if (criticalAssetId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'criticalAssetId' when calling" - + " getSecurityMonitoringCriticalAsset"); - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}" - .replaceAll( - "\\{" + "critical_asset_id" + "\\}", - apiClient.escapeString(criticalAssetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringCriticalAsset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a critical asset. - * - *

See {@link #getSecurityMonitoringCriticalAssetWithHttpInfo}. - * - * @param criticalAssetId The ID of the critical asset. (required) - * @return CompletableFuture<ApiResponse<SecurityMonitoringCriticalAssetResponse>> - */ - public CompletableFuture> - getSecurityMonitoringCriticalAssetWithHttpInfoAsync(String criticalAssetId) { - Object localVarPostBody = null; - - // verify the required parameter 'criticalAssetId' is set - if (criticalAssetId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'criticalAssetId' when calling" - + " getSecurityMonitoringCriticalAsset")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}" - .replaceAll( - "\\{" + "critical_asset_id" + "\\}", - apiClient.escapeString(criticalAssetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringCriticalAsset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a dataset. - * - *

See {@link #getSecurityMonitoringDatasetWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @return SecurityMonitoringDatasetResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetResponse getSecurityMonitoringDataset(String datasetId) - throws ApiException { - return getSecurityMonitoringDatasetWithHttpInfo(datasetId).getData(); - } - - /** - * Get a dataset. - * - *

See {@link #getSecurityMonitoringDatasetWithHttpInfoAsync}. - * - * @param datasetId The UUID of the dataset. (required) - * @return CompletableFuture<SecurityMonitoringDatasetResponse> - */ - public CompletableFuture getSecurityMonitoringDatasetAsync( - String datasetId) { - return getSecurityMonitoringDatasetWithHttpInfoAsync(datasetId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the current version of a Cloud SIEM dataset by ID. - * - * @param datasetId The UUID of the dataset. (required) - * @return ApiResponse<SecurityMonitoringDatasetResponse> - * @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 getSecurityMonitoringDatasetWithHttpInfo( - String datasetId) throws ApiException { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDataset"; - 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 'datasetId' is set - if (datasetId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling getSecurityMonitoringDataset"); - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a dataset. - * - *

See {@link #getSecurityMonitoringDatasetWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @return CompletableFuture<ApiResponse<SecurityMonitoringDatasetResponse>> - */ - public CompletableFuture> - getSecurityMonitoringDatasetWithHttpInfoAsync(String datasetId) { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDataset"; - 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 'datasetId' is set - if (datasetId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " getSecurityMonitoringDataset")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a dataset at a specific version. - * - *

See {@link #getSecurityMonitoringDatasetByVersionWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @param version The version number of the dataset to retrieve. (required) - * @return SecurityMonitoringDatasetResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetResponse getSecurityMonitoringDatasetByVersion( - String datasetId, Long version) throws ApiException { - return getSecurityMonitoringDatasetByVersionWithHttpInfo(datasetId, version).getData(); - } - - /** - * Get a dataset at a specific version. - * - *

See {@link #getSecurityMonitoringDatasetByVersionWithHttpInfoAsync}. - * - * @param datasetId The UUID of the dataset. (required) - * @param version The version number of the dataset to retrieve. (required) - * @return CompletableFuture<SecurityMonitoringDatasetResponse> - */ - public CompletableFuture - getSecurityMonitoringDatasetByVersionAsync(String datasetId, Long version) { - return getSecurityMonitoringDatasetByVersionWithHttpInfoAsync(datasetId, version) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Retrieve a specific historical version of a Cloud SIEM dataset. - * - * @param datasetId The UUID of the dataset. (required) - * @param version The version number of the dataset to retrieve. (required) - * @return ApiResponse<SecurityMonitoringDatasetResponse> - * @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 - getSecurityMonitoringDatasetByVersionWithHttpInfo(String datasetId, Long version) - throws ApiException { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDatasetByVersion"; - 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 'datasetId' is set - if (datasetId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " getSecurityMonitoringDatasetByVersion"); - } - - // verify the required parameter 'version' is set - if (version == null) { - throw new ApiException( - 400, - "Missing the required parameter 'version' when calling" - + " getSecurityMonitoringDatasetByVersion"); - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}/version/{version}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDatasetByVersion", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a dataset at a specific version. - * - *

See {@link #getSecurityMonitoringDatasetByVersionWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @param version The version number of the dataset to retrieve. (required) - * @return CompletableFuture<ApiResponse<SecurityMonitoringDatasetResponse>> - */ - public CompletableFuture> - getSecurityMonitoringDatasetByVersionWithHttpInfoAsync(String datasetId, Long version) { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDatasetByVersion"; - 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 'datasetId' is set - if (datasetId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " getSecurityMonitoringDatasetByVersion")); - return result; - } - - // verify the required parameter 'version' is set - if (version == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'version' when calling" - + " getSecurityMonitoringDatasetByVersion")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}/version/{version}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDatasetByVersion", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** Manage optional parameters to getSecurityMonitoringDatasetVersionHistory. */ - public static class GetSecurityMonitoringDatasetVersionHistoryOptionalParameters { - private Long pageSize; - private Long pageNumber; - - /** - * Set pageSize. - * - * @param pageSize Size for a given page. The maximum allowed value is 100. (optional, default - * to 10) - * @return GetSecurityMonitoringDatasetVersionHistoryOptionalParameters - */ - public GetSecurityMonitoringDatasetVersionHistoryOptionalParameters pageSize(Long pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Set pageNumber. - * - * @param pageNumber Specific page number to return. (optional, default to 0) - * @return GetSecurityMonitoringDatasetVersionHistoryOptionalParameters - */ - public GetSecurityMonitoringDatasetVersionHistoryOptionalParameters pageNumber( - Long pageNumber) { - this.pageNumber = pageNumber; - return this; - } - } - - /** - * Get the version history of a dataset. - * - *

See {@link #getSecurityMonitoringDatasetVersionHistoryWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @return SecurityMonitoringDatasetVersionHistoryResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetVersionHistoryResponse getSecurityMonitoringDatasetVersionHistory( - String datasetId) throws ApiException { - return getSecurityMonitoringDatasetVersionHistoryWithHttpInfo( - datasetId, new GetSecurityMonitoringDatasetVersionHistoryOptionalParameters()) - .getData(); - } - - /** - * Get the version history of a dataset. - * - *

See {@link #getSecurityMonitoringDatasetVersionHistoryWithHttpInfoAsync}. - * - * @param datasetId The UUID of the dataset. (required) - * @return CompletableFuture<SecurityMonitoringDatasetVersionHistoryResponse> - */ - public CompletableFuture - getSecurityMonitoringDatasetVersionHistoryAsync(String datasetId) { - return getSecurityMonitoringDatasetVersionHistoryWithHttpInfoAsync( - datasetId, new GetSecurityMonitoringDatasetVersionHistoryOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the version history of a dataset. - * - *

See {@link #getSecurityMonitoringDatasetVersionHistoryWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @param parameters Optional parameters for the request. - * @return SecurityMonitoringDatasetVersionHistoryResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetVersionHistoryResponse getSecurityMonitoringDatasetVersionHistory( - String datasetId, GetSecurityMonitoringDatasetVersionHistoryOptionalParameters parameters) - throws ApiException { - return getSecurityMonitoringDatasetVersionHistoryWithHttpInfo(datasetId, parameters).getData(); - } - - /** - * Get the version history of a dataset. + * Get a critical asset. * - *

See {@link #getSecurityMonitoringDatasetVersionHistoryWithHttpInfoAsync}. + *

See {@link #getSecurityMonitoringCriticalAssetWithHttpInfoAsync}. * - * @param datasetId The UUID of the dataset. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SecurityMonitoringDatasetVersionHistoryResponse> + * @param criticalAssetId The ID of the critical asset. (required) + * @return CompletableFuture<SecurityMonitoringCriticalAssetResponse> */ - public CompletableFuture - getSecurityMonitoringDatasetVersionHistoryAsync( - String datasetId, - GetSecurityMonitoringDatasetVersionHistoryOptionalParameters parameters) { - return getSecurityMonitoringDatasetVersionHistoryWithHttpInfoAsync(datasetId, parameters) + public CompletableFuture + getSecurityMonitoringCriticalAssetAsync(String criticalAssetId) { + return getSecurityMonitoringCriticalAssetWithHttpInfoAsync(criticalAssetId) .thenApply( response -> { return response.getData(); @@ -10472,62 +9418,46 @@ public SecurityMonitoringDatasetVersionHistoryResponse getSecurityMonitoringData } /** - * Retrieve the version history of a Cloud SIEM dataset, including the changes made at each - * version. + * Get the details of a specific critical asset. * - * @param datasetId The UUID of the dataset. (required) - * @param parameters Optional parameters for the request. - * @return ApiResponse<SecurityMonitoringDatasetVersionHistoryResponse> + * @param criticalAssetId The ID of the critical asset. (required) + * @return ApiResponse<SecurityMonitoringCriticalAssetResponse> * @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 -
403 Not Authorized -
404 Not Found -
429 Too many requests -
*/ - public ApiResponse - getSecurityMonitoringDatasetVersionHistoryWithHttpInfo( - String datasetId, GetSecurityMonitoringDatasetVersionHistoryOptionalParameters parameters) - throws ApiException { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDatasetVersionHistory"; - 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)); - } + public ApiResponse + getSecurityMonitoringCriticalAssetWithHttpInfo(String criticalAssetId) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'datasetId' is set - if (datasetId == null) { + // verify the required parameter 'criticalAssetId' is set + if (criticalAssetId == null) { throw new ApiException( 400, - "Missing the required parameter 'datasetId' when calling" - + " getSecurityMonitoringDatasetVersionHistory"); + "Missing the required parameter 'criticalAssetId' when calling" + + " getSecurityMonitoringCriticalAsset"); } - Long pageSize = parameters.pageSize; - Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}/version_history" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); + "/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}" + .replaceAll( + "\\{" + "critical_asset_id" + "\\}", + apiClient.escapeString(criticalAssetId.toString())); - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); - Invocation.Builder builder = apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDatasetVersionHistory", + "v2.SecurityMonitoringApi.getSecurityMonitoringCriticalAsset", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, @@ -10540,73 +9470,54 @@ public SecurityMonitoringDatasetVersionHistoryResponse getSecurityMonitoringData localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get the version history of a dataset. + * Get a critical asset. * - *

See {@link #getSecurityMonitoringDatasetVersionHistoryWithHttpInfo}. + *

See {@link #getSecurityMonitoringCriticalAssetWithHttpInfo}. * - * @param datasetId The UUID of the dataset. (required) - * @param parameters Optional parameters for the request. - * @return - * CompletableFuture<ApiResponse<SecurityMonitoringDatasetVersionHistoryResponse>> + * @param criticalAssetId The ID of the critical asset. (required) + * @return CompletableFuture<ApiResponse<SecurityMonitoringCriticalAssetResponse>> */ - public CompletableFuture> - getSecurityMonitoringDatasetVersionHistoryWithHttpInfoAsync( - String datasetId, - GetSecurityMonitoringDatasetVersionHistoryOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "getSecurityMonitoringDatasetVersionHistory"; - 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; - } + public CompletableFuture> + getSecurityMonitoringCriticalAssetWithHttpInfoAsync(String criticalAssetId) { Object localVarPostBody = null; - // verify the required parameter 'datasetId' is set - if (datasetId == null) { - CompletableFuture> result = + // verify the required parameter 'criticalAssetId' is set + if (criticalAssetId == null) { + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, - "Missing the required parameter 'datasetId' when calling" - + " getSecurityMonitoringDatasetVersionHistory")); + "Missing the required parameter 'criticalAssetId' when calling" + + " getSecurityMonitoringCriticalAsset")); return result; } - Long pageSize = parameters.pageSize; - Long pageNumber = parameters.pageNumber; // create path and map variables String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}/version_history" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); + "/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}" + .replaceAll( + "\\{" + "critical_asset_id" + "\\}", + apiClient.escapeString(criticalAssetId.toString())); - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); - Invocation.Builder builder; try { builder = apiClient.createBuilder( - "v2.SecurityMonitoringApi.getSecurityMonitoringDatasetVersionHistory", + "v2.SecurityMonitoringApi.getSecurityMonitoringCriticalAsset", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -10619,7 +9530,7 @@ public SecurityMonitoringDatasetVersionHistoryResponse getSecurityMonitoringData localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** @@ -16341,258 +15252,55 @@ public ApiResponse listSecurityFindingsWithHttpInf Invocation.Builder builder; try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.listSecurityFindings", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get all critical assets. - * - *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfo}. - * - * @return SecurityMonitoringCriticalAssetsResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringCriticalAssetsResponse listSecurityMonitoringCriticalAssets() - throws ApiException { - return listSecurityMonitoringCriticalAssetsWithHttpInfo().getData(); - } - - /** - * Get all critical assets. - * - *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfoAsync}. - * - * @return CompletableFuture<SecurityMonitoringCriticalAssetsResponse> - */ - public CompletableFuture - listSecurityMonitoringCriticalAssetsAsync() { - return listSecurityMonitoringCriticalAssetsWithHttpInfoAsync() - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the list of all critical assets. - * - * @return ApiResponse<SecurityMonitoringCriticalAssetsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
403 Not Authorized -
429 Too many requests -
- */ - public ApiResponse - listSecurityMonitoringCriticalAssetsWithHttpInfo() throws ApiException { - Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/configuration/critical_assets"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.listSecurityMonitoringCriticalAssets", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get all critical assets. - * - *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfo}. - * - * @return CompletableFuture<ApiResponse<SecurityMonitoringCriticalAssetsResponse>> - */ - public CompletableFuture> - listSecurityMonitoringCriticalAssetsWithHttpInfoAsync() { - Object localVarPostBody = null; - // create path and map variables - String localVarPath = "/api/v2/security_monitoring/configuration/critical_assets"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.listSecurityMonitoringCriticalAssets", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** Manage optional parameters to listSecurityMonitoringDatasets. */ - public static class ListSecurityMonitoringDatasetsOptionalParameters { - private Long pageSize; - private Long pageNumber; - private String sort; - private String filterQuery; - - /** - * Set pageSize. - * - * @param pageSize Size for a given page. The maximum allowed value is 100. (optional, default - * to 50) - * @return ListSecurityMonitoringDatasetsOptionalParameters - */ - public ListSecurityMonitoringDatasetsOptionalParameters pageSize(Long pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Set pageNumber. - * - * @param pageNumber Specific page number to return. (optional, default to 1) - * @return ListSecurityMonitoringDatasetsOptionalParameters - */ - public ListSecurityMonitoringDatasetsOptionalParameters pageNumber(Long pageNumber) { - this.pageNumber = pageNumber; - return this; - } - - /** - * Set sort. - * - * @param sort Attribute used to sort datasets. Prefix with - to sort in descending - * order. (optional) - * @return ListSecurityMonitoringDatasetsOptionalParameters - */ - public ListSecurityMonitoringDatasetsOptionalParameters sort(String sort) { - this.sort = sort; - return this; - } - - /** - * Set filterQuery. - * - * @param filterQuery A search query to filter datasets by name or description. (optional) - * @return ListSecurityMonitoringDatasetsOptionalParameters - */ - public ListSecurityMonitoringDatasetsOptionalParameters filterQuery(String filterQuery) { - this.filterQuery = filterQuery; - return this; + builder = + apiClient.createBuilder( + "v2.SecurityMonitoringApi.listSecurityFindings", + localVarPath, + localVarQueryParams, + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); + } catch (ApiException ex) { + CompletableFuture> result = + new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); } /** - * List datasets. + * Get all critical assets. * - *

See {@link #listSecurityMonitoringDatasetsWithHttpInfo}. + *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfo}. * - * @return SecurityMonitoringDatasetsListResponse + * @return SecurityMonitoringCriticalAssetsResponse * @throws ApiException if fails to make API call */ - public SecurityMonitoringDatasetsListResponse listSecurityMonitoringDatasets() + public SecurityMonitoringCriticalAssetsResponse listSecurityMonitoringCriticalAssets() throws ApiException { - return listSecurityMonitoringDatasetsWithHttpInfo( - new ListSecurityMonitoringDatasetsOptionalParameters()) - .getData(); - } - - /** - * List datasets. - * - *

See {@link #listSecurityMonitoringDatasetsWithHttpInfoAsync}. - * - * @return CompletableFuture<SecurityMonitoringDatasetsListResponse> - */ - public CompletableFuture - listSecurityMonitoringDatasetsAsync() { - return listSecurityMonitoringDatasetsWithHttpInfoAsync( - new ListSecurityMonitoringDatasetsOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * List datasets. - * - *

See {@link #listSecurityMonitoringDatasetsWithHttpInfo}. - * - * @param parameters Optional parameters for the request. - * @return SecurityMonitoringDatasetsListResponse - * @throws ApiException if fails to make API call - */ - public SecurityMonitoringDatasetsListResponse listSecurityMonitoringDatasets( - ListSecurityMonitoringDatasetsOptionalParameters parameters) throws ApiException { - return listSecurityMonitoringDatasetsWithHttpInfo(parameters).getData(); + return listSecurityMonitoringCriticalAssetsWithHttpInfo().getData(); } /** - * List datasets. + * Get all critical assets. * - *

See {@link #listSecurityMonitoringDatasetsWithHttpInfoAsync}. + *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfoAsync}. * - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SecurityMonitoringDatasetsListResponse> + * @return CompletableFuture<SecurityMonitoringCriticalAssetsResponse> */ - public CompletableFuture - listSecurityMonitoringDatasetsAsync( - ListSecurityMonitoringDatasetsOptionalParameters parameters) { - return listSecurityMonitoringDatasetsWithHttpInfoAsync(parameters) + public CompletableFuture + listSecurityMonitoringCriticalAssetsAsync() { + return listSecurityMonitoringCriticalAssetsWithHttpInfoAsync() .thenApply( response -> { return response.getData(); @@ -16600,53 +15308,32 @@ public SecurityMonitoringDatasetsListResponse listSecurityMonitoringDatasets( } /** - * List all Cloud SIEM datasets available to the organization, including both customer-defined - * datasets and Datadog out-of-the-box datasets. + * Get the list of all critical assets. * - * @param parameters Optional parameters for the request. - * @return ApiResponse<SecurityMonitoringDatasetsListResponse> + * @return ApiResponse<SecurityMonitoringCriticalAssetsResponse> * @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 -
403 Not Authorized -
429 Too many requests -
*/ - public ApiResponse - listSecurityMonitoringDatasetsWithHttpInfo( - ListSecurityMonitoringDatasetsOptionalParameters parameters) throws ApiException { - // Check if unstable operation is enabled - String operationId = "listSecurityMonitoringDatasets"; - 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)); - } + public ApiResponse + listSecurityMonitoringCriticalAssetsWithHttpInfo() throws ApiException { Object localVarPostBody = null; - Long pageSize = parameters.pageSize; - Long pageNumber = parameters.pageNumber; - String sort = parameters.sort; - String filterQuery = parameters.filterQuery; // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets"; + String localVarPath = "/api/v2/security_monitoring/configuration/critical_assets"; - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[query]", filterQuery)); - Invocation.Builder builder = apiClient.createBuilder( - "v2.SecurityMonitoringApi.listSecurityMonitoringDatasets", + "v2.SecurityMonitoringApi.listSecurityMonitoringCriticalAssets", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, @@ -16659,60 +15346,37 @@ public SecurityMonitoringDatasetsListResponse listSecurityMonitoringDatasets( localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * List datasets. + * Get all critical assets. * - *

See {@link #listSecurityMonitoringDatasetsWithHttpInfo}. + *

See {@link #listSecurityMonitoringCriticalAssetsWithHttpInfo}. * - * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SecurityMonitoringDatasetsListResponse>> + * @return CompletableFuture<ApiResponse<SecurityMonitoringCriticalAssetsResponse>> */ - public CompletableFuture> - listSecurityMonitoringDatasetsWithHttpInfoAsync( - ListSecurityMonitoringDatasetsOptionalParameters parameters) { - // Check if unstable operation is enabled - String operationId = "listSecurityMonitoringDatasets"; - 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; - } + public CompletableFuture> + listSecurityMonitoringCriticalAssetsWithHttpInfoAsync() { Object localVarPostBody = null; - Long pageSize = parameters.pageSize; - Long pageNumber = parameters.pageNumber; - String sort = parameters.sort; - String filterQuery = parameters.filterQuery; // create path and map variables - String localVarPath = "/api/v2/security_monitoring/datasets"; + String localVarPath = "/api/v2/security_monitoring/configuration/critical_assets"; - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[query]", filterQuery)); - Invocation.Builder builder; try { builder = apiClient.createBuilder( - "v2.SecurityMonitoringApi.listSecurityMonitoringDatasets", + "v2.SecurityMonitoringApi.listSecurityMonitoringCriticalAssets", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -16725,7 +15389,7 @@ public SecurityMonitoringDatasetsListResponse listSecurityMonitoringDatasets( localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** Manage optional parameters to listSecurityMonitoringHistsignals. */ @@ -22171,188 +20835,6 @@ public SecurityMonitoringCriticalAssetResponse updateSecurityMonitoringCriticalA new GenericType() {}); } - /** - * Update a dataset. - * - *

See {@link #updateSecurityMonitoringDatasetWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @param body (required) - * @throws ApiException if fails to make API call - */ - public void updateSecurityMonitoringDataset( - String datasetId, SecurityMonitoringDatasetUpdateRequest body) throws ApiException { - updateSecurityMonitoringDatasetWithHttpInfo(datasetId, body); - } - - /** - * Update a dataset. - * - *

See {@link #updateSecurityMonitoringDatasetWithHttpInfoAsync}. - * - * @param datasetId The UUID of the dataset. (required) - * @param body (required) - * @return CompletableFuture - */ - public CompletableFuture updateSecurityMonitoringDatasetAsync( - String datasetId, SecurityMonitoringDatasetUpdateRequest body) { - return updateSecurityMonitoringDatasetWithHttpInfoAsync(datasetId, body) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Update an existing Cloud SIEM dataset. The current version of the dataset can be provided to - * detect concurrent modifications. - * - * @param datasetId The UUID of the dataset. (required) - * @param body (required) - * @return ApiResponse<Void> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
403 Forbidden -
404 Not Found -
409 Conflict -
429 Too many requests -
- */ - public ApiResponse updateSecurityMonitoringDatasetWithHttpInfo( - String datasetId, SecurityMonitoringDatasetUpdateRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "updateSecurityMonitoringDataset"; - 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 = body; - - // verify the required parameter 'datasetId' is set - if (datasetId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " updateSecurityMonitoringDataset"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - 400, - "Missing the required parameter 'body' when calling updateSecurityMonitoringDataset"); - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.updateSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "PATCH", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - null); - } - - /** - * Update a dataset. - * - *

See {@link #updateSecurityMonitoringDatasetWithHttpInfo}. - * - * @param datasetId The UUID of the dataset. (required) - * @param body (required) - * @return CompletableFuture<ApiResponse<Void>> - */ - public CompletableFuture> updateSecurityMonitoringDatasetWithHttpInfoAsync( - String datasetId, SecurityMonitoringDatasetUpdateRequest body) { - // Check if unstable operation is enabled - String operationId = "updateSecurityMonitoringDataset"; - 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 = body; - - // verify the required parameter 'datasetId' is set - if (datasetId == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'datasetId' when calling" - + " updateSecurityMonitoringDataset")); - return result; - } - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'body' when calling" - + " updateSecurityMonitoringDataset")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/security_monitoring/datasets/{dataset_id}" - .replaceAll("\\{" + "dataset_id" + "\\}", apiClient.escapeString(datasetId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SecurityMonitoringApi.updateSecurityMonitoringDataset", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"*/*"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "PATCH", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - null); - } - /** * Update an entity context sync configuration. * diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesRequest.java deleted file mode 100644 index 9921ae90cbe..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesRequest.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The attributes of a dataset create or update request. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetAttributesRequest.JSON_PROPERTY_DEFINITION, - SecurityMonitoringDatasetAttributesRequest.JSON_PROPERTY_DESCRIPTION, - SecurityMonitoringDatasetAttributesRequest.JSON_PROPERTY_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetAttributesRequest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DEFINITION = "definition"; - private SecurityMonitoringDatasetDefinition definition; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; - - public static final String JSON_PROPERTY_VERSION = "version"; - private Long version; - - public SecurityMonitoringDatasetAttributesRequest() {} - - @JsonCreator - public SecurityMonitoringDatasetAttributesRequest( - @JsonProperty(required = true, value = JSON_PROPERTY_DEFINITION) - SecurityMonitoringDatasetDefinition definition) { - this.definition = definition; - this.unparsed |= definition.unparsed; - } - - public SecurityMonitoringDatasetAttributesRequest definition( - SecurityMonitoringDatasetDefinition definition) { - this.definition = definition; - this.unparsed |= definition.unparsed; - return this; - } - - /** - * The definition of the dataset. The shape depends on the value of data_source. Use - * reference_table or managed_resource for a referential dataset, or one - * of the event platform sources (for example logs, audit, events - * , spans, rum) for an event platform dataset. - * - * @return definition - */ - @JsonProperty(JSON_PROPERTY_DEFINITION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDefinition getDefinition() { - return definition; - } - - public void setDefinition(SecurityMonitoringDatasetDefinition definition) { - this.definition = definition; - } - - public SecurityMonitoringDatasetAttributesRequest description(String description) { - this.description = description; - return this; - } - - /** - * The description of the dataset. Maximum 255 characters. - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public SecurityMonitoringDatasetAttributesRequest version(Long version) { - this.version = version; - return this; - } - - /** - * The expected current version of the dataset for optimistic concurrency control on updates. If - * the dataset's current version does not match, the request is rejected with a 409 Conflict. - * - * @return version - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getVersion() { - return version; - } - - public void setVersion(Long version) { - this.version = version; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetAttributesRequest - */ - @JsonAnySetter - public SecurityMonitoringDatasetAttributesRequest putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetAttributesRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetAttributesRequest securityMonitoringDatasetAttributesRequest = - (SecurityMonitoringDatasetAttributesRequest) o; - return Objects.equals(this.definition, securityMonitoringDatasetAttributesRequest.definition) - && Objects.equals(this.description, securityMonitoringDatasetAttributesRequest.description) - && Objects.equals(this.version, securityMonitoringDatasetAttributesRequest.version) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetAttributesRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(definition, description, version, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetAttributesRequest {\n"); - sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesResponse.java deleted file mode 100644 index 121d1920ce4..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetAttributesResponse.java +++ /dev/null @@ -1,519 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The attributes of a Cloud SIEM dataset. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_CREATED_AT, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_CREATED_BY_HANDLE, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_CREATED_BY_NAME, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_DEFINITION, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_DESCRIPTION, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_ID, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_IS_DEFAULT, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_IS_DEPRECATED, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_MODIFIED_AT, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_NAME, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_UPDATED_BY_HANDLE, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_UPDATED_BY_NAME, - SecurityMonitoringDatasetAttributesResponse.JSON_PROPERTY_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetAttributesResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; - private String createdAt; - - public static final String JSON_PROPERTY_CREATED_BY_HANDLE = "createdByHandle"; - private String createdByHandle; - - public static final String JSON_PROPERTY_CREATED_BY_NAME = "createdByName"; - private String createdByName; - - public static final String JSON_PROPERTY_DEFINITION = "definition"; - private SecurityMonitoringDatasetDefinition definition; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_IS_DEFAULT = "isDefault"; - private Boolean isDefault; - - public static final String JSON_PROPERTY_IS_DEPRECATED = "isDeprecated"; - private Boolean isDeprecated; - - public static final String JSON_PROPERTY_MODIFIED_AT = "modifiedAt"; - private String modifiedAt; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_UPDATED_BY_HANDLE = "updatedByHandle"; - private String updatedByHandle; - - public static final String JSON_PROPERTY_UPDATED_BY_NAME = "updatedByName"; - private String updatedByName; - - public static final String JSON_PROPERTY_VERSION = "version"; - private Long version; - - public SecurityMonitoringDatasetAttributesResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetAttributesResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) String createdAt, - @JsonProperty(required = true, value = JSON_PROPERTY_CREATED_BY_HANDLE) - String createdByHandle, - @JsonProperty(required = true, value = JSON_PROPERTY_CREATED_BY_NAME) String createdByName, - @JsonProperty(required = true, value = JSON_PROPERTY_DEFINITION) - SecurityMonitoringDatasetDefinition definition, - @JsonProperty(required = true, value = JSON_PROPERTY_DESCRIPTION) String description, - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_IS_DEFAULT) Boolean isDefault, - @JsonProperty(required = true, value = JSON_PROPERTY_IS_DEPRECATED) Boolean isDeprecated, - @JsonProperty(required = true, value = JSON_PROPERTY_MODIFIED_AT) String modifiedAt, - @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name, - @JsonProperty(required = true, value = JSON_PROPERTY_UPDATED_BY_HANDLE) - String updatedByHandle, - @JsonProperty(required = true, value = JSON_PROPERTY_UPDATED_BY_NAME) String updatedByName, - @JsonProperty(required = true, value = JSON_PROPERTY_VERSION) Long version) { - this.createdAt = createdAt; - this.createdByHandle = createdByHandle; - this.createdByName = createdByName; - this.definition = definition; - this.unparsed |= definition.unparsed; - this.description = description; - this.id = id; - this.isDefault = isDefault; - this.isDeprecated = isDeprecated; - this.modifiedAt = modifiedAt; - this.name = name; - this.updatedByHandle = updatedByHandle; - if (updatedByHandle != null) {} - this.updatedByName = updatedByName; - if (updatedByName != null) {} - this.version = version; - } - - public SecurityMonitoringDatasetAttributesResponse createdAt(String createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * The creation timestamp of the dataset, in ISO 8601 format. - * - * @return createdAt - */ - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public SecurityMonitoringDatasetAttributesResponse createdByHandle(String createdByHandle) { - this.createdByHandle = createdByHandle; - return this; - } - - /** - * The Datadog handle of the user who created the dataset. - * - * @return createdByHandle - */ - @JsonProperty(JSON_PROPERTY_CREATED_BY_HANDLE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedByHandle() { - return createdByHandle; - } - - public void setCreatedByHandle(String createdByHandle) { - this.createdByHandle = createdByHandle; - } - - public SecurityMonitoringDatasetAttributesResponse createdByName(String createdByName) { - this.createdByName = createdByName; - return this; - } - - /** - * The display name of the user who created the dataset. - * - * @return createdByName - */ - @JsonProperty(JSON_PROPERTY_CREATED_BY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedByName() { - return createdByName; - } - - public void setCreatedByName(String createdByName) { - this.createdByName = createdByName; - } - - public SecurityMonitoringDatasetAttributesResponse definition( - SecurityMonitoringDatasetDefinition definition) { - this.definition = definition; - this.unparsed |= definition.unparsed; - return this; - } - - /** - * The definition of the dataset. The shape depends on the value of data_source. Use - * reference_table or managed_resource for a referential dataset, or one - * of the event platform sources (for example logs, audit, events - * , spans, rum) for an event platform dataset. - * - * @return definition - */ - @JsonProperty(JSON_PROPERTY_DEFINITION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDefinition getDefinition() { - return definition; - } - - public void setDefinition(SecurityMonitoringDatasetDefinition definition) { - this.definition = definition; - } - - public SecurityMonitoringDatasetAttributesResponse description(String description) { - this.description = description; - return this; - } - - /** - * The description of the dataset. - * - * @return description - */ - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public SecurityMonitoringDatasetAttributesResponse id(String id) { - this.id = id; - return this; - } - - /** - * The UUID of the dataset. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SecurityMonitoringDatasetAttributesResponse isDefault(Boolean isDefault) { - this.isDefault = isDefault; - return this; - } - - /** - * Whether the dataset is an out-of-the-box dataset provided by Datadog. - * - * @return isDefault - */ - @JsonProperty(JSON_PROPERTY_IS_DEFAULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsDefault() { - return isDefault; - } - - public void setIsDefault(Boolean isDefault) { - this.isDefault = isDefault; - } - - public SecurityMonitoringDatasetAttributesResponse isDeprecated(Boolean isDeprecated) { - this.isDeprecated = isDeprecated; - return this; - } - - /** - * Whether the dataset is marked as deprecated. - * - * @return isDeprecated - */ - @JsonProperty(JSON_PROPERTY_IS_DEPRECATED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsDeprecated() { - return isDeprecated; - } - - public void setIsDeprecated(Boolean isDeprecated) { - this.isDeprecated = isDeprecated; - } - - public SecurityMonitoringDatasetAttributesResponse modifiedAt(String modifiedAt) { - this.modifiedAt = modifiedAt; - return this; - } - - /** - * The timestamp of the last modification of the dataset, in ISO 8601 format. - * - * @return modifiedAt - */ - @JsonProperty(JSON_PROPERTY_MODIFIED_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getModifiedAt() { - return modifiedAt; - } - - public void setModifiedAt(String modifiedAt) { - this.modifiedAt = modifiedAt; - } - - public SecurityMonitoringDatasetAttributesResponse name(String name) { - this.name = name; - return this; - } - - /** - * The unique name of the dataset. - * - * @return name - */ - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SecurityMonitoringDatasetAttributesResponse updatedByHandle(String updatedByHandle) { - this.updatedByHandle = updatedByHandle; - if (updatedByHandle != null) {} - return this; - } - - /** - * The Datadog handle of the user who last updated the dataset. - * - * @return updatedByHandle - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATED_BY_HANDLE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUpdatedByHandle() { - return updatedByHandle; - } - - public void setUpdatedByHandle(String updatedByHandle) { - this.updatedByHandle = updatedByHandle; - } - - public SecurityMonitoringDatasetAttributesResponse updatedByName(String updatedByName) { - this.updatedByName = updatedByName; - if (updatedByName != null) {} - return this; - } - - /** - * The display name of the user who last updated the dataset. - * - * @return updatedByName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATED_BY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUpdatedByName() { - return updatedByName; - } - - public void setUpdatedByName(String updatedByName) { - this.updatedByName = updatedByName; - } - - public SecurityMonitoringDatasetAttributesResponse version(Long version) { - this.version = version; - return this; - } - - /** - * The current version of the dataset. - * - * @return version - */ - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getVersion() { - return version; - } - - public void setVersion(Long version) { - this.version = version; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetAttributesResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetAttributesResponse putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetAttributesResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetAttributesResponse securityMonitoringDatasetAttributesResponse = - (SecurityMonitoringDatasetAttributesResponse) o; - return Objects.equals(this.createdAt, securityMonitoringDatasetAttributesResponse.createdAt) - && Objects.equals( - this.createdByHandle, securityMonitoringDatasetAttributesResponse.createdByHandle) - && Objects.equals( - this.createdByName, securityMonitoringDatasetAttributesResponse.createdByName) - && Objects.equals(this.definition, securityMonitoringDatasetAttributesResponse.definition) - && Objects.equals(this.description, securityMonitoringDatasetAttributesResponse.description) - && Objects.equals(this.id, securityMonitoringDatasetAttributesResponse.id) - && Objects.equals(this.isDefault, securityMonitoringDatasetAttributesResponse.isDefault) - && Objects.equals( - this.isDeprecated, securityMonitoringDatasetAttributesResponse.isDeprecated) - && Objects.equals(this.modifiedAt, securityMonitoringDatasetAttributesResponse.modifiedAt) - && Objects.equals(this.name, securityMonitoringDatasetAttributesResponse.name) - && Objects.equals( - this.updatedByHandle, securityMonitoringDatasetAttributesResponse.updatedByHandle) - && Objects.equals( - this.updatedByName, securityMonitoringDatasetAttributesResponse.updatedByName) - && Objects.equals(this.version, securityMonitoringDatasetAttributesResponse.version) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetAttributesResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - createdAt, - createdByHandle, - createdByName, - definition, - description, - id, - isDefault, - isDeprecated, - modifiedAt, - name, - updatedByHandle, - updatedByName, - version, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetAttributesResponse {\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" createdByHandle: ").append(toIndentedString(createdByHandle)).append("\n"); - sb.append(" createdByName: ").append(toIndentedString(createdByName)).append("\n"); - sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); - sb.append(" isDeprecated: ").append(toIndentedString(isDeprecated)).append("\n"); - sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" updatedByHandle: ").append(toIndentedString(updatedByHandle)).append("\n"); - sb.append(" updatedByName: ").append(toIndentedString(updatedByName)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetColumn.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetColumn.java deleted file mode 100644 index 465cfbb55a4..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetColumn.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A column exposed by an event platform dataset. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetColumn.JSON_PROPERTY_COLUMN, - SecurityMonitoringDatasetColumn.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetColumn { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_COLUMN = "column"; - private String column; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SecurityMonitoringDatasetColumn() {} - - @JsonCreator - public SecurityMonitoringDatasetColumn( - @JsonProperty(required = true, value = JSON_PROPERTY_COLUMN) String column, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) String type) { - this.column = column; - this.type = type; - } - - public SecurityMonitoringDatasetColumn column(String column) { - this.column = column; - return this; - } - - /** - * The name of the column. - * - * @return column - */ - @JsonProperty(JSON_PROPERTY_COLUMN) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getColumn() { - return column; - } - - public void setColumn(String column) { - this.column = column; - } - - public SecurityMonitoringDatasetColumn type(String type) { - this.type = type; - return this; - } - - /** - * The type of the column value. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetColumn - */ - @JsonAnySetter - public SecurityMonitoringDatasetColumn putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetColumn object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetColumn securityMonitoringDatasetColumn = - (SecurityMonitoringDatasetColumn) o; - return Objects.equals(this.column, securityMonitoringDatasetColumn.column) - && Objects.equals(this.type, securityMonitoringDatasetColumn.type) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetColumn.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(column, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetColumn {\n"); - sb.append(" column: ").append(toIndentedString(column)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateData.java deleted file mode 100644 index 530764bb824..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateData.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset create request. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetCreateData.JSON_PROPERTY_ATTRIBUTES, - SecurityMonitoringDatasetCreateData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetCreateData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetAttributesRequest attributes; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetCreateType type; - - public SecurityMonitoringDatasetCreateData() {} - - @JsonCreator - public SecurityMonitoringDatasetCreateData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetAttributesRequest attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetCreateType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetCreateData attributes( - SecurityMonitoringDatasetAttributesRequest attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a dataset create or update request. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetAttributesRequest getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetAttributesRequest attributes) { - this.attributes = attributes; - } - - public SecurityMonitoringDatasetCreateData type(SecurityMonitoringDatasetCreateType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset create request. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetCreateType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetCreateType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetCreateData - */ - @JsonAnySetter - public SecurityMonitoringDatasetCreateData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetCreateData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetCreateData securityMonitoringDatasetCreateData = - (SecurityMonitoringDatasetCreateData) o; - return Objects.equals(this.attributes, securityMonitoringDatasetCreateData.attributes) - && Objects.equals(this.type, securityMonitoringDatasetCreateData.type) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetCreateData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetCreateData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateRequest.java deleted file mode 100644 index 8a4baf03c54..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Request body for creating a Cloud SIEM dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetCreateRequest.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetCreateRequest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetCreateData data; - - public SecurityMonitoringDatasetCreateRequest() {} - - @JsonCreator - public SecurityMonitoringDatasetCreateRequest( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetCreateData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetCreateRequest data(SecurityMonitoringDatasetCreateData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset create request. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetCreateData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetCreateData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetCreateRequest - */ - @JsonAnySetter - public SecurityMonitoringDatasetCreateRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetCreateRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetCreateRequest securityMonitoringDatasetCreateRequest = - (SecurityMonitoringDatasetCreateRequest) o; - return Objects.equals(this.data, securityMonitoringDatasetCreateRequest.data) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetCreateRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetCreateRequest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponse.java deleted file mode 100644 index 9a283151386..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponse.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Response returned after creating a dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetCreateResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetCreateResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetCreateResponseData data; - - public SecurityMonitoringDatasetCreateResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetCreateResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetCreateResponseData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetCreateResponse data( - SecurityMonitoringDatasetCreateResponseData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset create response. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetCreateResponseData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetCreateResponseData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetCreateResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetCreateResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetCreateResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetCreateResponse securityMonitoringDatasetCreateResponse = - (SecurityMonitoringDatasetCreateResponse) o; - return Objects.equals(this.data, securityMonitoringDatasetCreateResponse.data) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetCreateResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetCreateResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponseData.java deleted file mode 100644 index 648fcb597ae..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateResponseData.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset create response. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetCreateResponseData.JSON_PROPERTY_ID, - SecurityMonitoringDatasetCreateResponseData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetCreateResponseData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetType type; - - public SecurityMonitoringDatasetCreateResponseData() {} - - @JsonCreator - public SecurityMonitoringDatasetCreateResponseData( - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetType type) { - this.id = id; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetCreateResponseData id(String id) { - this.id = id; - return this; - } - - /** - * The UUID of the newly created dataset. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SecurityMonitoringDatasetCreateResponseData type(SecurityMonitoringDatasetType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset response. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetCreateResponseData - */ - @JsonAnySetter - public SecurityMonitoringDatasetCreateResponseData putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetCreateResponseData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetCreateResponseData securityMonitoringDatasetCreateResponseData = - (SecurityMonitoringDatasetCreateResponseData) o; - return Objects.equals(this.id, securityMonitoringDatasetCreateResponseData.id) - && Objects.equals(this.type, securityMonitoringDatasetCreateResponseData.type) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetCreateResponseData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetCreateResponseData {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateType.java deleted file mode 100644 index 8c928c69e65..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetCreateType.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of resource for a dataset create request. */ -@JsonSerialize( - using = SecurityMonitoringDatasetCreateType.SecurityMonitoringDatasetCreateTypeSerializer.class) -public class SecurityMonitoringDatasetCreateType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("datasetCreate")); - - public static final SecurityMonitoringDatasetCreateType DATASET_CREATE = - new SecurityMonitoringDatasetCreateType("datasetCreate"); - - SecurityMonitoringDatasetCreateType(String value) { - super(value, allowedValues); - } - - public static class SecurityMonitoringDatasetCreateTypeSerializer - extends StdSerializer { - public SecurityMonitoringDatasetCreateTypeSerializer( - Class t) { - super(t); - } - - public SecurityMonitoringDatasetCreateTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SecurityMonitoringDatasetCreateType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SecurityMonitoringDatasetCreateType fromValue(String value) { - return new SecurityMonitoringDatasetCreateType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetData.java deleted file mode 100644 index bb503add5e7..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetData.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset response. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetData.JSON_PROPERTY_ATTRIBUTES, - SecurityMonitoringDatasetData.JSON_PROPERTY_ID, - SecurityMonitoringDatasetData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetAttributesResponse attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetType type; - - public SecurityMonitoringDatasetData() {} - - @JsonCreator - public SecurityMonitoringDatasetData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetAttributesResponse attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.id = id; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetData attributes( - SecurityMonitoringDatasetAttributesResponse attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a Cloud SIEM dataset. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetAttributesResponse getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetAttributesResponse attributes) { - this.attributes = attributes; - } - - public SecurityMonitoringDatasetData id(String id) { - this.id = id; - return this; - } - - /** - * The UUID of the dataset. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SecurityMonitoringDatasetData type(SecurityMonitoringDatasetType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset response. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetData - */ - @JsonAnySetter - public SecurityMonitoringDatasetData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetData securityMonitoringDatasetData = (SecurityMonitoringDatasetData) o; - return Objects.equals(this.attributes, securityMonitoringDatasetData.attributes) - && Objects.equals(this.id, securityMonitoringDatasetData.id) - && Objects.equals(this.type, securityMonitoringDatasetData.type) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDefinition.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDefinition.java deleted file mode 100644 index baafe14f7ae..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDefinition.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** - * The definition of the dataset. The shape depends on the value of data_source. Use - * reference_table or managed_resource for a referential dataset, or one - * of the event platform sources (for example logs, audit, events - * , spans, rum) for an event platform dataset. - */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_COLUMNS, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_DATA_SOURCE, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_INDEXES, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_NAME, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_QUERY_FILTER, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_SEARCH, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_STORAGE, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_TABLE_NAME, - SecurityMonitoringDatasetDefinition.JSON_PROPERTY_TIME_WINDOW -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDefinition { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_COLUMNS = "columns"; - private List columns = null; - - public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; - private String dataSource; - - public static final String JSON_PROPERTY_INDEXES = "indexes"; - private List indexes = null; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_QUERY_FILTER = "query_filter"; - private String queryFilter; - - public static final String JSON_PROPERTY_SEARCH = "search"; - private SecurityMonitoringDatasetSearch search; - - public static final String JSON_PROPERTY_STORAGE = "storage"; - private String storage; - - public static final String JSON_PROPERTY_TABLE_NAME = "table_name"; - private String tableName; - - public static final String JSON_PROPERTY_TIME_WINDOW = "time_window"; - private SecurityMonitoringDatasetTimeWindow timeWindow; - - public SecurityMonitoringDatasetDefinition() {} - - @JsonCreator - public SecurityMonitoringDatasetDefinition( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA_SOURCE) String dataSource, - @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { - this.dataSource = dataSource; - this.name = name; - } - - public SecurityMonitoringDatasetDefinition columns( - List columns) { - this.columns = columns; - for (SecurityMonitoringDatasetColumn item : columns) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SecurityMonitoringDatasetDefinition addColumnsItem( - SecurityMonitoringDatasetColumn columnsItem) { - if (this.columns == null) { - this.columns = new ArrayList<>(); - } - this.columns.add(columnsItem); - this.unparsed |= columnsItem.unparsed; - return this; - } - - /** - * For event platform datasets, the list of columns exposed by the dataset. - * - * @return columns - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLUMNS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getColumns() { - return columns; - } - - public void setColumns(List columns) { - this.columns = columns; - } - - public SecurityMonitoringDatasetDefinition dataSource(String dataSource) { - this.dataSource = dataSource; - return this; - } - - /** - * The data source backing this dataset definition. - * - * @return dataSource - */ - @JsonProperty(JSON_PROPERTY_DATA_SOURCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDataSource() { - return dataSource; - } - - public void setDataSource(String dataSource) { - this.dataSource = dataSource; - } - - public SecurityMonitoringDatasetDefinition indexes(List indexes) { - this.indexes = indexes; - return this; - } - - public SecurityMonitoringDatasetDefinition addIndexesItem(String indexesItem) { - if (this.indexes == null) { - this.indexes = new ArrayList<>(); - } - this.indexes.add(indexesItem); - return this; - } - - /** - * For event platform datasets, the list of indexes to query. - * - * @return indexes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDEXES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIndexes() { - return indexes; - } - - public void setIndexes(List indexes) { - this.indexes = indexes; - } - - public SecurityMonitoringDatasetDefinition name(String name) { - this.name = name; - return this; - } - - /** - * The unique name of the dataset. Must start with a lowercase letter and contain only lowercase - * letters, digits, and underscores (max 255 characters). - * - * @return name - */ - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SecurityMonitoringDatasetDefinition queryFilter(String queryFilter) { - this.queryFilter = queryFilter; - return this; - } - - /** - * For referential datasets, an optional filter expression applied to the table. - * - * @return queryFilter - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUERY_FILTER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQueryFilter() { - return queryFilter; - } - - public void setQueryFilter(String queryFilter) { - this.queryFilter = queryFilter; - } - - public SecurityMonitoringDatasetDefinition search(SecurityMonitoringDatasetSearch search) { - this.search = search; - this.unparsed |= search.unparsed; - return this; - } - - /** - * The search clause applied to an event platform dataset. - * - * @return search - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SEARCH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SecurityMonitoringDatasetSearch getSearch() { - return search; - } - - public void setSearch(SecurityMonitoringDatasetSearch search) { - this.search = search; - } - - public SecurityMonitoringDatasetDefinition storage(String storage) { - this.storage = storage; - return this; - } - - /** - * Storage tier the dataset reads from. Applies to event platform datasets. - * - * @return storage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STORAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStorage() { - return storage; - } - - public void setStorage(String storage) { - this.storage = storage; - } - - public SecurityMonitoringDatasetDefinition tableName(String tableName) { - this.tableName = tableName; - return this; - } - - /** - * For referential datasets, the name of the underlying table. - * - * @return tableName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TABLE_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTableName() { - return tableName; - } - - public void setTableName(String tableName) { - this.tableName = tableName; - } - - public SecurityMonitoringDatasetDefinition timeWindow( - SecurityMonitoringDatasetTimeWindow timeWindow) { - this.timeWindow = timeWindow; - this.unparsed |= timeWindow.unparsed; - return this; - } - - /** - * An optional time window that overrides the default query time range. - * - * @return timeWindow - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIME_WINDOW) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SecurityMonitoringDatasetTimeWindow getTimeWindow() { - return timeWindow; - } - - public void setTimeWindow(SecurityMonitoringDatasetTimeWindow timeWindow) { - this.timeWindow = timeWindow; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDefinition - */ - @JsonAnySetter - public SecurityMonitoringDatasetDefinition putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDefinition object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDefinition securityMonitoringDatasetDefinition = - (SecurityMonitoringDatasetDefinition) o; - return Objects.equals(this.columns, securityMonitoringDatasetDefinition.columns) - && Objects.equals(this.dataSource, securityMonitoringDatasetDefinition.dataSource) - && Objects.equals(this.indexes, securityMonitoringDatasetDefinition.indexes) - && Objects.equals(this.name, securityMonitoringDatasetDefinition.name) - && Objects.equals(this.queryFilter, securityMonitoringDatasetDefinition.queryFilter) - && Objects.equals(this.search, securityMonitoringDatasetDefinition.search) - && Objects.equals(this.storage, securityMonitoringDatasetDefinition.storage) - && Objects.equals(this.tableName, securityMonitoringDatasetDefinition.tableName) - && Objects.equals(this.timeWindow, securityMonitoringDatasetDefinition.timeWindow) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetDefinition.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - columns, - dataSource, - indexes, - name, - queryFilter, - search, - storage, - tableName, - timeWindow, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDefinition {\n"); - sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); - sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); - sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" queryFilter: ").append(toIndentedString(queryFilter)).append("\n"); - sb.append(" search: ").append(toIndentedString(search)).append("\n"); - sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); - sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); - sb.append(" timeWindow: ").append(toIndentedString(timeWindow)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequest.java deleted file mode 100644 index 722cff8a612..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Request body for retrieving dependencies of a batch of datasets. */ -@JsonPropertyOrder({SecurityMonitoringDatasetDependenciesRequest.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependenciesRequest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetDependenciesRequestData data; - - public SecurityMonitoringDatasetDependenciesRequest() {} - - @JsonCreator - public SecurityMonitoringDatasetDependenciesRequest( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetDependenciesRequestData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetDependenciesRequest data( - SecurityMonitoringDatasetDependenciesRequestData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset dependencies request. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDependenciesRequestData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetDependenciesRequestData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependenciesRequest - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependenciesRequest putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDependenciesRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependenciesRequest securityMonitoringDatasetDependenciesRequest = - (SecurityMonitoringDatasetDependenciesRequest) o; - return Objects.equals(this.data, securityMonitoringDatasetDependenciesRequest.data) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependenciesRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependenciesRequest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestAttributes.java deleted file mode 100644 index c04c8eae425..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestAttributes.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** The attributes of a dataset dependencies request. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetDependenciesRequestAttributes.JSON_PROPERTY_DATASET_IDS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependenciesRequestAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATASET_IDS = "datasetIds"; - private List datasetIds = new ArrayList<>(); - - public SecurityMonitoringDatasetDependenciesRequestAttributes() {} - - @JsonCreator - public SecurityMonitoringDatasetDependenciesRequestAttributes( - @JsonProperty(required = true, value = JSON_PROPERTY_DATASET_IDS) List datasetIds) { - this.datasetIds = datasetIds; - } - - public SecurityMonitoringDatasetDependenciesRequestAttributes datasetIds( - List datasetIds) { - this.datasetIds = datasetIds; - return this; - } - - public SecurityMonitoringDatasetDependenciesRequestAttributes addDatasetIdsItem( - String datasetIdsItem) { - this.datasetIds.add(datasetIdsItem); - return this; - } - - /** - * The list of dataset UUIDs to query dependencies for. Must contain between 1 and 100 items. - * - * @return datasetIds - */ - @JsonProperty(JSON_PROPERTY_DATASET_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getDatasetIds() { - return datasetIds; - } - - public void setDatasetIds(List datasetIds) { - this.datasetIds = datasetIds; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependenciesRequestAttributes - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependenciesRequestAttributes putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** - * Return true if this SecurityMonitoringDatasetDependenciesRequestAttributes object is equal to - * o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependenciesRequestAttributes - securityMonitoringDatasetDependenciesRequestAttributes = - (SecurityMonitoringDatasetDependenciesRequestAttributes) o; - return Objects.equals( - this.datasetIds, securityMonitoringDatasetDependenciesRequestAttributes.datasetIds) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependenciesRequestAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(datasetIds, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependenciesRequestAttributes {\n"); - sb.append(" datasetIds: ").append(toIndentedString(datasetIds)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestData.java deleted file mode 100644 index 480d732c8a5..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesRequestData.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset dependencies request. */ -@JsonPropertyOrder({SecurityMonitoringDatasetDependenciesRequestData.JSON_PROPERTY_ATTRIBUTES}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependenciesRequestData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetDependenciesRequestAttributes attributes; - - public SecurityMonitoringDatasetDependenciesRequestData() {} - - @JsonCreator - public SecurityMonitoringDatasetDependenciesRequestData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetDependenciesRequestAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - } - - public SecurityMonitoringDatasetDependenciesRequestData attributes( - SecurityMonitoringDatasetDependenciesRequestAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a dataset dependencies request. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDependenciesRequestAttributes getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetDependenciesRequestAttributes attributes) { - this.attributes = attributes; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependenciesRequestData - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependenciesRequestData putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDependenciesRequestData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependenciesRequestData - securityMonitoringDatasetDependenciesRequestData = - (SecurityMonitoringDatasetDependenciesRequestData) o; - return Objects.equals( - this.attributes, securityMonitoringDatasetDependenciesRequestData.attributes) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependenciesRequestData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependenciesRequestData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesResponse.java deleted file mode 100644 index 911ecc84d19..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependenciesResponse.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Response listing the dependents of each requested dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetDependenciesResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependenciesResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); - - public SecurityMonitoringDatasetDependenciesResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetDependenciesResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - List data) { - this.data = data; - } - - public SecurityMonitoringDatasetDependenciesResponse data( - List data) { - this.data = data; - for (SecurityMonitoringDatasetDependentsData item : data) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SecurityMonitoringDatasetDependenciesResponse addDataItem( - SecurityMonitoringDatasetDependentsData dataItem) { - this.data.add(dataItem); - this.unparsed |= dataItem.unparsed; - return this; - } - - /** - * The list of dataset dependents entries. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependenciesResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependenciesResponse putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDependenciesResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependenciesResponse securityMonitoringDatasetDependenciesResponse = - (SecurityMonitoringDatasetDependenciesResponse) o; - return Objects.equals(this.data, securityMonitoringDatasetDependenciesResponse.data) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependenciesResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependenciesResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsAttributes.java deleted file mode 100644 index 4d9abba642c..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsAttributes.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** The attributes of a dataset dependents entry. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetDependentsAttributes.JSON_PROPERTY_COUNT, - SecurityMonitoringDatasetDependentsAttributes.JSON_PROPERTY_DATASET_ID, - SecurityMonitoringDatasetDependentsAttributes.JSON_PROPERTY_IDS, - SecurityMonitoringDatasetDependentsAttributes.JSON_PROPERTY_RESOURCE_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependentsAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_COUNT = "count"; - private Long count; - - public static final String JSON_PROPERTY_DATASET_ID = "datasetId"; - private String datasetId; - - public static final String JSON_PROPERTY_IDS = "ids"; - private List ids = new ArrayList<>(); - - public static final String JSON_PROPERTY_RESOURCE_TYPE = "resource_type"; - private String resourceType; - - public SecurityMonitoringDatasetDependentsAttributes() {} - - @JsonCreator - public SecurityMonitoringDatasetDependentsAttributes( - @JsonProperty(required = true, value = JSON_PROPERTY_COUNT) Long count, - @JsonProperty(required = true, value = JSON_PROPERTY_DATASET_ID) String datasetId, - @JsonProperty(required = true, value = JSON_PROPERTY_IDS) List ids, - @JsonProperty(required = true, value = JSON_PROPERTY_RESOURCE_TYPE) String resourceType) { - this.count = count; - this.datasetId = datasetId; - this.ids = ids; - this.resourceType = resourceType; - } - - public SecurityMonitoringDatasetDependentsAttributes count(Long count) { - this.count = count; - return this; - } - - /** - * The number of resources that depend on the dataset. - * - * @return count - */ - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public SecurityMonitoringDatasetDependentsAttributes datasetId(String datasetId) { - this.datasetId = datasetId; - return this; - } - - /** - * The UUID of the dataset whose dependencies are being reported. - * - * @return datasetId - */ - @JsonProperty(JSON_PROPERTY_DATASET_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDatasetId() { - return datasetId; - } - - public void setDatasetId(String datasetId) { - this.datasetId = datasetId; - } - - public SecurityMonitoringDatasetDependentsAttributes ids(List ids) { - this.ids = ids; - return this; - } - - public SecurityMonitoringDatasetDependentsAttributes addIdsItem(String idsItem) { - this.ids.add(idsItem); - return this; - } - - /** - * The list of resource IDs that depend on the dataset. - * - * @return ids - */ - @JsonProperty(JSON_PROPERTY_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getIds() { - return ids; - } - - public void setIds(List ids) { - this.ids = ids; - } - - public SecurityMonitoringDatasetDependentsAttributes resourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * The type of resource that depends on the dataset. - * - * @return resourceType - */ - @JsonProperty(JSON_PROPERTY_RESOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependentsAttributes - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependentsAttributes putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDependentsAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependentsAttributes securityMonitoringDatasetDependentsAttributes = - (SecurityMonitoringDatasetDependentsAttributes) o; - return Objects.equals(this.count, securityMonitoringDatasetDependentsAttributes.count) - && Objects.equals(this.datasetId, securityMonitoringDatasetDependentsAttributes.datasetId) - && Objects.equals(this.ids, securityMonitoringDatasetDependentsAttributes.ids) - && Objects.equals( - this.resourceType, securityMonitoringDatasetDependentsAttributes.resourceType) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependentsAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(count, datasetId, ids, resourceType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependentsAttributes {\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" datasetId: ").append(toIndentedString(datasetId)).append("\n"); - sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsData.java deleted file mode 100644 index 5c49dd6e6d7..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsData.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A single entry describing the dependents of one dataset. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetDependentsData.JSON_PROPERTY_ATTRIBUTES, - SecurityMonitoringDatasetDependentsData.JSON_PROPERTY_ID, - SecurityMonitoringDatasetDependentsData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetDependentsData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetDependentsAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetDependentsType type; - - public SecurityMonitoringDatasetDependentsData() {} - - @JsonCreator - public SecurityMonitoringDatasetDependentsData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetDependentsAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetDependentsType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.id = id; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetDependentsData attributes( - SecurityMonitoringDatasetDependentsAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a dataset dependents entry. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDependentsAttributes getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetDependentsAttributes attributes) { - this.attributes = attributes; - } - - public SecurityMonitoringDatasetDependentsData id(String id) { - this.id = id; - return this; - } - - /** - * The UUID of the dataset. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SecurityMonitoringDatasetDependentsData type( - SecurityMonitoringDatasetDependentsType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset dependents entry. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetDependentsType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetDependentsType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetDependentsData - */ - @JsonAnySetter - public SecurityMonitoringDatasetDependentsData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetDependentsData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetDependentsData securityMonitoringDatasetDependentsData = - (SecurityMonitoringDatasetDependentsData) o; - return Objects.equals(this.attributes, securityMonitoringDatasetDependentsData.attributes) - && Objects.equals(this.id, securityMonitoringDatasetDependentsData.id) - && Objects.equals(this.type, securityMonitoringDatasetDependentsData.type) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetDependentsData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetDependentsData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsType.java deleted file mode 100644 index 6a826a497b9..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetDependentsType.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of resource for a dataset dependents entry. */ -@JsonSerialize( - using = - SecurityMonitoringDatasetDependentsType.SecurityMonitoringDatasetDependentsTypeSerializer - .class) -public class SecurityMonitoringDatasetDependentsType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("datasetDependents")); - - public static final SecurityMonitoringDatasetDependentsType DATASET_DEPENDENTS = - new SecurityMonitoringDatasetDependentsType("datasetDependents"); - - SecurityMonitoringDatasetDependentsType(String value) { - super(value, allowedValues); - } - - public static class SecurityMonitoringDatasetDependentsTypeSerializer - extends StdSerializer { - public SecurityMonitoringDatasetDependentsTypeSerializer( - Class t) { - super(t); - } - - public SecurityMonitoringDatasetDependentsTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SecurityMonitoringDatasetDependentsType value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SecurityMonitoringDatasetDependentsType fromValue(String value) { - return new SecurityMonitoringDatasetDependentsType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetResponse.java deleted file mode 100644 index 08675dcd8d7..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetResponse.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Response containing a single Cloud SIEM dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetData data; - - public SecurityMonitoringDatasetResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetResponse data(SecurityMonitoringDatasetData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset response. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetResponse securityMonitoringDatasetResponse = - (SecurityMonitoringDatasetResponse) o; - return Objects.equals(this.data, securityMonitoringDatasetResponse.data) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetSearch.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetSearch.java deleted file mode 100644 index 58ec146788e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetSearch.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The search clause applied to an event platform dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetSearch.JSON_PROPERTY_QUERY}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetSearch { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_QUERY = "query"; - private String query; - - public SecurityMonitoringDatasetSearch() {} - - @JsonCreator - public SecurityMonitoringDatasetSearch( - @JsonProperty(required = true, value = JSON_PROPERTY_QUERY) String query) { - this.query = query; - } - - public SecurityMonitoringDatasetSearch query(String query) { - this.query = query; - return this; - } - - /** - * The search query expression. - * - * @return query - */ - @JsonProperty(JSON_PROPERTY_QUERY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getQuery() { - return query; - } - - public void setQuery(String query) { - this.query = query; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetSearch - */ - @JsonAnySetter - public SecurityMonitoringDatasetSearch putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetSearch object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetSearch securityMonitoringDatasetSearch = - (SecurityMonitoringDatasetSearch) o; - return Objects.equals(this.query, securityMonitoringDatasetSearch.query) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetSearch.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(query, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetSearch {\n"); - sb.append(" query: ").append(toIndentedString(query)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetTimeWindow.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetTimeWindow.java deleted file mode 100644 index ebba4208f5a..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetTimeWindow.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** An optional time window that overrides the default query time range. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetTimeWindow.JSON_PROPERTY_FROM, - SecurityMonitoringDatasetTimeWindow.JSON_PROPERTY_TO -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetTimeWindow { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_FROM = "from"; - private Long from; - - public static final String JSON_PROPERTY_TO = "to"; - private Long to; - - public SecurityMonitoringDatasetTimeWindow from(Long from) { - this.from = from; - return this; - } - - /** - * Inclusive start of the time window, in milliseconds since the Unix epoch. - * - * @return from - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getFrom() { - return from; - } - - public void setFrom(Long from) { - this.from = from; - } - - public SecurityMonitoringDatasetTimeWindow to(Long to) { - this.to = to; - return this; - } - - /** - * Exclusive end of the time window, in milliseconds since the Unix epoch. - * - * @return to - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTo() { - return to; - } - - public void setTo(Long to) { - this.to = to; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetTimeWindow - */ - @JsonAnySetter - public SecurityMonitoringDatasetTimeWindow putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetTimeWindow object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetTimeWindow securityMonitoringDatasetTimeWindow = - (SecurityMonitoringDatasetTimeWindow) o; - return Objects.equals(this.from, securityMonitoringDatasetTimeWindow.from) - && Objects.equals(this.to, securityMonitoringDatasetTimeWindow.to) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetTimeWindow.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(from, to, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetTimeWindow {\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetType.java deleted file mode 100644 index 9751c115cab..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetType.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of resource for a dataset response. */ -@JsonSerialize(using = SecurityMonitoringDatasetType.SecurityMonitoringDatasetTypeSerializer.class) -public class SecurityMonitoringDatasetType extends ModelEnum { - - private static final Set allowedValues = new HashSet(Arrays.asList("dataset")); - - public static final SecurityMonitoringDatasetType DATASET = - new SecurityMonitoringDatasetType("dataset"); - - SecurityMonitoringDatasetType(String value) { - super(value, allowedValues); - } - - public static class SecurityMonitoringDatasetTypeSerializer - extends StdSerializer { - public SecurityMonitoringDatasetTypeSerializer(Class t) { - super(t); - } - - public SecurityMonitoringDatasetTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SecurityMonitoringDatasetType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SecurityMonitoringDatasetType fromValue(String value) { - return new SecurityMonitoringDatasetType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateData.java deleted file mode 100644 index 90d657ca2f6..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateData.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset update request. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetUpdateData.JSON_PROPERTY_ATTRIBUTES, - SecurityMonitoringDatasetUpdateData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetUpdateData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetAttributesRequest attributes; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetUpdateType type; - - public SecurityMonitoringDatasetUpdateData() {} - - @JsonCreator - public SecurityMonitoringDatasetUpdateData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetAttributesRequest attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetUpdateType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetUpdateData attributes( - SecurityMonitoringDatasetAttributesRequest attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a dataset create or update request. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetAttributesRequest getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetAttributesRequest attributes) { - this.attributes = attributes; - } - - public SecurityMonitoringDatasetUpdateData type(SecurityMonitoringDatasetUpdateType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset update request. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetUpdateType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetUpdateType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetUpdateData - */ - @JsonAnySetter - public SecurityMonitoringDatasetUpdateData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetUpdateData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetUpdateData securityMonitoringDatasetUpdateData = - (SecurityMonitoringDatasetUpdateData) o; - return Objects.equals(this.attributes, securityMonitoringDatasetUpdateData.attributes) - && Objects.equals(this.type, securityMonitoringDatasetUpdateData.type) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetUpdateData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetUpdateData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateRequest.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateRequest.java deleted file mode 100644 index da0fe6e07a4..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateRequest.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Request body for updating a Cloud SIEM dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetUpdateRequest.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetUpdateRequest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetUpdateData data; - - public SecurityMonitoringDatasetUpdateRequest() {} - - @JsonCreator - public SecurityMonitoringDatasetUpdateRequest( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetUpdateData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetUpdateRequest data(SecurityMonitoringDatasetUpdateData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset update request. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetUpdateData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetUpdateData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetUpdateRequest - */ - @JsonAnySetter - public SecurityMonitoringDatasetUpdateRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetUpdateRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetUpdateRequest securityMonitoringDatasetUpdateRequest = - (SecurityMonitoringDatasetUpdateRequest) o; - return Objects.equals(this.data, securityMonitoringDatasetUpdateRequest.data) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetUpdateRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetUpdateRequest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateType.java deleted file mode 100644 index 8d99e5e202e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetUpdateType.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of resource for a dataset update request. */ -@JsonSerialize( - using = SecurityMonitoringDatasetUpdateType.SecurityMonitoringDatasetUpdateTypeSerializer.class) -public class SecurityMonitoringDatasetUpdateType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("datasetUpdate")); - - public static final SecurityMonitoringDatasetUpdateType DATASET_UPDATE = - new SecurityMonitoringDatasetUpdateType("datasetUpdate"); - - SecurityMonitoringDatasetUpdateType(String value) { - super(value, allowedValues); - } - - public static class SecurityMonitoringDatasetUpdateTypeSerializer - extends StdSerializer { - public SecurityMonitoringDatasetUpdateTypeSerializer( - Class t) { - super(t); - } - - public SecurityMonitoringDatasetUpdateTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SecurityMonitoringDatasetUpdateType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SecurityMonitoringDatasetUpdateType fromValue(String value) { - return new SecurityMonitoringDatasetUpdateType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionEntry.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionEntry.java deleted file mode 100644 index 88c2bbdaa05..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionEntry.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A single entry in the version history of a dataset. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetVersionEntry.JSON_PROPERTY_CHANGES, - SecurityMonitoringDatasetVersionEntry.JSON_PROPERTY_DATASET -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetVersionEntry { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CHANGES = "changes"; - private List changes = new ArrayList<>(); - - public static final String JSON_PROPERTY_DATASET = "dataset"; - private SecurityMonitoringDatasetAttributesResponse dataset; - - public SecurityMonitoringDatasetVersionEntry() {} - - @JsonCreator - public SecurityMonitoringDatasetVersionEntry( - @JsonProperty(required = true, value = JSON_PROPERTY_CHANGES) - List changes, - @JsonProperty(required = true, value = JSON_PROPERTY_DATASET) - SecurityMonitoringDatasetAttributesResponse dataset) { - this.changes = changes; - this.dataset = dataset; - this.unparsed |= dataset.unparsed; - } - - public SecurityMonitoringDatasetVersionEntry changes( - List changes) { - this.changes = changes; - for (SecurityMonitoringDatasetVersionFieldChange item : changes) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SecurityMonitoringDatasetVersionEntry addChangesItem( - SecurityMonitoringDatasetVersionFieldChange changesItem) { - this.changes.add(changesItem); - this.unparsed |= changesItem.unparsed; - return this; - } - - /** - * The list of field changes between this version of the dataset and the previous one. - * - * @return changes - */ - @JsonProperty(JSON_PROPERTY_CHANGES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getChanges() { - return changes; - } - - public void setChanges(List changes) { - this.changes = changes; - } - - public SecurityMonitoringDatasetVersionEntry dataset( - SecurityMonitoringDatasetAttributesResponse dataset) { - this.dataset = dataset; - this.unparsed |= dataset.unparsed; - return this; - } - - /** - * The attributes of a Cloud SIEM dataset. - * - * @return dataset - */ - @JsonProperty(JSON_PROPERTY_DATASET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetAttributesResponse getDataset() { - return dataset; - } - - public void setDataset(SecurityMonitoringDatasetAttributesResponse dataset) { - this.dataset = dataset; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetVersionEntry - */ - @JsonAnySetter - public SecurityMonitoringDatasetVersionEntry putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetVersionEntry object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetVersionEntry securityMonitoringDatasetVersionEntry = - (SecurityMonitoringDatasetVersionEntry) o; - return Objects.equals(this.changes, securityMonitoringDatasetVersionEntry.changes) - && Objects.equals(this.dataset, securityMonitoringDatasetVersionEntry.dataset) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetVersionEntry.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(changes, dataset, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetVersionEntry {\n"); - sb.append(" changes: ").append(toIndentedString(changes)).append("\n"); - sb.append(" dataset: ").append(toIndentedString(dataset)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionFieldChange.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionFieldChange.java deleted file mode 100644 index 5c06b523611..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionFieldChange.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A single field change between two versions of a dataset. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetVersionFieldChange.JSON_PROPERTY_CURRENT, - SecurityMonitoringDatasetVersionFieldChange.JSON_PROPERTY_FIELD, - SecurityMonitoringDatasetVersionFieldChange.JSON_PROPERTY_PREVIOUS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetVersionFieldChange { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CURRENT = "current"; - private Object current = new Object(); - - public static final String JSON_PROPERTY_FIELD = "field"; - private String field; - - public static final String JSON_PROPERTY_PREVIOUS = "previous"; - private Object previous = new Object(); - - public SecurityMonitoringDatasetVersionFieldChange() {} - - @JsonCreator - public SecurityMonitoringDatasetVersionFieldChange( - @JsonProperty(required = true, value = JSON_PROPERTY_CURRENT) Object current, - @JsonProperty(required = true, value = JSON_PROPERTY_FIELD) String field, - @JsonProperty(required = true, value = JSON_PROPERTY_PREVIOUS) Object previous) { - this.current = current; - this.field = field; - this.previous = previous; - } - - public SecurityMonitoringDatasetVersionFieldChange current(Object current) { - this.current = current; - return this; - } - - /** - * The current value of the field, serialized as a JSON value. - * - * @return current - */ - @JsonProperty(JSON_PROPERTY_CURRENT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Object getCurrent() { - return current; - } - - public void setCurrent(Object current) { - this.current = current; - } - - public SecurityMonitoringDatasetVersionFieldChange field(String field) { - this.field = field; - return this; - } - - /** - * The name of the field that changed. - * - * @return field - */ - @JsonProperty(JSON_PROPERTY_FIELD) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getField() { - return field; - } - - public void setField(String field) { - this.field = field; - } - - public SecurityMonitoringDatasetVersionFieldChange previous(Object previous) { - this.previous = previous; - return this; - } - - /** - * The previous value of the field, serialized as a JSON value. - * - * @return previous - */ - @JsonProperty(JSON_PROPERTY_PREVIOUS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Object getPrevious() { - return previous; - } - - public void setPrevious(Object previous) { - this.previous = previous; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetVersionFieldChange - */ - @JsonAnySetter - public SecurityMonitoringDatasetVersionFieldChange putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetVersionFieldChange object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetVersionFieldChange securityMonitoringDatasetVersionFieldChange = - (SecurityMonitoringDatasetVersionFieldChange) o; - return Objects.equals(this.current, securityMonitoringDatasetVersionFieldChange.current) - && Objects.equals(this.field, securityMonitoringDatasetVersionFieldChange.field) - && Objects.equals(this.previous, securityMonitoringDatasetVersionFieldChange.previous) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetVersionFieldChange.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(current, field, previous, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetVersionFieldChange {\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); - sb.append(" field: ").append(toIndentedString(field)).append("\n"); - sb.append(" previous: ").append(toIndentedString(previous)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryAttributes.java deleted file mode 100644 index 78f43772d29..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryAttributes.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The attributes of a dataset version history response. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetVersionHistoryAttributes.JSON_PROPERTY_COUNT, - SecurityMonitoringDatasetVersionHistoryAttributes.JSON_PROPERTY_DATA -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetVersionHistoryAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_COUNT = "count"; - private Long count; - - public static final String JSON_PROPERTY_DATA = "data"; - private Map data = - new HashMap(); - - public SecurityMonitoringDatasetVersionHistoryAttributes() {} - - @JsonCreator - public SecurityMonitoringDatasetVersionHistoryAttributes( - @JsonProperty(required = true, value = JSON_PROPERTY_COUNT) Long count, - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - Map data) { - this.count = count; - this.data = data; - } - - public SecurityMonitoringDatasetVersionHistoryAttributes count(Long count) { - this.count = count; - return this; - } - - /** - * The total number of versions available for this dataset. - * - * @return count - */ - @JsonProperty(JSON_PROPERTY_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getCount() { - return count; - } - - public void setCount(Long count) { - this.count = count; - } - - public SecurityMonitoringDatasetVersionHistoryAttributes data( - Map data) { - this.data = data; - return this; - } - - public SecurityMonitoringDatasetVersionHistoryAttributes putDataItem( - String key, SecurityMonitoringDatasetVersionEntry dataItem) { - this.data.put(key, dataItem); - return this; - } - - /** - * A map from version number (as a string) to the dataset state at that version. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getData() { - return data; - } - - public void setData(Map data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetVersionHistoryAttributes - */ - @JsonAnySetter - public SecurityMonitoringDatasetVersionHistoryAttributes putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetVersionHistoryAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetVersionHistoryAttributes - securityMonitoringDatasetVersionHistoryAttributes = - (SecurityMonitoringDatasetVersionHistoryAttributes) o; - return Objects.equals(this.count, securityMonitoringDatasetVersionHistoryAttributes.count) - && Objects.equals(this.data, securityMonitoringDatasetVersionHistoryAttributes.data) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetVersionHistoryAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(count, data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetVersionHistoryAttributes {\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryData.java deleted file mode 100644 index 2b6e135c7d3..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryData.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** The data wrapper of a dataset version history response. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetVersionHistoryData.JSON_PROPERTY_ATTRIBUTES, - SecurityMonitoringDatasetVersionHistoryData.JSON_PROPERTY_ID, - SecurityMonitoringDatasetVersionHistoryData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetVersionHistoryData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SecurityMonitoringDatasetVersionHistoryAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SecurityMonitoringDatasetVersionHistoryType type; - - public SecurityMonitoringDatasetVersionHistoryData() {} - - @JsonCreator - public SecurityMonitoringDatasetVersionHistoryData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - SecurityMonitoringDatasetVersionHistoryAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - SecurityMonitoringDatasetVersionHistoryType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.id = id; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public SecurityMonitoringDatasetVersionHistoryData attributes( - SecurityMonitoringDatasetVersionHistoryAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * The attributes of a dataset version history response. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetVersionHistoryAttributes getAttributes() { - return attributes; - } - - public void setAttributes(SecurityMonitoringDatasetVersionHistoryAttributes attributes) { - this.attributes = attributes; - } - - public SecurityMonitoringDatasetVersionHistoryData id(String id) { - this.id = id; - return this; - } - - /** - * The UUID of the dataset. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SecurityMonitoringDatasetVersionHistoryData type( - SecurityMonitoringDatasetVersionHistoryType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The type of resource for a dataset version history response. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetVersionHistoryType getType() { - return type; - } - - public void setType(SecurityMonitoringDatasetVersionHistoryType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetVersionHistoryData - */ - @JsonAnySetter - public SecurityMonitoringDatasetVersionHistoryData putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetVersionHistoryData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetVersionHistoryData securityMonitoringDatasetVersionHistoryData = - (SecurityMonitoringDatasetVersionHistoryData) o; - return Objects.equals(this.attributes, securityMonitoringDatasetVersionHistoryData.attributes) - && Objects.equals(this.id, securityMonitoringDatasetVersionHistoryData.id) - && Objects.equals(this.type, securityMonitoringDatasetVersionHistoryData.type) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetVersionHistoryData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetVersionHistoryData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryResponse.java deleted file mode 100644 index bea734beb5a..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryResponse.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Response containing the version history of a Cloud SIEM dataset. */ -@JsonPropertyOrder({SecurityMonitoringDatasetVersionHistoryResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetVersionHistoryResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SecurityMonitoringDatasetVersionHistoryData data; - - public SecurityMonitoringDatasetVersionHistoryResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetVersionHistoryResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - SecurityMonitoringDatasetVersionHistoryData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public SecurityMonitoringDatasetVersionHistoryResponse data( - SecurityMonitoringDatasetVersionHistoryData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * The data wrapper of a dataset version history response. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetVersionHistoryData getData() { - return data; - } - - public void setData(SecurityMonitoringDatasetVersionHistoryData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetVersionHistoryResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetVersionHistoryResponse putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetVersionHistoryResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetVersionHistoryResponse - securityMonitoringDatasetVersionHistoryResponse = - (SecurityMonitoringDatasetVersionHistoryResponse) o; - return Objects.equals(this.data, securityMonitoringDatasetVersionHistoryResponse.data) - && Objects.equals( - this.additionalProperties, - securityMonitoringDatasetVersionHistoryResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetVersionHistoryResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryType.java deleted file mode 100644 index 21923dbbbee..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetVersionHistoryType.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of resource for a dataset version history response. */ -@JsonSerialize( - using = - SecurityMonitoringDatasetVersionHistoryType - .SecurityMonitoringDatasetVersionHistoryTypeSerializer.class) -public class SecurityMonitoringDatasetVersionHistoryType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("dataset_version_history")); - - public static final SecurityMonitoringDatasetVersionHistoryType DATASET_VERSION_HISTORY = - new SecurityMonitoringDatasetVersionHistoryType("dataset_version_history"); - - SecurityMonitoringDatasetVersionHistoryType(String value) { - super(value, allowedValues); - } - - public static class SecurityMonitoringDatasetVersionHistoryTypeSerializer - extends StdSerializer { - public SecurityMonitoringDatasetVersionHistoryTypeSerializer( - Class t) { - super(t); - } - - public SecurityMonitoringDatasetVersionHistoryTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SecurityMonitoringDatasetVersionHistoryType value, - JsonGenerator jgen, - SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SecurityMonitoringDatasetVersionHistoryType fromValue(String value) { - return new SecurityMonitoringDatasetVersionHistoryType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListMeta.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListMeta.java deleted file mode 100644 index 9340cdb28f2..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListMeta.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Metadata returned with a list of datasets. */ -@JsonPropertyOrder({SecurityMonitoringDatasetsListMeta.JSON_PROPERTY_TOTAL_COUNT}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetsListMeta { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_TOTAL_COUNT = "totalCount"; - private Long totalCount; - - public SecurityMonitoringDatasetsListMeta() {} - - @JsonCreator - public SecurityMonitoringDatasetsListMeta( - @JsonProperty(required = true, value = JSON_PROPERTY_TOTAL_COUNT) Long totalCount) { - this.totalCount = totalCount; - } - - public SecurityMonitoringDatasetsListMeta totalCount(Long totalCount) { - this.totalCount = totalCount; - return this; - } - - /** - * The total number of datasets matching the request, across all pages. - * - * @return totalCount - */ - @JsonProperty(JSON_PROPERTY_TOTAL_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getTotalCount() { - return totalCount; - } - - public void setTotalCount(Long totalCount) { - this.totalCount = totalCount; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetsListMeta - */ - @JsonAnySetter - public SecurityMonitoringDatasetsListMeta putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetsListMeta object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetsListMeta securityMonitoringDatasetsListMeta = - (SecurityMonitoringDatasetsListMeta) o; - return Objects.equals(this.totalCount, securityMonitoringDatasetsListMeta.totalCount) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetsListMeta.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(totalCount, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetsListMeta {\n"); - sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListResponse.java deleted file mode 100644 index fef393c508c..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringDatasetsListResponse.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Response containing a paginated list of Cloud SIEM datasets. */ -@JsonPropertyOrder({ - SecurityMonitoringDatasetsListResponse.JSON_PROPERTY_DATA, - SecurityMonitoringDatasetsListResponse.JSON_PROPERTY_META -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SecurityMonitoringDatasetsListResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private List data = new ArrayList<>(); - - public static final String JSON_PROPERTY_META = "meta"; - private SecurityMonitoringDatasetsListMeta meta; - - public SecurityMonitoringDatasetsListResponse() {} - - @JsonCreator - public SecurityMonitoringDatasetsListResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - List data, - @JsonProperty(required = true, value = JSON_PROPERTY_META) - SecurityMonitoringDatasetsListMeta meta) { - this.data = data; - this.meta = meta; - this.unparsed |= meta.unparsed; - } - - public SecurityMonitoringDatasetsListResponse data(List data) { - this.data = data; - for (SecurityMonitoringDatasetData item : data) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SecurityMonitoringDatasetsListResponse addDataItem( - SecurityMonitoringDatasetData dataItem) { - this.data.add(dataItem); - this.unparsed |= dataItem.unparsed; - return this; - } - - /** - * A list of dataset data items. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public SecurityMonitoringDatasetsListResponse meta(SecurityMonitoringDatasetsListMeta meta) { - this.meta = meta; - this.unparsed |= meta.unparsed; - return this; - } - - /** - * Metadata returned with a list of datasets. - * - * @return meta - */ - @JsonProperty(JSON_PROPERTY_META) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SecurityMonitoringDatasetsListMeta getMeta() { - return meta; - } - - public void setMeta(SecurityMonitoringDatasetsListMeta meta) { - this.meta = meta; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SecurityMonitoringDatasetsListResponse - */ - @JsonAnySetter - public SecurityMonitoringDatasetsListResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SecurityMonitoringDatasetsListResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SecurityMonitoringDatasetsListResponse securityMonitoringDatasetsListResponse = - (SecurityMonitoringDatasetsListResponse) o; - return Objects.equals(this.data, securityMonitoringDatasetsListResponse.data) - && Objects.equals(this.meta, securityMonitoringDatasetsListResponse.meta) - && Objects.equals( - this.additionalProperties, securityMonitoringDatasetsListResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, meta, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SecurityMonitoringDatasetsListResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index f982d3c7077..5e6f325a43a 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -517,30 +517,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Create a dataset returns "Bad Request" response - Given operation "CreateSecurityMonitoringDataset" enabled - And new "CreateSecurityMonitoringDataset" request - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetCreate"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Create a dataset returns "Conflict" response - Given operation "CreateSecurityMonitoringDataset" enabled - And new "CreateSecurityMonitoringDataset" request - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetCreate"}} - When the request is sent - Then the response status is 409 Conflict - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Create a dataset returns "Created" response - Given operation "CreateSecurityMonitoringDataset" enabled - And new "CreateSecurityMonitoringDataset" request - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetCreate"}} - When the request is sent - Then the response status is 201 Created - @skip @team:DataDog/k9-cloud-siem Scenario: Create a detection rule returns "Bad Request" response Given new "CreateSecurityMonitoringRule" request @@ -909,30 +885,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Delete a dataset returns "Bad Request" response - Given operation "DeleteSecurityMonitoringDataset" enabled - And new "DeleteSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Delete a dataset returns "No Content" response - Given operation "DeleteSecurityMonitoringDataset" enabled - And new "DeleteSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 204 No Content - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Delete a dataset returns "Not Found" response - Given operation "DeleteSecurityMonitoringDataset" enabled - And new "DeleteSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - @skip @team:DataDog/k9-cloud-siem Scenario: Delete a non existing rule returns "Not Found" response Given new "DeleteSecurityMonitoringRule" request @@ -1248,57 +1200,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset at a specific version returns "Bad Request" response - Given operation "GetSecurityMonitoringDatasetByVersion" enabled - And new "GetSecurityMonitoringDatasetByVersion" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And request contains "version" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset at a specific version returns "Not Found" response - Given operation "GetSecurityMonitoringDatasetByVersion" enabled - And new "GetSecurityMonitoringDatasetByVersion" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And request contains "version" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset at a specific version returns "OK" response - Given operation "GetSecurityMonitoringDatasetByVersion" enabled - And new "GetSecurityMonitoringDatasetByVersion" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And request contains "version" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset returns "Bad Request" response - Given operation "GetSecurityMonitoringDataset" enabled - And new "GetSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset returns "Not Found" response - Given operation "GetSecurityMonitoringDataset" enabled - And new "GetSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get a dataset returns "OK" response - Given operation "GetSecurityMonitoringDataset" enabled - And new "GetSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/cloud-security-posture-management Scenario: Get a finding returns "Bad Request: The server cannot process the request due to invalid syntax in the request." response Given operation "GetFinding" enabled @@ -1670,22 +1571,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get dataset dependencies returns "Bad Request" response - Given operation "BatchGetSecurityMonitoringDatasetDependencies" enabled - And new "BatchGetSecurityMonitoringDatasetDependencies" request - And body with value {"data": {"attributes": {"datasetIds": ["123e4567-e89b-12d3-a456-426614174000"]}}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get dataset dependencies returns "OK" response - Given operation "BatchGetSecurityMonitoringDatasetDependencies" enabled - And new "BatchGetSecurityMonitoringDatasetDependencies" request - And body with value {"data": {"attributes": {"datasetIds": ["123e4567-e89b-12d3-a456-426614174000"]}}} - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/k9-vm-ast Scenario: Get default rulesets for a language returns "Bad Request" response Given operation "GetStaticAnalysisDefaultRulesets" enabled @@ -1912,30 +1797,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 The list of notification rules. - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get the version history of a dataset returns "Bad Request" response - Given operation "GetSecurityMonitoringDatasetVersionHistory" enabled - And new "GetSecurityMonitoringDatasetVersionHistory" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get the version history of a dataset returns "Not Found" response - Given operation "GetSecurityMonitoringDatasetVersionHistory" enabled - And new "GetSecurityMonitoringDatasetVersionHistory" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Not Found - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Get the version history of a dataset returns "OK" response - Given operation "GetSecurityMonitoringDatasetVersionHistory" enabled - And new "GetSecurityMonitoringDatasetVersionHistory" request - And request contains "dataset_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem Scenario: Get the version history of security filters returns "OK" response Given new "ListSecurityFilterVersions" request @@ -2000,20 +1861,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: List datasets returns "Bad Request" response - Given operation "ListSecurityMonitoringDatasets" enabled - And new "ListSecurityMonitoringDatasets" request - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: List datasets returns "OK" response - Given operation "ListSecurityMonitoringDatasets" enabled - And new "ListSecurityMonitoringDatasets" request - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem Scenario: List entity context sync configurations returns "OK" response Given operation "ListSecurityMonitoringIntegrationConfigs" enabled @@ -2678,42 +2525,6 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Update a dataset returns "Bad Request" response - Given operation "UpdateSecurityMonitoringDataset" enabled - And new "UpdateSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetUpdate"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Update a dataset returns "Conflict" response - Given operation "UpdateSecurityMonitoringDataset" enabled - And new "UpdateSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetUpdate"}} - When the request is sent - Then the response status is 409 Conflict - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Update a dataset returns "No Content" response - Given operation "UpdateSecurityMonitoringDataset" enabled - And new "UpdateSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetUpdate"}} - When the request is sent - Then the response status is 204 No Content - - @generated @skip @team:DataDog/k9-cloud-siem - Scenario: Update a dataset returns "Not Found" response - Given operation "UpdateSecurityMonitoringDataset" enabled - And new "UpdateSecurityMonitoringDataset" request - And request contains "dataset_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"definition": {"columns": [{"column": "message", "type": "string"}], "data_source": "logs", "indexes": [], "name": "sample_dataset", "query_filter": "status = 'active'", "search": {"query": "*"}, "storage": "hot", "table_name": "my_reference_table", "time_window": {"from": 1700000000000, "to": 1700003600000}}, "description": "A sample dataset used for detection rules.", "version": 1}, "type": "datasetUpdate"}} - When the request is sent - Then the response status is 404 Not Found - @generated @skip @team:DataDog/k9-cloud-siem Scenario: Update a security filter returns "Bad Request" response Given new "UpdateSecurityFilter" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index d86d61c2288..a359fccfe1e 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -6487,61 +6487,6 @@ "type": "idempotent" } }, - "ListSecurityMonitoringDatasets": { - "tag": "Security Monitoring", - "undo": { - "type": "safe" - } - }, - "CreateSecurityMonitoringDataset": { - "tag": "Security Monitoring", - "undo": { - "operationId": "DeleteSecurityMonitoringDataset", - "parameters": [ - { - "name": "dataset_id", - "source": "data.id" - } - ], - "type": "unsafe" - } - }, - "BatchGetSecurityMonitoringDatasetDependencies": { - "tag": "Security Monitoring", - "undo": { - "type": "safe" - } - }, - "DeleteSecurityMonitoringDataset": { - "tag": "Security Monitoring", - "undo": { - "type": "idempotent" - } - }, - "GetSecurityMonitoringDataset": { - "tag": "Security Monitoring", - "undo": { - "type": "safe" - } - }, - "UpdateSecurityMonitoringDataset": { - "tag": "Security Monitoring", - "undo": { - "type": "idempotent" - } - }, - "GetSecurityMonitoringDatasetByVersion": { - "tag": "Security Monitoring", - "undo": { - "type": "safe" - } - }, - "GetSecurityMonitoringDatasetVersionHistory": { - "tag": "Security Monitoring", - "undo": { - "type": "safe" - } - }, "GetEntityContext": { "tag": "Security Monitoring", "undo": {