pulp_ansible_client 0.28.0 → 0.29.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  4. data/docs/AnsibleGitRemote.md +28 -28
  5. data/docs/AnsibleGitRemoteResponse.md +30 -30
  6. data/docs/AnsibleRole.md +4 -4
  7. data/docs/AnsibleRoleResponse.md +10 -10
  8. data/docs/ContentCollectionVersionsApi.md +8 -8
  9. data/docs/DistributionsAnsibleApi.md +10 -10
  10. data/docs/PatchedansibleGitRemote.md +28 -28
  11. data/docs/RemotesCollectionApi.md +10 -10
  12. data/docs/RemotesGitApi.md +10 -10
  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 +40 -40
  22. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  23. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
  24. data/lib/pulp_ansible_client/models/ansible_role.rb +17 -17
  25. data/lib/pulp_ansible_client/models/ansible_role_response.rb +40 -40
  26. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +206 -206
  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 +20 -20
  36. data/spec/models/ansible_git_remote_spec.rb +18 -18
  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 +18 -18
  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']
@@ -16,24 +16,24 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
- # The Pulp Resource Name (PRN).
20
- attr_accessor :prn
19
+ attr_accessor :pulp_href
21
20
 
22
- # 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
- attr_accessor :pulp_last_updated
21
+ attr_accessor :vuln_report
24
22
 
25
- attr_accessor :pulp_href
23
+ # Timestamp of creation.
24
+ attr_accessor :pulp_created
26
25
 
27
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
- attr_accessor :pulp_labels
26
+ # 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.
27
+ attr_accessor :pulp_last_updated
29
28
 
30
29
  # Artifact file representing the physical content
31
30
  attr_accessor :artifact
32
31
 
33
- # Timestamp of creation.
34
- attr_accessor :pulp_created
32
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
33
+ attr_accessor :pulp_labels
35
34
 
36
- attr_accessor :vuln_report
35
+ # The Pulp Resource Name (PRN).
36
+ attr_accessor :prn
37
37
 
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
@@ -109,13 +109,13 @@ module PulpAnsibleClient
109
109
  # Attribute mapping from ruby-style variable name to JSON key.
110
110
  def self.attribute_map
111
111
  {
112
- :'prn' => :'prn',
113
- :'pulp_last_updated' => :'pulp_last_updated',
114
112
  :'pulp_href' => :'pulp_href',
115
- :'pulp_labels' => :'pulp_labels',
116
- :'artifact' => :'artifact',
117
- :'pulp_created' => :'pulp_created',
118
113
  :'vuln_report' => :'vuln_report',
114
+ :'pulp_created' => :'pulp_created',
115
+ :'pulp_last_updated' => :'pulp_last_updated',
116
+ :'artifact' => :'artifact',
117
+ :'pulp_labels' => :'pulp_labels',
118
+ :'prn' => :'prn',
119
119
  :'sha256' => :'sha256',
120
120
  :'md5' => :'md5',
121
121
  :'sha1' => :'sha1',
@@ -151,13 +151,13 @@ module PulpAnsibleClient
151
151
  # Attribute type mapping.
152
152
  def self.openapi_types
153
153
  {
154
- :'prn' => :'String',
155
- :'pulp_last_updated' => :'Time',
156
154
  :'pulp_href' => :'String',
157
- :'pulp_labels' => :'Hash<String, String>',
158
- :'artifact' => :'String',
159
- :'pulp_created' => :'Time',
160
155
  :'vuln_report' => :'String',
156
+ :'pulp_created' => :'Time',
157
+ :'pulp_last_updated' => :'Time',
158
+ :'artifact' => :'String',
159
+ :'pulp_labels' => :'Hash<String, String>',
160
+ :'prn' => :'String',
161
161
  :'sha256' => :'String',
162
162
  :'md5' => :'String',
163
163
  :'sha1' => :'String',
@@ -207,34 +207,34 @@ module PulpAnsibleClient
207
207
  h[k.to_sym] = v
208
208
  }
209
209
 
210
- if attributes.key?(:'prn')
211
- self.prn = attributes[:'prn']
210
+ if attributes.key?(:'pulp_href')
211
+ self.pulp_href = attributes[:'pulp_href']
212
212
  end
213
213
 
214
- if attributes.key?(:'pulp_last_updated')
215
- self.pulp_last_updated = attributes[:'pulp_last_updated']
214
+ if attributes.key?(:'vuln_report')
215
+ self.vuln_report = attributes[:'vuln_report']
216
216
  end
217
217
 
218
- if attributes.key?(:'pulp_href')
219
- self.pulp_href = attributes[:'pulp_href']
218
+ if attributes.key?(:'pulp_created')
219
+ self.pulp_created = attributes[:'pulp_created']
220
220
  end
221
221
 
222
- if attributes.key?(:'pulp_labels')
223
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
- self.pulp_labels = value
225
- end
222
+ if attributes.key?(:'pulp_last_updated')
223
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
226
224
  end
227
225
 
228
226
  if attributes.key?(:'artifact')
229
227
  self.artifact = attributes[:'artifact']
230
228
  end
231
229
 
232
- if attributes.key?(:'pulp_created')
233
- self.pulp_created = attributes[:'pulp_created']
230
+ if attributes.key?(:'pulp_labels')
231
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
232
+ self.pulp_labels = value
233
+ end
234
234
  end
235
235
 
236
- if attributes.key?(:'vuln_report')
237
- self.vuln_report = attributes[:'vuln_report']
236
+ if attributes.key?(:'prn')
237
+ self.prn = attributes[:'prn']
238
238
  end
239
239
 
240
240
  if attributes.key?(:'sha256')
@@ -495,13 +495,13 @@ module PulpAnsibleClient
495
495
  def ==(o)
496
496
  return true if self.equal?(o)
497
497
  self.class == o.class &&
498
- prn == o.prn &&
499
- pulp_last_updated == o.pulp_last_updated &&
500
498
  pulp_href == o.pulp_href &&
501
- pulp_labels == o.pulp_labels &&
502
- artifact == o.artifact &&
503
- pulp_created == o.pulp_created &&
504
499
  vuln_report == o.vuln_report &&
500
+ pulp_created == o.pulp_created &&
501
+ pulp_last_updated == o.pulp_last_updated &&
502
+ artifact == o.artifact &&
503
+ pulp_labels == o.pulp_labels &&
504
+ prn == o.prn &&
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
+ [pulp_href, vuln_report, pulp_created, pulp_last_updated, artifact, pulp_labels, prn, 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