pulp_ansible_client 0.28.0 → 0.28.2

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  4. data/docs/AnsibleGitRemote.md +26 -26
  5. data/docs/AnsibleGitRemoteResponse.md +26 -26
  6. data/docs/AnsibleRole.md +4 -4
  7. data/docs/AnsibleRoleResponse.md +6 -6
  8. data/docs/ContentCollectionVersionsApi.md +8 -8
  9. data/docs/DistributionsAnsibleApi.md +10 -10
  10. data/docs/PatchedansibleGitRemote.md +26 -26
  11. data/docs/RemotesCollectionApi.md +10 -10
  12. data/docs/RemotesGitApi.md +12 -12
  13. data/docs/RemotesRoleApi.md +10 -10
  14. data/docs/RepositoriesAnsibleApi.md +10 -10
  15. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  16. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +10 -10
  17. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
  18. data/lib/pulp_ansible_client/api/remotes_git_api.rb +10 -10
  19. data/lib/pulp_ansible_client/api/remotes_role_api.rb +10 -10
  20. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +10 -10
  21. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +29 -29
  22. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +231 -231
  23. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
  24. data/lib/pulp_ansible_client/models/ansible_role.rb +17 -17
  25. data/lib/pulp_ansible_client/models/ansible_role_response.rb +31 -31
  26. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
  27. data/lib/pulp_ansible_client/version.rb +1 -1
  28. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  29. data/spec/api/distributions_ansible_api_spec.rb +4 -4
  30. data/spec/api/remotes_collection_api_spec.rb +4 -4
  31. data/spec/api/remotes_git_api_spec.rb +4 -4
  32. data/spec/api/remotes_role_api_spec.rb +4 -4
  33. data/spec/api/repositories_ansible_api_spec.rb +4 -4
  34. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  35. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  36. data/spec/models/ansible_git_remote_spec.rb +19 -19
  37. data/spec/models/ansible_role_response_spec.rb +6 -6
  38. data/spec/models/ansible_role_spec.rb +2 -2
  39. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  40. metadata +125 -125
@@ -834,24 +834,24 @@ module PulpAnsibleClient
834
834
  end
835
835
 
836
836
  # Update an ansible repository
837
- # Trigger an asynchronous partial update task
837
+ # Update the entity partially and trigger an asynchronous task if necessary
838
838
  # @param ansible_ansible_repository_href [String]
839
839
  # @param patchedansible_ansible_repository [PatchedansibleAnsibleRepository]
840
840
  # @param [Hash] opts the optional parameters
841
841
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
842
- # @return [AsyncOperationResponse]
842
+ # @return [AnsibleAnsibleRepositoryResponse]
843
843
  def partial_update(ansible_ansible_repository_href, patchedansible_ansible_repository, opts = {})
844
844
  data, _status_code, _headers = partial_update_with_http_info(ansible_ansible_repository_href, patchedansible_ansible_repository, opts)
845
845
  data
846
846
  end
847
847
 
848
848
  # Update an ansible repository
849
- # Trigger an asynchronous partial update task
849
+ # Update the entity partially and trigger an asynchronous task if necessary
850
850
  # @param ansible_ansible_repository_href [String]
851
851
  # @param patchedansible_ansible_repository [PatchedansibleAnsibleRepository]
852
852
  # @param [Hash] opts the optional parameters
853
853
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
854
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
854
+ # @return [Array<(AnsibleAnsibleRepositoryResponse, Integer, Hash)>] AnsibleAnsibleRepositoryResponse data, response status code and response headers
855
855
  def partial_update_with_http_info(ansible_ansible_repository_href, patchedansible_ansible_repository, opts = {})
856
856
  if @api_client.config.debugging
857
857
  @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.partial_update ...'
@@ -888,7 +888,7 @@ module PulpAnsibleClient
888
888
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedansible_ansible_repository)
889
889
 
890
890
  # return_type
891
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
891
+ return_type = opts[:debug_return_type] || 'AnsibleAnsibleRepositoryResponse'
892
892
 
893
893
  # auth_names
894
894
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -1514,24 +1514,24 @@ module PulpAnsibleClient
1514
1514
  end
1515
1515
 
1516
1516
  # Update an ansible repository
1517
- # Trigger an asynchronous update task
1517
+ # Update the entity and trigger an asynchronous task if necessary
1518
1518
  # @param ansible_ansible_repository_href [String]
1519
1519
  # @param ansible_ansible_repository [AnsibleAnsibleRepository]
1520
1520
  # @param [Hash] opts the optional parameters
1521
1521
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
1522
- # @return [AsyncOperationResponse]
1522
+ # @return [AnsibleAnsibleRepositoryResponse]
1523
1523
  def update(ansible_ansible_repository_href, ansible_ansible_repository, opts = {})
1524
1524
  data, _status_code, _headers = update_with_http_info(ansible_ansible_repository_href, ansible_ansible_repository, opts)
1525
1525
  data
1526
1526
  end
1527
1527
 
1528
1528
  # Update an ansible repository
1529
- # Trigger an asynchronous update task
1529
+ # Update the entity and trigger an asynchronous task if necessary
1530
1530
  # @param ansible_ansible_repository_href [String]
1531
1531
  # @param ansible_ansible_repository [AnsibleAnsibleRepository]
1532
1532
  # @param [Hash] opts the optional parameters
1533
1533
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
1534
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
1534
+ # @return [Array<(AnsibleAnsibleRepositoryResponse, Integer, Hash)>] AnsibleAnsibleRepositoryResponse data, response status code and response headers
1535
1535
  def update_with_http_info(ansible_ansible_repository_href, ansible_ansible_repository, opts = {})
