Skip to content

Commit 877e7b7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add spreadsheet to restriction_policy specs (#2477)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3c88a9a commit 877e7b7

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,8 @@ components:
770770
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
771771
`dashboard`, `integration-account`, `integration-service`, `integration-webhook`,
772772
`notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`,
773-
`connection`, `connection-group`, `rum-application`, `cross-org-connection`.'
773+
`connection`, `connection-group`, `rum-application`, `cross-org-connection`,
774+
`spreadsheet`.'
774775
example: dashboard:abc-def-ghi
775776
in: path
776777
name: resource_id
@@ -58679,6 +58680,8 @@ paths:
5867958680

5868058681
- Cross Org Connections: `cross-org-connection`
5868158682

58683+
- Spreadsheets: `spreadsheet`
58684+
5868258685

5868358686
#### Supported relations for resources
5868458687

@@ -58722,7 +58725,9 @@ paths:
5872258725

5872358726
RUM Application | `viewer`, `editor`
5872458727

58725-
Cross Org Connections | `viewer`, `editor`'
58728+
Cross Org Connections | `viewer`, `editor`
58729+
58730+
Spreadsheets | `viewer`, `editor`'
5872658731
operationId: UpdateRestrictionPolicy
5872758732
parameters:
5872858733
- $ref: '#/components/parameters/ResourceID'

services/restriction_policies/src/v2/RestrictionPoliciesApi.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,23 +370,23 @@ export class RestrictionPoliciesApiResponseProcessor {
370370

371371
export interface RestrictionPoliciesApiDeleteRestrictionPolicyRequest {
372372
/**
373-
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`.
373+
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
374374
* @type string
375375
*/
376376
resourceId: string;
377377
}
378378

379379
export interface RestrictionPoliciesApiGetRestrictionPolicyRequest {
380380
/**
381-
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`.
381+
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
382382
* @type string
383383
*/
384384
resourceId: string;
385385
}
386386

387387
export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
388388
/**
389-
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`.
389+
* Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`.
390390
* @type string
391391
*/
392392
resourceId: string;
@@ -490,6 +490,7 @@ export class RestrictionPoliciesApi {
490490
* - Connection Groups: `connection-group`
491491
* - RUM Applications: `rum-application`
492492
* - Cross Org Connections: `cross-org-connection`
493+
* - Spreadsheets: `spreadsheet`
493494
*
494495
* #### Supported relations for resources
495496
* Resource Type | Supported Relations
@@ -513,6 +514,7 @@ export class RestrictionPoliciesApi {
513514
* Connection Groups | `viewer`, `editor`
514515
* RUM Application | `viewer`, `editor`
515516
* Cross Org Connections | `viewer`, `editor`
517+
* Spreadsheets | `viewer`, `editor`
516518
* @param param The request object
517519
*/
518520
public updateRestrictionPolicy(

0 commit comments

Comments
 (0)