From e994186d1f203ae9a511c059670e7893affa2d9b Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Thu, 22 Jan 2026 22:22:30 +0000 Subject: [PATCH] Mark restricted_roles as deprecated (#2914) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v1/openapi.yaml | 4 +++- .generator/schemas/v2/openapi.yaml | 4 +++- .../v1/models/synthetics_global_variable_attributes.rb | 2 +- .../v1/models/synthetics_mobile_test_options.rb | 2 +- .../v1/models/synthetics_private_location_metadata.rb | 2 +- lib/datadog_api_client/v1/models/synthetics_test_options.rb | 2 +- .../v2/models/synthetics_global_variable_attributes.rb | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 832230d382b5..992ffcf045ed 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -17642,8 +17642,10 @@ components: type: string type: object SyntheticsRestrictedRoles: + deprecated: true description: A list of role identifiers that can be pulled from the Roles API, - for restricting read and write access. + for restricting read and write access. This field is deprecated. Use the restriction + policies API to manage permissions. example: - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx items: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 93a8cd85a95e..6e5d1e262062 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -58070,8 +58070,10 @@ components: type: string type: object SyntheticsRestrictedRoles: + deprecated: true description: A list of role identifiers that can be pulled from the Roles API, - for restricting read and write access. + for restricting read and write access. This field is deprecated. Use the restriction + policies API to manage permissions. example: - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx items: diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb index 387b38b0a974..301734f10d8e 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_attributes.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 class SyntheticsGlobalVariableAttributes include BaseGenericModel - # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. attr_accessor :restricted_roles attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb index 1fe26c396d70..58e446f49cbb 100644 --- a/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb @@ -58,7 +58,7 @@ class SyntheticsMobileTestOptions # A boolean set to not take a screenshot for the step. attr_accessor :no_screenshot - # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. attr_accessor :restricted_roles # Object describing the retry strategy to apply to a Synthetic test. diff --git a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb index 660d1ca77067..35e2f7ada04f 100644 --- a/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb +++ b/lib/datadog_api_client/v1/models/synthetics_private_location_metadata.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V1 class SyntheticsPrivateLocationMetadata include BaseGenericModel - # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. attr_accessor :restricted_roles attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index 94b5e118e35d..872c069b815c 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -87,7 +87,7 @@ class SyntheticsTestOptions # Prevents saving screenshots of the steps. attr_accessor :no_screenshot - # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. attr_accessor :restricted_roles # Object describing the retry strategy to apply to a Synthetic test. diff --git a/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb b/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb index bbd86d16c15e..439b64fc60ab 100644 --- a/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +++ b/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class SyntheticsGlobalVariableAttributes include BaseGenericModel - # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. + # A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. attr_accessor :restricted_roles attr_accessor :additional_properties