pulp_ansible_client 0.22.1 → 0.22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  6. data/docs/AnsibleCollectionVersion.md +7 -5
  7. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  8. data/docs/AnsibleCollectionVersionSignature.md +2 -0
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +4 -2
  11. data/docs/AnsibleGitRemote.md +22 -22
  12. data/docs/AnsibleGitRemoteResponse.md +28 -26
  13. data/docs/AnsibleRoleRemoteResponse.md +2 -0
  14. data/docs/AnsibleRoleResponse.md +6 -4
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionSummaryResponse.md +2 -2
  17. data/docs/CollectionVersionDocsResponse.md +1 -1
  18. data/docs/CollectionVersionResponse.md +2 -2
  19. data/docs/CollectionVersionSearchList.md +0 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +10 -8
  21. data/docs/ContentCollectionMarksApi.md +10 -8
  22. data/docs/ContentCollectionSignaturesApi.md +13 -9
  23. data/docs/ContentCollectionVersionsApi.md +14 -10
  24. data/docs/ContentNamespacesApi.md +10 -8
  25. data/docs/ContentRolesApi.md +10 -8
  26. data/docs/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +4 -2
  28. data/docs/PatchedansibleGitRemote.md +22 -22
  29. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +4 -2
  30. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -2
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +8 -6
  32. data/docs/PulpAnsibleApiV3NamespacesApi.md +4 -2
  33. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  37. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +4 -2
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -2
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +8 -6
  40. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +4 -2
  41. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  45. data/docs/RemotesCollectionApi.md +4 -2
  46. data/docs/RemotesGitApi.md +4 -2
  47. data/docs/RemotesRoleApi.md +4 -2
  48. data/docs/RepositoriesAnsibleApi.md +8 -6
  49. data/docs/RepositoriesAnsibleVersionsApi.md +8 -6
  50. data/docs/RepositoryResponse.md +2 -0
  51. data/docs/RepositoryVersionResponse.md +2 -0
  52. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
  53. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
  54. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
  55. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
  56. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +22 -12
  57. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
  58. data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
  59. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
  62. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +9 -6
  63. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
  64. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  65. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  67. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +9 -6
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  76. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
  77. data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
  78. data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
  79. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
  80. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
  81. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
  82. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  83. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -1
  84. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +40 -15
  85. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +29 -19
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
  87. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  88. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +209 -209
  89. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +158 -148
  90. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -1
  91. data/lib/pulp_ansible_client/models/ansible_role_response.rb +24 -14
  92. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  93. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  94. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  95. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
  97. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  98. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +208 -208
  99. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  100. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  101. data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
  102. data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
  103. data/lib/pulp_ansible_client/version.rb +1 -1
  104. data/spec/api/ansible_collections_api_spec.rb +2 -1
  105. data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
  106. data/spec/api/content_collection_marks_api_spec.rb +5 -4
  107. data/spec/api/content_collection_signatures_api_spec.rb +6 -4
  108. data/spec/api/content_collection_versions_api_spec.rb +7 -5
  109. data/spec/api/content_namespaces_api_spec.rb +5 -4
  110. data/spec/api/content_roles_api_spec.rb +5 -4
  111. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  112. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
  113. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
  114. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -3
  115. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
  116. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  117. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  118. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  119. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  120. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
  121. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
  122. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -3
  123. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
  124. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  125. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  126. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  127. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  128. data/spec/api/remotes_collection_api_spec.rb +2 -1
  129. data/spec/api/remotes_git_api_spec.rb +2 -1
  130. data/spec/api/remotes_role_api_spec.rb +2 -1
  131. data/spec/api/repositories_ansible_api_spec.rb +4 -3
  132. data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
  133. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  134. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  135. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  136. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  137. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  138. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  139. data/spec/models/ansible_collection_version_spec.rb +8 -2
  140. data/spec/models/ansible_git_remote_response_spec.rb +25 -19
  141. data/spec/models/ansible_git_remote_spec.rb +19 -19
  142. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  143. data/spec/models/ansible_role_response_spec.rb +8 -2
  144. data/spec/models/collection_version_search_list_spec.rb +0 -6
  145. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  146. data/spec/models/repository_response_spec.rb +6 -0
  147. data/spec/models/repository_version_response_spec.rb +6 -0
  148. metadata +127 -127
@@ -18,13 +18,16 @@ module PulpAnsibleClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- attr_accessor :pulp_href
21
+ # The Pulp Resource Name (PRN).
22
+ attr_accessor :prn
23
+
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
22
26
 
23
27
  # 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.
24
28
  attr_accessor :pulp_last_updated
25
29
 
26
- # Artifact file representing the physical content
27
- attr_accessor :artifact
30
+ attr_accessor :pulp_href
28
31
 
29
32
  # The SHA-256 checksum if available.
