pulp_ansible_client 0.16.4 → 0.16.6

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleGitRemote.md +28 -28
  6. data/docs/AnsibleGitRemoteResponse.md +28 -28
  7. data/docs/AnsibleRoleResponse.md +3 -3
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/PatchedansibleGitRemote.md +28 -28
  10. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  11. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  12. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  13. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  14. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +238 -238
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +163 -163
  17. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  18. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  20. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
  22. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  25. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  26. data/spec/models/ansible_collection_version_spec.rb +4 -4
  27. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  28. data/spec/models/ansible_git_remote_spec.rb +20 -20
  29. data/spec/models/ansible_role_response_spec.rb +3 -3
  30. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  31. metadata +108 -108
@@ -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.
19
+ attr_accessor :upload
20
+
21
+ # An uploaded file that may be turned into the artifact of the content unit.
22
+ attr_accessor :file
23
+
18
24
  # A URI of a repository the new content unit should be associated with.
19
25
  attr_accessor :repository
20
26
 
21
27
  # Artifact file representing the physical content
22
28
  attr_accessor :artifact
23
29
 
24
- # An uploaded file that may be turned into the artifact of the content unit.
25
- attr_accessor :file
26
-
27
- # An uncommitted upload that may be turned into the artifact of the content unit.
28
- attr_accessor :upload
29
-
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -39,10 +39,10 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
+ :'upload' => :'upload',
43
+ :'file' => :'file',
42
44
  :'repository' => :'repository',
43
45
  :'artifact' => :'artifact',
44
- :'file' => :'file',
45
- :'upload' => :'upload',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -52,10 +52,10 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'upload' => :'String',
56
+ :'file' => :'File',
55
57
  :'repository' => :'String',
56
58
  :'artifact' => :'String',
57
- :'file' => :'File',
58
- :'upload' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -83,20 +83,20 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'repository')
87
- self.repository = attributes[:'repository']
88
- end
89
-
90
- if attributes.key?(:'artifact')
91
- self.artifact = attributes[:'artifact']
86
+ if attributes.key?(:'upload')
87
+ self.upload = attributes[:'upload']
92
88
  end
93
89
 
94
90
  if attributes.key?(:'file')
95
91
  self.file = attributes[:'file']
96
92
  end
97
93
 
98
- if attributes.key?(:'upload')
99
- self.upload = attributes[:'upload']
94
+ if attributes.key?(:'repository')
95
+ self.repository = attributes[:'repository']
96
+ end
97
+
98
+ if attributes.key?(:'artifact')
99
+ self.artifact = attributes[:'artifact']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'expected_name')
@@ -202,10 +202,10 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
+ upload == o.upload &&
206
+ file == o.file &&
205
207
  repository == o.repository &&
206
208
  artifact == o.artifact &&
207
- file == o.file &&
208
- upload == o.upload &&
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
- [repository, artifact, file, upload, expected_name, expected_namespace, expected_version].hash
223
+ [upload, file, repository, artifact, 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
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  attr_accessor :pulp_href
19
22
 
20
23
  # Artifact file representing the physical content
21
24
  attr_accessor :artifact
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
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
+ :'pulp_created' => :'pulp_created',
100
101
  :'pulp_href' => :'pulp_href',
101
102
  :'artifact' => :'artifact',
102
- :'pulp_created' => :'pulp_created',
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
+ :'pulp_created' => :'DateTime',
133
134
  :'pulp_href' => :'String',
134
135
  :'artifact' => :'String',
135
- :'pulp_created' => :'DateTime',
136
136
  :'sha256' => :'String',
137
137
  :'md5' => :'String',
138
138
  :'sha1' => :'String',
@@ -182,6 +182,10 @@ 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
+
185
189
  if attributes.key?(:'pulp_href')
186
190
  self.pulp_href = attributes[:'pulp_href']
187
191
  end
@@ -190,10 +194,6 @@ module PulpAnsibleClient
190
194
  self.artifact = attributes[:'artifact']
191
195
  end
192
196
 
193
- if attributes.key?(:'pulp_created')
194
- self.pulp_created = attributes[:'pulp_created']
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
+ pulp_created == o.pulp_created &&
438
439
  pulp_href == o.pulp_href &&
439
440
  artifact == o.artifact &&
440
- pulp_created == o.pulp_created &&
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
- [pulp_href, artifact, 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_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
477
477
  end
478
478
 
479
479
  # Builds the object from hash