pulp_ansible_client 0.22.8 → 0.22.9

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 +5 -5
  5. data/docs/AnsibleGitRemote.md +26 -26
  6. data/docs/AnsibleGitRemoteResponse.md +28 -28
  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 +18 -18
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +159 -159
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  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 +233 -233
  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 +5 -5
  25. data/spec/models/ansible_collection_version_spec.rb +3 -3
  26. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  27. data/spec/models/ansible_git_remote_spec.rb +20 -20
  28. data/spec/models/ansible_role_response_spec.rb +4 -4
  29. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  30. metadata +129 -129
@@ -15,63 +15,63 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of the most recent update of the remote.
19
- attr_accessor :pulp_last_updated
18
+ # A PEM encoded client certificate used for authentication.
19
+ attr_accessor :client_cert
20
+
21
+ # Total number of simultaneous connections. If not set then the default value will be used.
22
+ attr_accessor :download_concurrency
23
+
24
+ # The URL of an external content source.
25
+ attr_accessor :url
26
+
27
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
+ attr_accessor :ca_cert
29
+
30
+ # The proxy URL. Format: scheme://host:port
31
+ attr_accessor :proxy_url
20
32
 
21
33
  attr_accessor :pulp_labels
22
34
 
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
35
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
36
+ attr_accessor :connect_timeout
25
37
 
26
- # Headers for aiohttp.Clientsession
27
- attr_accessor :headers
38
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
+ attr_accessor :total_timeout
28
40
 
29
- # The URL of an external content source.
30
- attr_accessor :url
41
+ # Limits requests per second for each concurrent downloader
42
+ attr_accessor :rate_limit
31
43
 
32
- # A PEM encoded client certificate used for authentication.
33
- attr_accessor :client_cert
44
+ # 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.
45
+ attr_accessor :sock_connect_timeout
34
46
 
35
47
  # If True, TLS peer validation must be performed.
36
48
  attr_accessor :tls_validation
37
49
 
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
50
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
51
+ attr_accessor :max_retries
40
52
 
41
53
  # The Pulp Resource Name (PRN).
42
54
  attr_accessor :prn
43
55
 
56
+ # Timestamp of the most recent update of the remote.
57
+ attr_accessor :pulp_last_updated
58
+
44
59
  # Timestamp of creation.
45
60
  attr_accessor :pulp_created
46
61
 
47
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
48
- attr_accessor :ca_cert
49
-
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
58
-
59
- attr_accessor :pulp_href
60
-
61
- # 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
- attr_accessor :total_timeout
62
+ # 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.
63
+ attr_accessor :sock_read_timeout
63
64
 
64
- # Limits requests per second for each concurrent downloader
65
- attr_accessor :rate_limit
65
+ # Headers for aiohttp.Clientsession
66
+ attr_accessor :headers
66
67
 
67
68
  # List of hidden (write only) fields
68
69
  attr_accessor :hidden_fields
69
70
 
70
- # Total number of simultaneous connections. If not set then the default value will be used.
71
- attr_accessor :download_concurrency
71
+ attr_accessor :pulp_href
72
72
 
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
73
+ # A unique name for this remote.
74
+ attr_accessor :name
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
85
  :'client_cert' => :'client_cert',
91
- :'tls_validation' => :'tls_validation',
92
- :'sock_connect_timeout' => :'sock_connect_timeout',
93
- :'prn' => :'prn',
94
- :'pulp_created' => :'pulp_created',
86
+ :'download_concurrency' => :'download_concurrency',
87
+ :'url' => :'url',
95
88
  :'ca_cert' => :'ca_cert',
96
- :'connect_timeout' => :'connect_timeout',
97
- :'name' => :'name',
98
89
  :'proxy_url' => :'proxy_url',
99
- :'pulp_href' => :'pulp_href',
90
+ :'pulp_labels' => :'pulp_labels',
91
+ :'connect_timeout' => :'connect_timeout',
100
92
  :'total_timeout' => :'total_timeout',
101
93
  :'rate_limit' => :'rate_limit',
102
- :'hidden_fields' => :'hidden_fields',
103
- :'download_concurrency' => :'download_concurrency',
94
+ :'sock_connect_timeout' => :'sock_connect_timeout',
95
+ :'tls_validation' => :'tls_validation',
104
96
  :'max_retries' => :'max_retries',
97
+ :'prn' => :'prn',
98
+ :'pulp_last_updated' => :'pulp_last_updated',
99
+ :'pulp_created' => :'pulp_created',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
101
+ :'headers' => :'headers',
102
+ :'hidden_fields' => :'hidden_fields',
103
+ :'pulp_href' => :'pulp_href',
104
+ :'name' => :'name',
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
113
  :'client_cert' => :'String',
