pulp_gem_client 0.7.5 → 0.7.6

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGemApi.md +8 -6
  4. data/docs/DistributionsGemApi.md +4 -4
  5. data/docs/GemGemDistribution.md +2 -0
  6. data/docs/GemGemDistributionResponse.md +4 -0
  7. data/docs/GemGemRemote.md +6 -6
  8. data/docs/GemGemRemoteResponse.md +8 -8
  9. data/docs/GemGemRepository.md +2 -0
  10. data/docs/GemGemRepositoryResponse.md +2 -0
  11. data/docs/PatchedgemGemDistribution.md +2 -0
  12. data/docs/PatchedgemGemRemote.md +6 -6
  13. data/docs/PatchedgemGemRepository.md +2 -0
  14. data/docs/PublicationsGemApi.md +2 -2
  15. data/docs/RepositoriesGemApi.md +20 -4
  16. data/docs/RepositoryAddRemoveContent.md +3 -1
  17. data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
  18. data/lib/pulp_gem_client/api/distributions_gem_api.rb +4 -4
  19. data/lib/pulp_gem_client/api/publications_gem_api.rb +2 -2
  20. data/lib/pulp_gem_client/api/repositories_gem_api.rb +29 -5
  21. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +12 -1
  22. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +22 -1
  23. data/lib/pulp_gem_client/models/gem_gem_remote.rb +48 -33
  24. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +60 -45
  25. data/lib/pulp_gem_client/models/gem_gem_repository.rb +42 -1
  26. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +42 -1
  27. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +12 -1
  28. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +48 -33
  29. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +42 -1
  30. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +16 -4
  31. data/lib/pulp_gem_client/models/set_label.rb +0 -11
  32. data/lib/pulp_gem_client/models/set_label_response.rb +0 -21
  33. data/lib/pulp_gem_client/models/unset_label.rb +0 -11
  34. data/lib/pulp_gem_client/models/unset_label_response.rb +0 -21
  35. data/lib/pulp_gem_client/version.rb +1 -1
  36. data/spec/api/content_gem_api_spec.rb +4 -3
  37. data/spec/api/distributions_gem_api_spec.rb +2 -2
  38. data/spec/api/publications_gem_api_spec.rb +1 -1
  39. data/spec/api/repositories_gem_api_spec.rb +10 -2
  40. data/spec/models/gem_gem_distribution_response_spec.rb +12 -0
  41. data/spec/models/gem_gem_distribution_spec.rb +6 -0
  42. data/spec/models/gem_gem_remote_response_spec.rb +10 -10
  43. data/spec/models/gem_gem_remote_spec.rb +17 -17
  44. data/spec/models/gem_gem_repository_response_spec.rb +6 -0
  45. data/spec/models/gem_gem_repository_spec.rb +6 -0
  46. data/spec/models/patchedgem_gem_distribution_spec.rb +6 -0
  47. data/spec/models/patchedgem_gem_remote_spec.rb +17 -17
  48. data/spec/models/patchedgem_gem_repository_spec.rb +6 -0
  49. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  50. metadata +32 -32
@@ -22,6 +22,11 @@ module PulpGemClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpGemClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpGemClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -111,6 +111,8 @@ module PulpGemClient
111
111
  {
112
112
  :'name' => :'name',
113
113
  :'url' => :'url',
114
+ :'pulp_labels' => :'pulp_labels',
115
+ :'policy' => :'policy',
114
116
  :'ca_cert' => :'ca_cert',
115
117
  :'client_cert' => :'client_cert',
116
118
  :'client_key' => :'client_key',
@@ -120,15 +122,13 @@ module PulpGemClient
120
122
  :'proxy_password' => :'proxy_password',
121
123
  :'username' => :'username',
122
124
  :'password' => :'password',
123
- :'pulp_labels' => :'pulp_labels',
124
- :'download_concurrency' => :'download_concurrency',
125
125
  :'max_retries' => :'max_retries',
126
- :'policy' => :'policy',
127
126
  :'total_timeout' => :'total_timeout',
128
127
  :'connect_timeout' => :'connect_timeout',
129
128
  :'sock_connect_timeout' => :'sock_connect_timeout',
130
129
  :'sock_read_timeout' => :'sock_read_timeout',
131
130
  :'headers' => :'headers',
131
+ :'download_concurrency' => :'download_concurrency',
132
132
  :'rate_limit' => :'rate_limit',
133
133
  :'prereleases' => :'prereleases',
134
134
  :'includes' => :'includes',
@@ -146,6 +146,8 @@ module PulpGemClient
146
146
  {
147
147
  :'name' => :'String',
148
148
  :'url' => :'String',
149
+ :'pulp_labels' => :'Hash<String, String>',
150
+ :'policy' => :'PolicyEnum',
149
151
  :'ca_cert' => :'String',
150
152
  :'client_cert' => :'String',
151
153
  :'client_key' => :'String',
@@ -155,15 +157,13 @@ module PulpGemClient
155
157
  :'proxy_password' => :'String',
156
158
  :'username' => :'String',
157
159
  :'password' => :'String',
158
- :'pulp_labels' => :'Hash<String, String>',
159
- :'download_concurrency' => :'Integer',
160
160
  :'max_retries' => :'Integer',
161
- :'policy' => :'PolicyEnum',
162
161
  :'total_timeout' => :'Float',
163
162
  :'connect_timeout' => :'Float',
164
163
  :'sock_connect_timeout' => :'Float',
165
164
  :'sock_read_timeout' => :'Float',
166
165
  :'headers' => :'Array<Object>',
166
+ :'download_concurrency' => :'Integer',
167
167
  :'rate_limit' => :'Integer',
168
168
  :'prereleases' => :'Boolean',
169
169
  :'includes' => :'Hash<String, String>',
@@ -182,12 +182,12 @@ module PulpGemClient
182
182
  :'proxy_password',
183
183
  :'username',
184
184
  :'password',
185
- :'download_concurrency',
186
185
  :'max_retries',
187
186
  :'total_timeout',
188
187
  :'connect_timeout',
189
188
  :'sock_connect_timeout',
190
189
  :'sock_read_timeout',
190
+ :'download_concurrency',
191
191
  :'rate_limit',
192
192
  ])
