pulp_npm_client 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/NpmNpmDistribution.md +2 -0
  4. data/docs/NpmNpmDistributionResponse.md +4 -0
  5. data/docs/NpmNpmRepository.md +2 -0
  6. data/docs/NpmNpmRepositoryResponse.md +2 -0
  7. data/docs/PatchednpmNpmDistribution.md +2 -0
  8. data/docs/PatchednpmNpmRepository.md +2 -0
  9. data/docs/RepositoriesNpmApi.md +18 -2
  10. data/lib/pulp_npm_client/api/repositories_npm_api.rb +27 -3
  11. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +12 -1
  12. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +22 -1
  13. data/lib/pulp_npm_client/models/npm_npm_remote.rb +15 -0
  14. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +15 -0
  15. data/lib/pulp_npm_client/models/npm_npm_repository.rb +42 -1
  16. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +42 -1
  17. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +12 -1
  18. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +15 -0
  19. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +42 -1
  20. data/lib/pulp_npm_client/models/remote_network_config.rb +15 -0
  21. data/lib/pulp_npm_client/models/remote_network_config_response.rb +15 -0
  22. data/lib/pulp_npm_client/models/set_label.rb +0 -11
  23. data/lib/pulp_npm_client/models/set_label_response.rb +0 -21
  24. data/lib/pulp_npm_client/models/unset_label.rb +0 -11
  25. data/lib/pulp_npm_client/models/unset_label_response.rb +0 -21
  26. data/lib/pulp_npm_client/version.rb +1 -1
  27. data/spec/api/repositories_npm_api_spec.rb +9 -1
  28. data/spec/models/npm_npm_distribution_response_spec.rb +12 -0
  29. data/spec/models/npm_npm_distribution_spec.rb +6 -0
  30. data/spec/models/npm_npm_repository_response_spec.rb +6 -0
  31. data/spec/models/npm_npm_repository_spec.rb +6 -0
  32. data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
  33. data/spec/models/patchednpm_npm_repository_spec.rb +6 -0
  34. metadata +25 -25
@@ -42,6 +42,9 @@ module PulpNpmClient
42
42
  # Retain X versions of the repository. Default is null which retains all versions.
43
43
  attr_accessor :retain_repo_versions
44
44
 
45
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
46
+ attr_accessor :retain_checkpoints
47
+
45
48
  # An optional remote to use by default when syncing.
46
49
  attr_accessor :remote
47
50
 
@@ -58,6 +61,7 @@ module PulpNpmClient
58
61
  :'name' => :'name',
59
62
  :'description' => :'description',
60
63
  :'retain_repo_versions' => :'retain_repo_versions',
64
+ :'retain_checkpoints' => :'retain_checkpoints',
61
65
  :'remote' => :'remote'
62
66
  }
63
67
  end
@@ -80,6 +84,7 @@ module PulpNpmClient
80
84
  :'name' => :'String',
81
85
  :'description' => :'String',
82
86
  :'retain_repo_versions' => :'Integer',
87
+ :'retain_checkpoints' => :'Integer',
83
88
  :'remote' => :'String'
84
89
  }
85
90
  end
@@ -89,6 +94,7 @@ module PulpNpmClient
89
94
  Set.new([
90
95
  :'description',
91
96
  :'retain_repo_versions',
97
+ :'retain_checkpoints',
92
98
  :'remote'
93
99
  ])
94
100
  end
@@ -152,6 +158,10 @@ module PulpNpmClient
152
158
  self.retain_repo_versions = attributes[:'retain_repo_versions']
153
159
  end
154
160
 
161
+ if attributes.key?(:'retain_checkpoints')
162
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
163
+ end
164
+
155
165
  if attributes.key?(:'remote')
156
166
  self.remote = attributes[:'remote']
157
167
  end
@@ -166,6 +176,14 @@ module PulpNpmClient
166
176
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
177
  end
168
178
 
179
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
180
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
181
+ end
182
+
183
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
+ end
186
+
169
187
  invalid_properties
