pulp_maven_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -31
  3. data/docs/ContentArtifactApi.md +37 -35
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsMavenApi.md +63 -61
  7. data/docs/MavenMavenArtifact.md +3 -13
  8. data/docs/MavenMavenArtifactResponse.md +29 -0
  9. data/docs/MavenMavenDistribution.md +1 -7
  10. data/docs/MavenMavenDistributionResponse.md +29 -0
  11. data/docs/MavenMavenRemote.md +18 -12
  12. data/docs/MavenMavenRemoteResponse.md +51 -0
  13. data/docs/MavenMavenRepository.md +4 -10
  14. data/docs/MavenMavenRepositoryResponse.md +29 -0
  15. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  16. data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
  17. data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
  18. data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
  19. data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
  20. data/docs/PatchedmavenMavenDistribution.md +23 -0
  21. data/docs/PatchedmavenMavenRemote.md +45 -0
  22. data/docs/PatchedmavenMavenRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesMavenApi.md +68 -66
  25. data/docs/RepositoriesMavenApi.md +60 -58
  26. data/docs/RepositoriesMavenVersionsApi.md +110 -53
  27. data/docs/RepositoryVersion.md +1 -9
  28. data/docs/RepositoryVersionResponse.md +25 -0
  29. data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
  30. data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
  31. data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
  32. data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
  33. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
  34. data/lib/pulp_maven_client/api_client.rb +3 -3
  35. data/lib/pulp_maven_client/api_error.rb +3 -3
  36. data/lib/pulp_maven_client/configuration.rb +6 -6
  37. data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
  38. data/lib/pulp_maven_client/models/content_summary.rb +10 -16
  39. data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
  40. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
  41. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
  42. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
  43. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
  44. data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
  45. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
  46. data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
  47. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
  48. data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
  49. data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
  50. data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
  51. data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
  52. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
  53. data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
  54. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
  55. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
  56. data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
  57. data/lib/pulp_maven_client/models/repository_version.rb +8 -44
  58. data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
  59. data/lib/pulp_maven_client/version.rb +4 -4
  60. data/lib/pulp_maven_client.rb +18 -8
  61. data/pulp_maven_client.gemspec +5 -5
  62. data/spec/api/content_artifact_api_spec.rb +16 -15
  63. data/spec/api/distributions_maven_api_spec.rb +20 -19
  64. data/spec/api/remotes_maven_api_spec.rb +23 -22
  65. data/spec/api/repositories_maven_api_spec.rb +21 -20
  66. data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
  67. data/spec/api_client_spec.rb +3 -3
  68. data/spec/configuration_spec.rb +6 -6
  69. data/spec/models/async_operation_response_spec.rb +3 -3
  70. data/spec/models/content_summary_response_spec.rb +53 -0
  71. data/spec/models/content_summary_spec.rb +3 -3
  72. data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
  73. data/spec/models/maven_maven_artifact_spec.rb +4 -34
  74. data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
  75. data/spec/models/maven_maven_distribution_spec.rb +3 -21
  76. data/spec/models/maven_maven_remote_response_spec.rb +143 -0
  77. data/spec/models/maven_maven_remote_spec.rb +33 -19
  78. data/spec/models/maven_maven_repository_response_spec.rb +77 -0
  79. data/spec/models/maven_maven_repository_spec.rb +6 -24
  80. data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
  81. data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
  82. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
  83. data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
  84. data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
  85. data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
  86. data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
  87. data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
  88. data/spec/models/policy_enum_spec.rb +35 -0
  89. data/spec/models/repository_version_response_spec.rb +65 -0
  90. data/spec/models/repository_version_spec.rb +3 -27
  91. data/spec/spec_helper.rb +3 -3
  92. metadata +70 -30
  93. data/docs/InlineResponse200.md +0 -23
  94. data/docs/InlineResponse2001.md +0 -23
  95. data/docs/InlineResponse2002.md +0 -23
  96. data/docs/InlineResponse2003.md +0 -23
  97. data/docs/InlineResponse2004.md +0 -23
