pulp_ansible_client 0.22.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  6. data/docs/AnsibleCollectionVersion.md +7 -5
  7. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  8. data/docs/AnsibleCollectionVersionSignature.md +2 -0
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +4 -2
  11. data/docs/AnsibleGitRemote.md +29 -29
  12. data/docs/AnsibleGitRemoteResponse.md +26 -24
  13. data/docs/AnsibleRole.md +3 -3
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -0
  15. data/docs/AnsibleRoleResponse.md +6 -4
  16. data/docs/CollectionImportDetailResponse.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/CollectionVersionSearchList.md +0 -2
  21. data/docs/ContentCollectionDeprecationsApi.md +10 -8
  22. data/docs/ContentCollectionMarksApi.md +10 -8
  23. data/docs/ContentCollectionSignaturesApi.md +13 -9
  24. data/docs/ContentCollectionVersionsApi.md +16 -14
  25. data/docs/ContentNamespacesApi.md +10 -8
  26. data/docs/ContentRolesApi.md +10 -8
  27. data/docs/Copy.md +1 -1
  28. data/docs/DistributionsAnsibleApi.md +4 -2
  29. data/docs/PatchedansibleGitRemote.md +29 -29
  30. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +4 -2
  31. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -2
  32. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +10 -10
  33. data/docs/PulpAnsibleApiV3NamespacesApi.md +4 -2
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -10
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +4 -2
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -2
  40. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +10 -10
  41. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +4 -2
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -10
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  46. data/docs/RemotesCollectionApi.md +4 -2
  47. data/docs/RemotesGitApi.md +4 -2
  48. data/docs/RemotesRoleApi.md +4 -2
  49. data/docs/RepositoriesAnsibleApi.md +8 -6
  50. data/docs/RepositoriesAnsibleVersionsApi.md +8 -6
  51. data/docs/RepositoryResponse.md +2 -0
  52. data/docs/RepositoryVersionResponse.md +2 -0
  53. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
  54. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
  55. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
  56. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
  57. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +25 -18
  58. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
  59. data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
  60. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
  62. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
  63. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +12 -12
  64. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
  65. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  67. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +12 -12
  68. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +12 -12
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +12 -12
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  77. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
  78. data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
  79. data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
  80. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
  81. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
  82. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
  83. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  84. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -1
  85. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +43 -18
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -23
  87. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
  88. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  89. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -248
  90. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +163 -153
  91. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  92. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -1
  93. data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -18
  94. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  95. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  97. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  98. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
  99. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  100. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
  101. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  102. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  103. data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
  104. data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/spec/api/ansible_collections_api_spec.rb +2 -1
  107. data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
  108. data/spec/api/content_collection_marks_api_spec.rb +5 -4
  109. data/spec/api/content_collection_signatures_api_spec.rb +6 -4
  110. data/spec/api/content_collection_versions_api_spec.rb +8 -7
  111. data/spec/api/content_namespaces_api_spec.rb +5 -4
  112. data/spec/api/content_roles_api_spec.rb +5 -4
  113. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  114. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
  115. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
  116. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +5 -5
  117. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
  118. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  119. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  120. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -5
  121. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  122. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
  123. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
  124. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +5 -5
  125. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
  126. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  127. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  128. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -5
  129. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  130. data/spec/api/remotes_collection_api_spec.rb +2 -1
  131. data/spec/api/remotes_git_api_spec.rb +2 -1
  132. data/spec/api/remotes_role_api_spec.rb +2 -1
  133. data/spec/api/repositories_ansible_api_spec.rb +4 -3
  134. data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
  135. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  136. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  137. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  138. data/spec/models/ansible_collection_version_response_spec.rb +9 -3
  139. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  140. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  141. data/spec/models/ansible_collection_version_spec.rb +9 -3
  142. data/spec/models/ansible_git_remote_response_spec.rb +24 -18
  143. data/spec/models/ansible_git_remote_spec.rb +20 -20
  144. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  145. data/spec/models/ansible_role_response_spec.rb +9 -3
  146. data/spec/models/ansible_role_spec.rb +2 -2
  147. data/spec/models/collection_version_search_list_spec.rb +0 -6
  148. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  149. data/spec/models/repository_response_spec.rb +6 -0
  150. data/spec/models/repository_version_response_spec.rb +6 -0
  151. metadata +127 -127
