pulp_ansible_client 0.15.4 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -10
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +2 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemote.md +2 -2
  8. data/docs/AnsibleCollectionRemoteResponse.md +2 -4
  9. data/docs/AnsibleCollectionVersion.md +9 -7
  10. data/docs/AnsibleCollectionVersionResponse.md +23 -23
  11. data/docs/AnsibleCollectionsApi.md +6 -10
  12. data/docs/AnsibleGitRemote.md +27 -27
  13. data/docs/AnsibleGitRemoteResponse.md +21 -23
  14. data/docs/AnsibleRoleRemote.md +2 -2
  15. data/docs/AnsibleRoleRemoteResponse.md +3 -5
  16. data/docs/AnsibleRoleResponse.md +4 -4
  17. data/docs/ApiCollectionsApi.md +4 -4
  18. data/docs/ApiRolesApi.md +4 -4
  19. data/docs/CollectionImportApi.md +4 -4
  20. data/docs/CollectionRefResponse.md +1 -1
  21. data/docs/CollectionResponse.md +6 -6
  22. data/docs/CollectionVersionListResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +4 -4
  24. data/docs/ContentCollectionDeprecationsApi.md +10 -14
  25. data/docs/ContentCollectionSignaturesApi.md +12 -16
  26. data/docs/ContentCollectionVersionsApi.md +21 -23
  27. data/docs/ContentRolesApi.md +10 -14
  28. data/docs/DistributionsAnsibleApi.md +14 -22
  29. data/docs/GalaxyCollectionResponse.md +4 -4
  30. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  31. data/docs/GalaxyDetailApi.md +4 -4
  32. data/docs/GalaxyRoleResponse.md +1 -1
  33. data/docs/GalaxyRoleVersionResponse.md +1 -1
  34. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  35. data/docs/PatchedansibleAnsibleRepository.md +2 -2
  36. data/docs/PatchedansibleCollectionRemote.md +2 -2
  37. data/docs/PatchedansibleGitRemote.md +27 -27
  38. data/docs/PatchedansibleRoleRemote.md +2 -2
  39. data/docs/PulpAnsibleApiApi.md +4 -4
  40. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
  41. data/docs/PulpAnsibleApiV3Api.md +4 -4
  42. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
  43. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
  44. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -10
  45. data/docs/PulpAnsibleApiV3CollectionsApi.md +10 -14
  46. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +10 -14
  47. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  48. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  52. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  53. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  54. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  55. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  56. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -10
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +10 -14
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +10 -14
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  68. data/docs/PulpAnsibleTagsApi.md +4 -4
  69. data/docs/RemotesCollectionApi.md +14 -18
  70. data/docs/RemotesGitApi.md +14 -18
  71. data/docs/RemotesRoleApi.md +14 -18
  72. data/docs/RepositoriesAnsibleApi.md +13 -33
  73. data/docs/RepositoriesAnsibleVersionsApi.md +14 -16
  74. data/docs/RepositoryAddRemoveContent.md +2 -2
  75. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  76. data/docs/VersionsApi.md +8 -8
  77. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +9 -15
  78. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  79. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  80. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +14 -20
  82. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +15 -21
  83. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +42 -57
  84. data/lib/pulp_ansible_client/api/content_roles_api.rb +15 -21
  85. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -31
  86. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +9 -15
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +15 -21
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +15 -21
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +9 -15
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +15 -21
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +15 -21
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  116. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  117. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +19 -25
  118. data/lib/pulp_ansible_client/api/remotes_git_api.rb +19 -25
  119. data/lib/pulp_ansible_client/api/remotes_role_api.rb +19 -25
  120. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +17 -47
  121. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +19 -22
  122. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  123. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
  124. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
  125. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -5
  126. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -5
  127. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +3 -5
  128. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +4 -18
  129. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +68 -85
  130. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +50 -158
  131. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +227 -229
  132. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +136 -150
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +3 -5
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +8 -22
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
  136. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  137. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  138. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
  139. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
  140. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  141. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  142. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  143. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  144. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
  145. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -5
  146. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +3 -5
  147. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -224
  148. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +3 -5
  149. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  150. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
  151. data/lib/pulp_ansible_client/version.rb +1 -1
  152. data/lib/pulp_ansible_client.rb +0 -1
  153. data/spec/api/ansible_collections_api_spec.rb +3 -5
  154. data/spec/api/api_collections_api_spec.rb +2 -2
  155. data/spec/api/api_roles_api_spec.rb +2 -2
  156. data/spec/api/collection_import_api_spec.rb +2 -2
  157. data/spec/api/content_collection_deprecations_api_spec.rb +5 -7
  158. data/spec/api/content_collection_signatures_api_spec.rb +5 -7
  159. data/spec/api/content_collection_versions_api_spec.rb +9 -10
  160. data/spec/api/content_roles_api_spec.rb +5 -7
  161. data/spec/api/distributions_ansible_api_spec.rb +7 -11
  162. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  165. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  166. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -5
  169. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -7
  170. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +5 -7
  171. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  172. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  173. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  176. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  177. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  178. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  179. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  180. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  181. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -5
  182. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -7
  183. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +5 -7
  184. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  185. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  186. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  187. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  188. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  189. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  190. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  191. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  192. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  193. data/spec/api/remotes_collection_api_spec.rb +7 -9
  194. data/spec/api/remotes_git_api_spec.rb +7 -9
  195. data/spec/api/remotes_role_api_spec.rb +7 -9
  196. data/spec/api/repositories_ansible_api_spec.rb +6 -16
  197. data/spec/api/repositories_ansible_versions_api_spec.rb +7 -8
  198. data/spec/api/versions_api_spec.rb +4 -4
  199. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  200. data/spec/models/ansible_collection_version_response_spec.rb +8 -8
  201. data/spec/models/ansible_collection_version_spec.rb +9 -3
  202. data/spec/models/ansible_git_remote_response_spec.rb +16 -22
  203. data/spec/models/ansible_git_remote_spec.rb +18 -18
  204. data/spec/models/ansible_role_remote_response_spec.rb +0 -6
  205. data/spec/models/ansible_role_response_spec.rb +2 -2
  206. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  207. metadata +100 -104
  208. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  209. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -215
  210. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