193
193
  end
@@ -215,6 +215,16 @@ module PulpGemClient
215
215
  self.url = attributes[:'url']
216
216
  end
217
217
 
218
+ if attributes.key?(:'pulp_labels')
219
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
220
+ self.pulp_labels = value
221
+ end
222
+ end
223
+
224
+ if attributes.key?(:'policy')
225
+ self.policy = attributes[:'policy']
226
+ end
227
+
218
228
  if attributes.key?(:'ca_cert')
219
229
  self.ca_cert = attributes[:'ca_cert']
220
230
  end
@@ -251,24 +261,10 @@ module PulpGemClient
251
261
  self.password = attributes[:'password']
252
262
  end
253
263
 
254
- if attributes.key?(:'pulp_labels')
255
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
256
- self.pulp_labels = value
257
- end
258
- end
259
-
260
- if attributes.key?(:'download_concurrency')
261
- self.download_concurrency = attributes[:'download_concurrency']
262
- end
263
-
264
264
  if attributes.key?(:'max_retries')
265
265
  self.max_retries = attributes[:'max_retries']
266
266
  end
267
267
 
268
- if attributes.key?(:'policy')
269
- self.policy = attributes[:'policy']
270
- end
271
-
272
268
  if attributes.key?(:'total_timeout')
273
269
  self.total_timeout = attributes[:'total_timeout']
274
270
  end
@@ -291,6 +287,10 @@ module PulpGemClient
291
287
  end
292
288
  end
293
289
 
290
+ if attributes.key?(:'download_concurrency')
291
+ self.download_concurrency = attributes[:'download_concurrency']
292
+ end
293
+
294
294
  if attributes.key?(:'rate_limit')
295
295
  self.rate_limit = attributes[:'rate_limit']
296
296
  end
@@ -375,6 +375,10 @@ module PulpGemClient
375
375
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
376
376
  end
377
377
 
378
+ if !@download_concurrency.nil? && @download_concurrency < 1
379
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
380
+ end
381
+
378
382
  invalid_properties
379
383
  end
380
384
 
@@ -396,6 +400,7 @@ module PulpGemClient
396
400
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
397
401
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
398
402
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
403
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
399
404
  true
400
405
  end
401
406
 
@@ -547,6 +552,16 @@ module PulpGemClient
547
552
  @sock_read_timeout = sock_read_timeout
548
553
  end
549
554
 
555
+ # Custom attribute writer method with validation
556
+ # @param [Object] download_concurrency Value to be assigned
557
+ def download_concurrency=(download_concurrency)
558
+ if !download_concurrency.nil? && download_concurrency < 1
559
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
560
+ end
561
+
562
+ @download_concurrency = download_concurrency
563
+ end
564
+
550
565
  # Checks equality by comparing each attribute.
551
566
  # @param [Object] Object to be compared
552
567
  def ==(o)
@@ -554,6 +569,8 @@ module PulpGemClient
554
569
  self.class == o.class &&
555
570
  name == o.name &&
556
571
  url == o.url &&
572
+ pulp_labels == o.pulp_labels &&
573
+ policy == o.policy &&
557
574
  ca_cert == o.ca_cert &&
558
575
  client_cert == o.client_cert &&
559
576
  client_key == o.client_key &&
@@ -563,15 +580,13 @@ module PulpGemClient
563
580
  proxy_password == o.proxy_password &&
564
581
  username == o.username &&
565
582
  password == o.password &&
566
- pulp_labels == o.pulp_labels &&
567
- download_concurrency == o.download_concurrency &&
568
583
  max_retries == o.max_retries &&
569
- policy == o.policy &&
570
584
  total_timeout == o.total_timeout &&
571
585
  connect_timeout == o.connect_timeout &&
572
586
  sock_connect_timeout == o.sock_connect_timeout &&
573
587
  sock_read_timeout == o.sock_read_timeout &&
574
588
  headers == o.headers &&
589
+ download_concurrency == o.download_concurrency &&
575
590
  rate_limit == o.rate_limit &&