170
188
  end
171
189
 
@@ -174,9 +192,31 @@ module PulpNpmClient
174
192
  def valid?
175
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
176
194
  return false if @name.nil?
195
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
196
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
177
197
  true
178
198
  end
179
199
 
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] retain_repo_versions Value to be assigned
202
+ def retain_repo_versions=(retain_repo_versions)
203
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
204
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
205
+ end
206
+
207
+ @retain_repo_versions = retain_repo_versions
208
+ end
209
+
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] retain_checkpoints Value to be assigned
212
+ def retain_checkpoints=(retain_checkpoints)
213
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
214
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
215
+ end
216
+
217
+ @retain_checkpoints = retain_checkpoints
218
+ end
219
+
180
220
  # Checks equality by comparing each attribute.
181
221
  # @param [Object] Object to be compared
182
222
  def ==(o)
@@ -192,6 +232,7 @@ module PulpNpmClient
192
232
  name == o.name &&
193
233
  description == o.description &&
194
234
  retain_repo_versions == o.retain_repo_versions &&
235
+ retain_checkpoints == o.retain_checkpoints &&
195
236
  remote == o.remote
196
237
  end
197
238
 
@@ -204,7 +245,7 @@ module PulpNpmClient
204
245
  # Calculates hash code according to all attributes.
205
246
  # @return [Integer] Hash code
206
247
  def hash
207
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
248
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote].hash
208
249
  end
209
250
 
210
251
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpNpmClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # RepositoryVersion to be served
37
+ attr_accessor :repository_version
38
+
36
39
  # Remote that can be used to fetch content when using pull-through caching.
37
40
  attr_accessor :remote
38
41
 
@@ -45,6 +48,7 @@ module PulpNpmClient
45
48
  :'pulp_labels' => :'pulp_labels',
46
49
  :'name' => :'name',
47
50
  :'repository' => :'repository',
51
+ :'repository_version' => :'repository_version',
48
52
  :'remote' => :'remote'
49
53
  }
50
54
  end
@@ -63,6 +67,7 @@ module PulpNpmClient
63
67
  :'pulp_labels' => :'Hash<String, String>',
64
68
  :'name' => :'String',
65
69
  :'repository' => :'String',
70
+ :'repository_version' => :'String',
66
71
  :'remote' => :'String'
67
72
  }
68
73
  end
@@ -72,6 +77,7 @@ module PulpNpmClient
72
77
  Set.new([
73
78
  :'content_guard',
74
79
  :'repository',
80
+ :'repository_version',
75
81
  :'remote'
76
82
  ])
77
83
  end
@@ -119,6 +125,10 @@ module PulpNpmClient
119
125
  self.repository = attributes[:'repository']
120
126
  end
121
127
 
128
+ if attributes.key?(:'repository_version')
129
+ self.repository_version = attributes[:'repository_version']
130
+ end
131
+
122
132
  if attributes.key?(:'remote')
123
133
  self.remote = attributes[:'remote']
124
134
  end
@@ -188,6 +198,7 @@ module PulpNpmClient
188
198
  pulp_labels == o.pulp_labels &&
189
199
  name == o.name &&
190
200
  repository == o.repository &&
201
+ repository_version == o.repository_version &&
191
202
  remote == o.remote
192
203
  end
193
204
 
@@ -200,7 +211,7 @@ module PulpNpmClient
200
211
  # Calculates hash code according to all attributes.
201
212
  # @return [Integer] Hash code
202
213
  def hash
203
- [base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
214
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote].hash
204
215
  end
205
216
 
206
217
  # Builds the object from hash
@@ -345,6 +345,10 @@ module PulpNpmClient
345
345
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
346
346
  end
347
347
 
348
+ if !@download_concurrency.nil? && @download_concurrency < 1
349
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
350
+ end
351
+
348
352
  invalid_properties
349
353
  end
350
354
 
@@ -366,6 +370,7 @@ module PulpNpmClient
366
370
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
367
371
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
368
372
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
373
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
369
374
  true
