pulp_ansible_client 0.22.8 → 0.22.10

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleGitRemote.md +26 -26
  6. data/docs/AnsibleGitRemoteResponse.md +29 -29
  7. data/docs/AnsibleRoleResponse.md +5 -5
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/PatchedansibleGitRemote.md +26 -26
  10. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  11. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  12. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  13. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  14. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  15. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +244 -244
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +147 -147
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -18
  20. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +235 -235
  22. data/lib/pulp_ansible_client/version.rb +1 -1
  23. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  24. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  25. data/spec/models/ansible_collection_version_spec.rb +3 -3
  26. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  27. data/spec/models/ansible_git_remote_spec.rb +19 -19
  28. data/spec/models/ansible_role_response_spec.rb +5 -5
  29. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  30. metadata +128 -128
@@ -15,63 +15,63 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
19
+ attr_accessor :sock_connect_timeout
20
+
18
21
  # Timestamp of the most recent update of the remote.
19
22
  attr_accessor :pulp_last_updated
20
23
 
21
- attr_accessor :pulp_labels
24
+ # List of hidden (write only) fields
25
+ attr_accessor :hidden_fields
22
26
 
23
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
24
- attr_accessor :sock_read_timeout
27
+ # The Pulp Resource Name (PRN).
28
+ attr_accessor :prn
29
+
30
+ # A unique name for this remote.
31
+ attr_accessor :name
32
+
33
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
+ attr_accessor :connect_timeout
35
+
36
+ # The proxy URL. Format: scheme://host:port
37
+ attr_accessor :proxy_url
25
38
 
26
39
  # Headers for aiohttp.Clientsession
27
40
  attr_accessor :headers
28
41
 
29
- # The URL of an external content source.
30
- attr_accessor :url
31
-
32
42
  # A PEM encoded client certificate used for authentication.
33
43
  attr_accessor :client_cert
34
44
 
35
- # If True, TLS peer validation must be performed.
36
- attr_accessor :tls_validation
37
-
38
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
- attr_accessor :sock_connect_timeout
40
-
41
- # The Pulp Resource Name (PRN).
42
- attr_accessor :prn
45
+ # Limits requests per second for each concurrent downloader
46
+ attr_accessor :rate_limit
43
47
 
44
- # Timestamp of creation.
45
- attr_accessor :pulp_created
48
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
49
+ attr_accessor :sock_read_timeout
46
50
 
47
51
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
48
52
  attr_accessor :ca_cert
49
53
 
50
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
51
- attr_accessor :connect_timeout
52
-
53
- # A unique name for this remote.
54
- attr_accessor :name
55
-
56
- # The proxy URL. Format: scheme://host:port
57
- attr_accessor :proxy_url
54
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
55
+ attr_accessor :max_retries
58
56
 
59
- attr_accessor :pulp_href
57
+ attr_accessor :pulp_labels
60
58
 
61
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
60
  attr_accessor :total_timeout
63
61
 
64
- # Limits requests per second for each concurrent downloader
65
- attr_accessor :rate_limit
66
-
67
- # List of hidden (write only) fields
68
- attr_accessor :hidden_fields
69
-
70
62
  # Total number of simultaneous connections. If not set then the default value will be used.
71
63
  attr_accessor :download_concurrency
72
64
 
73
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
74
- attr_accessor :max_retries
65
+ attr_accessor :pulp_href
66
+
67
+ # Timestamp of creation.
68
+ attr_accessor :pulp_created
69
+
70
+ # If True, TLS peer validation must be performed.
71
+ attr_accessor :tls_validation
72
+
73
+ # The URL of an external content source.
74
+ attr_accessor :url
75
75
 
76
76
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
77
77
  attr_accessor :metadata_only
@@ -82,26 +82,26 @@ module PulpAnsibleClient
82
82
  # Attribute mapping from ruby-style variable name to JSON key.
83
83
  def self.attribute_map
84
84
  {
85
- :'pulp_last_updated' => :'pulp_last_updated',
86
- :'pulp_labels' => :'pulp_labels',
87
- :'sock_read_timeout' => :'sock_read_timeout',
88
- :'headers' => :'headers',
89
- :'url' => :'url',
90
- :'client_cert' => :'client_cert',
91
- :'tls_validation' => :'tls_validation',
92
85
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
+ :'pulp_last_updated' => :'pulp_last_updated',
87
+ :'hidden_fields' => :'hidden_fields',
93
88
  :'prn' => :'prn',
94
- :'pulp_created' => :'pulp_created',
95
- :'ca_cert' => :'ca_cert',
96
- :'connect_timeout' => :'connect_timeout',
97
89
  :'name' => :'name',
90
+ :'connect_timeout' => :'connect_timeout',
98
91
  :'proxy_url' => :'proxy_url',
99
- :'pulp_href' => :'pulp_href',
100
- :'total_timeout' => :'total_timeout',
92
+ :'headers' => :'headers',
93
+ :'client_cert' => :'client_cert',
101
94
  :'rate_limit' => :'rate_limit',
102
- :'hidden_fields' => :'hidden_fields',
103
- :'download_concurrency' => :'download_concurrency',
95
+ :'sock_read_timeout' => :'sock_read_timeout',
96
+ :'ca_cert' => :'ca_cert',
104
97
  :'max_retries' => :'max_retries',
98
+ :'pulp_labels' => :'pulp_labels',
99
+ :'total_timeout' => :'total_timeout',
100
+ :'download_concurrency' => :'download_concurrency',
101
+ :'pulp_href' => :'pulp_href',
102
+ :'pulp_created' => :'pulp_created',
103
+ :'tls_validation' => :'tls_validation',
104
+ :'url' => :'url',
105
105
  :'metadata_only' => :'metadata_only',
106
106
  :'git_ref' => :'git_ref'
107
107
  }
@@ -110,26 +110,26 @@ module PulpAnsibleClient
110
110
  # Attribute type mapping.
111
111
  def self.openapi_types
112
112
  {
113
- :'pulp_last_updated' => :'DateTime',
114
- :'pulp_labels' => :'Hash<String, String>',
115
- :'sock_read_timeout' => :'Float',
116
- :'headers' => :'Array<Object>',
117
- :'url' => :'String',
118
- :'client_cert' => :'String',
119
- :'tls_validation' => :'Boolean',
120
113
  :'sock_connect_timeout' => :'Float',
114
+ :'pulp_last_updated' => :'DateTime',
115
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
121
116
  :'prn' => :'String',
122
- :'pulp_created' => :'DateTime',
123
- :'ca_cert' => :'String',
124
- :'connect_timeout' => :'Float',
125
117
  :'name' => :'String',
118
+ :'connect_timeout' => :'Float',
126
119
  :'proxy_url' => :'String',
127
- :'pulp_href' => :'String',
128
- :'total_timeout' => :'Float',
120
+ :'headers' => :'Array<Object>',
121
+ :'client_cert' => :'String',
129
122
  :'rate_limit' => :'Integer',
130
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
131
- :'download_concurrency' => :'Integer',
123
+ :'sock_read_timeout' => :'Float',
124
+ :'ca_cert' => :'String',
132
125
  :'max_retries' => :'Integer',
126
+ :'pulp_labels' => :'Hash<String, String>',
127
+ :'total_timeout' => :'Float',
128
+ :'download_concurrency' => :'Integer',
129
+ :'pulp_href' => :'String',
130
+ :'pulp_created' => :'DateTime',
131
+ :'tls_validation' => :'Boolean',
132
+ :'url' => :'String',
133
133
  :'metadata_only' => :'Boolean',
134
134
  :'git_ref' => :'String'
135
135
  }
@@ -138,16 +138,16 @@ module PulpAnsibleClient
138
138
  # List of attributes with nullable: true