20
+
18
21
  # An uploaded file that may be turned into the artifact of the content unit.
19
22
  attr_accessor :file
20
23
 
@@ -25,35 +28,37 @@ module PulpAnsibleClient
25
28
  attr_accessor :upload
26
29
 
27
30
  # The name of the collection.
28
- attr_accessor :name
31
+ attr_accessor :expected_name
29
32
 
30
33
  # The namespace of the collection.
31
- attr_accessor :namespace
34
+ attr_accessor :expected_namespace
32
35
 
33
36
  # The version of the collection.
34
- attr_accessor :version
37
+ attr_accessor :expected_version
35
38
 
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
42
+ :'artifact' => :'artifact',
39
43
  :'file' => :'file',
40
44
  :'repository' => :'repository',
41
45
  :'upload' => :'upload',
42
- :'name' => :'name',
43
- :'namespace' => :'namespace',
44
- :'version' => :'version'
46
+ :'expected_name' => :'expected_name',
47
+ :'expected_namespace' => :'expected_namespace',
48
+ :'expected_version' => :'expected_version'
45
49
  }
46
50
  end
47
51
 
48
52
  # Attribute type mapping.
49
53
  def self.openapi_types
50
54
  {
55
+ :'artifact' => :'String',
51
56
  :'file' => :'File',
52
57
  :'repository' => :'String',
53
58
  :'upload' => :'String',
54
- :'name' => :'String',
55
- :'namespace' => :'String',
56
- :'version' => :'String'
59
+ :'expected_name' => :'String',
60
+ :'expected_namespace' => :'String',
61
+ :'expected_version' => :'String'
57
62
  }
58
63
  end
59
64
 
@@ -78,6 +83,10 @@ module PulpAnsibleClient
78
83
  h[k.to_sym] = v
79
84
  }
80
85
 
86
+ if attributes.key?(:'artifact')
87
+ self.artifact = attributes[:'artifact']
88
+ end
89
+
81
90
  if attributes.key?(:'file')
82
91
  self.file = attributes[:'file']
83
92
  end
@@ -90,16 +99,16 @@ module PulpAnsibleClient
90
99
  self.upload = attributes[:'upload']
91
100
  end
92
101
 
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
102
+ if attributes.key?(:'expected_name')
103
+ self.expected_name = attributes[:'expected_name']
95
104
  end
96
105
 
97
- if attributes.key?(:'namespace')
98
- self.namespace = attributes[:'namespace']
106
+ if attributes.key?(:'expected_namespace')
107
+ self.expected_namespace = attributes[:'expected_namespace']
99
108
  end
