pulp_ansible_client 0.20.12 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  4. data/docs/AnsibleCollectionVersion.md +4 -4
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleCollectionVersionSignature.md +3 -1
  7. data/docs/AnsibleCollectionsApi.md +1 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +28 -28
  11. data/docs/ApiCollectionsApi.md +1 -1
  12. data/docs/ApiRolesApi.md +1 -1
  13. data/docs/CollectionImportApi.md +1 -1
  14. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  15. data/docs/ContentCollectionMarksApi.md +1 -1
  16. data/docs/ContentCollectionSignaturesApi.md +8 -6
  17. data/docs/ContentCollectionVersionsApi.md +7 -7
  18. data/docs/ContentNamespacesApi.md +1 -1
  19. data/docs/ContentRolesApi.md +1 -1
  20. data/docs/DistributionsAnsibleApi.md +1 -1
  21. data/docs/GalaxyDetailApi.md +1 -1
  22. data/docs/PatchedansibleGitRemote.md +30 -30
  23. data/docs/PulpAnsibleApiApi.md +1 -1
  24. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  25. data/docs/PulpAnsibleApiV3Api.md +1 -1
  26. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  27. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  30. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  42. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  43. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  44. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  63. data/docs/PulpAnsibleTagsApi.md +1 -1
  64. data/docs/RemotesCollectionApi.md +1 -1
  65. data/docs/RemotesGitApi.md +1 -1
  66. data/docs/RemotesRoleApi.md +1 -1
  67. data/docs/RepositoriesAnsibleApi.md +1 -1
  68. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  69. data/docs/TagResponse.md +3 -1
  70. data/docs/VersionsApi.md +1 -1
  71. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +9 -10
  72. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +7 -7
  73. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  75. data/lib/pulp_ansible_client/configuration.rb +2 -2
  76. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  77. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +13 -13
  78. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  79. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +12 -7
  80. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
  81. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
  82. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +248 -248
  83. data/lib/pulp_ansible_client/models/tag_response.rb +13 -4
  84. data/lib/pulp_ansible_client/version.rb +1 -1
  85. data/lib/pulp_ansible_client.rb +1 -1
  86. data/spec/api/content_collection_signatures_api_spec.rb +2 -1
  87. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  88. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  89. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  90. data/spec/configuration_spec.rb +3 -3
  91. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  92. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  93. data/spec/models/ansible_collection_version_spec.rb +2 -2
  94. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  95. data/spec/models/ansible_git_remote_spec.rb +20 -20
  96. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  97. data/spec/models/tag_response_spec.rb +6 -0
  98. metadata +153 -153
@@ -13,15 +13,14 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class ApiPluginAnsibleSearchCollectionVersionsApi
16
+ class PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List cross repository collection version indexs
23
22
  # A viewset for cross-repo searches.
24
- # @param ansible_cross_repository_collection_version_index_href [String]
23
+ # @param path [String]
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @option opts [String] :dependency
27
26
  # @option opts [Boolean] :deprecated
@@ -49,14 +48,13 @@ module PulpAnsibleClient
49
48
  # @option opts [Array<String>] :fields A list of fields to include in the response.
50
49
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
51
50
  # @return [PaginatedCollectionVersionSearchListResponseList]
52
- def list(ansible_cross_repository_collection_version_index_href, opts = {})
53
- data, _status_code, _headers = list_with_http_info(ansible_cross_repository_collection_version_index_href, opts)
51
+ def list(path, opts = {})
52
+ data, _status_code, _headers = list_with_http_info(path, opts)
54
53
  data
55
54
  end
56
55
 
57
- # List cross repository collection version indexs
58
56
  # A viewset for cross-repo searches.
59
- # @param ansible_cross_repository_collection_version_index_href [String]
57
+ # @param path [String]
60
58
  # @param [Hash] opts the optional parameters
61
59
  # @option opts [String] :dependency
62
60
  # @option opts [Boolean] :deprecated
@@ -84,20 +82,20 @@ module PulpAnsibleClient
84
82
  # @option opts [Array<String>] :fields A list of fields to include in the response.
85
83
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
86
84
  # @return [Array<(PaginatedCollectionVersionSearchListResponseList, Integer, Hash)>] PaginatedCollectionVersionSearchListResponseList data, response status code and response headers