@@ -0,0 +1,271 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpMavenClient
16
+ # Serializer for Maven Repositories.
17
+ class MavenMavenRepositoryResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :versions_href
24
+
25
+ attr_accessor :latest_version_href
26
+
27
+ # A unique name for this repository.
28
+ attr_accessor :name
29
+
30
+ # An optional description.
31
+ attr_accessor :description
32
+
33
+ attr_accessor :remote
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'pulp_href' => :'pulp_href',
39
+ :'pulp_created' => :'pulp_created',
40
+ :'versions_href' => :'versions_href',
41
+ :'latest_version_href' => :'latest_version_href',
42
+ :'name' => :'name',
43
+ :'description' => :'description',
44
+ :'remote' => :'remote'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.openapi_types
50
+ {
51
+ :'pulp_href' => :'String',
52
+ :'pulp_created' => :'DateTime',
53
+ :'versions_href' => :'String',
54
+ :'latest_version_href' => :'String',
55
+ :'name' => :'String',
56
+ :'description' => :'String',
57
+ :'remote' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'description',
65
+ :'remote'
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenRepositoryResponse` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenRepositoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'pulp_href')
85
+ self.pulp_href = attributes[:'pulp_href']
86
+ end
87
+
88
+ if attributes.key?(:'pulp_created')
89
+ self.pulp_created = attributes[:'pulp_created']
90
+ end
91
+
92
+ if attributes.key?(:'versions_href')
93
+ self.versions_href = attributes[:'versions_href']
94
+ end
95
+
96
+ if attributes.key?(:'latest_version_href')
97
+ self.latest_version_href = attributes[:'latest_version_href']
98
+ end
99
+
100
+ if attributes.key?(:'name')
101
+ self.name = attributes[:'name']
102
+ end
103
+
104
+ if attributes.key?(:'description')
105
+ self.description = attributes[:'description']
106
+ end
107
+
108
+ if attributes.key?(:'remote')
109
+ self.remote = attributes[:'remote']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ invalid_properties = Array.new
117
+ if @name.nil?
118
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
119
+ end
120
+
121
+ invalid_properties
122
+ end
123
+
124
+ # Check to see if the all the properties in the model are valid
125
+ # @return true if the model is valid
126
+ def valid?
127
+ return false if @name.nil?
128
+ true
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ pulp_href == o.pulp_href &&
137
+ pulp_created == o.pulp_created &&
138
+ versions_href == o.versions_href &&
139
+ latest_version_href == o.latest_version_href &&
140
+ name == o.name &&
141
+ description == o.description &&
142
+ remote == o.remote
143
+ end
144
+
145
+ # @see the `==` method
146
+ # @param [Object] Object to be compared
147
+ def eql?(o)
148
+ self == o
149
+ end
150
+
151
+ # Calculates hash code according to all attributes.
152
+ # @return [Integer] Hash code
153
+ def hash
154
+ [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
155
+ end
156
+
157
+ # Builds the object from hash
158
+ # @param [Hash] attributes Model attributes in the form of hash
159
+ # @return [Object] Returns the model itself
160
+ def self.build_from_hash(attributes)
161
+ new.build_from_hash(attributes)
162
+ end
163
+
164
+ # Builds the object from hash
165
+ # @param [Hash] attributes Model attributes in the form of hash
166
+ # @return [Object] Returns the model itself
167
+ def build_from_hash(attributes)
168
+ return nil unless attributes.is_a?(Hash)
169
+ self.class.openapi_types.each_pair do |key, type|
170
+ if type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
174
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ end
176
+ elsif !attributes[self.class.attribute_map[key]].nil?
177
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
179
+ end
180
+
181
+ self
182
+ end
183
+
184
+ # Deserializes the data based on type
185
+ # @param string type Data type
186
+ # @param string value Value to be deserialized
187
+ # @return [Object] Deserialized data
188
+ def _deserialize(type, value)
189
+ case type.to_sym
190
+ when :DateTime
191
+ DateTime.parse(value)
192
+ when :Date
193
+ Date.parse(value)
194
+ when :String
195
+ value.to_s
196
+ when :Integer
197
+ value.to_i
198
+ when :Float
199
+ value.to_f
200
+ when :Boolean
201
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
+ true
203
+ else
204
+ false
205
+ end
206
+ when :Object
207
+ # generic object (usually a Hash), return directly
208
+ value
209
+ when /\AArray<(?<inner_type>.+)>\z/
210
+ inner_type = Regexp.last_match[:inner_type]
211
+ value.map { |v| _deserialize(inner_type, v) }
212
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
+ k_type = Regexp.last_match[:k_type]
214
+ v_type = Regexp.last_match[:v_type]
215
+ {}.tap do |hash|
216
+ value.each do |k, v|
217
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
+ end
219
+ end
220
+ else # model
221
+ PulpMavenClient.const_get(type).build_from_hash(value)
222
+ end
223
+ end
224
+
225
+ # Returns the string representation of the object
226
+ # @return [String] String presentation of the object
227
+ def to_s
228
+ to_hash.to_s
229
+ end
230
+
231
+ # to_body is an alias to to_hash (backward compatibility)
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_body
234
+ to_hash
235
+ end
236
+
237
+ # Returns the object in the form of hash
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_hash
240
+ hash = {}
241
+ self.class.attribute_map.each_pair do |attr, param|
242
+ value = self.send(attr)
243
+ if value.nil?
244
+ is_nullable = self.class.openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+ end
271
+ end
@@ -1,19 +1,19 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpMavenClient
16
- class InlineResponse200
16
+ class PaginatedRepositoryVersionResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpMavenClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<MavenMavenArtifact>'
41
+ :'results' => :'Array<RepositoryVersionResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpMavenClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::InlineResponse200` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedRepositoryVersionResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::InlineResponse200`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedRepositoryVersionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -88,22 +88,12 @@ module PulpMavenClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -1,19 +1,19 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpMavenClient
16
- class InlineResponse2002
16
+ class PaginatedmavenMavenArtifactResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpMavenClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<MavenMavenRemote>'
41
+ :'results' => :'Array<MavenMavenArtifactResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpMavenClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::InlineResponse2002` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedmavenMavenArtifactResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::InlineResponse2002`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedmavenMavenArtifactResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -88,22 +88,12 @@ module PulpMavenClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -1,19 +1,19 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpMavenClient
16
- class InlineResponse2004
16
+ class PaginatedmavenMavenDistributionResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpMavenClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<RepositoryVersion>'
41
+ :'results' => :'Array<MavenMavenDistributionResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpMavenClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::InlineResponse2004` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedmavenMavenDistributionResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::InlineResponse2004`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedmavenMavenDistributionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -88,22 +88,12 @@ module PulpMavenClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -1,19 +1,19 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpMavenClient
16
- class InlineResponse2003
16
+ class PaginatedmavenMavenRemoteResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpMavenClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<MavenMavenRepository>'
41
+ :'results' => :'Array<MavenMavenRemoteResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpMavenClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::InlineResponse2003` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::PaginatedmavenMavenRemoteResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::InlineResponse2003`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::PaginatedmavenMavenRemoteResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -88,22 +88,12 @@ module PulpMavenClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99