pulp_ansible_client 0.22.8 → 0.23.0

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +3 -5
  4. data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
  5. data/docs/AnsibleCollectionVersion.md +5 -5
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleGitRemote.md +27 -27
  8. data/docs/AnsibleGitRemoteResponse.md +25 -25
  9. data/docs/AnsibleRoleResponse.md +4 -4
  10. data/docs/ContentCollectionVersionsApi.md +6 -8
  11. data/docs/PatchedansibleAnsibleDistribution.md +3 -5
  12. data/docs/PatchedansibleGitRemote.md +27 -27
  13. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -4
  14. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  15. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -4
  16. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  17. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -12
  18. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -6
  19. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  20. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -6
  21. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  22. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
  23. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
  24. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  25. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  26. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  27. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  28. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
  29. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
  30. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  31. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  32. data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
  33. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
  34. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  35. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +219 -219
  36. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  37. data/lib/pulp_ansible_client/version.rb +1 -1
  38. data/spec/api/content_collection_versions_api_spec.rb +3 -4
  39. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -2
  40. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  41. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -2
  42. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  43. data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
  44. data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
  45. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  46. data/spec/models/ansible_collection_version_spec.rb +4 -4
  47. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  48. data/spec/models/ansible_git_remote_spec.rb +19 -19
  49. data/spec/models/ansible_role_response_spec.rb +2 -2
  50. data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
  51. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  52. metadata +131 -131
@@ -21,11 +21,6 @@ module PulpAnsibleClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
26
-
27
- attr_accessor :pulp_labels
28
-
29
24
  # A unique name. Ex, `rawhide` and `stable`.
30
25
  attr_accessor :name
31
26
 
@@ -35,16 +30,17 @@ module PulpAnsibleClient
35
30
  # RepositoryVersion to be served
36
31
  attr_accessor :repository_version
37
32
 
33
+ attr_accessor :pulp_labels
34
+
38
35
  # Attribute mapping from ruby-style variable name to JSON key.
39
36
  def self.attribute_map
40
37
  {
41
38
  :'base_path' => :'base_path',
42
39
  :'content_guard' => :'content_guard',
43
- :'hidden' => :'hidden',
44
- :'pulp_labels' => :'pulp_labels',
45
40
  :'name' => :'name',
46
41
  :'repository' => :'repository',
47
- :'repository_version' => :'repository_version'
42
+ :'repository_version' => :'repository_version',
43
+ :'pulp_labels' => :'pulp_labels'
48
44
  }
49
45
  end
50
46
 
@@ -53,11 +49,10 @@ module PulpAnsibleClient
53
49
  {
54
50
  :'base_path' => :'String',
55
51
  :'content_guard' => :'String',
56
- :'hidden' => :'Boolean',
57
- :'pulp_labels' => :'Hash<String, String>',
58
52
  :'name' => :'String',
59
53
  :'repository' => :'String',
60
- :'repository_version' => :'String'
54
+ :'repository_version' => :'String',
55
+ :'pulp_labels' => :'Hash<String, String>'
61
56
  }
62
57
  end
63
58
 
@@ -66,7 +61,7 @@ module PulpAnsibleClient
66
61
  Set.new([
67
62
  :'content_guard',
68
63
  :'repository',
69
- :'repository_version'
64
+ :'repository_version',
70
65
  ])
71
66
  end
72
67
 
@@ -93,18 +88,6 @@ module PulpAnsibleClient
93
88
  self.content_guard = attributes[:'content_guard']
94
89
  end
95
90
 
96
- if attributes.key?(:'hidden')
97
- self.hidden = attributes[:'hidden']
98
- else
99
- self.hidden = false
100
- end
101
-
102
- if attributes.key?(:'pulp_labels')
103
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
- self.pulp_labels = value
105
- end
106
- end
107
-
108
91
  if attributes.key?(:'name')
109
92
  self.name = attributes[:'name']
110
93
  end
@@ -116,6 +99,12 @@ module PulpAnsibleClient
116
99
  if attributes.key?(:'repository_version')