100
109
 
101
- if attributes.key?(:'version')
102
- self.version = attributes[:'version']
110
+ if attributes.key?(:'expected_version')
111
+ self.expected_version = attributes[:'expected_version']
103
112
  end
104
113
  end
105
114
 
@@ -107,40 +116,28 @@ module PulpAnsibleClient
107
116
  # @return Array for valid properties with the reasons
108
117
  def list_invalid_properties
109
118
  invalid_properties = Array.new
110
- if @name.nil?
111
- invalid_properties.push('invalid value for "name", name cannot be nil.')
112
- end
113
-
114
- if @name.to_s.length > 64
115
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
116
- end
117
-
118
- if @name.to_s.length < 1
119
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
119
+ if !@expected_name.nil? && @expected_name.to_s.length > 64
120
+ invalid_properties.push('invalid value for "expected_name", the character length must be smaller than or equal to 64.')
120
121
  end
121
122
 
122
- if @namespace.nil?
123
- invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
123
+ if !@expected_name.nil? && @expected_name.to_s.length < 1
124
+ invalid_properties.push('invalid value for "expected_name", the character length must be great than or equal to 1.')
124
125
  end
125
126
 
126
- if @namespace.to_s.length > 64
127
- invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
127
+ if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
128
+ invalid_properties.push('invalid value for "expected_namespace", the character length must be smaller than or equal to 64.')
128
129
  end
129
130
 
130
- if @namespace.to_s.length < 1
131
- invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
131
+ if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
132
+ invalid_properties.push('invalid value for "expected_namespace", the character length must be great than or equal to 1.')
132
133
  end
133
134
 
134
- if @version.nil?
135
- invalid_properties.push('invalid value for "version", version cannot be nil.')
135
+ if !@expected_version.nil? && @expected_version.to_s.length > 128
136
+ invalid_properties.push('invalid value for "expected_version", the character length must be smaller than or equal to 128.')
136
137
  end
137
138
 
138
- if @version.to_s.length > 128
139
- invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
140
- end
141
-
142
- if @version.to_s.length < 1
143
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
139
+ if !@expected_version.nil? && @expected_version.to_s.length < 1
140
+ invalid_properties.push('invalid value for "expected_version", the character length must be great than or equal to 1.')
144
141
  end
145
142
 
146
143
  invalid_properties
@@ -149,70 +146,55 @@ module PulpAnsibleClient
149
146
  # Check to see if the all the properties in the model are valid
150
147
  # @return true if the model is valid
151
148
  def valid?
152
- return false if @name.nil?
153
- return false if @name.to_s.length > 64
154
- return false if @name.to_s.length < 1
155
- return false if @namespace.nil?
156
- return false if @namespace.to_s.length > 64
157
- return false if @namespace.to_s.length < 1
158
- return false if @version.nil?
159
- return false if @version.to_s.length > 128
160
- return false if @version.to_s.length < 1
149
+ return false if !@expected_name.nil? && @expected_name.to_s.length > 64
150
+ return false if !@expected_name.nil? && @expected_name.to_s.length < 1
151
+ return false if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
152
+ return false if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
153
+ return false if !@expected_version.nil? && @expected_version.to_s.length > 128
154
+ return false if !@expected_version.nil? && @expected_version.to_s.length < 1
161
155
  true
162
156
  end
163
157
 
164
158
  # Custom attribute writer method with validation
165
- # @param [Object] name Value to be assigned
166
- def name=(name)
167
- if name.nil?
168
- fail ArgumentError, 'name cannot be nil'
169
- end
170
-
171
- if name.to_s.length > 64
172
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
159
+ # @param [Object] expected_name Value to be assigned
160
+ def expected_name=(expected_name)
161
+ if !expected_name.nil? && expected_name.to_s.length > 64
162
+ fail ArgumentError, 'invalid value for "expected_name", the character length must be smaller than or equal to 64.'
173
163
  end
174
164
 
175
- if name.to_s.length < 1
176
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
165
+ if !expected_name.nil? && expected_name.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "expected_name", the character length must be great than or equal to 1.'
177
167
  end
178
168
 
179
- @name = name
169
+ @expected_name = expected_name
180
170
  end
181
171
 
182
172
  # Custom attribute writer method with validation
183
- # @param [Object] namespace Value to be assigned
184
- def namespace=(namespace)
185
- if namespace.nil?
186
- fail ArgumentError, 'namespace cannot be nil'
173
+ # @param [Object] expected_namespace Value to be assigned
174
+ def expected_namespace=(expected_namespace)
175
+ if !expected_namespace.nil? && expected_namespace.to_s.length > 64
176
+ fail ArgumentError, 'invalid value for "expected_namespace", the character length must be smaller than or equal to 64.'
187
177
  end
188
178
 
189
- if namespace.to_s.length > 64
190
- fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
179
+ if !expected_namespace.nil? && expected_namespace.to_s.length < 1
180
+ fail ArgumentError, 'invalid value for "expected_namespace", the character length must be great than or equal to 1.'
191
181
  end
192
182
 
193
- if namespace.to_s.length < 1
194
- fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
195
- end
196
-
197
- @namespace = namespace
183
+ @expected_namespace = expected_namespace
198
184
  end
199
185
 
200
186
  # Custom attribute writer method with validation
201
- # @param [Object] version Value to be assigned
202
- def version=(version)
203
- if version.nil?
204
- fail ArgumentError, 'version cannot be nil'
205
- end
206
-
207
- if version.to_s.length > 128
208
- fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
187
+ # @param [Object] expected_version Value to be assigned
188
+ def expected_version=(expected_version)
189
+ if !expected_version.nil? && expected_version.to_s.length > 128
190
+ fail ArgumentError, 'invalid value for "expected_version", the character length must be smaller than or equal to 128.'
209
191
  end
210
192
 
211
- if version.to_s.length < 1
212
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
193
+ if !expected_version.nil? && expected_version.to_s.length < 1
194
+ fail ArgumentError, 'invalid value for "expected_version", the character length must be great than or equal to 1.'
213
195
  end
214
196
 
215
- @version = version
197
+ @expected_version = expected_version
216
198
  end
217
199
 
218
200
  # Checks equality by comparing each attribute.
@@ -220,12 +202,13 @@ module PulpAnsibleClient
220
202
  def ==(o)
221
203
  return true if self.equal?(o)
222
204
  self.class == o.class &&
205
+ artifact == o.artifact &&
223
206
  file == o.file &&
224
207
  repository == o.repository &&
225
208
  upload == o.upload &&
226
- name == o.name &&
227
- namespace == o.namespace &&
228
- version == o.version
209
+ expected_name == o.expected_name &&
210
+ expected_namespace == o.expected_namespace &&
211
+ expected_version == o.expected_version
229
212
  end
230
213
 
231
214
  # @see the `==` method
@@ -237,7 +220,7 @@ module PulpAnsibleClient
237
220
  # Calculates hash code according to all attributes.
238
221
  # @return [Integer] Hash code
239
222
  def hash
240
- [file, repository, upload, name, namespace, version].hash
223
+ [artifact, file, repository, upload, expected_name, expected_namespace, expected_version].hash
241
224
  end
242
225
 
243
226
  # Builds the object from hash
@@ -15,13 +15,16 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
21
24
  attr_accessor :pulp_href
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
26
+ # The SHA-256 checksum if available.
27
+ attr_accessor :sha256
25
28
 
26
29
  # The MD5 checksum if available.
27
30
  attr_accessor :md5
@@ -32,9 +35,6 @@ module PulpAnsibleClient
32
35
  # The SHA-224 checksum if available.
33
36
  attr_accessor :sha224
34
37
 
35
- # The SHA-256 checksum if available.
36
- attr_accessor :sha256
37
-
38
38
  # The SHA-384 checksum if available.
39
39
  attr_accessor :sha384
40
40
 
@@ -84,7 +84,7 @@ module PulpAnsibleClient
84
84
  attr_accessor :namespace
85
85
 
86
86
  # The URL of the originating SCM repository.
87
- attr_accessor :repository
87
+ attr_accessor :origin_repository
88
88
 
89
89
  attr_accessor :tags
90
90
 
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_created' => :'pulp_created',
100
101
  :'artifact' => :'artifact',
101
102
  :'pulp_href' => :'pulp_href',
102
- :'pulp_created' => :'pulp_created',
103
+ :'sha256' => :'sha256',
103
104
  :'md5' => :'md5',
104
105
  :'sha1' => :'sha1',
105
106
  :'sha224' => :'sha224',
106
- :'sha256' => :'sha256',
107
107
  :'sha384' => :'sha384',
108
108
  :'sha512' => :'sha512',
109
109
  :'id' => :'id',
@@ -120,7 +120,7 @@ module PulpAnsibleClient
120
120
  :'license' => :'license',
121
121
  :'name' => :'name',
122
122
  :'namespace' => :'namespace',
123
- :'repository' => :'repository',
123
+ :'origin_repository' => :'origin_repository',
124
124
  :'tags' => :'tags',
125
125
  :'version' => :'version',
126
126
  :'requires_ansible' => :'requires_ansible'
@@ -130,13 +130,13 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
+ :'pulp_created' => :'DateTime',
133
134
  :'artifact' => :'String',
134
135
  :'pulp_href' => :'String',
135
- :'pulp_created' => :'DateTime',
136
+ :'sha256' => :'String',
136
137
  :'md5' => :'String',
137
138
  :'sha1' => :'String',
138
139
  :'sha224' => :'String',
139
- :'sha256' => :'String',
140
140
  :'sha384' => :'String',
141
141
  :'sha512' => :'String',
142
142
  :'id' => :'String',
@@ -153,7 +153,7 @@ module PulpAnsibleClient
153
153
  :'license' => :'Array<String>',
154
154
  :'name' => :'String',
155
155
  :'namespace' => :'String',
156
- :'repository' => :'String',
156
+ :'origin_repository' => :'String',
157
157
  :'tags' => :'Array<AnsibleTagResponse>',
158
158
  :'version' => :'String',
159
159
  :'requires_ansible' => :'String'
@@ -182,6 +182,10 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
+ if attributes.key?(:'pulp_created')
186
+ self.pulp_created = attributes[:'pulp_created']
187
+ end
188
+
185
189
  if attributes.key?(:'artifact')
186
190
  self.artifact = attributes[:'artifact']
187
191
  end
@@ -190,8 +194,8 @@ module PulpAnsibleClient
190
194
  self.pulp_href = attributes[:'pulp_href']
191
195
  end
192
196
 
193
- if attributes.key?(:'pulp_created')
194
- self.pulp_created = attributes[:'pulp_created']
197
+ if attributes.key?(:'sha256')
198
+ self.sha256 = attributes[:'sha256']
195
199
  end
196
200
 
197
201
  if attributes.key?(:'md5')
@@ -206,10 +210,6 @@ module PulpAnsibleClient
206
210
  self.sha224 = attributes[:'sha224']
207
211
  end
208
212
 
209
- if attributes.key?(:'sha256')
210
- self.sha256 = attributes[:'sha256']
211
- end
212
-
213
213
  if attributes.key?(:'sha384')
214
214
  self.sha384 = attributes[:'sha384']
215
215
  end
@@ -278,8 +278,8 @@ module PulpAnsibleClient
278
278
  self.namespace = attributes[:'namespace']
279
279
  end
280
280
 
281
- if attributes.key?(:'repository')
282
- self.repository = attributes[:'repository']
281
+ if attributes.key?(:'origin_repository')
282
+ self.origin_repository = attributes[:'origin_repository']
283
283
  end
284
284
 
285
285
  if attributes.key?(:'tags')
@@ -301,95 +301,31 @@ module PulpAnsibleClient
301
301
  # @return Array for valid properties with the reasons
302
302
  def list_invalid_properties
303
303
  invalid_properties = Array.new
304
- if @id.nil?
305
- invalid_properties.push('invalid value for "id", id cannot be nil.')
306
- end
307
-
308
- if @authors.nil?
309
- invalid_properties.push('invalid value for "authors", authors cannot be nil.')
310
- end
311
-
312
- if @contents.nil?
313
- invalid_properties.push('invalid value for "contents", contents cannot be nil.')
314
- end
315
-
316
- if @dependencies.nil?
317
- invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
318
- end
319
-
320
- if @description.nil?
321
- invalid_properties.push('invalid value for "description", description cannot be nil.')
322
- end
323
-
324
- if @docs_blob.nil?
325
- invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
326
- end
327
-
328
- if @manifest.nil?
329
- invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
330
- end
331
-
332
- if @files.nil?
333
- invalid_properties.push('invalid value for "files", files cannot be nil.')
334
- end
335
-
336
- if @documentation.nil?
337
- invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
338
- end
339
-
340
- if @documentation.to_s.length > 2000
304
+ if !@documentation.nil? && @documentation.to_s.length > 2000
341
305
  invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
342
306
  end
343
307
 
344
- if @homepage.nil?
345
- invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
346
- end
347
-
348
- if @homepage.to_s.length > 2000
308
+ if !@homepage.nil? && @homepage.to_s.length > 2000
349
309
  invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
350
310
  end
351
311
 
352
- if @issues.nil?
353
- invalid_properties.push('invalid value for "issues", issues cannot be nil.')
354
- end
355
-
356
- if @issues.to_s.length > 2000
312
+ if !@issues.nil? && @issues.to_s.length > 2000
357
313
  invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
358
314
  end
359
315
 
360
- if @license.nil?
361
- invalid_properties.push('invalid value for "license", license cannot be nil.')
362
- end
363
-
364
- if @name.nil?
365
- invalid_properties.push('invalid value for "name", name cannot be nil.')
366
- end
367
-
368
- if @name.to_s.length > 64
316
+ if !@name.nil? && @name.to_s.length > 64
369
317
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
370
318
  end
371
319
 
372
- if @namespace.nil?
373
- invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
374
- end
375
-
376
- if @namespace.to_s.length > 64
320
+ if !@namespace.nil? && @namespace.to_s.length > 64
377
321
  invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
378
322
  end
379
323
 
380
- if @repository.nil?
381
- invalid_properties.push('invalid value for "repository", repository cannot be nil.')
382
- end
383
-
384
- if @repository.to_s.length > 2000
385
- invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
324
+ if !@origin_repository.nil? && @origin_repository.to_s.length > 2000
325
+ invalid_properties.push('invalid value for "origin_repository", the character length must be smaller than or equal to 2000.')
386
326
  end
387
327
 
388
- if @version.nil?
389
- invalid_properties.push('invalid value for "version", version cannot be nil.')
390
- end
391
-
392
- if @version.to_s.length > 128
328
+ if !@version.nil? && @version.to_s.length > 128
393
329
  invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
394
330
  end
395
331
 
@@ -403,29 +339,13 @@ module PulpAnsibleClient
403
339
  # Check to see if the all the properties in the model are valid
404
340
  # @return true if the model is valid
405
341
  def valid?
406
- return false if @id.nil?
407
- return false if @authors.nil?
408
- return false if @contents.nil?
409
- return false if @dependencies.nil?
410
- return false if @description.nil?
411
- return false if @docs_blob.nil?
412
- return false if @manifest.nil?
413
- return false if @files.nil?
414
- return false if @documentation.nil?
415
- return false if @documentation.to_s.length > 2000
416
- return false if @homepage.nil?
417
- return false if @homepage.to_s.length > 2000
418
- return false if @issues.nil?
419
- return false if @issues.to_s.length > 2000
420
- return false if @license.nil?
421
- return false if @name.nil?
422
- return false if @name.to_s.length > 64
423
- return false if @namespace.nil?
424
- return false if @namespace.to_s.length > 64
425
- return false if @repository.nil?
426
- return false if @repository.to_s.length > 2000
427
- return false if @version.nil?
428
- return false if @version.to_s.length > 128
342
+ return false if !@documentation.nil? && @documentation.to_s.length > 2000
343
+ return false if !@homepage.nil? && @homepage.to_s.length > 2000
344
+ return false if !@issues.nil? && @issues.to_s.length > 2000
345
+ return false if !@name.nil? && @name.to_s.length > 64
346
+ return false if !@namespace.nil? && @namespace.to_s.length > 64
347
+ return false if !@origin_repository.nil? && @origin_repository.to_s.length > 2000
348
+ return false if !@version.nil? && @version.to_s.length > 128
429
349
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
430
350
  true
431
351
  end
@@ -433,11 +353,7 @@ module PulpAnsibleClient
433
353
  # Custom attribute writer method with validation
434
354
  # @param [Object] documentation Value to be assigned
435
355
  def documentation=(documentation)
436
- if documentation.nil?
437
- fail ArgumentError, 'documentation cannot be nil'
438
- end
439
-
440
- if documentation.to_s.length > 2000
356
+ if !documentation.nil? && documentation.to_s.length > 2000
441
357
  fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
442
358
  end
443
359
 
@@ -447,11 +363,7 @@ module PulpAnsibleClient
447
363
  # Custom attribute writer method with validation
448
364
  # @param [Object] homepage Value to be assigned
449
365
  def homepage=(homepage)
