pulp_ansible_client 0.15.6 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -8
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +1 -1
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  7. data/docs/AnsibleCollectionRemote.md +1 -1
  8. data/docs/AnsibleCollectionRemoteResponse.md +1 -3
  9. data/docs/AnsibleCollectionVersion.md +10 -8
  10. data/docs/AnsibleCollectionVersionResponse.md +23 -23
  11. data/docs/AnsibleCollectionsApi.md +5 -5
  12. data/docs/AnsibleCopyApi.md +1 -1
  13. data/docs/AnsibleGitRemote.md +28 -28
  14. data/docs/AnsibleGitRemoteResponse.md +24 -26
  15. data/docs/AnsibleRoleRemote.md +1 -1
  16. data/docs/AnsibleRoleRemoteResponse.md +2 -4
  17. data/docs/AnsibleRoleResponse.md +3 -3
  18. data/docs/ApiCollectionsApi.md +5 -5
  19. data/docs/ApiRolesApi.md +5 -5
  20. data/docs/CollectionImportApi.md +5 -5
  21. data/docs/ContentCollectionDeprecationsApi.md +9 -9
  22. data/docs/ContentCollectionSignaturesApi.md +11 -11
  23. data/docs/ContentCollectionVersionsApi.md +22 -20
  24. data/docs/ContentRolesApi.md +9 -9
  25. data/docs/DistributionsAnsibleApi.md +13 -13
  26. data/docs/GalaxyDetailApi.md +5 -5
  27. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  28. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  29. data/docs/PatchedansibleCollectionRemote.md +1 -1
  30. data/docs/PatchedansibleGitRemote.md +28 -28
  31. data/docs/PatchedansibleRoleRemote.md +1 -1
  32. data/docs/PulpAnsibleApiApi.md +5 -5
  33. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +5 -5
  34. data/docs/PulpAnsibleApiV3Api.md +5 -5
  35. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +5 -5
  36. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +5 -5
  37. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +5 -5
  38. data/docs/PulpAnsibleApiV3CollectionsApi.md +9 -9
  39. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +9 -9
  40. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +5 -5
  41. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +5 -5
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +5 -5
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +5 -5
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +5 -5
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +9 -9
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +9 -9
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +5 -5
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +5 -5
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
  66. data/docs/PulpAnsibleTagsApi.md +5 -5
  67. data/docs/RemotesCollectionApi.md +13 -13
  68. data/docs/RemotesGitApi.md +13 -13
  69. data/docs/RemotesRoleApi.md +13 -13
  70. data/docs/RepositoriesAnsibleApi.md +12 -12
  71. data/docs/RepositoriesAnsibleVersionsApi.md +13 -13
  72. data/docs/VersionsApi.md +9 -9
  73. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -7
  74. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  75. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  76. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +12 -12
  78. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +13 -13
  79. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +43 -52
  80. data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
  81. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +17 -17
  82. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +7 -7
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +13 -13
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +13 -13
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +7 -7
  102. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +13 -13
  103. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +13 -13
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +17 -17
  114. data/lib/pulp_ansible_client/api/remotes_git_api.rb +17 -17
  115. data/lib/pulp_ansible_client/api/remotes_role_api.rb +17 -17
  116. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
  117. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +17 -17
  118. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  119. data/lib/pulp_ansible_client/configuration.rb +3 -3
  120. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
  121. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
  122. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +2 -4
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +2 -4
  124. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +22 -24
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +23 -37
  126. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +75 -92
  127. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +52 -160
  128. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -250
  129. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -159
  130. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +22 -24
  131. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +27 -41
  132. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  133. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
  134. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +2 -4
  135. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +22 -24
  136. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +236 -238
  137. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +22 -24
  138. data/lib/pulp_ansible_client/version.rb +1 -1
  139. data/lib/pulp_ansible_client.rb +0 -1
  140. data/spec/api/ansible_collections_api_spec.rb +2 -2
  141. data/spec/api/api_collections_api_spec.rb +2 -2
  142. data/spec/api/api_roles_api_spec.rb +2 -2
  143. data/spec/api/collection_import_api_spec.rb +2 -2
  144. data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
  145. data/spec/api/content_collection_signatures_api_spec.rb +4 -4
  146. data/spec/api/content_collection_versions_api_spec.rb +9 -8
  147. data/spec/api/content_roles_api_spec.rb +4 -4
  148. data/spec/api/distributions_ansible_api_spec.rb +6 -6
  149. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  150. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  151. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  152. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  153. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  154. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  155. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
  156. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +4 -4
  157. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
  158. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  159. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  160. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  161. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  162. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  165. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  166. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
  169. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +4 -4
  170. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
  171. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  172. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  173. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  174. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  176. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  177. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  178. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  179. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  180. data/spec/api/remotes_collection_api_spec.rb +6 -6
  181. data/spec/api/remotes_git_api_spec.rb +6 -6
  182. data/spec/api/remotes_role_api_spec.rb +6 -6
  183. data/spec/api/repositories_ansible_api_spec.rb +5 -5
  184. data/spec/api/repositories_ansible_versions_api_spec.rb +6 -6
  185. data/spec/api/versions_api_spec.rb +4 -4
  186. data/spec/configuration_spec.rb +3 -3
  187. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  188. data/spec/models/ansible_collection_version_response_spec.rb +8 -8
  189. data/spec/models/ansible_collection_version_spec.rb +10 -4
  190. data/spec/models/ansible_git_remote_response_spec.rb +16 -22
  191. data/spec/models/ansible_git_remote_spec.rb +19 -19
  192. data/spec/models/ansible_role_remote_response_spec.rb +0 -6
  193. data/spec/models/ansible_role_response_spec.rb +2 -2
  194. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  195. metadata +111 -115
  196. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  197. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -225
  198. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -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