117
100
  self.repository_version = attributes[:'repository_version']
118
101
  end
102
+
103
+ if attributes.key?(:'pulp_labels')
104
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
+ self.pulp_labels = value
106
+ end
107
+ end
119
108
  end
120
109
 
121
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -186,11 +175,10 @@ module PulpAnsibleClient
186
175
  self.class == o.class &&
187
176
  base_path == o.base_path &&
188
177
  content_guard == o.content_guard &&
189
- hidden == o.hidden &&
190
- pulp_labels == o.pulp_labels &&
191
178
  name == o.name &&
192
179
  repository == o.repository &&
193
- repository_version == o.repository_version
180
+ repository_version == o.repository_version &&
181
+ pulp_labels == o.pulp_labels
194
182
  end
195
183
 
196
184
  # @see the `==` method
@@ -202,7 +190,7 @@ module PulpAnsibleClient
202
190
  # Calculates hash code according to all attributes.
203
191
  # @return [Integer] Hash code
204
192
  def hash
205
- [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
193
+ [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
206
194
  end
207
195
 
208
196
  # Builds the object from hash
@@ -17,57 +17,41 @@ module PulpAnsibleClient
17
17
  class AnsibleAnsibleDistributionResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
26
- # 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.
27
- attr_accessor :pulp_last_updated
28
-
29
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
24
  attr_accessor :base_path
31
25
 
32
26
  # An optional content-guard.
33
27
  attr_accessor :content_guard
34
28
 
35
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
36
- attr_accessor :no_content_change_since
37
-
38
- # Whether this distribution should be shown in the content app.
39
- attr_accessor :hidden
40
-
41
- attr_accessor :pulp_labels
42
-
43
29
  # A unique name. Ex, `rawhide` and `stable`.
44
30
  attr_accessor :name
45
31
 
46
32
  # The latest RepositoryVersion for this Repository will be served.
47
33
  attr_accessor :repository
48
34
 
35
+ # RepositoryVersion to be served
36
+ attr_accessor :repository_version
37
+
49
38
  # The URL of a Collection content source.
50
39
  attr_accessor :client_url
51
40
 
52
- # RepositoryVersion to be served
53
- attr_accessor :repository_version
41
+ attr_accessor :pulp_labels
54
42
 
55
43
  # Attribute mapping from ruby-style variable name to JSON key.
56
44
  def self.attribute_map
57
45
  {
58
46
  :'pulp_href' => :'pulp_href',
59
- :'prn' => :'prn',
60
47
  :'pulp_created' => :'pulp_created',
61
- :'pulp_last_updated' => :'pulp_last_updated',
62
48
  :'base_path' => :'base_path',
63
49
  :'content_guard' => :'content_guard',
64
- :'no_content_change_since' => :'no_content_change_since',
65
- :'hidden' => :'hidden',
66
- :'pulp_labels' => :'pulp_labels',
67
50
  :'name' => :'name',
68
51
  :'repository' => :'repository',
52
+ :'repository_version' => :'repository_version',
69
53
  :'client_url' => :'client_url',
70
- :'repository_version' => :'repository_version'
54
+ :'pulp_labels' => :'pulp_labels'
71
55
  }
72
56
  end
73
57
 
@@ -75,18 +59,14 @@ module PulpAnsibleClient
75
59
  def self.openapi_types
76
60
  {
77
61
  :'pulp_href' => :'String',
78
- :'prn' => :'String',
79
62
  :'pulp_created' => :'DateTime',
80
- :'pulp_last_updated' => :'DateTime',
81
63
  :'base_path' => :'String',
82
64
  :'content_guard' => :'String',
83
- :'no_content_change_since' => :'String',
84
- :'hidden' => :'Boolean',
85
- :'pulp_labels' => :'Hash<String, String>',
86
65
  :'name' => :'String',
87
66
  :'repository' => :'String',
67
+ :'repository_version' => :'String',
88
68
  :'client_url' => :'String',
89
- :'repository_version' => :'String'
69
+ :'pulp_labels' => :'Hash<String, String>'
90
70
  }
91
71
  end
92
72
 
@@ -95,7 +75,7 @@ module PulpAnsibleClient
95
75
  Set.new([
96
76
  :'content_guard',
97
77
  :'repository',
98
- :'repository_version'
78
+ :'repository_version',
99
79
  ])
100
80
  end
101
81
 
@@ -118,18 +98,10 @@ module PulpAnsibleClient
118
98
  self.pulp_href = attributes[:'pulp_href']
119
99
  end
120
100
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
123
- end
124
-
125
101
  if attributes.key?(:'pulp_created')
126
102
  self.pulp_created = attributes[:'pulp_created']
127
103
  end
128
104
 
129
- if attributes.key?(:'pulp_last_updated')
130
- self.pulp_last_updated = attributes[:'pulp_last_updated']
131
- end
132
-
133
105
  if attributes.key?(:'base_path')
134
106
  self.base_path = attributes[:'base_path']
135
107
  end
@@ -138,22 +110,6 @@ module PulpAnsibleClient
138
110
  self.content_guard = attributes[:'content_guard']
139
111
  end
140
112
 
141
- if attributes.key?(:'no_content_change_since')
142
- self.no_content_change_since = attributes[:'no_content_change_since']
143
- end
144
-
145
- if attributes.key?(:'hidden')
146
- self.hidden = attributes[:'hidden']
147
- else
148
- self.hidden = false
149
- end
150
-
151
- if attributes.key?(:'pulp_labels')
152
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
153
- self.pulp_labels = value
154
- end
155
- end
156
-
157
113
  if attributes.key?(:'name')
158
114
  self.name = attributes[:'name']
159
115
  end
@@ -162,12 +118,18 @@ module PulpAnsibleClient
162
118
  self.repository = attributes[:'repository']
163
119
  end
164
120
 
121
+ if attributes.key?(:'repository_version')
122
+ self.repository_version = attributes[:'repository_version']
123
+ end
124
+
165
125
  if attributes.key?(:'client_url')
166
126
  self.client_url = attributes[:'client_url']
167
127
  end
168
128
 
169
- if attributes.key?(:'repository_version')
170
- self.repository_version = attributes[:'repository_version']
129
+ if attributes.key?(:'pulp_labels')
130
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
+ self.pulp_labels = value
132
+ end
171
133
  end
172
134
  end
173
135
 
@@ -200,18 +162,14 @@ module PulpAnsibleClient
200
162
  return true if self.equal?(o)
201
163
  self.class == o.class &&
202
164
  pulp_href == o.pulp_href &&
203
- prn == o.prn &&
204
165
  pulp_created == o.pulp_created &&
205
- pulp_last_updated == o.pulp_last_updated &&
206
166
  base_path == o.base_path &&
207
167
  content_guard == o.content_guard &&
208
- no_content_change_since == o.no_content_change_since &&
209
- hidden == o.hidden &&
210
- pulp_labels == o.pulp_labels &&
211
168
  name == o.name &&
212
169
  repository == o.repository &&
170
+ repository_version == o.repository_version &&
213
171
  client_url == o.client_url &&
214
- repository_version == o.repository_version
172
+ pulp_labels == o.pulp_labels
215
173
  end
216
174
 
217
175
  # @see the `==` method
@@ -223,7 +181,7 @@ module PulpAnsibleClient
223
181
  # Calculates hash code according to all attributes.
224
182
  # @return [Integer] Hash code
225
183
  def hash
226
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, client_url, repository_version].hash
184
+ [pulp_href, pulp_created, base_path, content_guard, name, repository, repository_version, client_url, pulp_labels].hash
227
185
  end
228
186
 
229
187
  # Builds the object from hash
@@ -364,20 +364,20 @@ module PulpAnsibleClient
364
364
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
365
365
  end
366
366
 
367
- if !@total_timeout.nil? && @total_timeout < 0.0
368
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
367
+ if !@total_timeout.nil? && @total_timeout < 0
368
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
369
369
  end
370
370
 
371
- if !@connect_timeout.nil? && @connect_timeout < 0.0
372
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
371
+ if !@connect_timeout.nil? && @connect_timeout < 0
372
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
373
373
  end
374
374
 
375
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
376
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
375
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
376
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
377
377
  end
378
378
 
379
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
380
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
379
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
380
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
381
381
  end
382
382
 
383
383
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
@@ -419,10 +419,10 @@ module PulpAnsibleClient
419
419
  return false if !@username.nil? && @username.to_s.length < 1
420
420
  return false if !@password.nil? && @password.to_s.length < 1
421
421
  return false if !@download_concurrency.nil? && @download_concurrency < 1
422
- return false if !@total_timeout.nil? && @total_timeout < 0.0
423
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
424
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
425
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
422
+ return false if !@total_timeout.nil? && @total_timeout < 0
423
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
424
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
425
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
426
426
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
427
427
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
428
428
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
@@ -552,8 +552,8 @@ module PulpAnsibleClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] total_timeout Value to be assigned
554
554
  def total_timeout=(total_timeout)
