pulp_ansible_client 0.15.6 → 0.16.0

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