pulp_ansible_client 0.21.7 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -19
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +6 -6
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  7. data/docs/AnsibleCollectionsApi.md +61 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +28 -28
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +5 -5
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +11 -11
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +7 -7
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +1 -1
  28. data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  29. data/docs/PatchedansibleGitRemote.md +30 -30
  30. data/docs/PulpAnsibleApiApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3Api.md +1 -1
  32. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  48. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  69. data/docs/PulpAnsibleTagsApi.md +1 -1
  70. data/docs/RemotesCollectionApi.md +1 -1
  71. data/docs/RemotesGitApi.md +1 -1
  72. data/docs/RemotesRoleApi.md +1 -1
  73. data/docs/RepositoriesAnsibleApi.md +1 -1
  74. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  75. data/docs/VersionsApi.md +1 -56
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  78. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  79. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  80. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  81. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  82. data/lib/pulp_ansible_client/configuration.rb +2 -2
  83. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  84. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  85. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  86. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  87. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
  88. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
  89. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +230 -230
  90. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +161 -161
  91. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  92. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  93. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  94. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  95. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  97. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  98. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  99. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  100. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  101. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  102. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  103. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +216 -216
  104. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/lib/pulp_ansible_client.rb +4 -10
  107. data/spec/api/ansible_collections_api_spec.rb +14 -0
  108. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  109. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  110. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  111. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  112. data/spec/api/versions_api_spec.rb +0 -14
  113. data/spec/configuration_spec.rb +3 -3
  114. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  115. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  116. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  117. data/spec/models/ansible_collection_version_spec.rb +4 -4
  118. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  119. data/spec/models/ansible_git_remote_spec.rb +19 -19
  120. data/spec/models/ansible_role_response_spec.rb +4 -4
  121. data/spec/models/ansible_role_spec.rb +2 -2
  122. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  123. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  124. metadata +155 -179
  125. data/docs/ApiCollectionsApi.md +0 -112
  126. data/docs/GalaxyCollection.md +0 -23
  127. data/docs/GalaxyCollectionResponse.md +0 -31
  128. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  129. data/docs/GalaxyDetailApi.md +0 -61
  130. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  131. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  132. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  133. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  134. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  135. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  136. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  137. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  138. data/spec/api/api_collections_api_spec.rb +0 -61
  139. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  140. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  141. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  142. data/spec/models/galaxy_collection_spec.rb +0 -59
  143. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0.0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
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
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
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
478
+ if !total_timeout.nil? && total_timeout < 0.0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0.0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout
@@ -259,20 +259,20 @@ module PulpAnsibleClient
259
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
260
  end
261
261
 
262
- if !@total_timeout.nil? && @total_timeout < 0
263
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
262
+ if !@total_timeout.nil? && @total_timeout < 0.0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
264
264
  end
265
265
 
266
- if !@connect_timeout.nil? && @connect_timeout < 0
267
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
266
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
268
  end
269
269
 
270
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
271
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
272
  end
273
273
 
274
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
275
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
276
276
  end
277
277
 
278
278
  invalid_properties
@@ -284,10 +284,10 @@ module PulpAnsibleClient
284
284
  return false if @name.nil?
285
285
  return false if @url.nil?
286
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
- return false if !@total_timeout.nil? && @total_timeout < 0
288
- return false if !@connect_timeout.nil? && @connect_timeout < 0
289
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
290
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
287
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
291
  true
292
292
  end
293
293
 
@@ -304,8 +304,8 @@ module PulpAnsibleClient
304
304
  # Custom attribute writer method with validation
305
305
  # @param [Object] total_timeout Value to be assigned
306
306
  def total_timeout=(total_timeout)
307
- if !total_timeout.nil? && total_timeout < 0
308
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
307
+ if !total_timeout.nil? && total_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
309
309
  end
310
310
 
311
311
  @total_timeout = total_timeout
@@ -314,8 +314,8 @@ module PulpAnsibleClient
314
314
  # Custom attribute writer method with validation
315
315
  # @param [Object] connect_timeout Value to be assigned
316
316
  def connect_timeout=(connect_timeout)
317
- if !connect_timeout.nil? && connect_timeout < 0
318
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
317
+ if !connect_timeout.nil? && connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
319
319
  end
320
320
 
321
321
  @connect_timeout = connect_timeout
@@ -324,8 +324,8 @@ module PulpAnsibleClient
324
324
  # Custom attribute writer method with validation
325
325
  # @param [Object] sock_connect_timeout Value to be assigned
326
326
  def sock_connect_timeout=(sock_connect_timeout)