555
- if !total_timeout.nil? && total_timeout < 0.0
556
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
555
+ if !total_timeout.nil? && total_timeout < 0
556
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
557
557
  end
558
558
 
559
559
  @total_timeout = total_timeout
@@ -562,8 +562,8 @@ module PulpAnsibleClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] connect_timeout Value to be assigned
564
564
  def connect_timeout=(connect_timeout)
565
- if !connect_timeout.nil? && connect_timeout < 0.0
566
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
565
+ if !connect_timeout.nil? && connect_timeout < 0
566
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
567
567
  end
568
568
 
569
569
  @connect_timeout = connect_timeout
@@ -572,8 +572,8 @@ module PulpAnsibleClient
572
572
  # Custom attribute writer method with validation
573
573
  # @param [Object] sock_connect_timeout Value to be assigned
574
574
  def sock_connect_timeout=(sock_connect_timeout)
575
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
576
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
575
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
576
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
577
577
  end
578
578
 
579
579
  @sock_connect_timeout = sock_connect_timeout
@@ -582,8 +582,8 @@ module PulpAnsibleClient
582
582
  # Custom attribute writer method with validation
583
583
  # @param [Object] sock_read_timeout Value to be assigned
584
584
  def sock_read_timeout=(sock_read_timeout)
585
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
586
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
585
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
586
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
587
587
  end