28
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
25
+ # @option opts [String] :artifact Artifact file representing the physical content
29
26
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
27
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
30
28
  # @option opts [String] :upload An uncommitted upload 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
43
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @option opts [String] :artifact Artifact file representing the physical content
44
42
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
45
44
  # @option opts [String] :upload An uncommitted upload 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
105
- form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
92
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
106
93
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
94
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
107
95
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].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]
@@ -146,8 +137,8 @@ module PulpAnsibleClient
146
137
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
147
138
  # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
148
139
  # @option opts [String] :version Filter results where version matches value
149
- # @option opts [Array<String>] :fields A list of fields to include in the response.
150
- # @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.
151
142
  # @return [PaginatedansibleCollectionVersionResponseList]
152
143
  def list(opts = {})
153
144
  data, _status_code, _headers = list_with_http_info(opts)
@@ -169,14 +160,14 @@ module PulpAnsibleClient
169
160
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
170
161
  # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
171
162
  # @option opts [String] :version Filter results where version matches value
172
- # @option opts [Array<String>] :fields A list of fields to include in the response.
173
- # @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.
174
165
  # @return [Array<(PaginatedansibleCollectionVersionResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionResponseList data, response status code and response headers
175
166
  def list_with_http_info(opts = {})
176
167
  if @api_client.config.debugging
177
168
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
178
169
  end
179
- 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"]
180
171
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
181
172
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
182
173
  end
@@ -197,8 +188,8 @@ module PulpAnsibleClient
197
188
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
198
189
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
199
190
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
200
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
201
- 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?
202
193
 
203
194
  # header parameters
204
195
  header_params = opts[:header_params] || {}
@@ -237,8 +228,8 @@ module PulpAnsibleClient
237
228
  # ViewSet for Ansible Collection.
238
229
  # @param ansible_collection_version_href [String]
239
230
  # @param [Hash] opts the optional parameters
240
- # @option opts [Array<String>] :fields A list of fields to include in the response.
241
- # @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.
242
233
  # @return [AnsibleCollectionVersionResponse]
243
234
  def read(ansible_collection_version_href, opts = {})
244
235
  data, _status_code, _headers = read_with_http_info(ansible_collection_version_href, opts)
@@ -249,8 +240,8 @@ module PulpAnsibleClient
249
240
  # ViewSet for Ansible Collection.
250
241
  # @param ansible_collection_version_href [String]
251
242
  # @param [Hash] opts the optional parameters
252
- # @option opts [Array<String>] :fields A list of fields to include in the response.
253
- # @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.
254
245
  # @return [Array<(AnsibleCollectionVersionResponse, Integer, Hash)>] AnsibleCollectionVersionResponse data, response status code and response headers
255
246
  def read_with_http_info(ansible_collection_version_href, opts = {})
256
247
  if @api_client.config.debugging
@@ -265,8 +256,8 @@ module PulpAnsibleClient
265
256
 
266
257
  # query parameters
267
258
  query_params = opts[:query_params] || {}
268
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
269
- 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?
270
261
 
271
262
  # header parameters
272
263
  header_params = opts[:header_params] || {}
@@ -95,8 +95,8 @@ module PulpAnsibleClient
95
95
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
96
96
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
97
97
  # @option opts [String] :version Filter results where version matches value
98
- # @option opts [Array<String>] :fields A list of fields to include in the response.
99
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
98
+ # @option opts [String] :fields A list of fields to include in the response.
99
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
100
100
  # @return [PaginatedansibleRoleResponseList]
101
101
  def list(opts = {})
102
102
  data, _status_code, _headers = list_with_http_info(opts)
@@ -115,14 +115,14 @@ module PulpAnsibleClient
115
115
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
116
116
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
117
117
  # @option opts [String] :version Filter results where version matches value
118
- # @option opts [Array<String>] :fields A list of fields to include in the response.
119
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
118
+ # @option opts [String] :fields A list of fields to include in the response.
119
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
120
  # @return [Array<(PaginatedansibleRoleResponseList, Integer, Hash)>] PaginatedansibleRoleResponseList data, response status code and response headers
121
121
  def list_with_http_info(opts = {})
122
122
  if @api_client.config.debugging
123
123
  @api_client.config.logger.debug 'Calling API: ContentRolesApi.list ...'
124
124
  end
125
- allowable_values = ["-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "-version", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id", "version"]
125
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-download_logs", "-group_roles", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "download_logs", "group_roles", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
126
126
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
127
127
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
128
128
  end
@@ -140,8 +140,8 @@ module PulpAnsibleClient
140
140
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
141
141
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
142
142
  query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
143
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
144
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
143
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
144
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
145
145
 
146
146
  # header parameters
147
147
  header_params = opts[:header_params] || {}
@@ -180,8 +180,8 @@ module PulpAnsibleClient
180
180
  # ViewSet for Role.
181
181
  # @param ansible_role_href [String]
182
182
  # @param [Hash] opts the optional parameters
183
- # @option opts [Array<String>] :fields A list of fields to include in the response.
184
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
183
+ # @option opts [String] :fields A list of fields to include in the response.
184
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
185
185
  # @return [AnsibleRoleResponse]
186
186
  def read(ansible_role_href, opts = {})
187
187
  data, _status_code, _headers = read_with_http_info(ansible_role_href, opts)
@@ -192,8 +192,8 @@ module PulpAnsibleClient
192
192
  # ViewSet for Role.
193
193
  # @param ansible_role_href [String]
194
194
  # @param [Hash] opts the optional parameters
195
- # @option opts [Array<String>] :fields A list of fields to include in the response.
196
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
195
+ # @option opts [String] :fields A list of fields to include in the response.
196
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
197
197
  # @return [Array<(AnsibleRoleResponse, Integer, Hash)>] AnsibleRoleResponse data, response status code and response headers
198
198
  def read_with_http_info(ansible_role_href, opts = {})
199
199
  if @api_client.config.debugging
@@ -208,8 +208,8 @@ module PulpAnsibleClient
208
208
 
209
209
  # query parameters
210
210
  query_params = opts[:query_params] || {}
211
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
212
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
211
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
212
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
213
213
 
214
214
  # header parameters
215
215
  header_params = opts[:header_params] || {}
@@ -148,12 +148,12 @@ module PulpAnsibleClient
148
148
  # List ansible distributions
149
149
  # ViewSet for Ansible Distributions.
150
150
  # @param [Hash] opts the optional parameters
151
- # @option opts [String] :base_path Filter results where base_path matches value
151
+ # @option opts [String] :base_path
152
152
  # @option opts [String] :base_path__contains Filter results where base_path contains value
153
153
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
154
154
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
155
155
  # @option opts [Integer] :limit Number of results to return per page.
156
- # @option opts [String] :name Filter results where name matches value
156
+ # @option opts [String] :name
157
157
  # @option opts [String] :name__contains Filter results where name contains value
158
158
  # @option opts [String] :name__icontains Filter results where name contains value
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -162,8 +162,8 @@ module PulpAnsibleClient
162
162
  # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
164
  # @option opts [String] :with_content Filter distributions based on the content served by them
165
- # @option opts [Array<String>] :fields A list of fields to include in the response.
166
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
165
+ # @option opts [String] :fields A list of fields to include in the response.
166
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
167
167
  # @return [PaginatedansibleAnsibleDistributionResponseList]
168
168
  def list(opts = {})
169
169
  data, _status_code, _headers = list_with_http_info(opts)
@@ -173,12 +173,12 @@ module PulpAnsibleClient
173
173
  # List ansible distributions
174
174
  # ViewSet for Ansible Distributions.
175
175
  # @param [Hash] opts the optional parameters
176
- # @option opts [String] :base_path Filter results where base_path matches value
176
+ # @option opts [String] :base_path
177
177
  # @option opts [String] :base_path__contains Filter results where base_path contains value
178
178
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
179
179
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
180
180
  # @option opts [Integer] :limit Number of results to return per page.