139
139
  def self.openapi_nullable
140
140
  Set.new([
141
- :'sock_read_timeout',
142
- :'client_cert',
143
141
  :'sock_connect_timeout',
144
- :'ca_cert',
145
142
  :'connect_timeout',
146
143
  :'proxy_url',
147
- :'total_timeout',
144
+ :'client_cert',
148
145
  :'rate_limit',
149
- :'download_concurrency',
146
+ :'sock_read_timeout',
147
+ :'ca_cert',
150
148
  :'max_retries',
149
+ :'total_timeout',
150
+ :'download_concurrency',
151
151
  ])
152
152
  end
153
153
 
@@ -166,90 +166,90 @@ module PulpAnsibleClient
166
166
  h[k.to_sym] = v
167
167
  }
168
168
 
169
+ if attributes.key?(:'sock_connect_timeout')
170
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
171
+ end
172
+
169
173
  if attributes.key?(:'pulp_last_updated')
170
174
  self.pulp_last_updated = attributes[:'pulp_last_updated']
171
175
  end
172
176
 
173
- if attributes.key?(:'pulp_labels')
174
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
175
- self.pulp_labels = value
177
+ if attributes.key?(:'hidden_fields')
178
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
179
+ self.hidden_fields = value
176
180
  end
177
181
  end
178
182
 
179
- if attributes.key?(:'sock_read_timeout')
180
- self.sock_read_timeout = attributes[:'sock_read_timeout']
183
+ if attributes.key?(:'prn')
184
+ self.prn = attributes[:'prn']
181
185
  end
182
186
 
183
- if attributes.key?(:'headers')
184
- if (value = attributes[:'headers']).is_a?(Array)
185
- self.headers = value
186
- end
187
+ if attributes.key?(:'name')
188
+ self.name = attributes[:'name']
187
189
  end
188
190
 
189
- if attributes.key?(:'url')
190
- self.url = attributes[:'url']
191
+ if attributes.key?(:'connect_timeout')
192
+ self.connect_timeout = attributes[:'connect_timeout']
191
193
  end
192
194
 
193
- if attributes.key?(:'client_cert')
194
- self.client_cert = attributes[:'client_cert']
195
+ if attributes.key?(:'proxy_url')
196
+ self.proxy_url = attributes[:'proxy_url']
195
197
  end
196
198
 
197
- if attributes.key?(:'tls_validation')
198
- self.tls_validation = attributes[:'tls_validation']
199
+ if attributes.key?(:'headers')
200
+ if (value = attributes[:'headers']).is_a?(Array)
201
+ self.headers = value
202
+ end
199
203
  end
200
204
 
201
- if attributes.key?(:'sock_connect_timeout')
202
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
205
+ if attributes.key?(:'client_cert')
206
+ self.client_cert = attributes[:'client_cert']
203
207
  end
204
208
 
205
- if attributes.key?(:'prn')
206
- self.prn = attributes[:'prn']
209
+ if attributes.key?(:'rate_limit')
210
+ self.rate_limit = attributes[:'rate_limit']
207
211
  end
208
212
 
209
- if attributes.key?(:'pulp_created')
210
- self.pulp_created = attributes[:'pulp_created']
213
+ if attributes.key?(:'sock_read_timeout')
214
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
211
215
  end
212
216
 
213
217
  if attributes.key?(:'ca_cert')
214
218
  self.ca_cert = attributes[:'ca_cert']
215
219
  end
216
220
 
217
- if attributes.key?(:'connect_timeout')
218
- self.connect_timeout = attributes[:'connect_timeout']
219
- end
220
-
221
- if attributes.key?(:'name')
222
- self.name = attributes[:'name']
223
- end
224
-
225
- if attributes.key?(:'proxy_url')
226
- self.proxy_url = attributes[:'proxy_url']
221
+ if attributes.key?(:'max_retries')
222
+ self.max_retries = attributes[:'max_retries']
227
223
  end