87
- def list_with_http_info(ansible_cross_repository_collection_version_index_href, opts = {})
85
+ def list_with_http_info(path, opts = {})
88
86
  if @api_client.config.debugging
89
- @api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.list ...'
87
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.list ...'
90
88
  end
91
- # verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
92
- if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
93
- fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.list"
89
+ # verify the required parameter 'path' is set
90
+ if @api_client.config.client_side_validation && path.nil?
91
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.list"
94
92
  end
95
93
  allowable_values = ["-name", "-namespace", "-pulp_created", "-version", "name", "namespace", "pulp_created", "version"]
96
94
  if @api_client.config.client_side_validation && opts[:'order_by'] && !opts[:'order_by'].all? { |item| allowable_values.include?(item) }
97
95
  fail ArgumentError, "invalid value for \"order_by\", must include one of #{allowable_values}"
98
96
  end
99
97
  # resource path
100
- local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
98
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
101
99
 
102
100
  # query parameters
103
101
  query_params = opts[:query_params] || {}
@@ -155,40 +153,40 @@ module PulpAnsibleClient
155
153
 
156
154
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
155
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
157
  end
160
158
  return data, status_code, headers
161
159
  end
162
160
 
163
161
  # A viewset for cross-repo searches.
164
- # @param ansible_cross_repository_collection_version_index_href [String]
162
+ # @param path [String]
165
163
  # @param collection_version_search_list [CollectionVersionSearchList]
166
164
  # @param [Hash] opts the optional parameters
167
165
  # @return [CollectionVersionSearchListResponse]
168
- def rebuild(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
169
- data, _status_code, _headers = rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts)
166
+ def rebuild(path, collection_version_search_list, opts = {})
167
+ data, _status_code, _headers = rebuild_with_http_info(path, collection_version_search_list, opts)
170
168
  data
171
169
  end
172
170
 
173
171
  # A viewset for cross-repo searches.
174
- # @param ansible_cross_repository_collection_version_index_href [String]
172
+ # @param path [String]
175
173
  # @param collection_version_search_list [CollectionVersionSearchList]
176
174
  # @param [Hash] opts the optional parameters
177
175
  # @return [Array<(CollectionVersionSearchListResponse, Integer, Hash)>] CollectionVersionSearchListResponse data, response status code and response headers
178
- def rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
176
+ def rebuild_with_http_info(path, collection_version_search_list, opts = {})
179
177
  if @api_client.config.debugging
180
- @api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.rebuild ...'
178
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild ...'
181
179
  end
182
- # verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
183
- if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
184
- fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
180
+ # verify the required parameter 'path' is set
181
+ if @api_client.config.client_side_validation && path.nil?
182
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
185
183
  end
186
184
  # verify the required parameter 'collection_version_search_list' is set
187
185
  if @api_client.config.client_side_validation && collection_version_search_list.nil?
188
- fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
186
+ fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
189
187
  end
190
188
  # resource path
191
- local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
189
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
192
190
 
193
191
  # query parameters
194
192
  query_params = opts[:query_params] || {}
@@ -223,7 +221,7 @@ module PulpAnsibleClient
223
221
 
224
222
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
225
223
  if @api_client.config.debugging
226
- @api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
225
  end
228
226
  return data, status_code, headers
229
227
  end
@@ -19,7 +19,6 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List cross repository collection version indexs
23
22
  # A viewset for cross-repo searches.
24
23
  # @param [Hash] opts the optional parameters
25
24
  # @option opts [String] :dependency
@@ -53,7 +52,6 @@ module PulpAnsibleClient
53
52
  data
54
53
  end
55
54
 
56
- # List cross repository collection version indexs
57
55
  # A viewset for cross-repo searches.
58
56
  # @param [Hash] opts the optional parameters
59
57
  # @option opts [String] :dependency
@@ -128,7 +128,7 @@ module PulpAnsibleClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'localhost'
131
+ @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpAnsibleClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://localhost:24817/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -68,22 +68,12 @@ module PulpAnsibleClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
- if @name.nil?
72
- invalid_properties.push('invalid value for "name", name cannot be nil.')
73
- end
74
-
75
- if @is_set.nil?
76
- invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
77
- end
78
-
79
71
  invalid_properties
80
72
  end
81
73
 
82
74
  # Check to see if the all the properties in the model are valid
83
75
  # @return true if the model is valid
84
76
  def valid?
85
- return false if @name.nil?
86
- return false if @is_set.nil?
87
77
  true
88
78
  end
89
79
 
@@ -15,16 +15,16 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # An uncommitted upload that may be turned into the artifact of the content unit.
18
+ # An uncommitted upload that may be turned into the content unit.
19
19
  attr_accessor :upload
20
20
 
21
- # Artifact file representing the physical content
22
- attr_accessor :artifact
23
-
24
21
  # A URI of a repository the new content unit should be associated with.
25
22
  attr_accessor :repository
26
23
 
27
- # An uploaded file that may be turned into the artifact of the content unit.
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
26
+
27
+ # An uploaded file that may be turned into the content unit.
28
28
  attr_accessor :file
29
29
 
30
30
  # The name of the collection.
@@ -40,8 +40,8 @@ module PulpAnsibleClient
40
40
  def self.attribute_map
41
41
  {
42
42
  :'upload' => :'upload',
43
- :'artifact' => :'artifact',
44
43
  :'repository' => :'repository',
44
+ :'artifact' => :'artifact',
45
45
  :'file' => :'file',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
@@ -53,8 +53,8 @@ module PulpAnsibleClient
53
53
  def self.openapi_types
54
54
  {
55
55
  :'upload' => :'String',
56
- :'artifact' => :'String',
57
56
  :'repository' => :'String',
57
+ :'artifact' => :'String',
58
58
  :'file' => :'File',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
@@ -87,14 +87,14 @@ module PulpAnsibleClient
87
87
  self.upload = attributes[:'upload']
88
88
  end
89
89
 
90
- if attributes.key?(:'artifact')
91
- self.artifact = attributes[:'artifact']
92
- end
93
-
94
90
  if attributes.key?(:'repository')
95
91
  self.repository = attributes[:'repository']
96
92
  end
97
93
 
94
+ if attributes.key?(:'artifact')
95
+ self.artifact = attributes[:'artifact']
96
+ end
97
+
98
98
  if attributes.key?(:'file')
99
99
  self.file = attributes[:'file']
100
100
  end
@@ -203,8 +203,8 @@ module PulpAnsibleClient
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
205
  upload == o.upload &&
206
- artifact == o.artifact &&
207
206
  repository == o.repository &&
207
+ artifact == o.artifact &&
208
208
  file == o.file &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
@@ -220,7 +220,7 @@ module PulpAnsibleClient
220
220
  # Calculates hash code according to all attributes.
221
221
  # @return [Integer] Hash code
222
222
  def hash
223
- [upload, artifact, repository, file, expected_name, expected_namespace, expected_version].hash
223
+ [upload, repository, artifact, file, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  attr_accessor :pulp_href
22
19
 
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
23
+ # Artifact file representing the physical content
24
+ attr_accessor :artifact
25
+
26
26
  # The SHA-256 checksum if available.
27
27
  attr_accessor :sha256
28
28
 
@@ -97,9 +97,9 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'artifact' => :'artifact',
101
100
  :'pulp_href' => :'pulp_href',
102
101
  :'pulp_created' => :'pulp_created',
102
+ :'artifact' => :'artifact',
103
103
  :'sha256' => :'sha256',
104
104
  :'md5' => :'md5',
105
105
  :'sha1' => :'sha1',
@@ -130,9 +130,9 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
- :'artifact' => :'String',
134
133
  :'pulp_href' => :'String',
135
134
  :'pulp_created' => :'DateTime',
135
+ :'artifact' => :'String',
136
136
  :'sha256' => :'String',
137
137
  :'md5' => :'String',
138
138
  :'sha1' => :'String',
@@ -182,10 +182,6 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
- if attributes.key?(:'artifact')
186
- self.artifact = attributes[:'artifact']
187
- end
188
-
189
185
  if attributes.key?(:'pulp_href')
190
186
  self.pulp_href = attributes[:'pulp_href']
191
187
  end
@@ -194,6 +190,10 @@ module PulpAnsibleClient
194
190
  self.pulp_created = attributes[:'pulp_created']
195
191
  end
196
192
 
193
+ if attributes.key?(:'artifact')
194
+ self.artifact = attributes[:'artifact']
195
+ end
196
+
197
197
  if attributes.key?(:'sha256')
198
198
  self.sha256 = attributes[:'sha256']
199
199
  end
@@ -435,9 +435,9 @@ module PulpAnsibleClient
435
435
  def ==(o)
436
436
  return true if self.equal?(o)
437
437
  self.class == o.class &&
438
- artifact == o.artifact &&
439
438
  pulp_href == o.pulp_href &&
440
439
  pulp_created == o.pulp_created &&
440
+ artifact == o.artifact &&
441
441
  sha256 == o.sha256 &&
442
442
  md5 == o.md5 &&
443
443
  sha1 == o.sha1 &&
@@ -473,7 +473,7 @@ module PulpAnsibleClient
473
473
  # Calculates hash code according to all attributes.
474
474
  # @return [Integer] Hash code
475
475
  def hash
476
- [artifact, pulp_href, pulp_created, 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
476
+ [pulp_href, pulp_created, artifact, 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
477
477
  end
478
478
 
479
479
  # Builds the object from hash
@@ -18,9 +18,12 @@ module PulpAnsibleClient
18
18
  # A URI of a repository the new content unit should be associated with.
19
19
  attr_accessor :repository
20
20
 
21
- # An uploaded file that may be turned into the artifact of the content unit.
21
+ # An uploaded file that may be turned into the content unit.
22
22
  attr_accessor :file
23
23
 
24
+ # An uncommitted upload that may be turned into the content unit.
25
+ attr_accessor :upload
26
+
24
27
  # The content this signature is pointing to.
25
28
  attr_accessor :signed_collection
26
29
 
@@ -29,6 +32,7 @@ module PulpAnsibleClient
29
32
  {
30
33
  :'repository' => :'repository',
31
34
  :'file' => :'file',
35
+ :'upload' => :'upload',
32
36
  :'signed_collection' => :'signed_collection'
33
37
  }
34
38
  end
@@ -38,6 +42,7 @@ module PulpAnsibleClient
38
42
  {
39
43
  :'repository' => :'String',
40
44
  :'file' => :'File',
45
+ :'upload' => :'String',
41
46
  :'signed_collection' => :'String'
42
47
  }
43
48
  end
@@ -71,6 +76,10 @@ module PulpAnsibleClient
71
76
  self.file = attributes[:'file']
72
77
  end
73
78
 
79
+ if attributes.key?(:'upload')
80
+ self.upload = attributes[:'upload']
81
+ end
82
+
74
83
  if attributes.key?(:'signed_collection')
75
84
  self.signed_collection = attributes[:'signed_collection']
76
85
  end
@@ -80,10 +89,6 @@ module PulpAnsibleClient
80
89
  # @return Array for valid properties with the reasons
81
90
  def list_invalid_properties
82
91
  invalid_properties = Array.new
83
- if @file.nil?
84
- invalid_properties.push('invalid value for "file", file cannot be nil.')
85
- end
86
-
87
92
  if @signed_collection.nil?
88
93
  invalid_properties.push('invalid value for "signed_collection", signed_collection cannot be nil.')
89
94
  end
@@ -94,7 +99,6 @@ module PulpAnsibleClient
94
99
  # Check to see if the all the properties in the model are valid
95
100
  # @return true if the model is valid
96
101
  def valid?
97
- return false if @file.nil?
98
102
  return false if @signed_collection.nil?
99
103
  true
100
104
  end
@@ -106,6 +110,7 @@ module PulpAnsibleClient
106
110
  self.class == o.class &&
107
111
  repository == o.repository &&
108
112
  file == o.file &&
113
+ upload == o.upload &&
109
114
  signed_collection == o.signed_collection
110
115
  end
111
116
 
@@ -118,7 +123,7 @@ module PulpAnsibleClient
118
123
  # Calculates hash code according to all attributes.
119
124
  # @return [Integer] Hash code
120
125
  def hash
121
- [repository, file, signed_collection].hash
126
+ [repository, file, upload, signed_collection].hash
122
127
  end
123
128
 
124
129
  # Builds the object from hash