pulp_ansible_client 0.15.5 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -10
  3. data/docs/AnsibleAnsibleDistribution.md +1 -1
  4. data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
  5. data/docs/AnsibleAnsibleRepository.md +2 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemote.md +2 -2
  8. data/docs/AnsibleCollectionRemoteResponse.md +2 -4
  9. data/docs/AnsibleCollectionVersion.md +11 -9
  10. data/docs/AnsibleCollectionVersionResponse.md +23 -23
  11. data/docs/AnsibleCollectionsApi.md +6 -10
  12. data/docs/AnsibleGitRemote.md +30 -30
  13. data/docs/AnsibleGitRemoteResponse.md +26 -28
  14. data/docs/AnsibleRoleRemote.md +2 -2
  15. data/docs/AnsibleRoleRemoteResponse.md +3 -5
  16. data/docs/AnsibleRoleResponse.md +3 -3
  17. data/docs/ApiCollectionsApi.md +4 -4
  18. data/docs/ApiRolesApi.md +4 -4
  19. data/docs/CollectionImportApi.md +4 -4
  20. data/docs/CollectionRefResponse.md +1 -1
  21. data/docs/CollectionResponse.md +6 -6
  22. data/docs/CollectionVersionListResponse.md +1 -1
  23. data/docs/CollectionVersionResponse.md +4 -4
  24. data/docs/ContentCollectionDeprecationsApi.md +10 -14
  25. data/docs/ContentCollectionSignaturesApi.md +12 -16
  26. data/docs/ContentCollectionVersionsApi.md +22 -24
  27. data/docs/ContentRolesApi.md +10 -14
  28. data/docs/DistributionsAnsibleApi.md +14 -22
  29. data/docs/GalaxyCollectionResponse.md +4 -4
  30. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  31. data/docs/GalaxyDetailApi.md +4 -4
  32. data/docs/GalaxyRoleResponse.md +1 -1
  33. data/docs/GalaxyRoleVersionResponse.md +1 -1
  34. data/docs/PatchedansibleAnsibleDistribution.md +1 -1
  35. data/docs/PatchedansibleAnsibleRepository.md +2 -2
  36. data/docs/PatchedansibleCollectionRemote.md +2 -2
  37. data/docs/PatchedansibleGitRemote.md +30 -30
  38. data/docs/PatchedansibleRoleRemote.md +2 -2
  39. data/docs/PulpAnsibleApiApi.md +4 -4
  40. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
  41. data/docs/PulpAnsibleApiV3Api.md +4 -4
  42. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
  43. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
  44. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -10
  45. data/docs/PulpAnsibleApiV3CollectionsApi.md +10 -14
  46. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +10 -14
  47. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  48. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
  49. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  50. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  51. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  52. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  53. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  54. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  55. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  56. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -10
  58. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +10 -14
  59. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +10 -14
  60. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
  68. data/docs/PulpAnsibleTagsApi.md +4 -4
  69. data/docs/RemotesCollectionApi.md +14 -18
  70. data/docs/RemotesGitApi.md +14 -18
  71. data/docs/RemotesRoleApi.md +14 -18
  72. data/docs/RepositoriesAnsibleApi.md +13 -33
  73. data/docs/RepositoriesAnsibleVersionsApi.md +14 -16
  74. data/docs/RepositoryAddRemoveContent.md +2 -2
  75. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  76. data/docs/VersionsApi.md +8 -8
  77. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +9 -15
  78. data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
  79. data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
  80. data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +14 -20
  82. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +15 -21
  83. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +45 -60
  84. data/lib/pulp_ansible_client/api/content_roles_api.rb +15 -21
  85. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -31
  86. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +9 -15
  93. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +15 -21
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +15 -21
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +9 -15
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +15 -21
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +15 -21
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
  116. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  117. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +19 -25
  118. data/lib/pulp_ansible_client/api/remotes_git_api.rb +19 -25
  119. data/lib/pulp_ansible_client/api/remotes_role_api.rb +19 -25
  120. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +17 -47
  121. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +19 -22
  122. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  123. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
  124. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
  125. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -5
  126. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -5
  127. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +3 -5
  128. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +4 -18
  129. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +78 -95
  130. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +53 -161
  131. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -251
  132. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -155
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +3 -5
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +8 -22
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  136. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  137. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  138. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
  139. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
  140. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  141. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  142. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  143. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  144. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
  145. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -5
  146. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +3 -5
  147. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -251
  148. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +3 -5
  149. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  150. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
  151. data/lib/pulp_ansible_client/version.rb +1 -1
  152. data/lib/pulp_ansible_client.rb +0 -1
  153. data/spec/api/ansible_collections_api_spec.rb +3 -5
  154. data/spec/api/api_collections_api_spec.rb +2 -2
  155. data/spec/api/api_roles_api_spec.rb +2 -2
  156. data/spec/api/collection_import_api_spec.rb +2 -2
  157. data/spec/api/content_collection_deprecations_api_spec.rb +5 -7
  158. data/spec/api/content_collection_signatures_api_spec.rb +5 -7
  159. data/spec/api/content_collection_versions_api_spec.rb +10 -11
  160. data/spec/api/content_roles_api_spec.rb +5 -7
  161. data/spec/api/distributions_ansible_api_spec.rb +7 -11
  162. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  163. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  164. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
  165. data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
  166. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
  167. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
  168. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -5
  169. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -7
  170. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +5 -7
  171. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  172. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
  173. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  174. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  175. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  176. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  177. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  178. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  179. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  180. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
  181. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -5
  182. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -7
  183. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +5 -7
  184. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
  185. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
  186. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
  187. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
  188. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
  189. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
  190. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
  191. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
  192. data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
  193. data/spec/api/remotes_collection_api_spec.rb +7 -9
  194. data/spec/api/remotes_git_api_spec.rb +7 -9
  195. data/spec/api/remotes_role_api_spec.rb +7 -9
  196. data/spec/api/repositories_ansible_api_spec.rb +6 -16
  197. data/spec/api/repositories_ansible_versions_api_spec.rb +7 -8
  198. data/spec/api/versions_api_spec.rb +4 -4
  199. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  200. data/spec/models/ansible_collection_version_response_spec.rb +7 -7
  201. data/spec/models/ansible_collection_version_spec.rb +12 -6
  202. data/spec/models/ansible_git_remote_response_spec.rb +16 -22
  203. data/spec/models/ansible_git_remote_spec.rb +19 -19
  204. data/spec/models/ansible_role_remote_response_spec.rb +0 -6
  205. data/spec/models/ansible_role_response_spec.rb +3 -3
  206. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  207. metadata +102 -106
  208. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
  209. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -215
  210. data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -15,45 +15,50 @@ 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