370
375
  end
371
376
 
@@ -517,6 +522,16 @@ module PulpNpmClient
517
522
  @sock_read_timeout = sock_read_timeout
518
523
  end
519
524
 
525
+ # Custom attribute writer method with validation
526
+ # @param [Object] download_concurrency Value to be assigned
527
+ def download_concurrency=(download_concurrency)
528
+ if !download_concurrency.nil? && download_concurrency < 1
529
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
530
+ end
531
+
532
+ @download_concurrency = download_concurrency
533
+ end
534
+
520
535
  # Checks equality by comparing each attribute.
521
536
  # @param [Object] Object to be compared
522
537
  def ==(o)
@@ -27,6 +27,9 @@ module PulpNpmClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -37,6 +40,7 @@ module PulpNpmClient
37
40
  :'name' => :'name',
38
41
  :'description' => :'description',
39
42
  :'retain_repo_versions' => :'retain_repo_versions',
43
+ :'retain_checkpoints' => :'retain_checkpoints',
40
44
  :'remote' => :'remote'
41
45
  }
42
46
  end
@@ -53,6 +57,7 @@ module PulpNpmClient
53
57
  :'name' => :'String',
54
58
  :'description' => :'String',
55
59
  :'retain_repo_versions' => :'Integer',
60
+ :'retain_checkpoints' => :'Integer',
56
61
  :'remote' => :'String'
57
62
  }
58
63
  end
@@ -62,6 +67,7 @@ module PulpNpmClient
62
67
  Set.new([
63
68
  :'description',
64
69
  :'retain_repo_versions',
70
+ :'retain_checkpoints',
65
71
  :'remote'
66
72
  ])
67
73
  end
@@ -99,6 +105,10 @@ module PulpNpmClient
99
105
  self.retain_repo_versions = attributes[:'retain_repo_versions']
100
106
  end
101
107
 
108
+ if attributes.key?(:'retain_checkpoints')
109
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
110
+ end
111
+
102
112
  if attributes.key?(:'remote')
103
113
  self.remote = attributes[:'remote']
104
114
  end
@@ -117,6 +127,14 @@ module PulpNpmClient
117
127
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
118
128
  end
119
129
 
130
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
+ end
133
+
134
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
135
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
136
+ end
137
+
120
138
  invalid_properties
121
139
  end
122
140
 
@@ -126,6 +144,8 @@ module PulpNpmClient
126
144
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
145
  return false if !@name.nil? && @name.to_s.length < 1
128
146
  return false if !@description.nil? && @description.to_s.length < 1
147
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
129
149
  true
130
150
  end
131
151
 
@@ -153,6 +173,26 @@ module PulpNpmClient
153
173
  @description = description
154
174
  end
155
175
 
176
+ # Custom attribute writer method with validation
177
+ # @param [Object] retain_repo_versions Value to be assigned
178
+ def retain_repo_versions=(retain_repo_versions)
179
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
180
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
181
+ end
182
+
183
+ @retain_repo_versions = retain_repo_versions
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] retain_checkpoints Value to be assigned
188
+ def retain_checkpoints=(retain_checkpoints)
189
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
190
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
191
+ end
192
+
193
+ @retain_checkpoints = retain_checkpoints
194
+ end
195
+
156
196
  # Checks equality by comparing each attribute.
157
197
  # @param [Object] Object to be compared
158
198
  def ==(o)
@@ -162,6 +202,7 @@ module PulpNpmClient
162
202
  name == o.name &&
163
203
  description == o.description &&
164
204
  retain_repo_versions == o.retain_repo_versions &&
205
+ retain_checkpoints == o.retain_checkpoints &&
165
206
  remote == o.remote
166
207
  end
167
208
 
@@ -174,7 +215,7 @@ module PulpNpmClient
174
215
  # Calculates hash code according to all attributes.
175
216
  # @return [Integer] Hash code
176
217
  def hash
177
- [pulp_labels, name, description, retain_repo_versions, remote].hash
218
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
178
219
  end
