pulp_ansible_client 0.20.5 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +3 -3
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionVersionSignature.md +3 -1
  6. data/docs/AnsibleGitRemote.md +29 -29
  7. data/docs/AnsibleGitRemoteResponse.md +27 -27
  8. data/docs/AnsibleRole.md +3 -3
  9. data/docs/AnsibleRoleResponse.md +4 -4
  10. data/docs/ContentCollectionSignaturesApi.md +7 -5
  11. data/docs/ContentCollectionVersionsApi.md +4 -4
  12. data/docs/PatchedansibleGitRemote.md +29 -29
  13. data/docs/TagResponse.md +3 -1
  14. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +9 -10
  15. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +5 -5
  16. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +12 -12
  17. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  18. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +12 -7
  19. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +223 -223
  20. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +142 -142
  21. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  22. data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  24. data/lib/pulp_ansible_client/models/tag_response.rb +13 -4
  25. data/lib/pulp_ansible_client/version.rb +1 -1
  26. data/spec/api/content_collection_signatures_api_spec.rb +2 -1
  27. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  28. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  29. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  30. data/spec/models/ansible_collection_version_spec.rb +2 -2
  31. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  32. data/spec/models/ansible_git_remote_spec.rb +18 -18
  33. data/spec/models/ansible_role_response_spec.rb +2 -2
  34. data/spec/models/ansible_role_spec.rb +2 -2
  35. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  36. data/spec/models/tag_response_spec.rb +6 -0
  37. metadata +132 -132
@@ -15,18 +15,18 @@ 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
21
  # A URI of a repository the new content unit should be associated with.
22
22
  attr_accessor :repository
23
23
 
24
- # An uploaded file that may be turned into the artifact of the content unit.
25
- attr_accessor :file
26
-
27
24
  # Artifact file representing the physical content
28
25
  attr_accessor :artifact
29
26
 
27
+ # An uploaded file that may be turned into the content unit.
28
+ attr_accessor :file
29
+
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  {
42
42
  :'upload' => :'upload',
43
43
  :'repository' => :'repository',
44
- :'file' => :'file',
45
44
  :'artifact' => :'artifact',
45
+ :'file' => :'file',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  {
55
55
  :'upload' => :'String',
56
56
  :'repository' => :'String',
57
- :'file' => :'File',
58
57
  :'artifact' => :'String',
58
+ :'file' => :'File',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -91,14 +91,14 @@ module PulpAnsibleClient
91
91
  self.repository = attributes[:'repository']
92
92
  end
93
93
 
94
- if attributes.key?(:'file')
95
- self.file = attributes[:'file']
96
- end
97
-
98
94
  if attributes.key?(:'artifact')
99
95
  self.artifact = attributes[:'artifact']
100
96
  end
101
97
 
98
+ if attributes.key?(:'file')
99
+ self.file = attributes[:'file']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -204,8 +204,8 @@ module PulpAnsibleClient
204
204
  self.class == o.class &&
205
205
  upload == o.upload &&
206
206
  repository == o.repository &&
207
- file == o.file &&
208
207
  artifact == o.artifact &&
208
+ file == o.file &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
211
211
  expected_version == o.expected_version
@@ -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, repository, file, artifact, 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,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Timestamp of creation.
19
21
  attr_accessor :pulp_created
20
22
 
21
- attr_accessor :pulp_href
22
-
23
23
  # Artifact file representing the physical content
24
24
  attr_accessor :artifact
25
25
 
@@ -97,8 +97,8 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'pulp_created' => :'pulp_created',
101
100
  :'pulp_href' => :'pulp_href',
101
+ :'pulp_created' => :'pulp_created',
102
102
  :'artifact' => :'artifact',
103
103
  :'sha256' => :'sha256',
104
104
  :'md5' => :'md5',
@@ -130,8 +130,8 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
- :'pulp_created' => :'DateTime',
134
133
  :'pulp_href' => :'String',
134
+ :'pulp_created' => :'DateTime',
135
135
  :'artifact' => :'String',
136
136
  :'sha256' => :'String',
137
137
  :'md5' => :'String',
@@ -182,14 +182,14 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
- if attributes.key?(:'pulp_created')
186
- self.pulp_created = attributes[:'pulp_created']
187
- end
188
-
189
185
  if attributes.key?(:'pulp_href')
190
186
  self.pulp_href = attributes[:'pulp_href']
191
187
  end
192
188
 
189
+ if attributes.key?(:'pulp_created')
190
+ self.pulp_created = attributes[:'pulp_created']
191
+ end
192
+
193
193
  if attributes.key?(:'artifact')
194
194
  self.artifact = attributes[:'artifact']
195
195
  end
@@ -435,8 +435,8 @@ module PulpAnsibleClient
435
435
  def ==(o)
436
436
  return true if self.equal?(o)
437
437
  self.class == o.class &&
438
- pulp_created == o.pulp_created &&
439
438
  pulp_href == o.pulp_href &&
439
+ pulp_created == o.pulp_created &&
440
440
  artifact == o.artifact &&
441
441
  sha256 == o.sha256 &&
442
442
  md5 == o.md5 &&
@@ -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
- [pulp_created, pulp_href, 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
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