@@ -286,7 +286,7 @@ module PulpAnsibleClient
286
286
  # List ansible repositorys
287
287
  # ViewSet for Ansible Repositories.
288
288
  # @param [Hash] opts the optional parameters
289
- # @option opts [String] :latest_with_content Content Unit referenced by HREF
289
+ # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
290
290
  # @option opts [Integer] :limit Number of results to return per page.
291
291
  # @option opts [String] :name Filter results where name matches value
292
292
  # @option opts [String] :name__contains Filter results where name contains value
@@ -299,10 +299,11 @@ module PulpAnsibleClient
299
299
  # @option opts [String] :name__startswith Filter results where name starts with value
300
300
  # @option opts [Integer] :offset The initial index from which to return the results.
301
301
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
302
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
302
303
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
303
304
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
304
305
  # @option opts [String] :pulp_label_select Filter labels by search string
305
- # @option opts [String] :q
306
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
306
307
  # @option opts [String] :remote Foreign Key referenced by HREF
307
308
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
308
309
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -312,7 +313,7 @@ module PulpAnsibleClient
312
313
  # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
313
314
  # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
314
315
  # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
315
- # @option opts [String] :with_content Content Unit referenced by HREF
316
+ # @option opts [String] :with_content Content Unit referenced by HREF/PRN
316
317
  # @option opts [Array<String>] :fields A list of fields to include in the response.
317
318
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
318
319
  # @return [PaginatedansibleAnsibleRepositoryResponseList]
@@ -324,7 +325,7 @@ module PulpAnsibleClient
324
325
  # List ansible repositorys
325
326
  # ViewSet for Ansible Repositories.
326
327
  # @param [Hash] opts the optional parameters
327
- # @option opts [String] :latest_with_content Content Unit referenced by HREF
328
+ # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
328
329
  # @option opts [Integer] :limit Number of results to return per page.
329
330
  # @option opts [String] :name Filter results where name matches value
330
331
  # @option opts [String] :name__contains Filter results where name contains value
@@ -337,10 +338,11 @@ module PulpAnsibleClient
337
338
  # @option opts [String] :name__startswith Filter results where name starts with value
338
339
  # @option opts [Integer] :offset The initial index from which to return the results.
339
340
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
341
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
340
342
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
341
343
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
342
344
  # @option opts [String] :pulp_label_select Filter labels by search string
343
- # @option opts [String] :q
345
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
344
346
  # @option opts [String] :remote Foreign Key referenced by HREF
345
347
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
346
348
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -350,7 +352,7 @@ module PulpAnsibleClient
350
352
  # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
351
353
  # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
352
354
  # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
353
- # @option opts [String] :with_content Content Unit referenced by HREF
355
+ # @option opts [String] :with_content Content Unit referenced by HREF/PRN
354
356
  # @option opts [Array<String>] :fields A list of fields to include in the response.
355
357
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
356
358
  # @return [Array<(PaginatedansibleAnsibleRepositoryResponseList, Integer, Hash)>] PaginatedansibleAnsibleRepositoryResponseList data, response status code and response headers
@@ -380,6 +382,7 @@ module PulpAnsibleClient
380
382
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
381
383
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
382
384
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
385
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
383
386
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
384
387
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
385
388
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
@@ -85,8 +85,8 @@ module PulpAnsibleClient
85
85
  # AnsibleRepositoryVersion represents a single file repository version.
86
86
  # @param ansible_ansible_repository_href [String]
87
87
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :content Content Unit referenced by HREF
89
- # @option opts [String] :content__in Content Unit referenced by HREF
88
+ # @option opts [String] :content Content Unit referenced by HREF/PRN
89
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
91
  # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
@@ -96,6 +96,7 @@ module PulpAnsibleClient
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
99
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
99
100
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
101
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
102
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -103,7 +104,7 @@ module PulpAnsibleClient
103
104
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
105
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
106
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
- # @option opts [String] :q
107
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
107
108
  # @option opts [Array<String>] :fields A list of fields to include in the response.