1536
1536
  if @api_client.config.debugging
1537
1537
  @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.update ...'
@@ -1568,7 +1568,7 @@ module PulpAnsibleClient
1568
1568
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ansible_ansible_repository)
1569
1569
 
1570
1570
  # return_type
1571
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
1571
+ return_type = opts[:debug_return_type] || 'AnsibleAnsibleRepositoryResponse'
1572
1572
 
1573
1573
  # auth_names
1574
1574
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -19,22 +19,22 @@ module PulpAnsibleClient
19
19
  # The Pulp Resource Name (PRN).
20
20
  attr_accessor :prn
21
21
 
22
+ attr_accessor :pulp_href
23
+
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
26
+
27
+ attr_accessor :vuln_report
28
+
22
29
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
23
30
  attr_accessor :pulp_last_updated
24
31
 
25
- attr_accessor :pulp_href
26
-
27
32
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
33
  attr_accessor :pulp_labels
29
34
 
30
- # Artifact file representing the physical content
31
- attr_accessor :artifact
32
-
33
35
  # Timestamp of creation.
34
36
  attr_accessor :pulp_created
35
37
 
36
- attr_accessor :vuln_report
37
-
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
40
40
 
@@ -110,12 +110,12 @@ module PulpAnsibleClient
110
110
  def self.attribute_map
111
111
  {
112
112
  :'prn' => :'prn',
113
- :'pulp_last_updated' => :'pulp_last_updated',
114
113
  :'pulp_href' => :'pulp_href',
115
- :'pulp_labels' => :'pulp_labels',
116
114
  :'artifact' => :'artifact',
117
- :'pulp_created' => :'pulp_created',
118
115
  :'vuln_report' => :'vuln_report',
116
+ :'pulp_last_updated' => :'pulp_last_updated',
117
+ :'pulp_labels' => :'pulp_labels',
118
+ :'pulp_created' => :'pulp_created',
119
119
  :'sha256' => :'sha256',
120
120
  :'md5' => :'md5',
121
121
  :'sha1' => :'sha1',
@@ -152,12 +152,12 @@ module PulpAnsibleClient
152
152
  def self.openapi_types
153
153
  {
154
154
  :'prn' => :'String',
155
- :'pulp_last_updated' => :'Time',
156
155
  :'pulp_href' => :'String',
157
- :'pulp_labels' => :'Hash<String, String>',
158
156
  :'artifact' => :'String',
159
- :'pulp_created' => :'Time',
160
157
  :'vuln_report' => :'String',
158
+ :'pulp_last_updated' => :'Time',
159
+ :'pulp_labels' => :'Hash<String, String>',
160
+ :'pulp_created' => :'Time',
161
161
  :'sha256' => :'String',
162
162
  :'md5' => :'String',
163
163
  :'sha1' => :'String',
@@ -211,32 +211,32 @@ module PulpAnsibleClient
211
211
  self.prn = attributes[:'prn']
212
212
  end
213
213
 
214
- if attributes.key?(:'pulp_last_updated')
215
- self.pulp_last_updated = attributes[:'pulp_last_updated']
216
- end
217
-
218
214
  if attributes.key?(:'pulp_href')
219
215
  self.pulp_href = attributes[:'pulp_href']
220
216
  end
221
217
 
218
+ if attributes.key?(:'artifact')
219
+ self.artifact = attributes[:'artifact']
220
+ end
221
+
222
+ if attributes.key?(:'vuln_report')
223
+ self.vuln_report = attributes[:'vuln_report']
224
+ end
225
+
226
+ if attributes.key?(:'pulp_last_updated')
227
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
228
+ end
229
+
222
230
  if attributes.key?(:'pulp_labels')
223
231
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
232
  self.pulp_labels = value
225
233
  end
226
234
  end
227
235
 
228
- if attributes.key?(:'artifact')
229
- self.artifact = attributes[:'artifact']
230
- end
231
-
232
236
  if attributes.key?(:'pulp_created')
233
237
  self.pulp_created = attributes[:'pulp_created']
234
238
  end
235
239
 
236
- if attributes.key?(:'vuln_report')
237
- self.vuln_report = attributes[:'vuln_report']
238
- end
239
-
240
240
  if attributes.key?(:'sha256')
241
241
  self.sha256 = attributes[:'sha256']
242
242
  end
@@ -496,12 +496,12 @@ module PulpAnsibleClient
496
496
  return true if self.equal?(o)
497
497
  self.class == o.class &&
498
498
  prn == o.prn &&
499
- pulp_last_updated == o.pulp_last_updated &&
500
499
  pulp_href == o.pulp_href &&
501
- pulp_labels == o.pulp_labels &&
502
500
  artifact == o.artifact &&
503
- pulp_created == o.pulp_created &&
504
501
  vuln_report == o.vuln_report &&
502
+ pulp_last_updated == o.pulp_last_updated &&
503
+ pulp_labels == o.pulp_labels &&
504
+ pulp_created == o.pulp_created &&
505
505
  sha256 == o.sha256 &&
506
506
  md5 == o.md5 &&
507
507
  sha1 == o.sha1 &&
@@ -537,7 +537,7 @@ module PulpAnsibleClient
537
537
  # Calculates hash code according to all attributes.
538
538
  # @return [Integer] Hash code
539
539
  def hash
540
- [prn, pulp_last_updated, pulp_href, pulp_labels, artifact, pulp_created, vuln_report, 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
540
+ [prn, pulp_href, artifact, vuln_report, pulp_last_updated, pulp_labels, 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
541
541
  end
542
542
 
543
543
  # Builds the object from hash