diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3c804abe224e..051a589536c3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -68031,6 +68031,8 @@ components: properties: frequency: $ref: '#/components/schemas/TeamSyncAttributesFrequency' + selection_state: + $ref: '#/components/schemas/TeamSyncAttributesSelectionState' source: $ref: '#/components/schemas/TeamSyncAttributesSource' sync_membership: @@ -68054,6 +68056,15 @@ components: - ONCE - CONTINUOUSLY - PAUSED + TeamSyncAttributesSelectionState: + description: 'Specifies which teams or organizations to sync. When + + provided, synchronization is limited to the specified + + items and their subtrees.' + items: + $ref: '#/components/schemas/TeamSyncSelectionStateItem' + type: array TeamSyncAttributesSource: description: The external source platform for team synchronization. Only "github" is supported. @@ -68126,6 +68137,78 @@ components: $ref: '#/components/schemas/TeamSyncData' type: array type: object + TeamSyncSelectionStateExternalId: + description: The external identifier for a team or organization in the source + platform. + properties: + type: + $ref: '#/components/schemas/TeamSyncSelectionStateExternalIdType' + value: + $ref: '#/components/schemas/TeamSyncSelectionStateExternalIdValue' + required: + - type + - value + type: object + TeamSyncSelectionStateExternalIdType: + description: 'The type of external identifier for the selection state item. + + For GitHub synchronization, the allowed values are `team` and + + `organization`.' + enum: + - team + - organization + example: team + type: string + x-enum-varnames: + - TEAM + - ORGANIZATION + TeamSyncSelectionStateExternalIdValue: + description: 'The external identifier value from the source + + platform. For GitHub, this is the string + + representation of a GitHub organization ID or team + + ID.' + example: '1' + type: string + TeamSyncSelectionStateItem: + description: Identifies a team or organization hierarchy to include in synchronization. + properties: + external_id: + $ref: '#/components/schemas/TeamSyncSelectionStateExternalId' + operation: + $ref: '#/components/schemas/TeamSyncSelectionStateOperation' + scope: + $ref: '#/components/schemas/TeamSyncSelectionStateScope' + required: + - external_id + type: object + TeamSyncSelectionStateOperation: + description: 'The operation to perform on the selected hierarchy. + + When set to `include`, synchronization covers the + + referenced teams or organizations.' + enum: + - include + example: include + type: string + x-enum-varnames: + - INCLUDE + TeamSyncSelectionStateScope: + description: 'The scope of the selection. When set to `subtree`, + + synchronization includes the referenced team or + + organization and everything nested under it.' + enum: + - subtree + example: subtree + type: string + x-enum-varnames: + - SUBTREE TeamTarget: description: Represents a team target for an escalation policy step, including the team's ID and resource type. @@ -107597,12 +107680,6 @@ paths: description: OK '403': $ref: '#/components/responses/ForbiddenResponse' - '404': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Team sync configurations not found '429': $ref: '#/components/responses/TooManyRequestsResponse' security: @@ -107634,6 +107711,13 @@ paths: or created. + Optionally, provide `selection_state` to limit synchronization + + to specific teams or organizations and their subtrees, instead + + of syncing all teams. + + [A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/), and the GitHub App integrated with Datadog must have the `Members Read` permission. @@ -107655,6 +107739,8 @@ paths: responses: '200': description: OK + '204': + description: No Content '403': $ref: '#/components/responses/ForbiddenResponse' '429': diff --git a/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.frozen b/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.frozen new file mode 100644 index 000000000000..1332175b3b7e --- /dev/null +++ b/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.frozen @@ -0,0 +1 @@ +2026-03-04T16:01:00.945Z \ No newline at end of file diff --git a/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.yml b/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.yml new file mode 100644 index 000000000000..dffc37712599 --- /dev/null +++ b/cassettes/features/v2/teams/Get-team-sync-configurations-returns-OK-response.yml @@ -0,0 +1,20 @@ +http_interactions: +- recorded_at: Wed, 04 Mar 2026 16:01:00 GMT + request: + body: null + headers: + Accept: + - application/json + method: GET + uri: https://api.datadoghq.com/api/v2/team/sync?filter%5Bsource%5D=github + response: + body: + encoding: UTF-8 + string: '{"data":[{"id":"3d33cc55-aea4-4801-bb75-139d347298c9","type":"team_sync_bulk","attributes":{"frequency":"once","selection_state":[{"external_id":{"type":"organization","value":"1"},"operation":"include","scope":"subtree"}],"source":"github","sync_membership":false,"type":"link"}}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 200 + message: OK +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.frozen b/cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.frozen new file mode 100644 index 000000000000..8e230ad67176 --- /dev/null +++ b/cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.frozen @@ -0,0 +1 @@ +2026-03-04T16:01:34.366Z \ No newline at end of file diff --git a/cassettes/features/v2/teams/Sync-teams-returns-OK-response.yml b/cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.yml similarity index 53% rename from cassettes/features/v2/teams/Sync-teams-returns-OK-response.yml rename to cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.yml index 7b14ff86a49a..4fb3e11992ca 100644 --- a/cassettes/features/v2/teams/Sync-teams-returns-OK-response.yml +++ b/cassettes/features/v2/teams/Link-Teams-with-GitHub-Teams-returns-No-Content-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Fri, 15 Aug 2025 17:48:19 GMT +- recorded_at: Wed, 04 Mar 2026 16:01:34 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"source":"github","type":"link"},"type":"team_sync_bulk"}}' + string: '{"data":{"attributes":{"selection_state":[{"external_id":{"type":"organization","value":"1"}}],"source":"github","type":"link"},"type":"team_sync_bulk"}}' headers: Accept: - '*/*' @@ -15,10 +15,8 @@ http_interactions: body: encoding: UTF-8 string: '' - headers: - Content-Type: - - text/plain + headers: {} status: - code: 200 - message: OK + code: 204 + message: No Content recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/teams/Sync-teams-returns-OK-response.frozen b/cassettes/features/v2/teams/Sync-teams-returns-OK-response.frozen deleted file mode 100644 index 8723edd4fb60..000000000000 --- a/cassettes/features/v2/teams/Sync-teams-returns-OK-response.frozen +++ /dev/null @@ -1 +0,0 @@ -2025-08-15T17:48:19.712Z \ No newline at end of file diff --git a/examples/v2/teams/SyncTeams_3215592344.rb b/examples/v2/teams/SyncTeams_3215592344.rb deleted file mode 100644 index acb04129ae52..000000000000 --- a/examples/v2/teams/SyncTeams_3215592344.rb +++ /dev/null @@ -1,15 +0,0 @@ -# Sync teams returns "OK" response - -require "datadog_api_client" -api_instance = DatadogAPIClient::V2::TeamsAPI.new - -body = DatadogAPIClient::V2::TeamSyncRequest.new({ - data: DatadogAPIClient::V2::TeamSyncData.new({ - attributes: DatadogAPIClient::V2::TeamSyncAttributes.new({ - source: DatadogAPIClient::V2::TeamSyncAttributesSource::GITHUB, - type: DatadogAPIClient::V2::TeamSyncAttributesType::LINK, - }), - type: DatadogAPIClient::V2::TeamSyncBulkType::TEAM_SYNC_BULK, - }), -}) -p api_instance.sync_teams(body) diff --git a/features/v2/teams.feature b/features/v2/teams.feature index 26bf0130d4e9..480e3215e994 100644 --- a/features/v2/teams.feature +++ b/features/v2/teams.feature @@ -431,20 +431,13 @@ Feature: Teams Then the response status is 200 OK And the response "data" has length 1 - @generated @skip @team:DataDog/aaa-omg + @team:DataDog/aaa-omg Scenario: Get team sync configurations returns "OK" response Given new "GetTeamSync" request - And request contains "filter[source]" parameter from "REPLACE.ME" + And request contains "filter[source]" parameter with value "github" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/aaa-omg - Scenario: Get team sync configurations returns "Team sync configurations not found" response - Given new "GetTeamSync" request - And request contains "filter[source]" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 Team sync configurations not found - @generated @skip @team:DataDog/aaa-omg Scenario: Get user memberships returns "API error response." response Given new "GetUserMemberships" request @@ -461,6 +454,13 @@ Feature: Teams Then the response status is 200 Represents a user's association to a team And the response "data" has length 0 + @team:DataDog/aaa-omg + Scenario: Link Teams with GitHub Teams returns "No Content" response + Given new "SyncTeams" request + And body with value {"data": {"attributes": {"source": "github", "type": "link", "selection_state": [{"external_id": {"type": "organization", "value": "1"}}]}, "type": "team_sync_bulk"}} + When the request is sent + Then the response status is 204 No Content + @generated @skip @team:DataDog/aaa-omg Scenario: Link Teams with GitHub Teams returns "OK" response Given new "SyncTeams" request @@ -582,13 +582,6 @@ Feature: Teams When the request is sent Then the response status is 204 No Content - @replay-only @team:DataDog/aaa-omg - Scenario: Sync teams returns "OK" response - Given new "SyncTeams" request - And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}} - When the request is sent - Then the response status is 200 OK - @team:DataDog/aaa-omg Scenario: Update a team link returns "API error response." response Given new "UpdateTeamLink" request diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index a71819e11456..7da3e1c18dd1 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -5247,6 +5247,11 @@ def overrides "v2.team_sync_data" => "TeamSyncData", "v2.team_sync_request" => "TeamSyncRequest", "v2.team_sync_response" => "TeamSyncResponse", + "v2.team_sync_selection_state_external_id" => "TeamSyncSelectionStateExternalId", + "v2.team_sync_selection_state_external_id_type" => "TeamSyncSelectionStateExternalIdType", + "v2.team_sync_selection_state_item" => "TeamSyncSelectionStateItem", + "v2.team_sync_selection_state_operation" => "TeamSyncSelectionStateOperation", + "v2.team_sync_selection_state_scope" => "TeamSyncSelectionStateScope", "v2.team_target" => "TeamTarget", "v2.team_target_type" => "TeamTargetType", "v2.team_type" => "TeamType", diff --git a/lib/datadog_api_client/v2/api/teams_api.rb b/lib/datadog_api_client/v2/api/teams_api.rb index 5e6e724b8bee..6bb933f97e9a 100644 --- a/lib/datadog_api_client/v2/api/teams_api.rb +++ b/lib/datadog_api_client/v2/api/teams_api.rb @@ -2114,6 +2114,10 @@ def sync_teams(body, opts = {}) # # This operation is read-only on the GitHub side, no teams will be modified or created. # + # Optionally, provide `selection_state` to limit synchronization + # to specific teams or organizations and their subtrees, instead + # of syncing all teams. + # # [A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/), # and the GitHub App integrated with Datadog must have the `Members Read` permission. Matching is performed by comparing the Datadog team handle to the GitHub team slug # using a normalized exact match; case is ignored and spaces are removed. No modifications are made diff --git a/lib/datadog_api_client/v2/models/team_sync_attributes.rb b/lib/datadog_api_client/v2/models/team_sync_attributes.rb index 4982b6046b61..6613d2030dcc 100644 --- a/lib/datadog_api_client/v2/models/team_sync_attributes.rb +++ b/lib/datadog_api_client/v2/models/team_sync_attributes.rb @@ -24,6 +24,11 @@ class TeamSyncAttributes # How often the sync process should be run. Defaults to `once` when not provided. attr_accessor :frequency + # Specifies which teams or organizations to sync. When + # provided, synchronization is limited to the specified + # items and their subtrees. + attr_accessor :selection_state + # The external source platform for team synchronization. Only "github" is supported. attr_reader :source @@ -40,6 +45,7 @@ class TeamSyncAttributes def self.attribute_map { :'frequency' => :'frequency', + :'selection_state' => :'selection_state', :'source' => :'source', :'sync_membership' => :'sync_membership', :'type' => :'type' @@ -51,6 +57,7 @@ def self.attribute_map def self.openapi_types { :'frequency' => :'TeamSyncAttributesFrequency', + :'selection_state' => :'Array', :'source' => :'TeamSyncAttributesSource', :'sync_membership' => :'Boolean', :'type' => :'TeamSyncAttributesType' @@ -79,6 +86,12 @@ def initialize(attributes = {}) self.frequency = attributes[:'frequency'] end + if attributes.key?(:'selection_state') + if (value = attributes[:'selection_state']).is_a?(Array) + self.selection_state = value + end + end + if attributes.key?(:'source') self.source = attributes[:'source'] end @@ -148,6 +161,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && frequency == o.frequency && + selection_state == o.selection_state && source == o.source && sync_membership == o.sync_membership && type == o.type && @@ -158,7 +172,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [frequency, source, sync_membership, type, additional_properties].hash + [frequency, selection_state, source, sync_membership, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id.rb b/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id.rb new file mode 100644 index 000000000000..5c742bc16f95 --- /dev/null +++ b/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id.rb @@ -0,0 +1,149 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The external identifier for a team or organization in the source platform. + class TeamSyncSelectionStateExternalId + include BaseGenericModel + + # The type of external identifier for the selection state item. + # For GitHub synchronization, the allowed values are `team` and + # `organization`. + attr_reader :type + + # The external identifier value from the source + # platform. For GitHub, this is the string + # representation of a GitHub organization ID or team + # ID. + attr_reader :value + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'type' => :'type', + :'value' => :'value' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'type' => :'TeamSyncSelectionStateExternalIdType', + :'value' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamSyncSelectionStateExternalId` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'value') + self.value = attributes[:'value'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @type.nil? + return false if @value.nil? + true + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Custom attribute writer method with validation + # @param value [Object] Object to be assigned + # @!visibility private + def value=(value) + if value.nil? + fail ArgumentError, 'invalid value for "value", value cannot be nil.' + end + @value = value + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + type == o.type && + value == o.value && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [type, value, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id_type.rb b/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id_type.rb new file mode 100644 index 000000000000..726efb469b71 --- /dev/null +++ b/lib/datadog_api_client/v2/models/team_sync_selection_state_external_id_type.rb @@ -0,0 +1,29 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The type of external identifier for the selection state item. + # For GitHub synchronization, the allowed values are `team` and + # `organization`. + class TeamSyncSelectionStateExternalIdType + include BaseEnumModel + + TEAM = "team".freeze + ORGANIZATION = "organization".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/team_sync_selection_state_item.rb b/lib/datadog_api_client/v2/models/team_sync_selection_state_item.rb new file mode 100644 index 000000000000..5a62c3b7a25b --- /dev/null +++ b/lib/datadog_api_client/v2/models/team_sync_selection_state_item.rb @@ -0,0 +1,147 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Identifies a team or organization hierarchy to include in synchronization. + class TeamSyncSelectionStateItem + include BaseGenericModel + + # The external identifier for a team or organization in the source platform. + attr_reader :external_id + + # The operation to perform on the selected hierarchy. + # When set to `include`, synchronization covers the + # referenced teams or organizations. + attr_accessor :operation + + # The scope of the selection. When set to `subtree`, + # synchronization includes the referenced team or + # organization and everything nested under it. + attr_accessor :scope + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'external_id' => :'external_id', + :'operation' => :'operation', + :'scope' => :'scope' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'external_id' => :'TeamSyncSelectionStateExternalId', + :'operation' => :'TeamSyncSelectionStateOperation', + :'scope' => :'TeamSyncSelectionStateScope' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamSyncSelectionStateItem` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'external_id') + self.external_id = attributes[:'external_id'] + end + + if attributes.key?(:'operation') + self.operation = attributes[:'operation'] + end + + if attributes.key?(:'scope') + self.scope = attributes[:'scope'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @external_id.nil? + true + end + + # Custom attribute writer method with validation + # @param external_id [Object] Object to be assigned + # @!visibility private + def external_id=(external_id) + if external_id.nil? + fail ArgumentError, 'invalid value for "external_id", external_id cannot be nil.' + end + @external_id = external_id + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + external_id == o.external_id && + operation == o.operation && + scope == o.scope && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [external_id, operation, scope, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/team_sync_selection_state_operation.rb b/lib/datadog_api_client/v2/models/team_sync_selection_state_operation.rb new file mode 100644 index 000000000000..cb248882d4fe --- /dev/null +++ b/lib/datadog_api_client/v2/models/team_sync_selection_state_operation.rb @@ -0,0 +1,28 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The operation to perform on the selected hierarchy. + # When set to `include`, synchronization covers the + # referenced teams or organizations. + class TeamSyncSelectionStateOperation + include BaseEnumModel + + INCLUDE = "include".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/team_sync_selection_state_scope.rb b/lib/datadog_api_client/v2/models/team_sync_selection_state_scope.rb new file mode 100644 index 000000000000..45ab1c60ff09 --- /dev/null +++ b/lib/datadog_api_client/v2/models/team_sync_selection_state_scope.rb @@ -0,0 +1,28 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The scope of the selection. When set to `subtree`, + # synchronization includes the referenced team or + # organization and everything nested under it. + class TeamSyncSelectionStateScope + include BaseEnumModel + + SUBTREE = "subtree".freeze + end +end