108
109
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
109
110
  # @return [PaginatedRepositoryVersionResponseList]
@@ -116,8 +117,8 @@ module PulpAnsibleClient
116
117
  # AnsibleRepositoryVersion represents a single file repository version.
117
118
  # @param ansible_ansible_repository_href [String]
118
119
  # @param [Hash] opts the optional parameters
119
- # @option opts [String] :content Content Unit referenced by HREF
120
- # @option opts [String] :content__in Content Unit referenced by HREF
120
+ # @option opts [String] :content Content Unit referenced by HREF/PRN
121
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
121
122
  # @option opts [Integer] :limit Number of results to return per page.
122
123
  # @option opts [Integer] :number Filter results where number matches value
123
124
  # @option opts [Integer] :number__gt Filter results where number is greater than value
@@ -127,6 +128,7 @@ module PulpAnsibleClient
127
128
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
128
129
  # @option opts [Integer] :offset The initial index from which to return the results.
129
130
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
131
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
130
132
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
131
133
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
132
134
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -134,7 +136,7 @@ module PulpAnsibleClient
134
136
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
135
137
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
136
138
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
- # @option opts [String] :q
139
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
138
140
  # @option opts [Array<String>] :fields A list of fields to include in the response.
139
141
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
140
142
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -156,7 +158,7 @@ module PulpAnsibleClient
156
158
  # query parameters
157
159
  query_params = opts[:query_params] || {}
158
160
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
159
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
161
+ query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
160
162
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
161
163
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
162
164
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
@@ -166,6 +168,7 @@ module PulpAnsibleClient
166
168
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
167
169
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
168
170
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
171
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
169
172
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
170
173
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
171
174
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleAnsibleCollectionDeprecatedResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -33,6 +36,7 @@ module PulpAnsibleClient
33
36
  def self.attribute_map
