Skip to content

Commit

Permalink
Add monitor to restriction policy api public spec (#2621)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec committed Aug 8, 2024
1 parent 7f456dd commit 6bbe1a3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-08 08:10:19.007447",
"spec_repo_commit": "c8305c07"
"regenerated": "2024-08-08 20:00:57.407569",
"spec_repo_commit": "643e3eaf"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-08 08:10:19.025478",
"spec_repo_commit": "c8305c07"
"regenerated": "2024-08-08 20:00:57.430814",
"spec_repo_commit": "643e3eaf"
}
}
}
30 changes: 17 additions & 13 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32602,34 +32602,38 @@ paths:

- Service Level Objectives: `slo`

- Synthetic Global Variable: `synthetic-global-variable`
- Synthetic Global Variables: `synthetic-global-variable`

- Synthetic Test: `synthetic-test`
- Synthetic Tests: `synthetic-test`

- Synthetic Private Location: `synthetic-private-location`
- Synthetic Private Locations: `synthetic-private-location`

- Monitors: `monitor`


#### Supported relations for resources

Resource Type | Supported Relations
Resource Type | Supported Relations

----------------------------|--------------------------

---------------------------|--------------------------
Dashboards | `viewer`, `editor`

Dashboards | `viewer`, `editor`
Notebooks | `viewer`, `editor`

Notebooks | `viewer`, `editor`
Powerpacks | `viewer`, `editor`

Powerpacks | `viewer`, `editor`
Security Rules | `viewer`, `editor`

Security Rules | `viewer`, `editor`
Service Level Objectives | `viewer`, `editor`

Service Level Objectives | `viewer`, `editor`
Synthetic Global Variables | `viewer`, `editor`

Synthetic Global Variable | `viewer`, `editor`
Synthetic Tests | `viewer`, `editor`

Synthetic Test | `viewer`, `editor`
Synthetic Private Locations | `viewer`, `editor`

Synthetic Private Location | `viewer`, `editor`'
Monitors | `viewer`, `editor`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
Expand Down
28 changes: 15 additions & 13 deletions api/datadogV2/api_restriction_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,23 @@ func (a *RestrictionPoliciesApi) GetRestrictionPolicy(ctx _context.Context, reso
// - Powerpacks: `powerpack`
// - Security Rules: `security-rule`
// - Service Level Objectives: `slo`
// - Synthetic Global Variable: `synthetic-global-variable`
// - Synthetic Test: `synthetic-test`
// - Synthetic Private Location: `synthetic-private-location`
// - Synthetic Global Variables: `synthetic-global-variable`
// - Synthetic Tests: `synthetic-test`
// - Synthetic Private Locations: `synthetic-private-location`
// - Monitors: `monitor`
//
// #### Supported relations for resources
// Resource Type | Supported Relations
// ---------------------------|--------------------------
// Dashboards | `viewer`, `editor`
// Notebooks | `viewer`, `editor`
// Powerpacks | `viewer`, `editor`
// Security Rules | `viewer`, `editor`
// Service Level Objectives | `viewer`, `editor`
// Synthetic Global Variable | `viewer`, `editor`
// Synthetic Test | `viewer`, `editor`
// Synthetic Private Location | `viewer`, `editor`
// Resource Type | Supported Relations
// ----------------------------|--------------------------
// Dashboards | `viewer`, `editor`
// Notebooks | `viewer`, `editor`
// Powerpacks | `viewer`, `editor`
// Security Rules | `viewer`, `editor`
// Service Level Objectives | `viewer`, `editor`
// Synthetic Global Variables | `viewer`, `editor`
// Synthetic Tests | `viewer`, `editor`
// Synthetic Private Locations | `viewer`, `editor`
// Monitors | `viewer`, `editor`
func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest) (RestrictionPolicyResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodPost
Expand Down

0 comments on commit 6bbe1a3

Please sign in to comment.