327
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
328
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
329
329
  end
330
330
 
331
331
  @sock_connect_timeout = sock_connect_timeout
@@ -334,8 +334,8 @@ module PulpAnsibleClient
334
334
  # Custom attribute writer method with validation
335
335
  # @param [Object] sock_read_timeout Value to be assigned
336
336
  def sock_read_timeout=(sock_read_timeout)
337
- if !sock_read_timeout.nil? && sock_read_timeout < 0
338
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
339
339
  end
340
340
 
341
341
  @sock_read_timeout = sock_read_timeout
@@ -15,17 +15,17 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
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
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
24
+ attr_accessor :pulp_href
25
+
21
26
  # Timestamp of creation.
22
27
  attr_accessor :pulp_created
23
28
 
24
- # 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.
25
- attr_accessor :pulp_last_updated
26
-
27
- attr_accessor :pulp_href
28
-
29
29
  attr_accessor :version
30
30
 
31
31
  attr_accessor :name
@@ -35,10 +35,10 @@ module PulpAnsibleClient
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'artifact' => :'artifact',
39
- :'pulp_created' => :'pulp_created',
40
38
  :'pulp_last_updated' => :'pulp_last_updated',
39
+ :'artifact' => :'artifact',
41
40
  :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
42
42
  :'version' => :'version',
43
43
  :'name' => :'name',
44
44
  :'namespace' => :'namespace'
@@ -48,10 +48,10 @@ module PulpAnsibleClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'artifact' => :'String',
52
- :'pulp_created' => :'DateTime',
53
51
  :'pulp_last_updated' => :'DateTime',
52
+ :'artifact' => :'String',
54
53
  :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
55
55
  :'version' => :'String',
56
56
  :'name' => :'String',
57
57
  :'namespace' => :'String'
@@ -79,22 +79,22 @@ module PulpAnsibleClient
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'artifact')
83
- self.artifact = attributes[:'artifact']
84
- end
85
-
86
- if attributes.key?(:'pulp_created')
87
- self.pulp_created = attributes[:'pulp_created']
88
- end
89
-
90
82
  if attributes.key?(:'pulp_last_updated')
91
83
  self.pulp_last_updated = attributes[:'pulp_last_updated']
92
84
  end
93
85
 
86
+ if attributes.key?(:'artifact')
87
+ self.artifact = attributes[:'artifact']
88
+ end
89
+
94
90
  if attributes.key?(:'pulp_href')
95
91
  self.pulp_href = attributes[:'pulp_href']
96
92
  end
97
93
 
94
+ if attributes.key?(:'pulp_created')
95
+ self.pulp_created = attributes[:'pulp_created']
96
+ end
97
+
98
98
  if attributes.key?(:'version')
99
99
  self.version = attributes[:'version']
100
100
  end
@@ -146,10 +146,10 @@ module PulpAnsibleClient
146
146
  def ==(o)
147
147
  return true if self.equal?(o)
148
148
  self.class == o.class &&
149
- artifact == o.artifact &&
150
- pulp_created == o.pulp_created &&
151
149
  pulp_last_updated == o.pulp_last_updated &&
150
+ artifact == o.artifact &&
152
151
  pulp_href == o.pulp_href &&
152
+ pulp_created == o.pulp_created &&
153
153
  version == o.version &&
154
154
  name == o.name &&
155
155
  namespace == o.namespace
@@ -164,7 +164,7 @@ module PulpAnsibleClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [artifact, pulp_created, pulp_last_updated, pulp_href, version, name, namespace].hash
167
+ [pulp_last_updated, artifact, pulp_href, pulp_created, version, name, namespace].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  :'updated_at' => :'DateTime',
55
55
  :'started_at' => :'DateTime',
56
56
  :'finished_at' => :'DateTime',
57
- :'error' => :'Object',
58
- :'messages' => :'Object'
57
+ :'error' => :'AnyType',
58
+ :'messages' => :'AnyType'
59
59
  }
60
60
  end
61
61
 
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
  def self.openapi_types
56
56
  {
57
57
  :'authors' => :'Array<String>',
58
- :'contents' => :'Object',
59
- :'dependencies' => :'Object',
58
+ :'contents' => :'AnyType',
59
+ :'dependencies' => :'AnyType',
60
60
  :'description' => :'String',
61
61
  :'documentation' => :'String',
62
62
  :'homepage' => :'String',
@@ -68,8 +68,8 @@ module PulpAnsibleClient
68
68
  :'version' => :'String',
69
69
  :'requires_ansible' => :'String',
70
70
  :'pulp_created' => :'DateTime',
71
- :'contents' => :'Object',
72
- :'dependencies' => :'Object',
71
+ :'contents' => :'AnyType',
72
+ :'dependencies' => :'AnyType',
73
73
  :'description' => :'String',
74
74
  :'tags' => :'Array<AnsibleTagResponse>'
75
75
  }