119
- :'tls_validation' => :'Boolean',
120
- :'sock_connect_timeout' => :'Float',
121
- :'prn' => :'String',
122
- :'pulp_created' => :'DateTime',
114
+ :'download_concurrency' => :'Integer',
115
+ :'url' => :'String',
123
116
  :'ca_cert' => :'String',
124
- :'connect_timeout' => :'Float',
125
- :'name' => :'String',
126
117
  :'proxy_url' => :'String',
127
- :'pulp_href' => :'String',
118
+ :'pulp_labels' => :'Hash<String, String>',
119
+ :'connect_timeout' => :'Float',
128
120
  :'total_timeout' => :'Float',
129
121
  :'rate_limit' => :'Integer',
130
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
131
- :'download_concurrency' => :'Integer',
122
+ :'sock_connect_timeout' => :'Float',
123
+ :'tls_validation' => :'Boolean',
132
124
  :'max_retries' => :'Integer',
125
+ :'prn' => :'String',
126
+ :'pulp_last_updated' => :'DateTime',
127
+ :'pulp_created' => :'DateTime',
128
+ :'sock_read_timeout' => :'Float',
129
+ :'headers' => :'Array<Object>',
130
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
131
+ :'pulp_href' => :'String',
132
+ :'name' => :'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
141
  :'client_cert',
143
- :'sock_connect_timeout',
142
+ :'download_concurrency',
144
143
  :'ca_cert',
145
- :'connect_timeout',
146
144
  :'proxy_url',
145
+ :'connect_timeout',
147
146
  :'total_timeout',
148
147
  :'rate_limit',
149
- :'download_concurrency',
148
+ :'sock_connect_timeout',
150
149
  :'max_retries',
150
+ :'sock_read_timeout',
151
151
  ])
152
152
  end
153
153
 
@@ -166,76 +166,76 @@ module PulpAnsibleClient
166
166
  h[k.to_sym] = v
167
167
  }
168
168
 
169
- if attributes.key?(:'pulp_last_updated')
170
- self.pulp_last_updated = attributes[:'pulp_last_updated']
169
+ if attributes.key?(:'client_cert')
170
+ self.client_cert = attributes[:'client_cert']
171
171
  end
172
172
 
173
- if attributes.key?(:'pulp_labels')
174
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
175
- self.pulp_labels = value
176
- end
173
+ if attributes.key?(:'download_concurrency')
174
+ self.download_concurrency = attributes[:'download_concurrency']
177
175
  end
178
176
 
179
- if attributes.key?(:'sock_read_timeout')
180
- self.sock_read_timeout = attributes[:'sock_read_timeout']
177
+ if attributes.key?(:'url')
178
+ self.url = attributes[:'url']
181
179
  end
182
180
 
183
- if attributes.key?(:'headers')
184
- if (value = attributes[:'headers']).is_a?(Array)
185
- self.headers = value
186
- end
181
+ if attributes.key?(:'ca_cert')
182
+ self.ca_cert = attributes[:'ca_cert']
187
183
  end
188
184
 
189
- if attributes.key?(:'url')
190
- self.url = attributes[:'url']
185
+ if attributes.key?(:'proxy_url')
186
+ self.proxy_url = attributes[:'proxy_url']
191
187
  end
192
188
 
193
- if attributes.key?(:'client_cert')
194
- self.client_cert = attributes[:'client_cert']
189
+ if attributes.key?(:'pulp_labels')
190
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
191
+ self.pulp_labels = value
192
+ end
195
193
  end
196
194
 
197
- if attributes.key?(:'tls_validation')
198
- self.tls_validation = attributes[:'tls_validation']
195
+ if attributes.key?(:'connect_timeout')
196
+ self.connect_timeout = attributes[:'connect_timeout']
199
197
  end
200
198
 
201
- if attributes.key?(:'sock_connect_timeout')
202
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
199
+ if attributes.key?(:'total_timeout')
200
+ self.total_timeout = attributes[:'total_timeout']
203
201
  end
204
202
 
205
- if attributes.key?(:'prn')
206
- self.prn = attributes[:'prn']
203
+ if attributes.key?(:'rate_limit')
204
+ self.rate_limit = attributes[:'rate_limit']
207
205
  end
208
206
 
209
- if attributes.key?(:'pulp_created')
210
- self.pulp_created = attributes[:'pulp_created']
207
+ if attributes.key?(:'sock_connect_timeout')
208
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
211
209
  end
212
210
 
213
- if attributes.key?(:'ca_cert')
214
- self.ca_cert = attributes[:'ca_cert']
211
+ if attributes.key?(:'tls_validation')
212
+ self.tls_validation = attributes[:'tls_validation']
215
213
  end
216
214
 