179
220
 
180
221
  # Builds the object from hash
@@ -278,6 +278,10 @@ module PulpNpmClient
278
278
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
279
279
  end
280
280
 
281
+ if !@download_concurrency.nil? && @download_concurrency < 1
282
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
283
+ end
284
+
281
285
  invalid_properties
282
286
  end
283
287
 
@@ -297,6 +301,7 @@ module PulpNpmClient
297
301
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
298
302
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
303
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
304
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
300
305
  true
301
306
  end
302
307
 
@@ -420,6 +425,16 @@ module PulpNpmClient
420
425
  @sock_read_timeout = sock_read_timeout
421
426
  end
422
427
 
428
+ # Custom attribute writer method with validation
429
+ # @param [Object] download_concurrency Value to be assigned
430
+ def download_concurrency=(download_concurrency)
431
+ if !download_concurrency.nil? && download_concurrency < 1
432
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
433
+ end
434
+
435
+ @download_concurrency = download_concurrency
436
+ end
437
+
423
438
  # Checks equality by comparing each attribute.
424
439
  # @param [Object] Object to be compared
425
440
  def ==(o)
@@ -196,6 +196,10 @@ module PulpNpmClient
196
196
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
197
197
  end
198
198
 
199
+ if !@download_concurrency.nil? && @download_concurrency < 1
200
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
201
+ end
202
+
199
203
  invalid_properties
200
204
  end
201
205
 
@@ -207,6 +211,7 @@ module PulpNpmClient
207
211
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
208
212
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
209
213
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
214
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
210
215
  true
211
216
  end
212
217
 
@@ -250,6 +255,16 @@ module PulpNpmClient
250
255
  @sock_read_timeout = sock_read_timeout
251
256
  end
252
257
 
258
+ # Custom attribute writer method with validation
259
+ # @param [Object] download_concurrency Value to be assigned
260
+ def download_concurrency=(download_concurrency)
261
+ if !download_concurrency.nil? && download_concurrency < 1
262
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
263
+ end
264
+
265
+ @download_concurrency = download_concurrency
266
+ end
267
+
253
268
  # Checks equality by comparing each attribute.
254
269
  # @param [Object] Object to be compared
255
270
  def ==(o)
@@ -89,11 +89,6 @@ module PulpNpmClient
89
89
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
90
90
  end
91
91
 
92
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
93
- if @key !~ pattern
94
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
95
- end
96
-
97
92
  invalid_properties
98
93
  end
99
94
 
@@ -103,7 +98,6 @@ module PulpNpmClient
103
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
104
99
  return false if @key.nil?
105
100
  return false if @key.to_s.length < 1
106
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
107
101
  true
108
102
  end
109
103
 
@@ -118,11 +112,6 @@ module PulpNpmClient
118
112
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
119
113
  end
120
114
 
121
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
122
- if key !~ pattern
123
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
124
- end
125
-
126
115
  @key = key
127
116
  end
128
117
 
@@ -85,11 +85,6 @@ module PulpNpmClient
85
85
  invalid_properties.push('invalid value for "key", key cannot be nil.')
86
86
  end
87
87
 
88
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
- if @key !~ pattern
90
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
91
- end
92
-
93
88
  invalid_properties
94
89
  end
95
90
 
@@ -98,25 +93,9 @@ module PulpNpmClient
98
93
  def valid?
99
94
  warn '[DEPRECATED] the `valid?` method is obsolete'
100
95
  return false if @key.nil?
101
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
102
96
  true
103
97
  end
104
98
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] key Value to be assigned
107
- def key=(key)
108
- if key.nil?
109
- fail ArgumentError, 'key cannot be nil'
110
- end
111
-
112
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
113
- if key !~ pattern
114
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
115
- end
116
-
117
- @key = key
118
- end
119
-
120
99
  # Checks equality by comparing each attribute.
121
100
  # @param [Object] Object to be compared
122
101
  def ==(o)
@@ -78,11 +78,6 @@ module PulpNpmClient
78
78
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
79
79
  end