@@ -27,7 +27,7 @@ module PulpAnsibleClient
27
27
  # Attribute type mapping.
28
28
  def self.openapi_types
29
29
  {
30
- :'docs_blob' => :'Object'
30
+ :'docs_blob' => :'AnyType'
31
31
  }
32
32
  end
33
33
 
@@ -97,8 +97,8 @@ module PulpAnsibleClient
97
97
  :'metadata' => :'CollectionMetadataResponse',
98
98
  :'git_url' => :'String',
99
99
  :'git_commit_sha' => :'String',
100
- :'manifest' => :'Object',
101
- :'files' => :'Object'
100
+ :'manifest' => :'AnyType',
101
+ :'files' => :'AnyType'
102
102
  }
103
103
  end
104
104
 
@@ -28,7 +28,7 @@ module PulpAnsibleClient
28
28
  # Attribute type mapping.
29
29
  def self.openapi_types
30
30
  {
31
- :'config' => :'Object'
31
+ :'config' => :'AnyType'
32
32
  }
33
33
  end
34
34
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PaginatedGalaxyCollectionVersionResponseList
16
+ class PaginatedansibleAnsibleCollectionDeprecatedResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyCollectionVersionResponse>'
41
+ :'results' => :'Array<AnsibleAnsibleCollectionDeprecatedResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpAnsibleClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -356,20 +356,20 @@ module PulpAnsibleClient
356
356
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
357
357
  end
358
358
 
359
- if !@total_timeout.nil? && @total_timeout < 0
360
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
359
+ if !@total_timeout.nil? && @total_timeout < 0.0
360
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
361
361
  end
362
362
 
363
- if !@connect_timeout.nil? && @connect_timeout < 0
364
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
363
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
364
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
365
365
  end
366
366
 
367
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
368
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
367
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
368
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
369
369
  end
370
370
 
371
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
372
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
371
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
372
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
373
373
  end
374
374
 
375
375
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
@@ -409,10 +409,10 @@ module PulpAnsibleClient
409
409
  return false if !@username.nil? && @username.to_s.length < 1
410
410
  return false if !@password.nil? && @password.to_s.length < 1
411
411
  return false if !@download_concurrency.nil? && @download_concurrency < 1
412
- return false if !@total_timeout.nil? && @total_timeout < 0
413
- return false if !@connect_timeout.nil? && @connect_timeout < 0
414
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
415
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
412
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
413
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
414
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
415
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
416
416
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
417
417
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
418
418
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
@@ -534,8 +534,8 @@ module PulpAnsibleClient
534
534
  # Custom attribute writer method with validation
535
535
  # @param [Object] total_timeout Value to be assigned
536
536
  def total_timeout=(total_timeout)
537
- if !total_timeout.nil? && total_timeout < 0
538
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
537
+ if !total_timeout.nil? && total_timeout < 0.0
538
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
539
539
  end
540
540
 
541
541
  @total_timeout = total_timeout
@@ -544,8 +544,8 @@ module PulpAnsibleClient
544
544
  # Custom attribute writer method with validation
545
545
  # @param [Object] connect_timeout Value to be assigned
546
546
  def connect_timeout=(connect_timeout)
547
- if !connect_timeout.nil? && connect_timeout < 0
548
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
547
+ if !connect_timeout.nil? && connect_timeout < 0.0
548
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
549
549
  end
550
550
 
551
551
  @connect_timeout = connect_timeout
@@ -554,8 +554,8 @@ module PulpAnsibleClient
554
554
  # Custom attribute writer method with validation
555
555
  # @param [Object] sock_connect_timeout Value to be assigned
556
556
  def sock_connect_timeout=(sock_connect_timeout)
557
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
558
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
557
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
558
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
559
559
  end
560
560
 
561
561
  @sock_connect_timeout = sock_connect_timeout
@@ -564,8 +564,8 @@ module PulpAnsibleClient
564
564
  # Custom attribute writer method with validation
565
565
  # @param [Object] sock_read_timeout Value to be assigned
566
566
  def sock_read_timeout=(sock_read_timeout)
567
- if !sock_read_timeout.nil? && sock_read_timeout < 0
568
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
567
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
568
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
569
569
  end
570
570
 
571
571
  @sock_read_timeout = sock_read_timeout