588
588
 
589
589
  @sock_read_timeout = sock_read_timeout
@@ -318,20 +318,20 @@ module PulpAnsibleClient
318
318
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
319
319
  end
320
320
 
321
- if !@total_timeout.nil? && @total_timeout < 0.0
322
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
321
+ if !@total_timeout.nil? && @total_timeout < 0
322
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
323
323
  end
324
324
 
325
- if !@connect_timeout.nil? && @connect_timeout < 0.0
326
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
325
+ if !@connect_timeout.nil? && @connect_timeout < 0
326
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
327
327
  end
328
328
 
329
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
330
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
329
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
330
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
331
331
  end
332
332
 
333
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
334
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
333
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
334
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
335
335
  end
336
336
 
337
337
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if @name.nil?
348
348
  return false if @url.nil?
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
355
355
  true
356
356
  end
@@ -368,8 +368,8 @@ module PulpAnsibleClient
368
368
  # Custom attribute writer method with validation
369
369
  # @param [Object] total_timeout Value to be assigned
370
370
  def total_timeout=(total_timeout)
371
- if !total_timeout.nil? && total_timeout < 0.0
372
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
371
+ if !total_timeout.nil? && total_timeout < 0
372
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
373
373
  end
374
374
 
375
375
  @total_timeout = total_timeout
@@ -378,8 +378,8 @@ module PulpAnsibleClient
378
378
  # Custom attribute writer method with validation
379
379
  # @param [Object] connect_timeout Value to be assigned
380
380
  def connect_timeout=(connect_timeout)
