File tree Expand file tree Collapse file tree 5 files changed +6
-48
lines changed
lib/datadog_api_client/v2/models Expand file tree Collapse file tree 5 files changed +6
-48
lines changed Original file line number Diff line number Diff line change 44 "spec_versions": {
55 "v1": {
66 "apigentools_version": "1.6.6",
7- "regenerated": "2025-05-07 17:07:22.766765 ",
8- "spec_repo_commit": "a1235a0d "
7+ "regenerated": "2025-05-07 21:19:51.630719 ",
8+ "spec_repo_commit": "ba8b66cb "
99 },
1010 "v2": {
1111 "apigentools_version": "1.6.6",
12- "regenerated": "2025-05-07 17:07:22.783724 ",
13- "spec_repo_commit": "a1235a0d "
12+ "regenerated": "2025-05-07 21:19:51.646277 ",
13+ "spec_repo_commit": "ba8b66cb "
1414 }
1515 }
1616}
Original file line number Diff line number Diff line change @@ -12646,7 +12646,6 @@ components:
1264612646 type: array
1264712647 repositoryURL:
1264812648 description: The repository path of the source code of the entity.
12649- pattern: url
1265012649 type: string
1265112650 type: object
1265212651 EntityV3DatadogCodeLocations:
@@ -15623,7 +15622,6 @@ components:
1562315622 base_url:
1562415623 description: Base HTTP url for the integration
1562515624 example: http://datadoghq.com
15626- pattern: url
1562715625 type: string
1562815626 credentials:
1562915627 $ref: '#/components/schemas/HTTPCredentials'
@@ -15648,7 +15646,6 @@ components:
1564815646 base_url:
1564915647 description: Base HTTP url for the integration
1565015648 example: http://datadoghq.com
15651- pattern: url
1565215649 type: string
1565315650 credentials:
1565415651 $ref: '#/components/schemas/HTTPCredentialsUpdate'
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class EntityV3DatadogCodeLocationItem
2525 attr_accessor :paths
2626
2727 # The repository path of the source code of the entity.
28- attr_reader :repository_url
28+ attr_accessor :repository_url
2929
3030 # Attribute mapping from ruby-style variable name to JSON key.
3131 # @!visibility private
@@ -72,26 +72,6 @@ def initialize(attributes = {})
7272 end
7373 end
7474
75- # Check to see if the all the properties in the model are valid
76- # @return true if the model is valid
77- # @!visibility private
78- def valid?
79- pattern = Regexp . new ( /url/ )
80- return false if !@repository_url . nil? && @repository_url !~ pattern
81- true
82- end
83-
84- # Custom attribute writer method with validation
85- # @param repository_url [Object] Object to be assigned
86- # @!visibility private
87- def repository_url = ( repository_url )
88- pattern = Regexp . new ( /url/ )
89- if !repository_url . nil? && repository_url !~ pattern
90- fail ArgumentError , "invalid value for \" repository_url\" , must conform to the pattern #{ pattern } ."
91- end
92- @repository_url = repository_url
93- end
94-
9575 # Checks equality by comparing each attribute.
9676 # @param o [Object] Object to be compared
9777 # @!visibility private
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ def initialize(attributes = {})
8888 # @!visibility private
8989 def valid?
9090 return false if @base_url . nil?
91- pattern = Regexp . new ( /url/ )
92- return false if @base_url !~ pattern
9391 return false if @credentials . nil?
9492 return false if @type . nil?
9593 true
@@ -102,10 +100,6 @@ def base_url=(base_url)
102100 if base_url . nil?
103101 fail ArgumentError , 'invalid value for "base_url", base_url cannot be nil.'
104102 end
105- pattern = Regexp . new ( /url/ )
106- if base_url !~ pattern
107- fail ArgumentError , "invalid value for \" base_url\" , must conform to the pattern #{ pattern } ."
108- end
109103 @base_url = base_url
110104 end
111105
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class HTTPIntegrationUpdate
2222 include BaseGenericModel
2323
2424 # Base HTTP url for the integration
25- attr_reader :base_url
25+ attr_accessor :base_url
2626
2727 # The definition of `HTTPCredentialsUpdate` object.
2828 attr_accessor :credentials
@@ -87,23 +87,10 @@ def initialize(attributes = {})
8787 # @return true if the model is valid
8888 # @!visibility private
8989 def valid?
90- pattern = Regexp . new ( /url/ )
91- return false if !@base_url . nil? && @base_url !~ pattern
9290 return false if @type . nil?
9391 true
9492 end
9593
96- # Custom attribute writer method with validation
97- # @param base_url [Object] Object to be assigned
98- # @!visibility private
99- def base_url = ( base_url )
100- pattern = Regexp . new ( /url/ )
101- if !base_url . nil? && base_url !~ pattern
102- fail ArgumentError , "invalid value for \" base_url\" , must conform to the pattern #{ pattern } ."
103- end
104- @base_url = base_url
105- end
106-
10794 # Custom attribute writer method with validation
10895 # @param type [Object] Object to be assigned
10996 # @!visibility private
You can’t perform that action at this time.
0 commit comments