181
- # @option opts [String] :name Filter results where name matches value
181
+ # @option opts [String] :name
182
182
  # @option opts [String] :name__contains Filter results where name contains value
183
183
  # @option opts [String] :name__icontains Filter results where name contains value
184
184
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -187,14 +187,14 @@ module PulpAnsibleClient
187
187
  # @option opts [Array<String>] :ordering Ordering
188
188
  # @option opts [String] :pulp_label_select Filter labels by search string
189
189
  # @option opts [String] :with_content Filter distributions based on the content served by them
190
- # @option opts [Array<String>] :fields A list of fields to include in the response.
191
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
190
+ # @option opts [String] :fields A list of fields to include in the response.
191
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
192
192
  # @return [Array<(PaginatedansibleAnsibleDistributionResponseList, Integer, Hash)>] PaginatedansibleAnsibleDistributionResponseList data, response status code and response headers
193
193
  def list_with_http_info(opts = {})
194
194
  if @api_client.config.debugging
195
195
  @api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.list ...'
196
196
  end
197
- allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
197
+ allowable_values = ["-ansible_ansibledistribution", "-base_path", "-content_guard", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "ansible_ansibledistribution", "base_path", "content_guard", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
198
198
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
199
199
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
200
200
  end
@@ -217,8 +217,8 @@ module PulpAnsibleClient
217
217
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
218
218
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
219
219
  query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
220
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
221
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
220
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
221
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
222
222
 
223
223
  # header parameters
224
224
  header_params = opts[:header_params] || {}
@@ -327,8 +327,8 @@ module PulpAnsibleClient
327
327
  # ViewSet for Ansible Distributions.
328
328
  # @param ansible_ansible_distribution_href [String]
329
329
  # @param [Hash] opts the optional parameters
330
- # @option opts [Array<String>] :fields A list of fields to include in the response.
331
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
330
+ # @option opts [String] :fields A list of fields to include in the response.
331
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
332
332
  # @return [AnsibleAnsibleDistributionResponse]
333
333
  def read(ansible_ansible_distribution_href, opts = {})
334
334
  data, _status_code, _headers = read_with_http_info(ansible_ansible_distribution_href, opts)
@@ -339,8 +339,8 @@ module PulpAnsibleClient
339
339
  # ViewSet for Ansible Distributions.
340
340
  # @param ansible_ansible_distribution_href [String]
341
341
  # @param [Hash] opts the optional parameters
342
- # @option opts [Array<String>] :fields A list of fields to include in the response.
343
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
342
+ # @option opts [String] :fields A list of fields to include in the response.
343
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
344
344
  # @return [Array<(AnsibleAnsibleDistributionResponse, Integer, Hash)>] AnsibleAnsibleDistributionResponse data, response status code and response headers
345
345
  def read_with_http_info(ansible_ansible_distribution_href, opts = {})
346
346
  if @api_client.config.debugging
@@ -355,8 +355,8 @@ module PulpAnsibleClient
355
355
 
356
356
  # query parameters
357
357
  query_params = opts[:query_params] || {}
358
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
359
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
358
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
359
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
360
360
 
361
361
  # header parameters
362
362
  header_params = opts[:header_params] || {}
@@ -22,8 +22,8 @@ module PulpAnsibleClient
22
22
  # Get the detail view of a Collection.
23
23
  # @param ansible_collection_href [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
27
  # @return [GalaxyCollectionResponse]
28
28
  def get(ansible_collection_href, opts = {})
29
29
  data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  # Get the detail view of a Collection.
34
34
  # @param ansible_collection_href [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
38
  # @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
39
39
  def get_with_http_info(ansible_collection_href, opts = {})
40
40
  if @api_client.config.debugging
@@ -49,8 +49,8 @@ module PulpAnsibleClient
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
54
 
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
@@ -22,8 +22,8 @@ module PulpAnsibleClient
22
22
  # Return a response to the \"GET\" action.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
27
  # @return [nil]
28
28
  def get(path, opts = {})
29
29
  get_with_http_info(path, opts)
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  # Return a response to the \&quot;GET\&quot; action.
34
34
  # @param path [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
38
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
39
  def get_with_http_info(path, opts = {})
40
40
  if @api_client.config.debugging
@@ -49,8 +49,8 @@ module PulpAnsibleClient
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
54
 
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
@@ -25,8 +25,8 @@ module PulpAnsibleClient
25
25
  # @param path [String]
26
26
  # @param version [String]
27
27
  # @param [Hash] opts the optional parameters
28
- # @option opts [Array<String>] :fields A list of fields to include in the response.
29
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
28
+ # @option opts [String] :fields A list of fields to include in the response.
29
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
30
30
  # @return [nil]
31
31
  def get(name, namespace, path, version, opts = {})
32
32
  get_with_http_info(name, namespace, path, version, opts)
@@ -39,8 +39,8 @@ module PulpAnsibleClient
39
39
  # @param path [String]
40
40
  # @param version [String]
41
41
  # @param [Hash] opts the optional parameters
42
- # @option opts [Array<String>] :fields A list of fields to include in the response.
43
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
42
+ # @option opts [String] :fields A list of fields to include in the response.
43
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
44
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
45
45
  def get_with_http_info(name, namespace, path, version, opts = {})
46
46
  if @api_client.config.debugging
@@ -67,8 +67,8 @@ module PulpAnsibleClient
67
67
 
68
68
  # query parameters
69
69
  query_params = opts[:query_params] || {}
70
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
71
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
70
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
71
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
72
72
 
73
73
  # header parameters
74
74
  header_params = opts[:header_params] || {}
@@ -22,8 +22,8 @@ module PulpAnsibleClient
22
22
  # Legacy v3 endpoint.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
27
  # @return [RepoMetadataResponse]
28
28
  def read(path, opts = {})
29
29
  data, _status_code, _headers = read_with_http_info(path, opts)
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  # Legacy v3 endpoint.
34
34
  # @param path [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
38
  # @return [Array<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
39
39
  def read_with_http_info(path, opts = {})
40
40
  if @api_client.config.debugging
@@ -49,8 +49,8 @@ module PulpAnsibleClient
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
54
 
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
@@ -23,8 +23,8 @@ module PulpAnsibleClient
23
23
  # @param filename [String]
24
24
  # @param path [String]
25
25
  # @param [Hash] opts the optional parameters
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 [nil]
29
29
  def get(filename, path, opts = {})
30
30
  get_with_http_info(filename, path, opts)
@@ -35,8 +35,8 @@ module PulpAnsibleClient
35
35
  # @param filename [String]
36
36
  # @param path [String]
37
37
  # @param [Hash] opts the optional parameters
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<(nil, Integer, Hash)>] nil, response status code and response headers
41
41
  def get_with_http_info(filename, path, opts = {})
