diff --git a/.apigentools-info b/.apigentools-info index df46fe9b09e..79789a4ce1d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index db26ffaf859..39c8d822600 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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' diff --git a/api/datadogV2/api_restriction_policies.go b/api/datadogV2/api_restriction_policies.go index 21e9a04ed06..a3036ca81be 100644 --- a/api/datadogV2/api_restriction_policies.go +++ b/api/datadogV2/api_restriction_policies.go @@ -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