34
37
  {
35
38
  :'pulp_href' => :'pulp_href',
39
+ :'prn' => :'prn',
36
40
  :'pulp_created' => :'pulp_created',
37
41
  :'pulp_last_updated' => :'pulp_last_updated',
38
42
  :'name' => :'name',
@@ -44,6 +48,7 @@ module PulpAnsibleClient
44
48
  def self.openapi_types
45
49
  {
46
50
  :'pulp_href' => :'String',
51
+ :'prn' => :'String',
47
52
  :'pulp_created' => :'DateTime',
48
53
  :'pulp_last_updated' => :'DateTime',
49
54
  :'name' => :'String',
@@ -76,6 +81,10 @@ module PulpAnsibleClient
76
81
  self.pulp_href = attributes[:'pulp_href']
77
82
  end
78
83
 
84
+ if attributes.key?(:'prn')
85
+ self.prn = attributes[:'prn']
86
+ end
87
+
79
88
  if attributes.key?(:'pulp_created')
80
89
  self.pulp_created = attributes[:'pulp_created']
81
90
  end
@@ -122,6 +131,7 @@ module PulpAnsibleClient
122
131
  return true if self.equal?(o)
123
132
  self.class == o.class &&
124
133
  pulp_href == o.pulp_href &&
134
+ prn == o.prn &&
125
135
  pulp_created == o.pulp_created &&
126
136
  pulp_last_updated == o.pulp_last_updated &&
127
137
  name == o.name &&
@@ -137,7 +147,7 @@ module PulpAnsibleClient
137
147
  # Calculates hash code according to all attributes.
138
148
  # @return [Integer] Hash code
139
149
  def hash
140
- [pulp_href, pulp_created, pulp_last_updated, name, namespace].hash
150
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, namespace].hash
141
151
  end
142
152
 
143
153
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleAnsibleRepositoryResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -55,6 +58,7 @@ module PulpAnsibleClient
55
58
  def self.attribute_map
56
59
  {
57
60
  :'pulp_href' => :'pulp_href',
61
+ :'prn' => :'prn',
58
62
  :'pulp_created' => :'pulp_created',
59
63
  :'pulp_last_updated' => :'pulp_last_updated',
60
64
  :'versions_href' => :'versions_href',
@@ -75,6 +79,7 @@ module PulpAnsibleClient
75
79
  def self.openapi_types
76
80
  {
77
81
  :'pulp_href' => :'String',
82
+ :'prn' => :'String',
78
83
  :'pulp_created' => :'DateTime',
79
84
  :'pulp_last_updated' => :'DateTime',
80
85
  :'versions_href' => :'String',
@@ -121,6 +126,10 @@ module PulpAnsibleClient
121
126
  self.pulp_href = attributes[:'pulp_href']
122
127
  end
123
128
 
129
+ if attributes.key?(:'prn')
130
+ self.prn = attributes[:'prn']
131
+ end
132
+
124
133
  if attributes.key?(:'pulp_created')
125
134
  self.pulp_created = attributes[:'pulp_created']
126
135
  end
@@ -215,6 +224,7 @@ module PulpAnsibleClient
215
224
  return true if self.equal?(o)
216
225
  self.class == o.class &&
217
226
  pulp_href == o.pulp_href &&
227
+ prn == o.prn &&
218
228
  pulp_created == o.pulp_created &&
219
229
  pulp_last_updated == o.pulp_last_updated &&
220
230
  versions_href == o.versions_href &&
@@ -239,7 +249,7 @@ module PulpAnsibleClient
239
249
  # Calculates hash code according to all attributes.
240
250
  # @return [Integer] Hash code
241
251
  def hash
242
- [pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
252
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
243
253
  end
244
254
 
245
255
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleCollectionRemoteResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -91,6 +94,7 @@ module PulpAnsibleClient
91
94
  def self.attribute_map
92
95
  {
93
96
  :'pulp_href' => :'pulp_href',
97
+ :'prn' => :'prn',
94
98
  :'pulp_created' => :'pulp_created',
95
99
  :'pulp_last_updated' => :'pulp_last_updated',
96
100
  :'name' => :'name',
@@ -122,6 +126,7 @@ module PulpAnsibleClient
122
126
  def self.openapi_types
123
127
  {
124
128
  :'pulp_href' => :'String',
129
+ :'prn' => :'String',
125
130
  :'pulp_created' => :'DateTime',
126
131
  :'pulp_last_updated' => :'DateTime',
127
132
  :'name' => :'String',
@@ -186,6 +191,10 @@ module PulpAnsibleClient
186
191
  self.pulp_href = attributes[:'pulp_href']
187
192
  end
188
193
 
194
+ if attributes.key?(:'prn')
195
+ self.prn = attributes[:'prn']
196
+ end
197
+
189
198
  if attributes.key?(:'pulp_created')
190
199
  self.pulp_created = attributes[:'pulp_created']
191
200
  end
@@ -412,6 +421,7 @@ module PulpAnsibleClient
412
421
  return true if self.equal?(o)
413
422
  self.class == o.class &&
414
423
  pulp_href == o.pulp_href &&
424
+ prn == o.prn &&
415
425
  pulp_created == o.pulp_created &&
416
426
  pulp_last_updated == o.pulp_last_updated &&
417
427
  name == o.name &&
@@ -447,7 +457,7 @@ module PulpAnsibleClient
447
457
  # Calculates hash code according to all attributes.
448
458
  # @return [Integer] Hash code
449
459
  def hash
450
- [pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
460
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
451
461
  end
452
462
 
453
463
  # Builds the object from hash
@@ -15,18 +15,21 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
18
  # An uploaded file that may be turned into the content unit.
22
19
  attr_accessor :file
23
20
 
24
- # An uncommitted upload that may be turned into the content unit.
25
- attr_accessor :upload
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
26
23
 
27
24
  # Artifact file representing the physical content
28
25
  attr_accessor :artifact
29
26
 
27
+ # A url that Pulp can download and turn into the content unit.
28
+ attr_accessor :file_url
29
+
30
+ # An uncommitted upload that may be turned into the content unit.
31
+ attr_accessor :upload
32
+
30
33
  # The name of the collection.
31
34
  attr_accessor :expected_name
32
35
 
@@ -39,10 +42,11 @@ module PulpAnsibleClient
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
42
- :'repository' => :'repository',
43
45
  :'file' => :'file',
44
- :'upload' => :'upload',
46
+ :'repository' => :'repository',
45
47
  :'artifact' => :'artifact',
48
+ :'file_url' => :'file_url',
49
+ :'upload' => :'upload',
46
50
  :'expected_name' => :'expected_name',
47
51
  :'expected_namespace' => :'expected_namespace',
48
52
  :'expected_version' => :'expected_version'
@@ -52,10 +56,11 @@ module PulpAnsibleClient
52
56
  # Attribute type mapping.
53
57
  def self.openapi_types
54
58
  {
55
- :'repository' => :'String',
56
59
  :'file' => :'File',
57
- :'upload' => :'String',
60
+ :'repository' => :'String',
58
61
  :'artifact' => :'String',
62
+ :'file_url' => :'String',
63
+ :'upload' => :'String',
59
64
  :'expected_name' => :'String',
60
65
  :'expected_namespace' => :'String',
61
66
  :'expected_version' => :'String'
@@ -83,22 +88,26 @@ module PulpAnsibleClient
83
88
  h[k.to_sym] = v
84
89
  }
85
90
 
86
- if attributes.key?(:'repository')
87
- self.repository = attributes[:'repository']
88
- end
89
-
90
91
  if attributes.key?(:'file')
91
92
  self.file = attributes[:'file']
92
93
  end
93
94
 
94
- if attributes.key?(:'upload')
95
- self.upload = attributes[:'upload']
95
+ if attributes.key?(:'repository')
96
+ self.repository = attributes[:'repository']
96
97
  end
97
98
 
98
99
  if attributes.key?(:'artifact')
99
100
  self.artifact = attributes[:'artifact']
100
101
  end
101
102
 
103
+ if attributes.key?(:'file_url')
104
+ self.file_url = attributes[:'file_url']
105
+ end
106
+
107
+ if attributes.key?(:'upload')
108
+ self.upload = attributes[:'upload']
109
+ end
110
+
102
111
  if attributes.key?(:'expected_name')
103
112
  self.expected_name = attributes[:'expected_name']
104
113
  end
@@ -116,6 +125,10 @@ module PulpAnsibleClient
116
125
  # @return Array for valid properties with the reasons
117
126
  def list_invalid_properties
118
127
  invalid_properties = Array.new
128
+ if !@file_url.nil? && @file_url.to_s.length < 1
129
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
130
+ end
131
+
119
132
  if !@expected_name.nil? && @expected_name.to_s.length > 64
120
133
  invalid_properties.push('invalid value for "expected_name", the character length must be smaller than or equal to 64.')
121
134
  end
@@ -146,6 +159,7 @@ module PulpAnsibleClient
146
159
  # Check to see if the all the properties in the model are valid
147
160
  # @return true if the model is valid
148
161
  def valid?
162
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
149
163
  return false if !@expected_name.nil? && @expected_name.to_s.length > 64
150
164
  return false if !@expected_name.nil? && @expected_name.to_s.length < 1
151
165
  return false if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
@@ -155,6 +169,16 @@ module PulpAnsibleClient
155
169
  true
156
170
  end
157
171
 
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] file_url Value to be assigned
174
+ def file_url=(file_url)
175
+ if !file_url.nil? && file_url.to_s.length < 1
176
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
177
+ end
178
+
179
+ @file_url = file_url
180
+ end
181
+
158
182
  # Custom attribute writer method with validation
159
183
  # @param [Object] expected_name Value to be assigned
160
184
  def expected_name=(expected_name)
@@ -202,10 +226,11 @@ module PulpAnsibleClient
202
226
  def ==(o)
203
227
  return true if self.equal?(o)
204
228
  self.class == o.class &&
205
- repository == o.repository &&
206
229
  file == o.file &&
207
- upload == o.upload &&
230
+ repository == o.repository &&
208
231
  artifact == o.artifact &&
232
+ file_url == o.file_url &&
233
+ upload == o.upload &&
209
234
  expected_name == o.expected_name &&
210
235
  expected_namespace == o.expected_namespace &&
211
236
  expected_version == o.expected_version
@@ -220,7 +245,7 @@ module PulpAnsibleClient
220
245
  # Calculates hash code according to all attributes.
221
246
  # @return [Integer] Hash code
222
247
  def hash
223
- [repository, file, upload, artifact, expected_name, expected_namespace, expected_version].hash
248
+ [file, repository, artifact, file_url, upload, expected_name, expected_namespace, expected_version].hash
224
249
  end
225
250
 
226
251
  # Builds the object from hash
@@ -15,17 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # The Pulp Resource Name (PRN).
19
+ attr_accessor :prn
20
+
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
20
23
 
21
24
  attr_accessor :pulp_href
22
25
 
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
28
+
23
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.
24
30
  attr_accessor :pulp_last_updated
25
31
 
26
- # Artifact file representing the physical content
27
- attr_accessor :artifact
28
-
29
32
  # The SHA-256 checksum if available.
30
33
  attr_accessor :sha256
31
34
 
@@ -100,10 +103,11 @@ module PulpAnsibleClient
100
103
  # Attribute mapping from ruby-style variable name to JSON key.
101
104
  def self.attribute_map
102
105
  {
103
- :'pulp_created' => :'pulp_created',
106
+ :'prn' => :'prn',
107
+ :'artifact' => :'artifact',
104
108
  :'pulp_href' => :'pulp_href',
109
+ :'pulp_created' => :'pulp_created',
105
110
  :'pulp_last_updated' => :'pulp_last_updated',
106
- :'artifact' => :'artifact',
107
111
  :'sha256' => :'sha256',
108
112
  :'md5' => :'md5',
109
113
  :'sha1' => :'sha1',
@@ -134,10 +138,11 @@ module PulpAnsibleClient
134
138
  # Attribute type mapping.
135
139
  def self.openapi_types
136
140
  {
137
- :'pulp_created' => :'DateTime',
141
+ :'prn' => :'String',
142
+ :'artifact' => :'String',
138
143
  :'pulp_href' => :'String',
144
+ :'pulp_created' => :'DateTime',
139
145
  :'pulp_last_updated' => :'DateTime',
140
- :'artifact' => :'String',
141
146
  :'sha256' => :'String',
142
147
  :'md5' => :'String',
143
148
  :'sha1' => :'String',
@@ -146,12 +151,12 @@ module PulpAnsibleClient
146
151
  :'sha512' => :'String',
147
152
  :'id' => :'String',
148
153
  :'authors' => :'Array<String>',
149
- :'contents' => :'AnyType',
150
- :'dependencies' => :'AnyType',
154
+ :'contents' => :'Object',
155
+ :'dependencies' => :'Object',
151
156
  :'description' => :'String',
152
- :'docs_blob' => :'AnyType',
153
- :'manifest' => :'AnyType',
154
- :'files' => :'AnyType',
157
+ :'docs_blob' => :'Object',
158
+ :'manifest' => :'Object',
159
+ :'files' => :'Object',
155
160
  :'documentation' => :'String',
156
161
  :'homepage' => :'String',
157
162
  :'issues' => :'String',
@@ -187,20 +192,24 @@ module PulpAnsibleClient
187
192
  h[k.to_sym] = v
188
193
  }
189
194
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
195
+ if attributes.key?(:'prn')
196
+ self.prn = attributes[:'prn']
197
+ end
198
+
199
+ if attributes.key?(:'artifact')
200
+ self.artifact = attributes[:'artifact']
192
201
  end
193
202
 
194
203
  if attributes.key?(:'pulp_href')
195
204
  self.pulp_href = attributes[:'pulp_href']
196
205
  end
197
206
 
198
- if attributes.key?(:'pulp_last_updated')
199
- self.pulp_last_updated = attributes[:'pulp_last_updated']
207
+ if attributes.key?(:'pulp_created')
208
+ self.pulp_created = attributes[:'pulp_created']
200
209
  end
201
210
 
202
- if attributes.key?(:'artifact')
203
- self.artifact = attributes[:'artifact']
211
+ if attributes.key?(:'pulp_last_updated')
212
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
204
213
  end
205
214
 
206
215
  if attributes.key?(:'sha256')
@@ -444,10 +453,11 @@ module PulpAnsibleClient
444
453
  def ==(o)
445
454
  return true if self.equal?(o)
446
455
  self.class == o.class &&
447
- pulp_created == o.pulp_created &&
456
+ prn == o.prn &&
457
+ artifact == o.artifact &&
448
458
  pulp_href == o.pulp_href &&
459
+ pulp_created == o.pulp_created &&
449
460
  pulp_last_updated == o.pulp_last_updated &&
450
- artifact == o.artifact &&
451
461
  sha256 == o.sha256 &&
452
462
  md5 == o.md5 &&
453
463
  sha1 == o.sha1 &&
@@ -483,7 +493,7 @@ module PulpAnsibleClient
483
493
  # Calculates hash code according to all attributes.
484
494
  # @return [Integer] Hash code
485
495
  def hash
486
- [pulp_created, pulp_href, pulp_last_updated, artifact, 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
487
497
  end
488
498
 
489
499
  # Builds the object from hash
@@ -24,6 +24,9 @@ module PulpAnsibleClient
24
24
  # An uncommitted upload that may be turned into the content unit.
25
25
  attr_accessor :upload
26
26
 
27
+ # A url that Pulp can download and turn into the content unit.
28
+ attr_accessor :file_url
29
+
27
30
  # The content this signature is pointing to.
28
31
  attr_accessor :signed_collection
29
32
 
@@ -33,6 +36,7 @@ module PulpAnsibleClient
33
36
  :'repository' => :'repository',
34
37
  :'file' => :'file',
35
38
  :'upload' => :'upload',
39
+ :'file_url' => :'file_url',
36
40
  :'signed_collection' => :'signed_collection'
37
41
  }
38
42
  end
@@ -43,6 +47,7 @@ module PulpAnsibleClient
43
47
  :'repository' => :'String',
44
48
  :'file' => :'File',
45
49
  :'upload' => :'String',
50
+ :'file_url' => :'String',
46
51
  :'signed_collection' => :'String'
47
52
  }
48
53
  end
@@ -80,6 +85,10 @@ module PulpAnsibleClient
80
85
  self.upload = attributes[:'upload']
81
86
  end
82
87
 
88
+ if attributes.key?(:'file_url')
89
+ self.file_url = attributes[:'file_url']
90
+ end
91
+
83
92
  if attributes.key?(:'signed_collection')
84
93
  self.signed_collection = attributes[:'signed_collection']
85
94
  end
@@ -89,6 +98,10 @@ module PulpAnsibleClient
89
98
  # @return Array for valid properties with the reasons
90
99
  def list_invalid_properties
91
100
  invalid_properties = Array.new
101
+ if !@file_url.nil? && @file_url.to_s.length < 1
102
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
103
+ end
104
+
92
105
  if @signed_collection.nil?
93
106
  invalid_properties.push('invalid value for "signed_collection", signed_collection cannot be nil.')
94
107
  end
@@ -99,10 +112,21 @@ module PulpAnsibleClient
99
112
  # Check to see if the all the properties in the model are valid
100
113
  # @return true if the model is valid
101
114
  def valid?
115
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
102
116
  return false if @signed_collection.nil?
103
117
  true
104
118
  end
105
119
 
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] file_url Value to be assigned
122
+ def file_url=(file_url)
123
+ if !file_url.nil? && file_url.to_s.length < 1
124
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
125
+ end
126
+
127
+ @file_url = file_url
128
+ end
129
+
106
130
  # Checks equality by comparing each attribute.
107
131
  # @param [Object] Object to be compared
108
132
  def ==(o)
@@ -111,6 +135,7 @@ module PulpAnsibleClient
111
135
  repository == o.repository &&
112
136
  file == o.file &&
113
137
  upload == o.upload &&
138
+ file_url == o.file_url &&
114
139
  signed_collection == o.signed_collection
115
140
  end
116
141
 
@@ -123,7 +148,7 @@ module PulpAnsibleClient
123
148
  # Calculates hash code according to all attributes.
124
149
  # @return [Integer] Hash code
125
150
  def hash
126
- [repository, file, upload, signed_collection].hash
151
+ [repository, file, upload, file_url, signed_collection].hash
127
152
  end
128
153
 
129
154
  # Builds the object from hash