Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "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"
}
}
}
3 changes: 0 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions lib/datadog_api_client/v2/models/http_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
15 changes: 1 addition & 14 deletions lib/datadog_api_client/v2/models/http_integration_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading