pulp_ansible_client 0.15.5 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -10
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +2 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemote.md +2 -2
  8. data/docs/AnsibleCollectionRemoteResponse.md +2 -4
  9. data/docs/AnsibleCollectionVersion.md +11 -9
  10. data/docs/AnsibleCollectionVersionResponse.md +23 -23
  11. data/docs/AnsibleCollectionsApi.md +6 -10
  12. data/docs/AnsibleGitRemote.md +30 -30
  13. data/docs/AnsibleGitRemoteResponse.md +26 -28
  14. data/docs/AnsibleRoleRemote.md +2 -2
  15. data/docs/AnsibleRoleRemoteResponse.md +3 -5
  16. data/docs/AnsibleRoleResponse.md +3 -3
  17. data/docs/ApiCollectionsApi.md +4 -4
  18. data/docs/ApiRolesApi.md +4 -4
  19. data/docs/CollectionImportApi.md +4 -4
  20. data/docs/CollectionRefResponse.md +1 -1
  21. data/docs/CollectionResponse.md +6 -6
  22. data/docs/CollectionVersionListResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +4 -4
  24. data/docs/ContentCollectionDeprecationsApi.md +10 -14
  25. data/docs/ContentCollectionSignaturesApi.md +12 -16
  26. data/docs/ContentCollectionVersionsApi.md +22 -24
  27. data/docs/ContentRolesApi.md +10 -14
  28. data/docs/DistributionsAnsibleApi.md +14 -22
  29. data/docs/GalaxyCollectionResponse.md +4 -4
  30. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  31. data/docs/GalaxyDetailApi.md +4 -4
  32. data/docs/GalaxyRoleResponse.md +1 -1
  33. data/docs/GalaxyRoleVersionResponse.md +1 -1
  34. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  35. data/docs/PatchedansibleAnsibleRepository.md +2 -2
  36. data/docs/PatchedansibleCollectionRemote.md +2 -2
  37. data/docs/PatchedansibleGitRemote.md +30 -30
  38. data/docs/PatchedansibleRoleRemote.md +2 -2
  39. data/docs/PulpAnsibleApiApi.md +4 -4
  40. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
  41. data/docs/PulpAnsibleApiV3Api.md +4 -4
  42. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
  43. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
  44. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -10
  45. data/docs/PulpAnsibleApiV3CollectionsApi.md +10 -14
  46. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +10 -14
  47. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  48. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  52. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  53. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  54. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  55. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  56. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -10
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +10 -14
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +10 -14
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  68. data/docs/PulpAnsibleTagsApi.md +4 -4
  69. data/docs/RemotesCollectionApi.md +14 -18
  70. data/docs/RemotesGitApi.md +14 -18
  71. data/docs/RemotesRoleApi.md +14 -18
  72. data/docs/RepositoriesAnsibleApi.md +13 -33
  73. data/docs/RepositoriesAnsibleVersionsApi.md +14 -16
  74. data/docs/RepositoryAddRemoveContent.md +2 -2
  75. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  76. data/docs/VersionsApi.md +8 -8
  77. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +9 -15
  78. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  79. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  80. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +14 -20
  82. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +15 -21
  83. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +45 -60
  84. data/lib/pulp_ansible_client/api/content_roles_api.rb +15 -21
  85. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -31
  86. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +9 -15
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +15 -21
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +15 -21
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +9 -15
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +15 -21
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +15 -21
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  116. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  117. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +19 -25
  118. data/lib/pulp_ansible_client/api/remotes_git_api.rb +19 -25
  119. data/lib/pulp_ansible_client/api/remotes_role_api.rb +19 -25
  120. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +17 -47
  121. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +19 -22
  122. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  123. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
  124. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
  125. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -5
  126. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -5
  127. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +3 -5
  128. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +4 -18
  129. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +78 -95
  130. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +53 -161
  131. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -251
  132. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -155
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +3 -5
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +8 -22
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  136. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  137. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  138. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
  139. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
  140. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  141. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  142. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  143. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  144. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
  145. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -5
  146. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +3 -5
  147. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -251
  148. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +3 -5
  149. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  150. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
  151. data/lib/pulp_ansible_client/version.rb +1 -1
  152. data/lib/pulp_ansible_client.rb +0 -1
  153. data/spec/api/ansible_collections_api_spec.rb +3 -5
  154. data/spec/api/api_collections_api_spec.rb +2 -2
  155. data/spec/api/api_roles_api_spec.rb +2 -2
  156. data/spec/api/collection_import_api_spec.rb +2 -2
  157. data/spec/api/content_collection_deprecations_api_spec.rb +5 -7
  158. data/spec/api/content_collection_signatures_api_spec.rb +5 -7
  159. data/spec/api/content_collection_versions_api_spec.rb +10 -11
  160. data/spec/api/content_roles_api_spec.rb +5 -7
  161. data/spec/api/distributions_ansible_api_spec.rb +7 -11
  162. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  165. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  166. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -5
  169. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -7
  170. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +5 -7
  171. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  172. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  173. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  176. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  177. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  178. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  179. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  180. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  181. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -5
  182. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -7
  183. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +5 -7
  184. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  185. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  186. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  187. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  188. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  189. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  190. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  191. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  192. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  193. data/spec/api/remotes_collection_api_spec.rb +7 -9
  194. data/spec/api/remotes_git_api_spec.rb +7 -9
  195. data/spec/api/remotes_role_api_spec.rb +7 -9
  196. data/spec/api/repositories_ansible_api_spec.rb +6 -16
  197. data/spec/api/repositories_ansible_versions_api_spec.rb +7 -8
  198. data/spec/api/versions_api_spec.rb +4 -4
  199. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  200. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  201. data/spec/models/ansible_collection_version_spec.rb +12 -6
  202. data/spec/models/ansible_git_remote_response_spec.rb +16 -22
  203. data/spec/models/ansible_git_remote_spec.rb +19 -19
  204. data/spec/models/ansible_role_remote_response_spec.rb +0 -6
  205. data/spec/models/ansible_role_response_spec.rb +3 -3
  206. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  207. metadata +102 -106
  208. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  209. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -215
  210. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -23,8 +23,8 @@ module PulpAnsibleClient
23
23
  # @param ansible_collection_href [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :page A page number within the paginated result set.
26
- # @option opts [Array<String>] :fields A list of fields to include in the response.
27
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
26
+ # @option opts [String] :fields A list of fields to include in the response.
27
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
28
28
  # @return [PaginatedGalaxyCollectionResponseList]
29
29
  def get(ansible_collection_href, opts = {})
30
30
  data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
@@ -35,8 +35,8 @@ module PulpAnsibleClient
35
35
  # @param ansible_collection_href [String]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Integer] :page A page number within the paginated result set.
38
- # @option opts [Array<String>] :fields A list of fields to include in the response.
39
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
+ # @option opts [String] :fields A list of fields to include in the response.
39
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
40
  # @return [Array<(PaginatedGalaxyCollectionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionResponseList data, response status code and response headers
41
41
  def get_with_http_info(ansible_collection_href, opts = {})
42
42
  if @api_client.config.debugging
@@ -52,8 +52,8 @@ module PulpAnsibleClient
52
52
  # query parameters
53
53
  query_params = opts[:query_params] || {}
54
54
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
55
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
56
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
55
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
56
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
57
57
 
58
58
  # header parameters
59
59
  header_params = opts[:header_params] || {}
@@ -24,8 +24,8 @@ module PulpAnsibleClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [Array<String>] :fields A list of fields to include in the response.
28
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
29
  # @return [PaginatedGalaxyRoleResponseList]
30
30
  def get(ansible_role_href, opts = {})
31
31
  data, _status_code, _headers = get_with_http_info(ansible_role_href, opts)
@@ -37,8 +37,8 @@ module PulpAnsibleClient
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @option opts [Integer] :limit Number of results to return per page.
39
39
  # @option opts [Integer] :offset The initial index from which to return the results.
40
- # @option opts [Array<String>] :fields A list of fields to include in the response.
41
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
42
  # @return [Array<(PaginatedGalaxyRoleResponseList, Integer, Hash)>] PaginatedGalaxyRoleResponseList data, response status code and response headers
43
43
  def get_with_http_info(ansible_role_href, opts = {})
44
44
  if @api_client.config.debugging
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
  query_params = opts[:query_params] || {}
56
56
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
57
57
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
58
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
59
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
58
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
59
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
60
60
 
61
61
  # header parameters
62
62
  header_params = opts[:header_params] || {}
@@ -24,8 +24,8 @@ module PulpAnsibleClient
24
24
  # @param ansible_collection_import_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :since Filter messages since a given timestamp
27
- # @option opts [Array<String>] :fields A list of fields to include in the response.
28
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
29
  # @return [CollectionImportDetailResponse]
30
30
  def read(ansible_collection_import_href, opts = {})
31
31
  data, _status_code, _headers = read_with_http_info(ansible_collection_import_href, opts)
@@ -37,8 +37,8 @@ module PulpAnsibleClient
37
37
  # @param ansible_collection_import_href [String]
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :since Filter messages since a given timestamp
40
- # @option opts [Array<String>] :fields A list of fields to include in the response.
41
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
42
  # @return [Array<(CollectionImportDetailResponse, Integer, Hash)>] CollectionImportDetailResponse data, response status code and response headers
43
43
  def read_with_http_info(ansible_collection_import_href, opts = {})
44
44
  if @api_client.config.debugging
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
56
56
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
57
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
58
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
57
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
58
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
59
59
 
60
60
  # header parameters
61
61
  header_params = opts[:header_params] || {}
@@ -88,14 +88,12 @@ module PulpAnsibleClient
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @option opts [Integer] :limit Number of results to return per page.
90
90
  # @option opts [Integer] :offset The initial index from which to return the results.
91
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
92
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
93
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
91
+ # @option opts [Array<String>] :ordering Ordering
94
92
  # @option opts [String] :repository_version Repository Version referenced by HREF
95
93
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
96
94
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
97
- # @option opts [Array<String>] :fields A list of fields to include in the response.
98
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
95
+ # @option opts [String] :fields A list of fields to include in the response.
96
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
99
97
  # @return [PaginatedansibleCollectionResponseList]
100
98
  def list(opts = {})
101
99
  data, _status_code, _headers = list_with_http_info(opts)
@@ -107,14 +105,12 @@ module PulpAnsibleClient
107
105
  # @param [Hash] opts the optional parameters
108
106
  # @option opts [Integer] :limit Number of results to return per page.
109
107
  # @option opts [Integer] :offset The initial index from which to return the results.
110
- # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
111
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
112
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
108
+ # @option opts [Array<String>] :ordering Ordering
113
109
  # @option opts [String] :repository_version Repository Version referenced by HREF
114
110
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
115
111
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
116
- # @option opts [Array<String>] :fields A list of fields to include in the response.
117
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
112
+ # @option opts [String] :fields A list of fields to include in the response.
113
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
118
114
  # @return [Array<(PaginatedansibleCollectionResponseList, Integer, Hash)>] PaginatedansibleCollectionResponseList data, response status code and response headers
119
115
  def list_with_http_info(opts = {})
120
116
  if @api_client.config.debugging
@@ -132,13 +128,11 @@ module PulpAnsibleClient
132
128
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
133
129
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
134
130
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
135
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
136
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
137
131
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
138
132
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
139
133
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
140
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
141
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
134
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
135
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
142
136
 
143
137
  # header parameters
144
138
  header_params = opts[:header_params] || {}
@@ -177,8 +171,8 @@ module PulpAnsibleClient
177
171
  # ViewSet for AnsibleCollectionDeprecated.
178
172
  # @param ansible_ansible_collection_deprecated_href [String]
179
173
  # @param [Hash] opts the optional parameters
180
- # @option opts [Array<String>] :fields A list of fields to include in the response.
181
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
174
+ # @option opts [String] :fields A list of fields to include in the response.
175
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
176
  # @return [AnsibleCollectionResponse]
183
177
  def read(ansible_ansible_collection_deprecated_href, opts = {})
184
178
  data, _status_code, _headers = read_with_http_info(ansible_ansible_collection_deprecated_href, opts)
@@ -189,8 +183,8 @@ module PulpAnsibleClient
189
183
  # ViewSet for AnsibleCollectionDeprecated.
190
184
  # @param ansible_ansible_collection_deprecated_href [String]
191
185
  # @param [Hash] opts the optional parameters
192
- # @option opts [Array<String>] :fields A list of fields to include in the response.
193
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
186
+ # @option opts [String] :fields A list of fields to include in the response.
187
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
194
188
  # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
195
189
  def read_with_http_info(ansible_ansible_collection_deprecated_href, opts = {})
196
190
  if @api_client.config.debugging
@@ -205,8 +199,8 @@ module PulpAnsibleClient
205
199
 
206
200
  # query parameters
207
201
  query_params = opts[:query_params] || {}
208
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
209
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
202
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
203
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
210
204
 
211
205
  # header parameters
212
206
  header_params = opts[:header_params] || {}
@@ -99,18 +99,16 @@ module PulpAnsibleClient
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @option opts [Integer] :limit Number of results to return per page.
101
101
  # @option opts [Integer] :offset The initial index from which to return the results.
102
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pubkey_fingerprint&#x60; - Pubkey fingerprint * &#x60;-pubkey_fingerprint&#x60; - Pubkey fingerprint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
102
+ # @option opts [Array<String>] :ordering Ordering
103
103
  # @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
104
104
  # @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
105
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
107
105
  # @option opts [String] :repository_version Repository Version referenced by HREF
108
106
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
109
107
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
110
108
  # @option opts [String] :signed_collection Filter signatures for collection version
111
109
  # @option opts [String] :signing_service Filter signatures produced by signature service
112
- # @option opts [Array<String>] :fields A list of fields to include in the response.
113
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
110
+ # @option opts [String] :fields A list of fields to include in the response.
111
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
114
112
  # @return [PaginatedansibleCollectionVersionSignatureResponseList]
115
113
  def list(opts = {})
116
114
  data, _status_code, _headers = list_with_http_info(opts)
@@ -122,24 +120,22 @@ module PulpAnsibleClient
122
120
  # @param [Hash] opts the optional parameters
123
121
  # @option opts [Integer] :limit Number of results to return per page.
124
122
  # @option opts [Integer] :offset The initial index from which to return the results.
125
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pubkey_fingerprint&#x60; - Pubkey fingerprint * &#x60;-pubkey_fingerprint&#x60; - Pubkey fingerprint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
123
+ # @option opts [Array<String>] :ordering Ordering
126
124
  # @option opts [String] :pubkey_fingerprint Filter results where pubkey_fingerprint matches value
127
125
  # @option opts [Array<String>] :pubkey_fingerprint__in Filter results where pubkey_fingerprint is in a comma-separated list of values
128
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
129
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
130
126
  # @option opts [String] :repository_version Repository Version referenced by HREF
131
127
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
132
128
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
133
129
  # @option opts [String] :signed_collection Filter signatures for collection version
134
130
  # @option opts [String] :signing_service Filter signatures produced by signature service
135
- # @option opts [Array<String>] :fields A list of fields to include in the response.
136
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
131
+ # @option opts [String] :fields A list of fields to include in the response.
132
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
137
133
  # @return [Array<(PaginatedansibleCollectionVersionSignatureResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionSignatureResponseList data, response status code and response headers
138
134
  def list_with_http_info(opts = {})
139
135
  if @api_client.config.debugging
140
136
  @api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.list ...'
141
137
  end