228
224
 
229
- if attributes.key?(:'pulp_href')
230
- self.pulp_href = attributes[:'pulp_href']
225
+ if attributes.key?(:'pulp_labels')
226
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
227
+ self.pulp_labels = value
228
+ end
231
229
  end
232
230
 
233
231
  if attributes.key?(:'total_timeout')
234
232
  self.total_timeout = attributes[:'total_timeout']
235
233
  end
236
234
 
237
- if attributes.key?(:'rate_limit')
238
- self.rate_limit = attributes[:'rate_limit']
235
+ if attributes.key?(:'download_concurrency')
236
+ self.download_concurrency = attributes[:'download_concurrency']
239
237
  end
240
238
 
241
- if attributes.key?(:'hidden_fields')
242
- if (value = attributes[:'hidden_fields']).is_a?(Array)
243
- self.hidden_fields = value
244
- end
239
+ if attributes.key?(:'pulp_href')
240
+ self.pulp_href = attributes[:'pulp_href']
245
241
  end
246
242
 
247
- if attributes.key?(:'download_concurrency')
248
- self.download_concurrency = attributes[:'download_concurrency']
243
+ if attributes.key?(:'pulp_created')
244
+ self.pulp_created = attributes[:'pulp_created']
249
245
  end
250
246
 
251
- if attributes.key?(:'max_retries')
252
- self.max_retries = attributes[:'max_retries']
247
+ if attributes.key?(:'tls_validation')
248
+ self.tls_validation = attributes[:'tls_validation']
249
+ end
250
+
251
+ if attributes.key?(:'url')
252
+ self.url = attributes[:'url']
253
253
  end
254
254
 
255
255
  if attributes.key?(:'metadata_only')
@@ -265,24 +265,20 @@ module PulpAnsibleClient
265
265
  # @return Array for valid properties with the reasons
266
266
  def list_invalid_properties
267
267
  invalid_properties = Array.new
268
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
269
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
270
- end
271
-
272
- if @url.nil?
273
- invalid_properties.push('invalid value for "url", url cannot be nil.')
274
- end
275
-
276
268
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
269
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
278
270
  end
279
271
 
272
+ if @name.nil?
273
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
274
+ end
275
+
280
276
  if !@connect_timeout.nil? && @connect_timeout < 0.0
281
277
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
282
278
  end
283
279
 
284
- if @name.nil?
285
- invalid_properties.push('invalid value for "name", name cannot be nil.')
280
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
281
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
286
282
  end
287
283
 
288
284
  if !@total_timeout.nil? && @total_timeout < 0.0
@@ -293,32 +289,26 @@ module PulpAnsibleClient
293
289
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
294
290
  end
295
291
 
292
+ if @url.nil?
293
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
294
+ end
295
+
296
296
  invalid_properties
297
297
  end
298
298
 
299
299
  # Check to see if the all the properties in the model are valid
300
300
  # @return true if the model is valid
301
301
  def valid?
302
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
303
- return false if @url.nil?
304
302
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
305
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
306
303
  return false if @name.nil?
304
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
305
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
307
306
  return false if !@total_timeout.nil? && @total_timeout < 0.0
308
307
  return false if !@download_concurrency.nil? && @download_concurrency < 1
308
+ return false if @url.nil?
309
309
  true
310
310
  end
311
311
 
312
- # Custom attribute writer method with validation
313
- # @param [Object] sock_read_timeout Value to be assigned
314
- def sock_read_timeout=(sock_read_timeout)
315
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
316
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
317
- end
318
-
319
- @sock_read_timeout = sock_read_timeout
320
- end
321
-
322
312
  # Custom attribute writer method with validation
323
313
  # @param [Object] sock_connect_timeout Value to be assigned
324
314
  def sock_connect_timeout=(sock_connect_timeout)
@@ -339,6 +329,16 @@ module PulpAnsibleClient
339
329
  @connect_timeout = connect_timeout