576
591
  prereleases == o.prereleases &&
577
592
  includes == o.includes &&
@@ -587,7 +602,7 @@ module PulpGemClient
587
602
  # Calculates hash code according to all attributes.
588
603
  # @return [Integer] Hash code
589
604
  def hash
590
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, prereleases, includes, excludes].hash
605
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, prereleases, includes, excludes].hash
591
606
  end
592
607
 
593
608
  # Builds the object from hash
@@ -27,6 +27,9 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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
@@ -25,12 +25,16 @@ module PulpGemClient
25
25
  # A repository version whose content will be used as the initial set of content for the new repository version
26
26
  attr_accessor :base_version
27
27
 
28
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
29
+ attr_accessor :overwrite
30
+
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
31
34
  :'add_content_units' => :'add_content_units',
32
35
  :'remove_content_units' => :'remove_content_units',
33
- :'base_version' => :'base_version'
36
+ :'base_version' => :'base_version',
37
+ :'overwrite' => :'overwrite'
34
38
  }
35
39
  end
36
40
 
@@ -44,7 +48,8 @@ module PulpGemClient
44
48
  {
45
49
  :'add_content_units' => :'Array<String>',
46
50
  :'remove_content_units' => :'Array<String>',
47
- :'base_version' => :'String'
51
+ :'base_version' => :'String',
52
+ :'overwrite' => :'Boolean'
48
53
  }
49
54
  end
50
55
 
@@ -84,6 +89,12 @@ module PulpGemClient
84
89
  if attributes.key?(:'base_version')
85
90
  self.base_version = attributes[:'base_version']
86
91
  end
92
+
93
+ if attributes.key?(:'overwrite')
94
+ self.overwrite = attributes[:'overwrite']
95
+ else
96
+ self.overwrite = true
97
+ end
87
98
  end
88
99
 
89
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -108,7 +119,8 @@ module PulpGemClient
108
119
  self.class == o.class &&
109
120
  add_content_units == o.add_content_units &&
110
121
  remove_content_units == o.remove_content_units &&
111
- base_version == o.base_version
122
+ base_version == o.base_version &&
123
+ overwrite == o.overwrite
112
124
  end
113
125
 
114
126
  # @see the `==` method
@@ -120,7 +132,7 @@ module PulpGemClient
120
132
  # Calculates hash code according to all attributes.
121
133
  # @return [Integer] Hash code
122
134
  def hash
123
- [add_content_units, remove_content_units, base_version].hash
135
+ [add_content_units, remove_content_units, base_version, overwrite].hash
124
136
  end
125
137
 
126
138
  # Builds the object from hash
@@ -89,11 +89,6 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
14
- VERSION = '0.7.5'
14
+ VERSION = '0.7.6'
15
15
  end
@@ -38,6 +38,7 @@ describe 'ContentGemApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [String] :artifact Artifact file representing the physical content
43
44
  # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
@@ -65,9 +66,9 @@ describe 'ContentGemApi' do
65
66
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
66
67
  # @option opts [String] :pulp_label_select Filter labels by search string
67
68
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
68
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
69
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
70
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
69
+ # @option opts [String] :repository_version
70
+ # @option opts [String] :repository_version_added
71
+ # @option opts [String] :repository_version_removed
71
72
  # @option opts [String] :version Filter results where version matches value
72
73
  # @option opts [Array<String>] :fields A list of fields to include in the response.
73
74
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -99,8 +99,8 @@ describe 'DistributionsGemApi' do
99
99
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
100
  # @option opts [String] :pulp_label_select Filter labels by search string
101
101
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
102
- # @option opts [String] :repository Filter results where repository matches value
103
- # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
102
+ # @option opts [String] :repository
103
+ # @option opts [Array<String>] :repository__in
104
104
  # @option opts [String] :with_content Filter distributions based on the content served by them
105
105
  # @option opts [Array<String>] :fields A list of fields to include in the response.
106
106
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -95,7 +95,7 @@ describe 'PublicationsGemApi' do
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
96
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
97
97
  # @option opts [String] :repository Repository referenced by HREF/PRN
98
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
98
+ # @option opts [String] :repository_version
99
99
  # @option opts [Array<String>] :fields A list of fields to include in the response.
100
100
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
101
101
  # @return [PaginatedgemGemPublicationResponseList]
@@ -89,13 +89,21 @@ describe 'RepositoriesGemApi' do
89
89
  # @option opts [String] :name__regex Filter results where name matches regex value
90
90
  # @option opts [String] :name__startswith Filter results where name starts with value
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @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)
92
+ # @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)
93
93
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
96
  # @option opts [String] :pulp_label_select Filter labels by search string
97
97
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
98
- # @option opts [String] :remote Foreign Key referenced by HREF
98
+ # @option opts [String] :remote
99
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
100
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
101
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
102
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
103
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
104
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
105
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
106
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
99
107
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
100
108
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
101
109
  # @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 PulpGemClient::GemGemDistributionResponse 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 PulpGemClient::GemGemDistributionResponse 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 "publication"' 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 PulpGemClient::GemGemDistribution 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 "publication"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/