@@ -12477,31 +12477,33 @@ components:
1247712477 required:
1247812478 - type
1247912479 type: object
12480- Dataset:
12481- description: "Dataset object.\n\n### Datasets Constraints\n- **Tag Limit per
12482- Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12483- pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12484- tag key or attribute may be used to define access within a single telemetry
12485- type.\n - The same or different tag key may be used across different telemetry
12486- types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12487- a single dataset.\n - A tag value used in one dataset cannot be reused in
12488- another dataset of the same telemetry type."
12480+ DatasetAttributesRequest:
12481+ description: Dataset metadata and configurations.
1248912482 properties:
12490- attributes:
12491- $ref: '#/components/schemas/DatasetAttributes'
12492- id:
12493- description: Unique identifier for the dataset.
12494- example: 123e4567-e89b-12d3-a456-426614174000
12495- type: string
12496- type:
12497- description: Resource type, always "dataset".
12498- example: dataset
12483+ name:
12484+ description: Name of the dataset.
12485+ example: Security Audit Dataset
1249912486 type: string
12487+ principals:
12488+ description: List of access principals, formatted as `principal_type:id`.
12489+ Principal can be 'team' or 'role'.
12490+ example:
12491+ - role:86245fce-0a4e-11f0-92bd-da7ad0900002
12492+ items:
12493+ example: role:86245fce-0a4e-11f0-92bd-da7ad0900002
12494+ type: string
12495+ type: array
12496+ product_filters:
12497+ description: List of product-specific filters.
12498+ items:
12499+ $ref: '#/components/schemas/FiltersPerProduct'
12500+ type: array
1250012501 required:
12501- - type
12502- - attributes
12502+ - name
12503+ - product_filters
12504+ - principals
1250312505 type: object
12504- DatasetAttributes :
12506+ DatasetAttributesResponse :
1250512507 description: Dataset metadata and configuration(s).
1250612508 properties:
1250712509 created_at:
@@ -12531,26 +12533,63 @@ components:
1253112533 items:
1253212534 $ref: '#/components/schemas/FiltersPerProduct'
1253312535 type: array
12534- required:
12535- - name
12536- - product_filters
12537- - principals
1253812536 type: object
1253912537 DatasetCreateRequest:
1254012538 description: Create request for a dataset.
1254112539 properties:
1254212540 data:
12543- $ref: '#/components/schemas/Dataset '
12541+ $ref: '#/components/schemas/DatasetRequest '
1254412542 required:
1254512543 - data
1254612544 type: object
12545+ DatasetRequest:
12546+ description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag limit per
12547+ dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12548+ pairs per product.\n\n- **Tag key rules per telemetry type**:\n - Only one
12549+ tag key or attribute may be used to define access within a single telemetry
12550+ type.\n - The same or different tag key may be used across different telemetry
12551+ types.\n\n- **Tag value uniqueness**:\n - Tag values must be unique within
12552+ a single dataset.\n - A tag value used in one dataset cannot be reused in
12553+ another dataset of the same telemetry type."
12554+ properties:
12555+ attributes:
12556+ $ref: '#/components/schemas/DatasetAttributesRequest'
12557+ type:
12558+ description: Resource type, always "dataset".
12559+ example: dataset
12560+ type: string
12561+ required:
12562+ - type
12563+ - attributes
12564+ type: object
12565+ DatasetResponse:
12566+ description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag Limit per
12567+ Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12568+ pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12569+ tag key or attribute may be used to define access within a single telemetry
12570+ type.\n - The same or different tag key may be used across different telemetry
12571+ types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12572+ a single dataset.\n - A tag value used in one dataset cannot be reused in
12573+ another dataset of the same telemetry type."
12574+ properties:
12575+ attributes:
12576+ $ref: '#/components/schemas/DatasetAttributesResponse'
12577+ id:
12578+ description: Unique identifier for the dataset.
12579+ example: 123e4567-e89b-12d3-a456-426614174000
12580+ type: string
12581+ type:
12582+ description: Resource type, always "dataset".
12583+ example: dataset
12584+ type: string
12585+ type: object
1254712586 DatasetResponseMulti:
1254812587 description: Response containing a list of datasets.
1254912588 properties:
1255012589 data:
1255112590 description: The list of datasets returned in response.
1255212591 items:
12553- $ref: '#/components/schemas/Dataset '
12592+ $ref: '#/components/schemas/DatasetResponse '
1255412593 type: array
1255512594 required:
1255612595 - data
@@ -12559,15 +12598,15 @@ components:
1255912598 description: Response containing a single dataset object.
1256012599 properties:
1256112600 data:
12562- $ref: '#/components/schemas/Dataset '
12601+ $ref: '#/components/schemas/DatasetResponse '
1256312602 required:
1256412603 - data
1256512604 type: object
1256612605 DatasetUpdateRequest:
1256712606 description: Edit request for a dataset.
1256812607 properties:
1256912608 data:
12570- $ref: '#/components/schemas/Dataset '
12609+ $ref: '#/components/schemas/DatasetRequest '
1257112610 required:
1257212611 - data
1257312612 type: object
0 commit comments