340
330
  end
341
331
 
332
+ # Custom attribute writer method with validation
333
+ # @param [Object] sock_read_timeout Value to be assigned
334
+ def sock_read_timeout=(sock_read_timeout)
335
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
336
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
337
+ end
338
+
339
+ @sock_read_timeout = sock_read_timeout
340
+ end
341
+
342
342
  # Custom attribute writer method with validation
343
343
  # @param [Object] total_timeout Value to be assigned
344
344
  def total_timeout=(total_timeout)
@@ -364,26 +364,26 @@ module PulpAnsibleClient
364
364
  def ==(o)
365
365
  return true if self.equal?(o)
366
366
  self.class == o.class &&
367
- pulp_last_updated == o.pulp_last_updated &&
368
- pulp_labels == o.pulp_labels &&
369
- sock_read_timeout == o.sock_read_timeout &&
370
- headers == o.headers &&
371
- url == o.url &&
372
- client_cert == o.client_cert &&
373
- tls_validation == o.tls_validation &&
374
367
  sock_connect_timeout == o.sock_connect_timeout &&
368
+ pulp_last_updated == o.pulp_last_updated &&
369
+ hidden_fields == o.hidden_fields &&
375
370
  prn == o.prn &&
376
- pulp_created == o.pulp_created &&
377
- ca_cert == o.ca_cert &&
378
- connect_timeout == o.connect_timeout &&
379
371
  name == o.name &&
372
+ connect_timeout == o.connect_timeout &&
380
373
  proxy_url == o.proxy_url &&
381
- pulp_href == o.pulp_href &&
382
- total_timeout == o.total_timeout &&
374
+ headers == o.headers &&
375
+ client_cert == o.client_cert &&
383
376
  rate_limit == o.rate_limit &&
384
- hidden_fields == o.hidden_fields &&
385
- download_concurrency == o.download_concurrency &&
377
+ sock_read_timeout == o.sock_read_timeout &&
378
+ ca_cert == o.ca_cert &&
386
379
  max_retries == o.max_retries &&
380
+ pulp_labels == o.pulp_labels &&
381
+ total_timeout == o.total_timeout &&
382
+ download_concurrency == o.download_concurrency &&
383
+ pulp_href == o.pulp_href &&
384
+ pulp_created == o.pulp_created &&
385
+ tls_validation == o.tls_validation &&
386
+ url == o.url &&
387
387
  metadata_only == o.metadata_only &&
388
388
  git_ref == o.git_ref
389
389
  end
@@ -397,7 +397,7 @@ module PulpAnsibleClient
397
397
  # Calculates hash code according to all attributes.
398
398
  # @return [Integer] Hash code
399
399
  def hash
400
- [pulp_last_updated, pulp_labels, sock_read_timeout, headers, url, client_cert, tls_validation, sock_connect_timeout, prn, pulp_created, ca_cert, connect_timeout, name, proxy_url, pulp_href, total_timeout, rate_limit, hidden_fields, download_concurrency, max_retries, metadata_only, git_ref].hash
400
+ [sock_connect_timeout, pulp_last_updated, hidden_fields, prn, name, connect_timeout, proxy_url, headers, client_cert, rate_limit, sock_read_timeout, ca_cert, max_retries, pulp_labels, total_timeout, download_concurrency, pulp_href, pulp_created, tls_validation, url, metadata_only, git_ref].hash
401
401
  end
402
402
 
403
403
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
20
+
18
21
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
19
22
  attr_accessor :pulp_last_updated
20
23
 
21
- # Artifact file representing the physical content
22
- attr_accessor :artifact
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
23
26
 
24
27
  attr_accessor :pulp_href
25
28
 
26
29
  # Timestamp of creation.
27
30
  attr_accessor :pulp_created
28
31
 
29
- # The Pulp Resource Name (PRN).
30
- attr_accessor :prn
31
-
32
32
  attr_accessor :version
33
33
 