42
42
  if @api_client.config.debugging
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
 
56
56
  # query parameters
57
57
  query_params = opts[:query_params] || {}
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] || {}
@@ -22,8 +22,8 @@ module PulpAnsibleClient
22
22
  # Legacy v3 endpoint.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
27
  # @return [Array<UnpaginatedCollectionVersionResponse>]
28
28
  def list(path, opts = {})
29
29
  data, _status_code, _headers = list_with_http_info(path, opts)
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  # Legacy v3 endpoint.
34
34
  # @param path [String]
35
35
  # @param [Hash] opts the optional parameters
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
38
  # @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
39
39
  def list_with_http_info(path, opts = {})
40
40
  if @api_client.config.debugging
@@ -49,8 +49,8 @@ module PulpAnsibleClient
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
54
 
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
@@ -26,8 +26,8 @@ module PulpAnsibleClient
26
26
  # @option opts [String] :name
27
27
  # @option opts [String] :namespace
28
28
  # @option opts [Array<String>] :ordering Ordering
29
- # @option opts [Array<String>] :fields A list of fields to include in the response.
30
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
29
+ # @option opts [String] :fields A list of fields to include in the response.
30
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
31
31
  # @return [Array<CollectionResponse>]
32
32
  def list(path, opts = {})
33
33
  data, _status_code, _headers = list_with_http_info(path, opts)
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # @option opts [String] :name
42
42
  # @option opts [String] :namespace
43
43
  # @option opts [Array<String>] :ordering Ordering
44
- # @option opts [Array<String>] :fields A list of fields to include in the response.
45
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
44
+ # @option opts [String] :fields A list of fields to include in the response.
45
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
46
  # @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
47
47
  def list_with_http_info(path, opts = {})
48
48
  if @api_client.config.debugging
@@ -52,7 +52,7 @@ module PulpAnsibleClient
52
52
  if @api_client.config.client_side_validation && path.nil?
53
53
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsAllApi.list"
54
54
  end
55
- allowable_values = ["-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
55
+ allowable_values = ["-group_roles", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-user_roles", "-versions", "group_roles", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "user_roles", "versions"]
56
56
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
57
57
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
58
58
  end
@@ -65,8 +65,8 @@ module PulpAnsibleClient
65
65
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
66
66
  query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
67
67
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
68
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
69
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
68
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
69
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
70
70
 
71
71
  # header parameters
72
72
  header_params = opts[:header_params] || {}