30
33
  attr_accessor :sha256
@@ -101,9 +104,10 @@ module PulpAnsibleClient
101
104
  def self.attribute_map
102
105
  {
103
106
  :'pulp_created' => :'pulp_created',
104
- :'pulp_href' => :'pulp_href',
105
- :'pulp_last_updated' => :'pulp_last_updated',
107
+ :'prn' => :'prn',
106
108
  :'artifact' => :'artifact',
109
+ :'pulp_last_updated' => :'pulp_last_updated',
110
+ :'pulp_href' => :'pulp_href',
107
111
  :'sha256' => :'sha256',
108
112
  :'md5' => :'md5',
109
113
  :'sha1' => :'sha1',
@@ -135,9 +139,10 @@ module PulpAnsibleClient
135
139
  def self.openapi_types
136
140
  {
137
141
  :'pulp_created' => :'DateTime',
138
- :'pulp_href' => :'String',
139
- :'pulp_last_updated' => :'DateTime',
142
+ :'prn' => :'String',
140
143
  :'artifact' => :'String',
144
+ :'pulp_last_updated' => :'DateTime',
145
+ :'pulp_href' => :'String',
141
146
  :'sha256' => :'String',
142
147
  :'md5' => :'String',
143
148
  :'sha1' => :'String',
@@ -146,12 +151,12 @@ module PulpAnsibleClient
146
151
  :'sha512' => :'String',
147
152
  :'id' => :'String',
148
153
  :'authors' => :'Array<String>',
149
- :'contents' => :'AnyType',
150
- :'dependencies' => :'AnyType',
154
+ :'contents' => :'Object',
155
+ :'dependencies' => :'Object',
151
156
  :'description' => :'String',
152
- :'docs_blob' => :'AnyType',
153
- :'manifest' => :'AnyType',
154
- :'files' => :'AnyType',
157
+ :'docs_blob' => :'Object',
158
+ :'manifest' => :'Object',
159
+ :'files' => :'Object',
155
160
  :'documentation' => :'String',
156
161
  :'homepage' => :'String',
157
162
  :'issues' => :'String',
@@ -191,16 +196,20 @@ module PulpAnsibleClient
191
196
  self.pulp_created = attributes[:'pulp_created']
192
197
  end
193
198
 
194
- if attributes.key?(:'pulp_href')
195
- self.pulp_href = attributes[:'pulp_href']
199
+ if attributes.key?(:'prn')
200
+ self.prn = attributes[:'prn']
201
+ end
202
+
203
+ if attributes.key?(:'artifact')
204
+ self.artifact = attributes[:'artifact']
196
205
  end
197
206
 
198
207
  if attributes.key?(:'pulp_last_updated')
199
208
  self.pulp_last_updated = attributes[:'pulp_last_updated']
200
209
  end
201
210
 
202
- if attributes.key?(:'artifact')
203
- self.artifact = attributes[:'artifact']
211
+ if attributes.key?(:'pulp_href')
212
+ self.pulp_href = attributes[:'pulp_href']
204
213
  end
205
214
 
206
215
  if attributes.key?(:'sha256')
@@ -445,9 +454,10 @@ module PulpAnsibleClient
445
454
  return true if self.equal?(o)
446
455
  self.class == o.class &&
447
456
  pulp_created == o.pulp_created &&
448
- pulp_href == o.pulp_href &&
449
- pulp_last_updated == o.pulp_last_updated &&
457
+ prn == o.prn &&
450
458
  artifact == o.artifact &&
459
+ pulp_last_updated == o.pulp_last_updated &&
460
+ pulp_href == o.pulp_href &&
451
461
  sha256 == o.sha256 &&
452
462
  md5 == o.md5 &&
453
463
  sha1 == o.sha1 &&
@@ -483,7 +493,7 @@ module PulpAnsibleClient
483
493
  # Calculates hash code according to all attributes.
484
494
  # @return [Integer] Hash code
485
495
  def hash
486
- [pulp_created, pulp_href, pulp_last_updated, 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
496
+ [pulp_created, prn, artifact, pulp_last_updated, 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
497
  end
488
498
 
489
499
  # Builds the object from hash
@@ -24,6 +24,9 @@ module PulpAnsibleClient
24
24
  # An uncommitted upload that may be turned into the content unit.
25
25
  attr_accessor :upload
26
26
 
27
+ # A url that Pulp can download and turn into the content unit.
28
+ attr_accessor :file_url
29
+
27
30
  # The content this signature is pointing to.
28
31
  attr_accessor :signed_collection
29
32
 
@@ -33,6 +36,7 @@ module PulpAnsibleClient
33
36
  :'repository' => :'repository',
34
37
  :'file' => :'file',
35
38
  :'upload' => :'upload',
39
+ :'file_url' => :'file_url',
36
40
  :'signed_collection' => :'signed_collection'
37
41
  }
38
42
  end
@@ -43,6 +47,7 @@ module PulpAnsibleClient
43
47
  :'repository' => :'String',
44
48
  :'file' => :'File',
45
49
  :'upload' => :'String',
50
+ :'file_url' => :'String',
46
51
  :'signed_collection' => :'String'
47
52
  }
48
53
  end
@@ -80,6 +85,10 @@ module PulpAnsibleClient
80
85
  self.upload = attributes[:'upload']
81
86
  end
82
87
 
88
+ if attributes.key?(:'file_url')
89
+ self.file_url = attributes[:'file_url']
90
+ end
91
+
83
92
  if attributes.key?(:'signed_collection')
84
93
  self.signed_collection = attributes[:'signed_collection']
85
94
  end
@@ -89,6 +98,10 @@ module PulpAnsibleClient
89
98
  # @return Array for valid properties with the reasons
90
99
  def list_invalid_properties
91
100
  invalid_properties = Array.new
101
+ if !@file_url.nil? && @file_url.to_s.length < 1
102
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
103
+ end
104
+
92
105
  if @signed_collection.nil?
93
106
  invalid_properties.push('invalid value for "signed_collection", signed_collection cannot be nil.')
94
107
  end
@@ -99,10 +112,21 @@ module PulpAnsibleClient
99
112
  # Check to see if the all the properties in the model are valid
100
113
  # @return true if the model is valid
101
114
  def valid?
115
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
102
116
  return false if @signed_collection.nil?
103
117
  true
104
118
  end
105
119
 
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] file_url Value to be assigned
122
+ def file_url=(file_url)
123
+ if !file_url.nil? && file_url.to_s.length < 1
124
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
125
+ end
126
+
127
+ @file_url = file_url
128
+ end
129
+
106
130
  # Checks equality by comparing each attribute.
107
131
  # @param [Object] Object to be compared
108
132
  def ==(o)
@@ -111,6 +135,7 @@ module PulpAnsibleClient
111
135
  repository == o.repository &&
112
136
  file == o.file &&
113
137
  upload == o.upload &&
138
+ file_url == o.file_url &&
114
139
  signed_collection == o.signed_collection
115
140
  end
116
141
 
@@ -123,7 +148,7 @@ module PulpAnsibleClient
123
148
  # Calculates hash code according to all attributes.
124
149
  # @return [Integer] Hash code
125
150
  def hash
126
- [repository, file, upload, signed_collection].hash
151
+ [repository, file, upload, file_url, signed_collection].hash
127
152
  end
128
153
 
129
154
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpAnsibleClient
17
17
  class AnsibleCollectionVersionSignatureResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
+ # The Pulp Resource Name (PRN).
21
+ attr_accessor :prn
22
+
20
23
  # Timestamp of creation.
21
24
  attr_accessor :pulp_created
22
25
 
@@ -36,6 +39,7 @@ module PulpAnsibleClient
36
39
  def self.attribute_map
37
40
  {
38
41
  :'pulp_href' => :'pulp_href',
42
+ :'prn' => :'prn',
39
43
  :'pulp_created' => :'pulp_created',
40
44
  :'pulp_last_updated' => :'pulp_last_updated',
41
45
  :'signed_collection' => :'signed_collection',
@@ -48,6 +52,7 @@ module PulpAnsibleClient
48
52
  def self.openapi_types
49
53
  {
50
54
  :'pulp_href' => :'String',
55
+ :'prn' => :'String',
51
56
  :'pulp_created' => :'DateTime',
52
57
  :'pulp_last_updated' => :'DateTime',
53
58
  :'signed_collection' => :'String',
@@ -82,6 +87,10 @@ module PulpAnsibleClient
82
87
  self.pulp_href = attributes[:'pulp_href']
83
88
  end
84
89
 
90
+ if attributes.key?(:'prn')
91
+ self.prn = attributes[:'prn']
92
+ end
93
+
85
94
  if attributes.key?(:'pulp_created')
86
95
  self.pulp_created = attributes[:'pulp_created']
87
96
  end
@@ -127,6 +136,7 @@ module PulpAnsibleClient
127
136
  return true if self.equal?(o)
128
137
  self.class == o.class &&
129
138
  pulp_href == o.pulp_href &&
139
+ prn == o.prn &&
130
140
  pulp_created == o.pulp_created &&
131
141
  pulp_last_updated == o.pulp_last_updated &&
132
142
  signed_collection == o.signed_collection &&
@@ -143,7 +153,7 @@ module PulpAnsibleClient
143
153
  # Calculates hash code according to all attributes.
144
154
  # @return [Integer] Hash code
145
155
  def hash
146
- [pulp_href, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
156
+ [pulp_href, prn, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
147
157
  end
148
158
 
149
159
  # Builds the object from hash