217
- if attributes.key?(:'connect_timeout')
218
- self.connect_timeout = attributes[:'connect_timeout']
215
+ if attributes.key?(:'max_retries')
216
+ self.max_retries = attributes[:'max_retries']
219
217
  end
220
218
 
221
- if attributes.key?(:'name')
222
- self.name = attributes[:'name']
219
+ if attributes.key?(:'prn')
220
+ self.prn = attributes[:'prn']
223
221
  end
224
222
 
225
- if attributes.key?(:'proxy_url')
226
- self.proxy_url = attributes[:'proxy_url']
223
+ if attributes.key?(:'pulp_last_updated')
224
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
227
225
  end
228
226
 
229
- if attributes.key?(:'pulp_href')
230
- self.pulp_href = attributes[:'pulp_href']
227
+ if attributes.key?(:'pulp_created')
228
+ self.pulp_created = attributes[:'pulp_created']
231
229
  end
232
230
 
233
- if attributes.key?(:'total_timeout')
234
- self.total_timeout = attributes[:'total_timeout']
231
+ if attributes.key?(:'sock_read_timeout')
232
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
235
233
  end
236
234
 
237
- if attributes.key?(:'rate_limit')
238
- self.rate_limit = attributes[:'rate_limit']
235
+ if attributes.key?(:'headers')
236
+ if (value = attributes[:'headers']).is_a?(Array)
237
+ self.headers = value
238
+ end
239
239
  end
240
240
 
241
241
  if attributes.key?(:'hidden_fields')
@@ -244,12 +244,12 @@ module PulpAnsibleClient
244
244
  end
245
245
  end
246
246
 
247
- if attributes.key?(:'download_concurrency')
248
- self.download_concurrency = attributes[:'download_concurrency']
247
+ if attributes.key?(:'pulp_href')
248
+ self.pulp_href = attributes[:'pulp_href']
249
249
  end
250
250
 
251
- if attributes.key?(:'max_retries')
252
- self.max_retries = attributes[:'max_retries']
251
+ if attributes.key?(:'name')
252
+ self.name = attributes[:'name']
253
253
  end
254
254
 
255
255
  if attributes.key?(:'metadata_only')
@@ -265,32 +265,32 @@ 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.')
268
+ if !@download_concurrency.nil? && @download_concurrency < 1
269
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
270
270
  end
271
271
 
272
272
  if @url.nil?
273
273
  invalid_properties.push('invalid value for "url", url cannot be nil.')
274
274
  end
275
275
 
276
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
277
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
278
- end
279
-
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.')
286
- end
287
-
288
280
  if !@total_timeout.nil? && @total_timeout < 0.0
289
281
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
290
282
  end
291
283
 
292
- if !@download_concurrency.nil? && @download_concurrency < 1
293
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
284
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
285
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
286
+ end
287
+
288
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
289
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
290
+ end
291
+
292
+ if @name.nil?
293
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
294
294
  end
295
295
 
296
296
  invalid_properties
@@ -299,34 +299,24 @@ module PulpAnsibleClient
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
302
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
303
303
  return false if @url.nil?
304
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
305
304
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
306
- return false if @name.nil?
307
305
  return false if !@total_timeout.nil? && @total_timeout < 0.0
308
- return false if !@download_concurrency.nil? && @download_concurrency < 1
306
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
307
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
308
+ return false if @name.nil?
309
309
  true
310
310
  end
311
311
 
312
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
- # Custom attribute writer method with validation
323
- # @param [Object] sock_connect_timeout Value to be assigned
324
- def sock_connect_timeout=(sock_connect_timeout)
325
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
326
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
313
+ # @param [Object] download_concurrency Value to be assigned
314
+ def download_concurrency=(download_concurrency)
315
+ if !download_concurrency.nil? && download_concurrency < 1
316
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
327
317
  end
328
318
 
329
- @sock_connect_timeout = sock_connect_timeout
319
+ @download_concurrency = download_concurrency
330
320
  end
331
321
 
332
322
  # Custom attribute writer method with validation
@@ -350,13 +340,23 @@ module PulpAnsibleClient
350
340
  end
351
341
 
352
342
  # Custom attribute writer method with validation
353
- # @param [Object] download_concurrency Value to be assigned
354
- def download_concurrency=(download_concurrency)
355
- if !download_concurrency.nil? && download_concurrency < 1
356
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
343
+ # @param [Object] sock_connect_timeout Value to be assigned
344
+ def sock_connect_timeout=(sock_connect_timeout)
345
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
346
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
357
347
  end
358
348
 
359
- @download_concurrency = download_concurrency
349
+ @sock_connect_timeout = sock_connect_timeout
350
+ end
351
+
352
+ # Custom attribute writer method with validation
353
+ # @param [Object] sock_read_timeout Value to be assigned
354
+ def sock_read_timeout=(sock_read_timeout)
355
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
356
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
357
+ end
358
+
359
+ @sock_read_timeout = sock_read_timeout
360
360
  end