142
- allowable_values = ["-data", "-digest", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "data", "digest", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
138
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-data", "-digest", "-download_logs", "-group_roles", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-signed_collection", "-signing_service", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "data", "digest", "download_logs", "group_roles", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "signed_collection", "signing_service", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
143
139
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
144
140
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
145
141
  end
@@ -153,15 +149,13 @@ module PulpAnsibleClient
153
149
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
154
150
  query_params[:'pubkey_fingerprint'] = opts[:'pubkey_fingerprint'] if !opts[:'pubkey_fingerprint'].nil?
155
151
  query_params[:'pubkey_fingerprint__in'] = @api_client.build_collection_param(opts[:'pubkey_fingerprint__in'], :csv) if !opts[:'pubkey_fingerprint__in'].nil?
156
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
157
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
152
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
159
153
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
160
154
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
161
155
  query_params[:'signed_collection'] = opts[:'signed_collection'] if !opts[:'signed_collection'].nil?
162
156
  query_params[:'signing_service'] = opts[:'signing_service'] if !opts[:'signing_service'].nil?
163
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
164
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
157
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
158
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
165
159
 
166
160
  # header parameters
167
161
  header_params = opts[:header_params] || {}
@@ -200,8 +194,8 @@ module PulpAnsibleClient
200
194
  # ViewSet for looking at signature objects for CollectionVersion content.
201
195
  # @param ansible_collection_version_signature_href [String]
202
196
  # @param [Hash] opts the optional parameters
203
- # @option opts [Array<String>] :fields A list of fields to include in the response.
204
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
197
+ # @option opts [String] :fields A list of fields to include in the response.
198
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
205
199
  # @return [AnsibleCollectionVersionSignatureResponse]
206
200
  def read(ansible_collection_version_signature_href, opts = {})
207
201
  data, _status_code, _headers = read_with_http_info(ansible_collection_version_signature_href, opts)
@@ -212,8 +206,8 @@ module PulpAnsibleClient
212
206
  # ViewSet for looking at signature objects for CollectionVersion content.
213
207
  # @param ansible_collection_version_signature_href [String]
214
208
  # @param [Hash] opts the optional parameters
215
- # @option opts [Array<String>] :fields A list of fields to include in the response.
216
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
209
+ # @option opts [String] :fields A list of fields to include in the response.
210
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
217
211
  # @return [Array<(AnsibleCollectionVersionSignatureResponse, Integer, Hash)>] AnsibleCollectionVersionSignatureResponse data, response status code and response headers
218
212
  def read_with_http_info(ansible_collection_version_signature_href, opts = {})
219
213
  if @api_client.config.debugging
@@ -228,8 +222,8 @@ module PulpAnsibleClient
228
222
 
229
223
  # query parameters
230
224
  query_params = opts[:query_params] || {}
231
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
232
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
225
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
226
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
233
227
 
234
228
  # header parameters
235
229
  header_params = opts[:header_params] || {}
@@ -21,67 +21,57 @@ module PulpAnsibleClient
21
21
  end
22
22
  # Create a collection version
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
- # @param name [String] The name of the collection.
25
- # @param namespace [String] The namespace of the collection.
26
- # @param version [String] The version of the collection.
27
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :artifact Artifact file representing the physical content
26
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
27
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
28
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
30
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
29
+ # @option opts [String] :expected_name The name of the collection.
30
+ # @option opts [String] :expected_namespace The namespace of the collection.
31
+ # @option opts [String] :expected_version The version of the collection.
31
32
  # @return [AsyncOperationResponse]
32
- def create(name, namespace, version, opts = {})
33
- data, _status_code, _headers = create_with_http_info(name, namespace, version, opts)
33
+ def create(opts = {})
34
+ data, _status_code, _headers = create_with_http_info(opts)
34
35
  data
35
36
  end
36
37
 
37
38
  # Create a collection version
38
39
  # Trigger an asynchronous task to create content,optionally create new repository version.
39
- # @param name [String] The name of the collection.
40
- # @param namespace [String] The namespace of the collection.
41
- # @param version [String] The version of the collection.
42
40
  # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :artifact Artifact file representing the physical content
42
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
44
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
45
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
+ # @option opts [String] :expected_name The name of the collection.
46
+ # @option opts [String] :expected_namespace The namespace of the collection.
47
+ # @option opts [String] :expected_version The version of the collection.
46
48
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
47
- def create_with_http_info(name, namespace, version, opts = {})
49
+ def create_with_http_info(opts = {})
48
50
  if @api_client.config.debugging
49
51
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.create ...'
50
52
  end
51
- # verify the required parameter 'name' is set
52
- if @api_client.config.client_side_validation && name.nil?
53
- fail ArgumentError, "Missing the required parameter 'name' when calling ContentCollectionVersionsApi.create"
54
- end
55
- if @api_client.config.client_side_validation && name.to_s.length > 64
56
- fail ArgumentError, 'invalid value for "name" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
53
+ if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length > 64
54
+ fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
57
55
  end
58
56
 
59
- if @api_client.config.client_side_validation && name.to_s.length < 1
60
- fail ArgumentError, 'invalid value for "name" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
57
+ if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
61
59
  end
62
60
 
63
- # verify the required parameter 'namespace' is set
64
- if @api_client.config.client_side_validation && namespace.nil?
65
- fail ArgumentError, "Missing the required parameter 'namespace' when calling ContentCollectionVersionsApi.create"
66
- end
67
- if @api_client.config.client_side_validation && namespace.to_s.length > 64
68
- fail ArgumentError, 'invalid value for "namespace" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
61
+ if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length > 64
62
+ fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
69
63
  end
70
64
 
71
- if @api_client.config.client_side_validation && namespace.to_s.length < 1
72
- fail ArgumentError, 'invalid value for "namespace" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
65
+ if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
66
+ fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
73
67
  end
74
68
 
75
- # verify the required parameter 'version' is set
76
- if @api_client.config.client_side_validation && version.nil?
77
- fail ArgumentError, "Missing the required parameter 'version' when calling ContentCollectionVersionsApi.create"
78
- end
79
- if @api_client.config.client_side_validation && version.to_s.length > 128
80
- fail ArgumentError, 'invalid value for "version" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 128.'
69
+ if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length > 128
70
+ fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 128.'
81
71
  end
82
72
 
83
- if @api_client.config.client_side_validation && version.to_s.length < 1
84
- fail ArgumentError, 'invalid value for "version" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
73
+ if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
74
+ fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
85
75
  end
86
76
 
87
77
  # resource path
@@ -99,12 +89,13 @@ module PulpAnsibleClient
99
89
 
100
90
  # form parameters
101
91
  form_params = opts[:form_params] || {}
102
- form_params['name'] = name
103
- form_params['namespace'] = namespace
104
- form_params['version'] = version
92
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
93
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
105
94
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
106
95
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
107
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
96
+ form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
97
+ form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
98
+ form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
108
99
 
109
100
  # http body (model)
110
101
  post_body = opts[:body]
@@ -139,17 +130,15 @@ module PulpAnsibleClient
139
130
  # @option opts [String] :name
140
131
  # @option opts [String] :namespace
141
132
  # @option opts [Integer] :offset The initial index from which to return the results.
142
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
143
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
144
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
133
+ # @option opts [Array<String>] :ordering Ordering
145
134
  # @option opts [String] :q
146
135
  # @option opts [String] :repository_version Repository Version referenced by HREF
147
136
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
148
137
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
149
138
  # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
150
139
  # @option opts [String] :version Filter results where version matches value
151
- # @option opts [Array<String>] :fields A list of fields to include in the response.
152
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
140
+ # @option opts [String] :fields A list of fields to include in the response.
141
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
153
142
  # @return [PaginatedansibleCollectionVersionResponseList]
154
143
  def list(opts = {})
155
144
  data, _status_code, _headers = list_with_http_info(opts)
@@ -164,23 +153,21 @@ module PulpAnsibleClient
164
153
  # @option opts [String] :name
165
154
  # @option opts [String] :namespace
166
155
  # @option opts [Integer] :offset The initial index from which to return the results.
167
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
168
- # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
169
- # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
156
+ # @option opts [Array<String>] :ordering Ordering
170
157
  # @option opts [String] :q
171
158
  # @option opts [String] :repository_version Repository Version referenced by HREF
172
159
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
173
160
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
174
161
  # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
175
162
  # @option opts [String] :version Filter results where version matches value
176
- # @option opts [Array<String>] :fields A list of fields to include in the response.
177
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
163
+ # @option opts [String] :fields A list of fields to include in the response.
164
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
178
165
  # @return [Array<(PaginatedansibleCollectionVersionResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionResponseList data, response status code and response headers
179
166
  def list_with_http_info(opts = {})
180
167
  if @api_client.config.debugging
181
168
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
182
169
  end
183
- allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version"]
170
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
184
171
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
185
172
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
186
173
  end
@@ -195,16 +182,14 @@ module PulpAnsibleClient
195
182
  query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
196
183
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
197
184
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
198
- query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
199
- query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
200
185
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
201
186
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
202
187
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
203
188
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
204
189
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
205
190
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
206
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
207
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
191
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
192
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
208
193
 
209
194
  # header parameters
210
195
  header_params = opts[:header_params] || {}
@@ -243,8 +228,8 @@ module PulpAnsibleClient
243
228
  # ViewSet for Ansible Collection.
244
229
  # @param ansible_collection_version_href [String]
245
230
  # @param [Hash] opts the optional parameters
246
- # @option opts [Array<String>] :fields A list of fields to include in the response.
247
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
231
+ # @option opts [String] :fields A list of fields to include in the response.
232
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
248
233
  # @return [AnsibleCollectionVersionResponse]
249
234
  def read(ansible_collection_version_href, opts = {})
250
235
  data, _status_code, _headers = read_with_http_info(ansible_collection_version_href, opts)
@@ -255,8 +240,8 @@ module PulpAnsibleClient
255
240
  # ViewSet for Ansible Collection.
256
241
  # @param ansible_collection_version_href [String]
257
242
  # @param [Hash] opts the optional parameters
258
- # @option opts [Array<String>] :fields A list of fields to include in the response.
259
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
243
+ # @option opts [String] :fields A list of fields to include in the response.
244
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
260
245
  # @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
261
246
  def read_with_http_info(ansible_collection_version_href, opts = {})
262
247
  if @api_client.config.debugging
@@ -271,8 +256,8 @@ module PulpAnsibleClient
271
256
 
272
257
  # query parameters
273
258
  query_params = opts[:query_params] || {}
274
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
275
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
259
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
260
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
276
261
 
277
262
  # header parameters
278
263
  header_params = opts[:header_params] || {}