diff --git a/.apigentools-info b/.apigentools-info index f7e8711d3d75..adb97e1ebfcd 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-05-07 17:07:22.766765", - "spec_repo_commit": "a1235a0d" + "regenerated": "2025-05-07 21:19:51.630719", + "spec_repo_commit": "ba8b66cb" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-05-07 17:07:22.783724", - "spec_repo_commit": "a1235a0d" + "regenerated": "2025-05-07 21:19:51.646277", + "spec_repo_commit": "ba8b66cb" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index af9c9a98220b..19ffae858328 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -12646,7 +12646,6 @@ components: type: array repositoryURL: description: The repository path of the source code of the entity. - pattern: url type: string type: object EntityV3DatadogCodeLocations: @@ -15623,7 +15622,6 @@ components: base_url: description: Base HTTP url for the integration example: http://datadoghq.com - pattern: url type: string credentials: $ref: '#/components/schemas/HTTPCredentials' @@ -15648,7 +15646,6 @@ components: base_url: description: Base HTTP url for the integration example: http://datadoghq.com - pattern: url type: string credentials: $ref: '#/components/schemas/HTTPCredentialsUpdate' diff --git a/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb b/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb index 64f2f8006c0e..ee54d09fe03a 100644 --- a/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +++ b/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb @@ -25,7 +25,7 @@ class EntityV3DatadogCodeLocationItem attr_accessor :paths # The repository path of the source code of the entity. - attr_reader :repository_url + attr_accessor :repository_url # Attribute mapping from ruby-style variable name to JSON key. # @!visibility private @@ -72,26 +72,6 @@ def initialize(attributes = {}) 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? - pattern = Regexp.new(/url/) - return false if !@repository_url.nil? && @repository_url !~ pattern - true - end - - # Custom attribute writer method with validation - # @param repository_url [Object] Object to be assigned - # @!visibility private - def repository_url=(repository_url) - pattern = Regexp.new(/url/) - if !repository_url.nil? && repository_url !~ pattern - fail ArgumentError, "invalid value for \"repository_url\", must conform to the pattern #{pattern}." - end - @repository_url = repository_url - end - # Checks equality by comparing each attribute. # @param o [Object] Object to be compared # @!visibility private diff --git a/lib/datadog_api_client/v2/models/http_integration.rb b/lib/datadog_api_client/v2/models/http_integration.rb index a540f1338348..cafe256f1b4a 100644 --- a/lib/datadog_api_client/v2/models/http_integration.rb +++ b/lib/datadog_api_client/v2/models/http_integration.rb @@ -88,8 +88,6 @@ def initialize(attributes = {}) # @!visibility private def valid? return false if @base_url.nil? - pattern = Regexp.new(/url/) - return false if @base_url !~ pattern return false if @credentials.nil? return false if @type.nil? true @@ -102,10 +100,6 @@ def base_url=(base_url) if base_url.nil? fail ArgumentError, 'invalid value for "base_url", base_url cannot be nil.' end - pattern = Regexp.new(/url/) - if base_url !~ pattern - fail ArgumentError, "invalid value for \"base_url\", must conform to the pattern #{pattern}." - end @base_url = base_url end diff --git a/lib/datadog_api_client/v2/models/http_integration_update.rb b/lib/datadog_api_client/v2/models/http_integration_update.rb index 8be4915b7b2c..d1b327516ac4 100644 --- a/lib/datadog_api_client/v2/models/http_integration_update.rb +++ b/lib/datadog_api_client/v2/models/http_integration_update.rb @@ -22,7 +22,7 @@ class HTTPIntegrationUpdate include BaseGenericModel # Base HTTP url for the integration - attr_reader :base_url + attr_accessor :base_url # The definition of `HTTPCredentialsUpdate` object. attr_accessor :credentials @@ -87,23 +87,10 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - pattern = Regexp.new(/url/) - return false if !@base_url.nil? && @base_url !~ pattern return false if @type.nil? true end - # Custom attribute writer method with validation - # @param base_url [Object] Object to be assigned - # @!visibility private - def base_url=(base_url) - pattern = Regexp.new(/url/) - if !base_url.nil? && base_url !~ pattern - fail ArgumentError, "invalid value for \"base_url\", must conform to the pattern #{pattern}." - end - @base_url = base_url - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private