381
- if !connect_timeout.nil? && connect_timeout < 0.0
382
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
381
+ if !connect_timeout.nil? && connect_timeout < 0
382
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
383
383
  end
384
384
 
385
385
  @connect_timeout = connect_timeout
@@ -388,8 +388,8 @@ module PulpAnsibleClient
388
388
  # Custom attribute writer method with validation
389
389
  # @param [Object] sock_connect_timeout Value to be assigned
390
390
  def sock_connect_timeout=(sock_connect_timeout)
391
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
392
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
391
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
392
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
393
393
  end
394
394
 
395
395
  @sock_connect_timeout = sock_connect_timeout
@@ -398,8 +398,8 @@ module PulpAnsibleClient
398
398
  # Custom attribute writer method with validation
399
399
  # @param [Object] sock_read_timeout Value to be assigned
400
400
  def sock_read_timeout=(sock_read_timeout)
401
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
402
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
401
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
402
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
403
403
  end
404
404
 
405
405
  @sock_read_timeout = sock_read_timeout
@@ -15,18 +15,18 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
- # A url that Pulp can download and turn into the content unit.
22
- attr_accessor :file_url
23
-
24
18
  # An uploaded file that may be turned into the content unit.
25
19
  attr_accessor :file
26
20
 
27
21
  # A URI of a repository the new content unit should be associated with.
28
22
  attr_accessor :repository
29
23
 
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
26
+
27
+ # A url that Pulp can download and turn into the content unit.
28
+ attr_accessor :file_url
29
+
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
@@ -42,10 +42,10 @@ module PulpAnsibleClient
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
45
- :'artifact' => :'artifact',
46
- :'file_url' => :'file_url',
47
45
  :'file' => :'file',
48
46
  :'repository' => :'repository',
47
+ :'artifact' => :'artifact',
48
+ :'file_url' => :'file_url',
49
49
  :'upload' => :'upload',
50
50
  :'expected_name' => :'expected_name',
51
51
  :'expected_namespace' => :'expected_namespace',
@@ -56,10 +56,10 @@ module PulpAnsibleClient
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'artifact' => :'String',
60
- :'file_url' => :'String',
61
59
  :'file' => :'File',
62
60
  :'repository' => :'String',
61
+ :'artifact' => :'String',
62
+ :'file_url' => :'String',
63
63
  :'upload' => :'String',
64
64
  :'expected_name' => :'String',
65
65
  :'expected_namespace' => :'String',
@@ -88,14 +88,6 @@ module PulpAnsibleClient
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
- if attributes.key?(:'artifact')
92
- self.artifact = attributes[:'artifact']
93
- end
94
-
95
- if attributes.key?(:'file_url')
96
- self.file_url = attributes[:'file_url']
97
- end
98
-
99
91
  if attributes.key?(:'file')
100
92
  self.file = attributes[:'file']
101
93
  end
@@ -104,6 +96,14 @@ module PulpAnsibleClient
104
96
  self.repository = attributes[:'repository']
105
97
  end
106
98
 
99
+ if attributes.key?(:'artifact')
100
+ self.artifact = attributes[:'artifact']
101
+ end
102
+
103
+ if attributes.key?(:'file_url')
104
+ self.file_url = attributes[:'file_url']
105
+ end
106
+
107
107
  if attributes.key?(:'upload')
108
108
  self.upload = attributes[:'upload']
109
109
  end
@@ -226,10 +226,10 @@ module PulpAnsibleClient
226
226
  def ==(o)
227
227
  return true if self.equal?(o)
228
228
  self.class == o.class &&
229
- artifact == o.artifact &&
230
- file_url == o.file_url &&
231
229
  file == o.file &&
232
230
  repository == o.repository &&
231
+ artifact == o.artifact &&
232
+ file_url == o.file_url &&
233
233
  upload == o.upload &&
234
234
  expected_name == o.expected_name &&
235
235
  expected_namespace == o.expected_namespace &&
@@ -245,7 +245,7 @@ module PulpAnsibleClient
245
245
  # Calculates hash code according to all attributes.