34
34
  attr_accessor :name
@@ -38,11 +38,11 @@ module PulpAnsibleClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_last_updated' => :'pulp_last_updated',
42
41
  :'artifact' => :'artifact',
42
+ :'pulp_last_updated' => :'pulp_last_updated',
43
+ :'prn' => :'prn',
43
44
  :'pulp_href' => :'pulp_href',
44
45
  :'pulp_created' => :'pulp_created',
45
- :'prn' => :'prn',
46
46
  :'version' => :'version',
47
47
  :'name' => :'name',
48
48
  :'namespace' => :'namespace'
@@ -52,11 +52,11 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_last_updated' => :'DateTime',
56
55
  :'artifact' => :'String',
56
+ :'pulp_last_updated' => :'DateTime',
57
+ :'prn' => :'String',
57
58
  :'pulp_href' => :'String',
58
59
  :'pulp_created' => :'DateTime',
59
- :'prn' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,12 +84,16 @@ module PulpAnsibleClient
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
+ if attributes.key?(:'artifact')
88
+ self.artifact = attributes[:'artifact']
89
+ end
90
+
87
91
  if attributes.key?(:'pulp_last_updated')
88
92
  self.pulp_last_updated = attributes[:'pulp_last_updated']
89
93
  end
90
94
 
91
- if attributes.key?(:'artifact')
92
- self.artifact = attributes[:'artifact']
95
+ if attributes.key?(:'prn')
96
+ self.prn = attributes[:'prn']
93
97
  end
94
98
 
95
99
  if attributes.key?(:'pulp_href')
@@ -100,10 +104,6 @@ module PulpAnsibleClient
100
104
  self.pulp_created = attributes[:'pulp_created']
101
105
  end
102
106
 
103
- if attributes.key?(:'prn')
104
- self.prn = attributes[:'prn']
105
- end
106
-
107
107
  if attributes.key?(:'version')
108
108
  self.version = attributes[:'version']
109
109
  end
@@ -155,11 +155,11 @@ module PulpAnsibleClient
155
155
  def ==(o)
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
- pulp_last_updated == o.pulp_last_updated &&
159
158
  artifact == o.artifact &&
159
+ pulp_last_updated == o.pulp_last_updated &&
160
+ prn == o.prn &&
160
161
  pulp_href == o.pulp_href &&
161
162
  pulp_created == o.pulp_created &&
162
- prn == o.prn &&
163
163
  version == o.version &&
164
164
  name == o.name &&
165
165
  namespace == o.namespace
@@ -174,7 +174,7 @@ module PulpAnsibleClient
174
174
  # Calculates hash code according to all attributes.
175
175
  # @return [Integer] Hash code
176
176
  def hash
177
- [pulp_last_updated, artifact, pulp_href, pulp_created, prn, version, name, namespace].hash
177
+ [artifact, pulp_last_updated, prn, pulp_href, pulp_created, version, name, namespace].hash
178
178
  end
179
179
 
180
180
  # Builds the object from hash
@@ -126,7 +126,7 @@ module PulpAnsibleClient
126
126
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
127
127
  end
128
128
 
129
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
129
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
130
130
  if !@name.nil? && @name !~ pattern
131
131
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
132
132
  end
@@ -151,7 +151,7 @@ module PulpAnsibleClient
151
151
  def valid?
152
152
  return false if !@name.nil? && @name.to_s.length > 64
153
153
  return false if !@name.nil? && @name.to_s.length < 3
154
- return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
154
+ return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
155
155
  return false if !@company.nil? && @company.to_s.length > 64
156
156
  return false if !@email.nil? && @email.to_s.length > 256
157
157
  return false if !@description.nil? && @description.to_s.length > 256
@@ -169,7 +169,7 @@ module PulpAnsibleClient
169
169
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
170
170
  end
171
171
 
172
- pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
172
+ pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
173
173
  if !name.nil? && name !~ pattern
174
174
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
175
175
  end