pulp_ansible_client 0.21.6 → 0.22.0

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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -15
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  8. data/docs/AnsibleCollectionVersion.md +4 -4
  9. data/docs/AnsibleCollectionVersionResponse.md +10 -8
  10. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  11. data/docs/AnsibleCollectionsApi.md +60 -0
  12. data/docs/AnsibleGitRemote.md +26 -26
  13. data/docs/AnsibleGitRemoteResponse.md +26 -26
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  15. data/docs/AnsibleRoleResponse.md +4 -2
  16. data/docs/CollectionImportDetailResponse.md +2 -2
  17. data/docs/CollectionMetadataResponse.md +2 -2
  18. data/docs/CollectionSummaryResponse.md +2 -2
  19. data/docs/CollectionVersionDocsResponse.md +1 -1
  20. data/docs/CollectionVersionResponse.md +2 -2
  21. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  22. data/docs/ContentCollectionVersionsApi.md +4 -4
  23. data/docs/Copy.md +1 -1
  24. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  25. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  26. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  27. data/docs/PaginatedTagResponseList.md +2 -2
  28. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
  29. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  30. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  31. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  32. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  33. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  34. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  35. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  36. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  37. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  38. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  39. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  40. data/docs/PatchedansibleGitRemote.md +26 -26
  41. data/docs/RepositoryResponse.md +2 -0
  42. data/docs/RepositoryVersionResponse.md +2 -0
  43. data/docs/VersionsApi.md +0 -55
  44. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  45. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  46. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  47. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  48. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  49. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  50. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  51. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
  52. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  53. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  54. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -15
  55. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  56. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
  57. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
  58. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
  59. data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -8
  60. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  61. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  62. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  63. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  64. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  65. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  66. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  67. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  68. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  69. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  70. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
  71. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  72. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  73. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  74. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  75. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  76. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  77. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  78. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  79. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  80. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  81. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  82. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
  83. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  84. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  85. data/lib/pulp_ansible_client/version.rb +1 -1
  86. data/lib/pulp_ansible_client.rb +3 -9
  87. data/spec/api/ansible_collections_api_spec.rb +14 -0
  88. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  89. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  90. data/spec/api/versions_api_spec.rb +0 -14
  91. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  92. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  93. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  94. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  95. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  96. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  97. data/spec/models/ansible_collection_version_spec.rb +3 -3
  98. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  99. data/spec/models/ansible_git_remote_spec.rb +18 -18
  100. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  101. data/spec/models/ansible_role_response_spec.rb +7 -1
  102. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  104. data/spec/models/repository_response_spec.rb +6 -0
  105. data/spec/models/repository_version_response_spec.rb +6 -0
  106. metadata +140 -164
  107. data/docs/ApiCollectionsApi.md +0 -112
  108. data/docs/GalaxyCollection.md +0 -23
  109. data/docs/GalaxyCollectionResponse.md +0 -31
  110. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  111. data/docs/GalaxyDetailApi.md +0 -61
  112. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  113. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  114. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  115. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  116. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  117. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  118. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  119. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  120. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
  121. data/spec/api/api_collections_api_spec.rb +0 -61
  122. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  123. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  124. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  125. data/spec/models/galaxy_collection_spec.rb +0 -59
  126. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -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
18
+ # An uncommitted upload that may be turned into the content unit.
19
+ attr_accessor :upload
20
20
 
21
21
  # An uploaded file that may be turned into the content unit.
22
22
  attr_accessor :file
23
23
 
24
+ # Artifact file representing the physical content
25
+ attr_accessor :artifact
26
+
24
27
  # A URI of a repository the new content unit should be associated with.
25
28
  attr_accessor :repository
26
29
 
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',
42
+ :'upload' => :'upload',
43
43
  :'file' => :'file',
44
+ :'artifact' => :'artifact',
44
45
  :'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',
55
+ :'upload' => :'String',
56
56
  :'file' => :'File',
57
+ :'artifact' => :'String',
57
58
  :'repository' => :'String',
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?(:'artifact')
87
- self.artifact = attributes[:'artifact']
86
+ if attributes.key?(:'upload')
87
+ self.upload = attributes[:'upload']
88
88
  end
89
89
 
90
90
  if attributes.key?(:'file')
91
91
  self.file = attributes[:'file']
92
92
  end
93
93
 
94
- if attributes.key?(:'repository')
95
- self.repository = attributes[:'repository']
94
+ if attributes.key?(:'artifact')
95
+ self.artifact = attributes[:'artifact']
96
96
  end
97
97
 
98
- if attributes.key?(:'upload')
99
- self.upload = attributes[:'upload']
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
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
- artifact == o.artifact &&
205
+ upload == o.upload &&
206
206
  file == o.file &&
207
+ artifact == o.artifact &&
207
208
  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, repository, upload, expected_name, expected_namespace, expected_version].hash
