pulp_ansible_client 0.21.8 → 0.21.10

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 +4 -4
  5. data/docs/AnsibleGitRemote.md +28 -28
  6. data/docs/AnsibleGitRemoteResponse.md +27 -27
  7. data/docs/AnsibleRoleResponse.md +4 -4
  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 +18 -18
  14. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +17 -17
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
  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 +17 -17
  20. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +246 -246
  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 +17 -17
  28. data/spec/models/ansible_git_remote_spec.rb +19 -19
  29. data/spec/models/ansible_role_response_spec.rb +3 -3
  30. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  31. metadata +136 -136
@@ -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 content unit.
19
- attr_accessor :upload
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
24
- # Artifact file representing the physical content
25
- attr_accessor :artifact
21
+ # An uncommitted upload that may be turned into the content unit.
22
+ attr_accessor :upload
26
23
 
27
24
  # An uploaded file that may be turned into the content unit.
28
25
  attr_accessor :file
29
26
 
27
+ # Artifact file representing the physical content
28
+ attr_accessor :artifact
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
42
  :'repository' => :'repository',
44
- :'artifact' => :'artifact',
43
+ :'upload' => :'upload',
45
44
  :'file' => :'file',
45
+ :'artifact' => :'artifact',
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
55
  :'repository' => :'String',
57
- :'artifact' => :'String',
56
+ :'upload' => :'String',
58
57
  :'file' => :'File',
58
+ :'artifact' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -83,22 +83,22 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'upload')
87
- self.upload = attributes[:'upload']
88
- end
89
-
90
86
  if attributes.key?(:'repository')
91
87
  self.repository = attributes[:'repository']
92
88
  end
93
89
 
94
- if attributes.key?(:'artifact')
95
- self.artifact = attributes[:'artifact']
90
+ if attributes.key?(:'upload')
91
+ self.upload = attributes[:'upload']
96
92
  end
97
93
 
98
94
  if attributes.key?(:'file')
99
95
  self.file = attributes[:'file']
100
96
  end
101
97
 
98
+ if attributes.key?(:'artifact')
99
+ self.artifact = attributes[:'artifact']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -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
205
  repository == o.repository &&
207
- artifact == o.artifact &&
206
+ upload == o.upload &&
208
207
  file == o.file &&
208
+ artifact == o.artifact &&
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, artifact, file, expected_name, expected_namespace, expected_version].hash
223
+ [repository, upload, file, artifact, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,17 +15,17 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- attr_accessor :pulp_href
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
19
20
 
20
21
  # 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.
21
22
  attr_accessor :pulp_last_updated
22
23
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
25
-
26
24
  # Artifact file representing the physical content
27
25
  attr_accessor :artifact
28
26
 
27
+ attr_accessor :pulp_href
28
+
29
29
  # The SHA-256 checksum if available.
30
30
  attr_accessor :sha256
31
31
 
@@ -100,10 +100,10 @@ module PulpAnsibleClient
100
100
  # Attribute mapping from ruby-style variable name to JSON key.
101
101
  def self.attribute_map
102
102
  {
103
- :'pulp_href' => :'pulp_href',
104
- :'pulp_last_updated' => :'pulp_last_updated',
105
103
  :'pulp_created' => :'pulp_created',
104
+ :'pulp_last_updated' => :'pulp_last_updated',
106
105
  :'artifact' => :'artifact',
106
+ :'pulp_href' => :'pulp_href',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -134,10 +134,10 @@ module PulpAnsibleClient
134
134
  # Attribute type mapping.
135
135
  def self.openapi_types
136
136
  {
137
- :'pulp_href' => :'String',
138
- :'pulp_last_updated' => :'DateTime',
139
137
  :'pulp_created' => :'DateTime',
138
+ :'pulp_last_updated' => :'DateTime',
140
139
  :'artifact' => :'String',
140
+ :'pulp_href' => :'String',
141
141
  :'sha256' => :'String',
142
142
  :'md5' => :'String',
143
143
  :'sha1' => :'String',
@@ -187,22 +187,22 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'pulp_href')
191
- self.pulp_href = attributes[:'pulp_href']
190
+ if attributes.key?(:'pulp_created')
191
+ self.pulp_created = attributes[:'pulp_created']
192
192
  end
193
193
 
194
194
  if attributes.key?(:'pulp_last_updated')
195
195
  self.pulp_last_updated = attributes[:'pulp_last_updated']
196
196
  end
197
197
 
198
- if attributes.key?(:'pulp_created')
199
- self.pulp_created = attributes[:'pulp_created']
200
- end
201
-
202
198
  if attributes.key?(:'artifact')
203
199
  self.artifact = attributes[:'artifact']
204
200
  end
205
201
 
202
+ if attributes.key?(:'pulp_href')
203
+ self.pulp_href = attributes[:'pulp_href']
204
+ end
205
+
206
206
  if attributes.key?(:'sha256')
207
207
  self.sha256 = attributes[:'sha256']
208
208
  end
@@ -444,10 +444,10 @@ module PulpAnsibleClient
444
444
  def ==(o)
445
445
  return true if self.equal?(o)
446
446
  self.class == o.class &&
447
- pulp_href == o.pulp_href &&
448
- pulp_last_updated == o.pulp_last_updated &&
449
447
  pulp_created == o.pulp_created &&
448
+ pulp_last_updated == o.pulp_last_updated &&
450
449
  artifact == o.artifact &&
450
+ pulp_href == o.pulp_href &&
451
451
  sha256 == o.sha256 &&
452
452
  md5 == o.md5 &&
453
453
  sha1 == o.sha1 &&
@@ -483,7 +483,7 @@ module PulpAnsibleClient
483
483
  # Calculates hash code according to all attributes.
484
484
  # @return [Integer] Hash code
485
485
  def hash
486
- [pulp_href, pulp_last_updated, 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
486
+ [pulp_created, pulp_last_updated, artifact, pulp_href, 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
487
487
  end
488
488
 
489
489
  # Builds the object from hash