pulp_ansible_client 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  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 +3 -1
  9. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +19 -0
  10. data/docs/AnsibleCollectionVersion.md +3 -3
  11. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  12. data/docs/AnsibleCollectionsApi.md +4 -4
  13. data/docs/AnsibleGitRemote.md +26 -26
  14. data/docs/AnsibleGitRemoteResponse.md +24 -22
  15. data/docs/AnsibleRoleRemote.md +1 -1
  16. data/docs/AnsibleRoleRemoteResponse.md +4 -2
  17. data/docs/AnsibleRoleResponse.md +2 -2
  18. data/docs/ApiCollectionsApi.md +4 -4
  19. data/docs/ApiRolesApi.md +4 -4
  20. data/docs/CollectionImportApi.md +4 -4
  21. data/docs/ContentCollectionDeprecationsApi.md +8 -8
  22. data/docs/ContentCollectionSignaturesApi.md +10 -10
  23. data/docs/ContentCollectionVersionsApi.md +10 -10
  24. data/docs/ContentRolesApi.md +8 -8
  25. data/docs/DistributionsAnsibleApi.md +12 -12
  26. data/docs/GalaxyDetailApi.md +4 -4
  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 +26 -26
  31. data/docs/PatchedansibleRoleRemote.md +1 -1
  32. data/docs/PulpAnsibleApiApi.md +4 -4
  33. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
  34. data/docs/PulpAnsibleApiV3Api.md +4 -4
  35. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
  36. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
  37. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +4 -4
  38. data/docs/PulpAnsibleApiV3CollectionsApi.md +8 -8
  39. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +8 -8
  40. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  41. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -4
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +8 -8
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -8
  48. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  49. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +4 -4
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +8 -8
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +8 -8
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -4
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +8 -8
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -8
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  61. data/docs/PulpAnsibleTagsApi.md +4 -4
  62. data/docs/RemotesCollectionApi.md +12 -12
  63. data/docs/RemotesGitApi.md +12 -12
  64. data/docs/RemotesRoleApi.md +12 -12
  65. data/docs/RepositoriesAnsibleApi.md +11 -11
  66. data/docs/RepositoriesAnsibleVersionsApi.md +12 -12
  67. data/docs/VersionsApi.md +8 -8
  68. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -7
  69. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  70. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  71. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  72. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +12 -12
  73. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +13 -13
  74. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +16 -16
  75. data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
  76. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +17 -17
  77. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  78. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  79. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  80. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  82. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +7 -7
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +13 -13
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +13 -13
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +7 -7
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +13 -13
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +13 -13
  99. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -7
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  102. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  103. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +13 -13
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  107. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  108. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +17 -17
  109. data/lib/pulp_ansible_client/api/remotes_git_api.rb +17 -17
  110. data/lib/pulp_ansible_client/api/remotes_role_api.rb +17 -17
  111. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
  112. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +17 -17
  113. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  114. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +4 -2
  115. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +4 -2
  116. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +4 -2
  117. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +4 -2
  118. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +4 -2
  119. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +17 -3
  120. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +215 -0
  121. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  122. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  123. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +220 -218
  124. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +137 -123
  125. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +4 -2
  126. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +21 -7
  127. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  128. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +4 -2
  129. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +4 -2
  130. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +4 -2
  131. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +210 -208
  132. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +4 -2
  133. data/lib/pulp_ansible_client/version.rb +1 -1
  134. data/lib/pulp_ansible_client.rb +1 -0
  135. data/spec/api/ansible_collections_api_spec.rb +2 -2
  136. data/spec/api/api_collections_api_spec.rb +2 -2
  137. data/spec/api/api_roles_api_spec.rb +2 -2
  138. data/spec/api/collection_import_api_spec.rb +2 -2
  139. data/spec/api/content_collection_deprecations_api_spec.rb +4 -4
  140. data/spec/api/content_collection_signatures_api_spec.rb +4 -4
  141. data/spec/api/content_collection_versions_api_spec.rb +5 -5
  142. data/spec/api/content_roles_api_spec.rb +4 -4
  143. data/spec/api/distributions_ansible_api_spec.rb +6 -6
  144. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  145. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  146. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  147. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  148. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  149. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  150. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -2
  151. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +4 -4
  152. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
  153. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  154. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  155. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  156. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  157. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  158. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  159. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  160. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  161. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  162. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +4 -4
  165. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
  166. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  169. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  170. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  171. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +4 -4
  172. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
  173. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  174. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  175. data/spec/api/remotes_collection_api_spec.rb +6 -6
  176. data/spec/api/remotes_git_api_spec.rb +6 -6
  177. data/spec/api/remotes_role_api_spec.rb +6 -6
  178. data/spec/api/repositories_ansible_api_spec.rb +5 -5
  179. data/spec/api/repositories_ansible_versions_api_spec.rb +6 -6
  180. data/spec/api/versions_api_spec.rb +4 -4
  181. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +47 -0
  182. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  183. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  184. data/spec/models/ansible_collection_version_spec.rb +2 -2
  185. data/spec/models/ansible_git_remote_response_spec.rb +20 -14
  186. data/spec/models/ansible_git_remote_spec.rb +19 -19
  187. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  188. data/spec/models/ansible_role_response_spec.rb +2 -2
  189. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  190. metadata +104 -100
@@ -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 [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.
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.
29
29
  # @return [PaginatedGalaxyRoleVersionResponseList]
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 [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.
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.
42
42
  # @return [Array<(PaginatedGalaxyRoleVersionResponseList, Integer, Hash)>] PaginatedGalaxyRoleVersionResponseList 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'] = opts[:'fields'] if !opts[:'fields'].nil?
59
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].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?
60
60
 
61
61
  # header parameters
62
62
  header_params = opts[:header_params] || {}
@@ -95,8 +95,8 @@ module PulpAnsibleClient
95
95
  # @param ansible_collection_version_href [String]
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @option opts [Integer] :page A page number within the paginated result set.
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.
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.
100
100
  # @return [PaginatedGalaxyCollectionVersionResponseList]
101
101
  def get_0(ansible_collection_version_href, opts = {})
102
102
  data, _status_code, _headers = get_0_with_http_info(ansible_collection_version_href, opts)
@@ -107,8 +107,8 @@ module PulpAnsibleClient
107
107
  # @param ansible_collection_version_href [String]
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @option opts [Integer] :page A page number within the paginated result set.
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.
110
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
111
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
112
112
  # @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
113
113
  def get_0_with_http_info(ansible_collection_version_href, opts = {})
114
114
  if @api_client.config.debugging
@@ -124,8 +124,8 @@ module PulpAnsibleClient
124
124
  # query parameters
125
125
  query_params = opts[:query_params] || {}
126
126
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
127
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
128
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
127
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
128
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
129
129
 
130
130
  # header parameters
131
131
  header_params = opts[:header_params] || {}
@@ -52,7 +52,7 @@ module PulpAnsibleClient
52
52
  :'name' => :'String',
53
53
  :'repository' => :'String',
54
54
  :'repository_version' => :'String',
55
- :'pulp_labels' => :'Object'
55
+ :'pulp_labels' => :'Hash<String, String>'
56
56
  }
57
57
  end
58
58
 
@@ -101,7 +101,9 @@ module PulpAnsibleClient
101
101
  end
102
102
 
103
103
  if attributes.key?(:'pulp_labels')
104
- self.pulp_labels = attributes[:'pulp_labels']
104
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
+ self.pulp_labels = value
106
+ end
105
107
  end
106
108
  end
107
109
 
@@ -66,7 +66,7 @@ module PulpAnsibleClient
66
66
  :'repository' => :'String',
67
67
  :'repository_version' => :'String',
68
68
  :'client_url' => :'String',
69
- :'pulp_labels' => :'Object'
69
+ :'pulp_labels' => :'Hash<String, String>'
70
70
  }
71
71
  end
72
72
 
@@ -127,7 +127,9 @@ module PulpAnsibleClient
127
127
  end
128
128
 
129
129
  if attributes.key?(:'pulp_labels')
130
- self.pulp_labels = attributes[:'pulp_labels']
130
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
+ self.pulp_labels = value
132
+ end
131
133
  end
132
134
  end
133
135
 
@@ -51,7 +51,7 @@ module PulpAnsibleClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
- :'pulp_labels' => :'Object',
54
+ :'pulp_labels' => :'Hash<String, String>',
55
55
  :'name' => :'String',
56
56
  :'description' => :'String',
57
57
  :'retain_repo_versions' => :'Integer',
@@ -88,7 +88,9 @@ module PulpAnsibleClient
88
88
  }
89
89
 
90
90
  if attributes.key?(:'pulp_labels')
91
- self.pulp_labels = attributes[:'pulp_labels']
91
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
+ self.pulp_labels = value
93
+ end
92
94
  end
93
95
 
94
96
  if attributes.key?(:'name')
@@ -67,7 +67,7 @@ module PulpAnsibleClient
67
67
  :'pulp_href' => :'String',
68
68
  :'pulp_created' => :'DateTime',
69
69
  :'versions_href' => :'String',
70
- :'pulp_labels' => :'Object',
70
+ :'pulp_labels' => :'Hash<String, String>',
71
71
  :'latest_version_href' => :'String',
72
72
  :'name' => :'String',
73
73
  :'description' => :'String',
@@ -117,7 +117,9 @@ module PulpAnsibleClient
117
117
  end
118
118
 
119
119
  if attributes.key?(:'pulp_labels')
120
- self.pulp_labels = attributes[:'pulp_labels']
120
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
121
+ self.pulp_labels = value
122
+ end
121
123
  end
122
124
 
123
125
  if attributes.key?(:'latest_version_href')
@@ -138,7 +138,7 @@ module PulpAnsibleClient
138
138
  :'proxy_password' => :'String',
139
139
  :'username' => :'String',
140
140
  :'password' => :'String',
141
- :'pulp_labels' => :'Object',
141
+ :'pulp_labels' => :'Hash<String, String>',
142
142
  :'download_concurrency' => :'Integer',
143
143
  :'max_retries' => :'Integer',
144
144
  :'policy' => :'PolicyEnum',
@@ -240,7 +240,9 @@ module PulpAnsibleClient
240
240
  end
241
241
 
242
242
  if attributes.key?(:'pulp_labels')
243
- self.pulp_labels = attributes[:'pulp_labels']
243
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
244
+ self.pulp_labels = value
245
+ end
244
246
  end
245
247
 
246
248
  if attributes.key?(:'download_concurrency')
@@ -70,6 +70,9 @@ module PulpAnsibleClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # The string version of Collection requirements yaml.
74
77
  attr_accessor :requirements_file
75
78
 
@@ -104,6 +107,7 @@ module PulpAnsibleClient
104
107
  :'sock_read_timeout' => :'sock_read_timeout',
105
108
  :'headers' => :'headers',
106
109
  :'rate_limit' => :'rate_limit',
110
+ :'hidden_fields' => :'hidden_fields',
107
111
  :'requirements_file' => :'requirements_file',
108
112
  :'auth_url' => :'auth_url',
109
113
  :'sync_dependencies' => :'sync_dependencies',
@@ -122,7 +126,7 @@ module PulpAnsibleClient
122
126
  :'client_cert' => :'String',
123
127
  :'tls_validation' => :'Boolean',
124
128
  :'proxy_url' => :'String',
125
- :'pulp_labels' => :'Object',
129
+ :'pulp_labels' => :'Hash<String, String>',
126
130
  :'pulp_last_updated' => :'DateTime',
127
131
  :'download_concurrency' => :'Integer',
128
132
  :'max_retries' => :'Integer',
@@ -133,6 +137,7 @@ module PulpAnsibleClient
133
137
  :'sock_read_timeout' => :'Float',
134
138
  :'headers' => :'Array<Object>',
135
139
  :'rate_limit' => :'Integer',
140
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
136
141
  :'requirements_file' => :'String',
137
142
  :'auth_url' => :'String',
138
143
  :'sync_dependencies' => :'Boolean',
@@ -206,7 +211,9 @@ module PulpAnsibleClient
206
211
  end
207
212
 
208
213
  if attributes.key?(:'pulp_labels')
209
- self.pulp_labels = attributes[:'pulp_labels']
214
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
215
+ self.pulp_labels = value
216
+ end
210
217
  end
211
218
 
212
219
  if attributes.key?(:'pulp_last_updated')
@@ -251,6 +258,12 @@ module PulpAnsibleClient
251
258
  self.rate_limit = attributes[:'rate_limit']
252
259
  end
253
260
 
261
+ if attributes.key?(:'hidden_fields')
262
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
263
+ self.hidden_fields = value
264
+ end
265
+ end
266
+
254
267
  if attributes.key?(:'requirements_file')
255
268
  self.requirements_file = attributes[:'requirements_file']
256
269
  end
@@ -409,6 +422,7 @@ module PulpAnsibleClient
409
422
  sock_read_timeout == o.sock_read_timeout &&
410
423
  headers == o.headers &&
411
424
  rate_limit == o.rate_limit &&
425
+ hidden_fields == o.hidden_fields &&
412
426
  requirements_file == o.requirements_file &&
413
427
  auth_url == o.auth_url &&
414
428
  sync_dependencies == o.sync_dependencies &&
@@ -424,7 +438,7 @@ module PulpAnsibleClient
424
438
  # Calculates hash code according to all attributes.
425
439
  # @return [Integer] Hash code
426
440
  def hash
427
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only].hash
441
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only].hash
428
442
  end
429
443
 
430
444
  # Builds the object from hash
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ class AnsibleCollectionRemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionRemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # An uploaded file that may be turned into the artifact of the content unit.
19
- attr_accessor :file
20
-
21
18
  # An uncommitted upload that may be turned into the artifact of the content unit.
22
19
  attr_accessor :upload
23
20
 
21
+ # An uploaded file that may be turned into the artifact of the content unit.
22
+ attr_accessor :file
23
+
24
24
  # A URI of a repository the new content unit should be associated with.
25
25
  attr_accessor :repository
26
26
 
@@ -36,8 +36,8 @@ module PulpAnsibleClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'file' => :'file',
40
39
  :'upload' => :'upload',
40
+ :'file' => :'file',
41
41
  :'repository' => :'repository',
42
42
  :'name' => :'name',
43
43
  :'namespace' => :'namespace',
@@ -48,8 +48,8 @@ module PulpAnsibleClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'file' => :'File',
52
51
  :'upload' => :'String',
52
+ :'file' => :'File',
53
53
  :'repository' => :'String',
54
54
  :'name' => :'String',
55
55
  :'namespace' => :'String',
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  h[k.to_sym] = v
79
79
  }
80
80
 
81
- if attributes.key?(:'file')
82
- self.file = attributes[:'file']
83
- end
84
-
85
81
  if attributes.key?(:'upload')
86
82
  self.upload = attributes[:'upload']
87
83
  end
88
84
 
85
+ if attributes.key?(:'file')
86
+ self.file = attributes[:'file']
87
+ end
88
+
89
89
  if attributes.key?(:'repository')
90
90
  self.repository = attributes[:'repository']
91
91
  end
@@ -220,8 +220,8 @@ module PulpAnsibleClient
220
220
  def ==(o)
221
221
  return true if self.equal?(o)
222
222
  self.class == o.class &&
223
- file == o.file &&
224
223
  upload == o.upload &&
224
+ file == o.file &&
225
225
  repository == o.repository &&
226
226
  name == o.name &&
227
227
  namespace == o.namespace &&
@@ -237,7 +237,7 @@ module PulpAnsibleClient
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Integer] Hash code
239
239
  def hash
240
- [file, upload, repository, name, namespace, version].hash
240
+ [upload, file, repository, name, namespace, version].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -18,11 +18,11 @@ module PulpAnsibleClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- attr_accessor :pulp_href
22
-
23
21
  # Artifact file representing the physical content
24
22
  attr_accessor :artifact
25
23
 
24
+ attr_accessor :pulp_href
25
+
26
26
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -98,8 +98,8 @@ module PulpAnsibleClient
98
98
  def self.attribute_map
99
99
  {
100
100
  :'pulp_created' => :'pulp_created',
101
- :'pulp_href' => :'pulp_href',
102
101
  :'artifact' => :'artifact',
102
+ :'pulp_href' => :'pulp_href',
103
103
  :'md5' => :'md5',
104
104
  :'sha1' => :'sha1',
105
105
  :'sha224' => :'sha224',
@@ -131,8 +131,8 @@ module PulpAnsibleClient
131
131
  def self.openapi_types
132
132
  {
133
133
  :'pulp_created' => :'DateTime',
134
- :'pulp_href' => :'String',
135
134
  :'artifact' => :'String',
135
+ :'pulp_href' => :'String',
136
136
  :'md5' => :'String',
137
137
  :'sha1' => :'String',
138
138
  :'sha224' => :'String',
@@ -186,14 +186,14 @@ module PulpAnsibleClient
186
186
  self.pulp_created = attributes[:'pulp_created']
187
187
  end
188
188
 
189
- if attributes.key?(:'pulp_href')
190
- self.pulp_href = attributes[:'pulp_href']
191
- end
192
-
193
189
  if attributes.key?(:'artifact')
194
190
  self.artifact = attributes[:'artifact']
195
191
  end
196
192
 
193
+ if attributes.key?(:'pulp_href')
194
+ self.pulp_href = attributes[:'pulp_href']
195
+ end
196
+
197
197
  if attributes.key?(:'md5')
198
198
  self.md5 = attributes[:'md5']
199
199
  end
@@ -544,8 +544,8 @@ module PulpAnsibleClient
544
544
  return true if self.equal?(o)
545
545
  self.class == o.class &&
546
546
  pulp_created == o.pulp_created &&
547
- pulp_href == o.pulp_href &&
548
547
  artifact == o.artifact &&
548
+ pulp_href == o.pulp_href &&
549
549
  md5 == o.md5 &&
550
550
  sha1 == o.sha1 &&
551
551
  sha224 == o.sha224 &&
@@ -581,7 +581,7 @@ module PulpAnsibleClient
581
581
  # Calculates hash code according to all attributes.
582
582
  # @return [Integer] Hash code
583
583
  def hash
584
- [pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
584
+ [pulp_created, artifact, pulp_href, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
585
585
  end
586
586
 
587
587
  # Builds the object from hash