223
+ [upload, file, artifact, repository, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,14 +15,17 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ # 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.
19
+ attr_accessor :pulp_last_updated
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 creation.
22
27
  attr_accessor :pulp_created
23
28
 
24
- attr_accessor :pulp_href
25
-
26
29
  # The SHA-256 checksum if available.
27
30
  attr_accessor :sha256
28
31
 
@@ -97,9 +100,10 @@ module PulpAnsibleClient
97
100
  # Attribute mapping from ruby-style variable name to JSON key.
98
101
  def self.attribute_map
99
102
  {
103
+ :'pulp_last_updated' => :'pulp_last_updated',
100
104
  :'artifact' => :'artifact',
101
- :'pulp_created' => :'pulp_created',
102
105
  :'pulp_href' => :'pulp_href',
106
+ :'pulp_created' => :'pulp_created',
103
107
  :'sha256' => :'sha256',
104
108
  :'md5' => :'md5',
105
109
  :'sha1' => :'sha1',
@@ -130,9 +134,10 @@ module PulpAnsibleClient
130
134
  # Attribute type mapping.
131
135
  def self.openapi_types
132
136
  {
137
+ :'pulp_last_updated' => :'DateTime',
133
138
  :'artifact' => :'String',
134
- :'pulp_created' => :'DateTime',
135
139
  :'pulp_href' => :'String',
140
+ :'pulp_created' => :'DateTime',
136
141
  :'sha256' => :'String',
137
142
  :'md5' => :'String',
138
143
  :'sha1' => :'String',
@@ -141,12 +146,12 @@ module PulpAnsibleClient
141
146
  :'sha512' => :'String',
142
147
  :'id' => :'String',
143
148
  :'authors' => :'Array<String>',
144
- :'contents' => :'Object',
145
- :'dependencies' => :'Object',
149
+ :'contents' => :'AnyType',
150
+ :'dependencies' => :'AnyType',
146
151
  :'description' => :'String',
147
- :'docs_blob' => :'Object',
148
- :'manifest' => :'Object',
149
- :'files' => :'Object',
152
+ :'docs_blob' => :'AnyType',
153
+ :'manifest' => :'AnyType',
154
+ :'files' => :'AnyType',
150
155
  :'documentation' => :'String',
151
156
  :'homepage' => :'String',
152
157
  :'issues' => :'String',
@@ -182,18 +187,22 @@ module PulpAnsibleClient
182
187
  h[k.to_sym] = v
183
188
  }
184
189
 
185
- if attributes.key?(:'artifact')
186
- self.artifact = attributes[:'artifact']
190
+ if attributes.key?(:'pulp_last_updated')
191
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
187
192
  end
188
193
 
189
- if attributes.key?(:'pulp_created')
190
- self.pulp_created = attributes[:'pulp_created']
194
+ if attributes.key?(:'artifact')
195
+ self.artifact = attributes[:'artifact']
191
196
  end
192
197
 
193
198
  if attributes.key?(:'pulp_href')
194
199
  self.pulp_href = attributes[:'pulp_href']
195
200
  end
196
201
 
202
+ if attributes.key?(:'pulp_created')
203
+ self.pulp_created = attributes[:'pulp_created']
204
+ end
205
+
197
206
  if attributes.key?(:'sha256')
198
207
  self.sha256 = attributes[:'sha256']
199
208
  end
@@ -435,9 +444,10 @@ module PulpAnsibleClient
435
444
  def ==(o)
436
445
  return true if self.equal?(o)
437
446
  self.class == o.class &&
447
+ pulp_last_updated == o.pulp_last_updated &&
438
448
  artifact == o.artifact &&
439
- pulp_created == o.pulp_created &&
440
449
  pulp_href == o.pulp_href &&
450
+ pulp_created == o.pulp_created &&
441
451
  sha256 == o.sha256 &&
442
452
  md5 == o.md5 &&
443
453
  sha1 == o.sha1 &&
@@ -473,7 +483,7 @@ module PulpAnsibleClient
473
483
  # Calculates hash code according to all attributes.
474
484
  # @return [Integer] Hash code
475
485
  def hash
476
- [artifact, 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_last_updated, artifact, pulp_href, 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
477
487
  end
478
488
 
479
489
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpAnsibleClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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
+ attr_accessor :pulp_last_updated
25
+
23
26
  # The content this signature is pointing to.
24
27
  attr_accessor :signed_collection
25
28
 
@@ -34,6 +37,7 @@ module PulpAnsibleClient
34
37
  {
35
38
  :'pulp_href' => :'pulp_href',
36
39
  :'pulp_created' => :'pulp_created',
40
+ :'pulp_last_updated' => :'pulp_last_updated',
37
41
  :'signed_collection' => :'signed_collection',
38
42
  :'pubkey_fingerprint' => :'pubkey_fingerprint',
39
43
  :'signing_service' => :'signing_service'
@@ -45,6 +49,7 @@ module PulpAnsibleClient
45
49
  {
46
50
  :'pulp_href' => :'String',
47
51
  :'pulp_created' => :'DateTime',
52
+ :'pulp_last_updated' => :'DateTime',
48
53
  :'signed_collection' => :'String',
49
54
  :'pubkey_fingerprint' => :'String',
50
55
  :'signing_service' => :'String'
@@ -81,6 +86,10 @@ module PulpAnsibleClient
81
86
  self.pulp_created = attributes[:'pulp_created']
82
87
  end
83
88
 
89
+ if attributes.key?(:'pulp_last_updated')
90
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
91
+ end
92
+
84
93
  if attributes.key?(:'signed_collection')
85
94
  self.signed_collection = attributes[:'signed_collection']
86
95
  end
@@ -119,6 +128,7 @@ module PulpAnsibleClient
119
128
  self.class == o.class &&
120
129
  pulp_href == o.pulp_href &&
121
130
  pulp_created == o.pulp_created &&
131
+ pulp_last_updated == o.pulp_last_updated &&
122
132
  signed_collection == o.signed_collection &&
123
133
  pubkey_fingerprint == o.pubkey_fingerprint &&
124
134
  signing_service == o.signing_service
@@ -133,7 +143,7 @@ module PulpAnsibleClient
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [pulp_href, pulp_created, signed_collection, pubkey_fingerprint, signing_service].hash
146
+ [pulp_href, pulp_created, pulp_last_updated, signed_collection, pubkey_fingerprint, signing_service].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash