pulp_ansible_client 0.21.9 → 0.21.11

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 +5 -5
  5. data/docs/AnsibleGitRemote.md +26 -26
  6. data/docs/AnsibleGitRemoteResponse.md +29 -29
  7. data/docs/AnsibleRoleResponse.md +5 -5
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/PatchedansibleGitRemote.md +26 -26
  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 +20 -20
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +231 -231
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +164 -164
  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 +20 -20
  20. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +219 -219
  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 +4 -4
  26. data/spec/models/ansible_collection_version_spec.rb +4 -4
  27. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  28. data/spec/models/ansible_git_remote_spec.rb +17 -17
  29. data/spec/models/ansible_role_response_spec.rb +4 -4
  30. data/spec/models/patchedansible_git_remote_spec.rb +17 -17
  31. metadata +137 -137
@@ -15,18 +15,18 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  # An uploaded file that may be turned into the content unit.
22
19
  attr_accessor :file
23
20
 
24
- # An uncommitted upload that may be turned into the content unit.
25
- attr_accessor :upload
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
26
23
 
27
24
  # A URI of a repository the new content unit should be associated with.
28
25
  attr_accessor :repository
29
26
 
27
+ # An uncommitted upload that may be turned into 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
- :'artifact' => :'artifact',
43
42
  :'file' => :'file',
44
- :'upload' => :'upload',
43
+ :'artifact' => :'artifact',
45
44
  :'repository' => :'repository',
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
- :'artifact' => :'String',
56
55
  :'file' => :'File',
57
- :'upload' => :'String',
56
+ :'artifact' => :'String',
58
57
  :'repository' => :'String',
58
+ :'upload' => :'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?(:'artifact')
87
- self.artifact = attributes[:'artifact']
88
- end
89
-
90
86
  if attributes.key?(:'file')
91
87
  self.file = attributes[:'file']
92
88
  end
93
89
 
94
- if attributes.key?(:'upload')
95
- self.upload = attributes[:'upload']
90
+ if attributes.key?(:'artifact')
91
+ self.artifact = attributes[:'artifact']
96
92
  end
97
93
 
98
94
  if attributes.key?(:'repository')
99
95
  self.repository = attributes[:'repository']
100
96
  end
101
97
 
98
+ if attributes.key?(:'upload')
99
+ self.upload = attributes[:'upload']
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
- artifact == o.artifact &&
206
205
  file == o.file &&
207
- upload == o.upload &&
206
+ artifact == o.artifact &&
208
207
  repository == o.repository &&
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
- [artifact, file, upload, repository, expected_name, expected_namespace, expected_version].hash
223
+ [file, artifact, repository, upload, 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
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
24
+ attr_accessor :pulp_href
25
+
21
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.
22
27
  attr_accessor :pulp_last_updated
23
28
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
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
- :'artifact' => :'artifact',
104
- :'pulp_last_updated' => :'pulp_last_updated',
105
103
  :'pulp_created' => :'pulp_created',
104
+ :'artifact' => :'artifact',
106
105
  :'pulp_href' => :'pulp_href',
106
+ :'pulp_last_updated' => :'pulp_last_updated',
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
- :'artifact' => :'String',
138
- :'pulp_last_updated' => :'DateTime',
139
137
  :'pulp_created' => :'DateTime',
138
+ :'artifact' => :'String',
140
139
  :'pulp_href' => :'String',
140
+ :'pulp_last_updated' => :'DateTime',
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?(:'artifact')
191
- self.artifact = attributes[:'artifact']
192
- end
193
-
194
- if attributes.key?(:'pulp_last_updated')
195
- self.pulp_last_updated = attributes[:'pulp_last_updated']
196
- end
197
-
198
190
  if attributes.key?(:'pulp_created')
199
191
  self.pulp_created = attributes[:'pulp_created']
200
192
  end
201
193
 
194
+ if attributes.key?(:'artifact')
195
+ self.artifact = attributes[:'artifact']
196
+ end
197
+
202
198
  if attributes.key?(:'pulp_href')
203
199
  self.pulp_href = attributes[:'pulp_href']
204
200
  end
205
201
 
202
+ if attributes.key?(:'pulp_last_updated')
203
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
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
- artifact == o.artifact &&
448
- pulp_last_updated == o.pulp_last_updated &&
449
447
  pulp_created == o.pulp_created &&
448
+ artifact == o.artifact &&
450
449
  pulp_href == o.pulp_href &&
450
+ pulp_last_updated == o.pulp_last_updated &&
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
- [artifact, pulp_last_updated, pulp_created, 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
486
+ [pulp_created, artifact, pulp_href, pulp_last_updated, 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