361
361
 
362
362
  # Checks equality by comparing each attribute.
@@ -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
367
  client_cert == o.client_cert &&
373
- tls_validation == o.tls_validation &&
374
- sock_connect_timeout == o.sock_connect_timeout &&
375
- prn == o.prn &&
376
- pulp_created == o.pulp_created &&
368
+ download_concurrency == o.download_concurrency &&
369
+ url == o.url &&
377
370
  ca_cert == o.ca_cert &&
378
- connect_timeout == o.connect_timeout &&
379
- name == o.name &&
380
371
  proxy_url == o.proxy_url &&
381
- pulp_href == o.pulp_href &&
372
+ pulp_labels == o.pulp_labels &&
373
+ connect_timeout == o.connect_timeout &&
382
374
  total_timeout == o.total_timeout &&
383
375
  rate_limit == o.rate_limit &&
384
- hidden_fields == o.hidden_fields &&
385
- download_concurrency == o.download_concurrency &&
376
+ sock_connect_timeout == o.sock_connect_timeout &&
377
+ tls_validation == o.tls_validation &&
386
378
  max_retries == o.max_retries &&
379
+ prn == o.prn &&
380
+ pulp_last_updated == o.pulp_last_updated &&
381
+ pulp_created == o.pulp_created &&
382
+ sock_read_timeout == o.sock_read_timeout &&
383
+ headers == o.headers &&
384
+ hidden_fields == o.hidden_fields &&
385
+ pulp_href == o.pulp_href &&
386
+ name == o.name &&
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
+ [client_cert, download_concurrency, url, ca_cert, proxy_url, pulp_labels, connect_timeout, total_timeout, rate_limit, sock_connect_timeout, tls_validation, max_retries, prn, pulp_last_updated, pulp_created, sock_read_timeout, headers, hidden_fields, pulp_href, name, metadata_only, git_ref].hash
401
401
  end
402
402
 
403
403
  # Builds the object from hash
@@ -15,19 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ # The Pulp Resource Name (PRN).
19
+ attr_accessor :prn
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
24
  # Artifact file representing the physical content
22
25
  attr_accessor :artifact
23
26
 
24
- attr_accessor :pulp_href
25
-
26
27
  # Timestamp of creation.
27
28
  attr_accessor :pulp_created
28
29
 
29
- # The Pulp Resource Name (PRN).
30
- attr_accessor :prn
30
+ attr_accessor :pulp_href
31
31
 
32
32
  attr_accessor :version
33
33
 
@@ -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
+ :'prn' => :'prn',
41
42
  :'pulp_last_updated' => :'pulp_last_updated',
42
43
  :'artifact' => :'artifact',
43
- :'pulp_href' => :'pulp_href',
44
44
  :'pulp_created' => :'pulp_created',
45
- :'prn' => :'prn',
45
+ :'pulp_href' => :'pulp_href',
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
+ :'prn' => :'String',
55
56
  :'pulp_last_updated' => :'DateTime',
56
57
  :'artifact' => :'String',
57
- :'pulp_href' => :'String',
58
58
  :'pulp_created' => :'DateTime',
59
- :'prn' => :'String',
59
+ :'pulp_href' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,6 +84,10 @@ module PulpAnsibleClient
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
+ if attributes.key?(:'prn')
88
+ self.prn = attributes[:'prn']
89
+ end
90
+
87
91
  if attributes.key?(:'pulp_last_updated')
88
92
  self.pulp_last_updated = attributes[:'pulp_last_updated']
89
93
  end
@@ -92,16 +96,12 @@ module PulpAnsibleClient
92
96
  self.artifact = attributes[:'artifact']
93
97
  end
94
98
 
95
- if attributes.key?(:'pulp_href')
96
- self.pulp_href = attributes[:'pulp_href']
97
- end
98
-
99
99
  if attributes.key?(:'pulp_created')
100
100
  self.pulp_created = attributes[:'pulp_created']
101
101
  end
102
102
 
103
- if attributes.key?(:'prn')
104
- self.prn = attributes[:'prn']
103
+ if attributes.key?(:'pulp_href')
104
+ self.pulp_href = attributes[:'pulp_href']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'version')
@@ -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
+ prn == o.prn &&
158
159
  pulp_last_updated == o.pulp_last_updated &&
159
160
  artifact == o.artifact &&
160
- pulp_href == o.pulp_href &&
161
161
  pulp_created == o.pulp_created &&
162
- prn == o.prn &&
162
+ pulp_href == o.pulp_href &&
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
+ [prn, pulp_last_updated, artifact, pulp_created, pulp_href, 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