+
21
+ # An uploaded file that may be turned into the artifact of the content unit.
22
+ attr_accessor :file
23
+
18
24
  # A URI of a repository the new content unit should be associated with.
19
25
  attr_accessor :repository
20
26
 
21
27
  # An uncommitted upload that may be turned into the artifact of the content unit.
22
28
  attr_accessor :upload
23
29
 
24
- # An uploaded file that may be turned into the artifact of the content unit.
25
- attr_accessor :file
26
-
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',
43
+ :'file' => :'file',
39
44
  :'repository' => :'repository',
40
45
  :'upload' => :'upload',
41
- :'file' => :'file',
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',
56
+ :'file' => :'File',
51
57
  :'repository' => :'String',
52
58
  :'upload' => :'String',
53
- :'file' => :'File',
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,14 @@ 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
+
90
+ if attributes.key?(:'file')
91
+ self.file = attributes[:'file']
92
+ end
93
+
81
94
  if attributes.key?(:'repository')
82
95
  self.repository = attributes[:'repository']
83
96
  end
@@ -86,20 +99,16 @@ module PulpAnsibleClient
86
99
  self.upload = attributes[:'upload']
87
100
  end
88
101
 
89
- if attributes.key?(:'file')
90
- self.file = attributes[:'file']
91
- end
92
-
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.')
120
- end
121
-
122
- if @namespace.nil?
123
- invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
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.')
124
121
  end
125
122
 
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.')
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.')
128
125
  end
129
126
 
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.')
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.')
132
129
  end
133
130
 
134
- if @version.nil?
135
- invalid_properties.push('invalid value for "version", version cannot be nil.')
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.')
136
133
  end
137
134
 
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.')
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.')
140
137
  end
141
138
 
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'
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.'
169
163
  end
170
164
 
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.'
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.'
173
167
  end
174
168
 
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.'
177
- end
178
-
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'
187
- end
188
-
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.'
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.'
191
177
  end
192
178
 
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.'
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.'
195
181
  end
196
182
 
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'
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.'
205
191
  end
206
192
 
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.'
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.'
209
195
  end
210
196
 
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.'
213
- end
214
-
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 &&
206
+ file == o.file &&
223
207
  repository == o.repository &&
224
208
  upload == o.upload &&
225
- file == o.file &&
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
- [repository, upload, file, 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