246
246
  # @return [Integer] Hash code
247
247
  def hash
248
- [artifact, file_url, file, repository, upload, expected_name, expected_namespace, expected_version].hash
248
+ [file, repository, artifact, file_url, upload, expected_name, expected_namespace, expected_version].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash
@@ -15,9 +15,6 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # 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
- attr_accessor :pulp_last_updated
20
-
21
18
  # The Pulp Resource Name (PRN).
22
19
  attr_accessor :prn
23
20
 
@@ -29,6 +26,9 @@ module PulpAnsibleClient
29
26
  # Timestamp of creation.
30
27
  attr_accessor :pulp_created
31
28
 
29
+ # 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.
30
+ attr_accessor :pulp_last_updated
31
+
32
32
  # The SHA-256 checksum if available.
33
33
  attr_accessor :sha256
34
34
 
@@ -103,11 +103,11 @@ module PulpAnsibleClient
103
103
  # Attribute mapping from ruby-style variable name to JSON key.
104
104
  def self.attribute_map
105
105
  {
106
- :'pulp_last_updated' => :'pulp_last_updated',
107
106
  :'prn' => :'prn',
108
107
  :'artifact' => :'artifact',
109
108
  :'pulp_href' => :'pulp_href',
110
109
  :'pulp_created' => :'pulp_created',
110
+ :'pulp_last_updated' => :'pulp_last_updated',
111
111
  :'sha256' => :'sha256',
112
112
  :'md5' => :'md5',
113
113
  :'sha1' => :'sha1',
@@ -138,11 +138,11 @@ module PulpAnsibleClient
138
138
  # Attribute type mapping.
139
139
  def self.openapi_types
140
140
  {
141
- :'pulp_last_updated' => :'DateTime',
142
141
  :'prn' => :'String',
143
142
  :'artifact' => :'String',
144
143
  :'pulp_href' => :'String',
145
144
  :'pulp_created' => :'DateTime',
145
+ :'pulp_last_updated' => :'DateTime',
146
146
  :'sha256' => :'String',
147
147
  :'md5' => :'String',
148
148
  :'sha1' => :'String',
@@ -192,10 +192,6 @@ module PulpAnsibleClient
192
192
  h[k.to_sym] = v
193
193
  }
194
194
 
195
- if attributes.key?(:'pulp_last_updated')
196
- self.pulp_last_updated = attributes[:'pulp_last_updated']
197
- end
198
-
199
195
  if attributes.key?(:'prn')
200
196
  self.prn = attributes[:'prn']
201
197
  end
@@ -212,6 +208,10 @@ module PulpAnsibleClient
212
208
  self.pulp_created = attributes[:'pulp_created']
213
209
  end
214
210
 
211
+ if attributes.key?(:'pulp_last_updated')
212
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
213
+ end
214
+
215
215
  if attributes.key?(:'sha256')
216
216
  self.sha256 = attributes[:'sha256']
217
217
  end
@@ -453,11 +453,11 @@ module PulpAnsibleClient
453
453
  def ==(o)
454
454
  return true if self.equal?(o)
455
455
  self.class == o.class &&
456
- pulp_last_updated == o.pulp_last_updated &&
457
456
  prn == o.prn &&
458
457
  artifact == o.artifact &&
459
458
  pulp_href == o.pulp_href &&
460
459
  pulp_created == o.pulp_created &&
460
+ pulp_last_updated == o.pulp_last_updated &&
461
461
  sha256 == o.sha256 &&
462
462
  md5 == o.md5 &&
463
463
  sha1 == o.sha1 &&
@@ -493,7 +493,7 @@ module PulpAnsibleClient
493
493
  # Calculates hash code according to all attributes.
494
494
  # @return [Integer] Hash code
495
495
  def hash
496
- [pulp_last_updated, prn, artifact, pulp_href, pulp_created, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
496
+ [prn, artifact, pulp_href, pulp_created, pulp_last_updated, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
497
497
  end
498
498
 
499
499
  # Builds the object from hash