80
80
 
81
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
82
- if @key !~ pattern
83
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
84
- end
85
-
86
81
  invalid_properties
87
82
  end
88
83
 
@@ -92,7 +87,6 @@ module PulpNpmClient
92
87
  warn '[DEPRECATED] the `valid?` method is obsolete'
93
88
  return false if @key.nil?
94
89
  return false if @key.to_s.length < 1
95
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
96
90
  true
97
91
  end
98
92
 
@@ -107,11 +101,6 @@ module PulpNpmClient
107
101
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
108
102
  end
109
103
 
110
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
111
- if key !~ pattern
112
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
113
- end
114
-
115
104
  @key = key
116
105
  end
117
106
 
@@ -82,11 +82,6 @@ module PulpNpmClient
82
82
  invalid_properties.push('invalid value for "key", key cannot be nil.')
83
83
  end
84
84
 
85
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
86
- if @key !~ pattern
87
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
88
- end
89
-
90
85
  invalid_properties
91
86
  end
92
87
 
@@ -95,25 +90,9 @@ module PulpNpmClient
95
90
  def valid?
96
91
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
92
  return false if @key.nil?
98
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
99
93
  true
100
94
  end
101
95
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] key Value to be assigned
104
- def key=(key)
105
- if key.nil?
106
- fail ArgumentError, 'key cannot be nil'
107
- end
108
-
109
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
110
- if key !~ pattern
111
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
112
- end
113
-
114
- @key = key
115
- end
116
-
117
96
  # Checks equality by comparing each attribute.
118
97
  # @param [Object] Object to be compared
119
98
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.7.0'
14
+ VERSION = '0.7.1'
15
15
  end
@@ -75,13 +75,21 @@ describe 'RepositoriesNpmApi' do
75
75
  # @option opts [String] :name__regex Filter results where name matches regex value
76
76
  # @option opts [String] :name__startswith Filter results where name starts with value
77
77
  # @option opts [Integer] :offset The initial index from which to return the results.
78
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
78
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
79
79
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
80
80
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
81
81
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
82
82
  # @option opts [String] :pulp_label_select Filter labels by search string
83
83
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
84
84
  # @option opts [String] :remote
85
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
86
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
87
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
88
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
89
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
90
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
91
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
92
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
85
93
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
86
94
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
87
95
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -69,6 +69,12 @@ describe PulpNpmClient::NpmNpmDistributionResponse do
69
69
  end
70
70
  end
71
71
 
72
+ describe 'test attribute "content_guard_prn"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
72
78
  describe 'test attribute "no_content_change_since"' do
73
79
  it 'should work' do
74
80
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -99,6 +105,12 @@ describe PulpNpmClient::NpmNpmDistributionResponse do
99
105
  end
100
106
  end
101
107
 
108
+ describe 'test attribute "repository_version"' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
111
+ end
112
+ end
113
+
102
114
  describe 'test attribute "remote"' do
103
115
  it 'should work' do
104
116
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -63,6 +63,12 @@ describe PulpNpmClient::NpmNpmDistribution do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "repository_version"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  describe 'test attribute "remote"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -87,6 +87,12 @@ describe PulpNpmClient::NpmNpmRepositoryResponse do
87
87
  end
88
88
  end
89
89
 
90
+ describe 'test attribute "retain_checkpoints"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
90
96
  describe 'test attribute "remote"' do
91
97
  it 'should work' do
92
98
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -51,6 +51,12 @@ describe PulpNpmClient::NpmNpmRepository do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "retain_checkpoints"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
54
60
  describe 'test attribute "remote"' do
55
61
  it 'should work' do
56
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -63,6 +63,12 @@ describe PulpNpmClient::PatchednpmNpmDistribution do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "repository_version"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  describe 'test attribute "remote"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -51,6 +51,12 @@ describe PulpNpmClient::PatchednpmNpmRepository do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "retain_checkpoints"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
54
60
  describe 'test attribute "remote"' do
55
61
  it 'should work' do
56
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/