450
- if homepage.nil?
451
- fail ArgumentError, 'homepage cannot be nil'
452
- end
453
-
454
- if homepage.to_s.length > 2000
366
+ if !homepage.nil? && homepage.to_s.length > 2000
455
367
  fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
456
368
  end
457
369
 
@@ -461,11 +373,7 @@ module PulpAnsibleClient
461
373
  # Custom attribute writer method with validation
462
374
  # @param [Object] issues Value to be assigned
463
375
  def issues=(issues)
464
- if issues.nil?
465
- fail ArgumentError, 'issues cannot be nil'
466
- end
467
-
468
- if issues.to_s.length > 2000
376
+ if !issues.nil? && issues.to_s.length > 2000
469
377
  fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
470
378
  end
471
379
 
@@ -475,11 +383,7 @@ module PulpAnsibleClient
475
383
  # Custom attribute writer method with validation
476
384
  # @param [Object] name Value to be assigned
477
385
  def name=(name)
478
- if name.nil?
479
- fail ArgumentError, 'name cannot be nil'
480
- end
481
-
482
- if name.to_s.length > 64
386
+ if !name.nil? && name.to_s.length > 64
483
387
  fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
484
388
  end
485
389
 
@@ -489,11 +393,7 @@ module PulpAnsibleClient
489
393
  # Custom attribute writer method with validation
490
394
  # @param [Object] namespace Value to be assigned
491
395
  def namespace=(namespace)
492
- if namespace.nil?
493
- fail ArgumentError, 'namespace cannot be nil'
494
- end
495
-
496
- if namespace.to_s.length > 64
396
+ if !namespace.nil? && namespace.to_s.length > 64
497
397
  fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
498
398
  end
499
399
 
@@ -501,27 +401,19 @@ module PulpAnsibleClient
501
401
  end
502
402
 
503
403
  # Custom attribute writer method with validation
504
- # @param [Object] repository Value to be assigned
505
- def repository=(repository)
506
- if repository.nil?
507
- fail ArgumentError, 'repository cannot be nil'
404
+ # @param [Object] origin_repository Value to be assigned
405
+ def origin_repository=(origin_repository)
406
+ if !origin_repository.nil? && origin_repository.to_s.length > 2000
407
+ fail ArgumentError, 'invalid value for "origin_repository", the character length must be smaller than or equal to 2000.'
508
408
  end
509
409
 
510
- if repository.to_s.length > 2000
511
- fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
512
- end
513
-
514
- @repository = repository
410
+ @origin_repository = origin_repository
515
411
  end
516
412
 
517
413
  # Custom attribute writer method with validation
518
414
  # @param [Object] version Value to be assigned
519
415
  def version=(version)
520
- if version.nil?
521
- fail ArgumentError, 'version cannot be nil'
522
- end
523
-
524
- if version.to_s.length > 128
416
+ if !version.nil? && version.to_s.length > 128
525
417
  fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
526
418
  end
527
419
 
@@ -543,13 +435,13 @@ module PulpAnsibleClient
543
435
  def ==(o)
544
436
  return true if self.equal?(o)
545
437
  self.class == o.class &&
438
+ pulp_created == o.pulp_created &&
546
439
  artifact == o.artifact &&
547
440
  pulp_href == o.pulp_href &&
548
- pulp_created == o.pulp_created &&
441
+ sha256 == o.sha256 &&
549
442
  md5 == o.md5 &&
550
443
  sha1 == o.sha1 &&
551
444
  sha224 == o.sha224 &&
552
- sha256 == o.sha256 &&
553
445
  sha384 == o.sha384 &&
554
446
  sha512 == o.sha512 &&
555
447
  id == o.id &&
@@ -566,7 +458,7 @@ module PulpAnsibleClient
566
458
  license == o.license &&
567
459
  name == o.name &&
568
460
  namespace == o.namespace &&
569
- repository == o.repository &&
461
+ origin_repository == o.origin_repository &&
570
462
  tags == o.tags &&
571
463
  version == o.version &&
572
464
  requires_ansible == o.requires_ansible
@@ -581,7 +473,7 @@ module PulpAnsibleClient
581
473
  # Calculates hash code according to all attributes.
582
474
  # @return [Integer] Hash code
583
475
  def hash
584
- [artifact, pulp_href, pulp_created, 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
476
+ [pulp_created, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
585
477
  end
586
478
 
587
479
  # Builds the object from hash