pulp_ansible_client 0.21.5 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) 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/AnsibleCollectionVersionResponse.md +11 -9
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +60 -0
  11. data/docs/AnsibleGitRemote.md +28 -28
  12. data/docs/AnsibleGitRemoteResponse.md +26 -26
  13. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  14. data/docs/AnsibleRoleResponse.md +6 -4
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  21. data/docs/Copy.md +1 -1
  22. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  23. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedTagResponseList.md +2 -2
  26. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
  27. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  28. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  29. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  30. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  31. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  32. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  33. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  34. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  35. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  36. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  37. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  38. data/docs/PatchedansibleGitRemote.md +28 -28
  39. data/docs/RepositoryResponse.md +2 -0
  40. data/docs/RepositoryVersionResponse.md +2 -0
  41. data/docs/VersionsApi.md +0 -55
  42. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  43. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  44. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  45. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  46. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  47. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  48. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
  49. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  50. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +30 -20
  51. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  52. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
  53. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -153
  54. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
  55. data/lib/pulp_ansible_client/models/ansible_role_response.rb +25 -15
  56. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  57. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  58. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  59. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  60. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  61. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  62. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  63. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  64. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  65. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  66. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
  67. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  68. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  69. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  70. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  71. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  72. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  73. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  74. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  75. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  76. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  77. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  78. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
  79. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  80. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  81. data/lib/pulp_ansible_client/version.rb +1 -1
  82. data/lib/pulp_ansible_client.rb +3 -9
  83. data/spec/api/ansible_collections_api_spec.rb +14 -0
  84. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  85. data/spec/api/versions_api_spec.rb +0 -14
  86. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  87. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  88. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  89. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  90. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  91. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  92. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  93. data/spec/models/ansible_git_remote_spec.rb +20 -20
  94. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  95. data/spec/models/ansible_role_response_spec.rb +8 -2
  96. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  97. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  98. data/spec/models/repository_response_spec.rb +6 -0
  99. data/spec/models/repository_version_response_spec.rb +6 -0
  100. metadata +135 -159
  101. data/docs/ApiCollectionsApi.md +0 -112
  102. data/docs/GalaxyCollection.md +0 -23
  103. data/docs/GalaxyCollectionResponse.md +0 -31
  104. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  105. data/docs/GalaxyDetailApi.md +0 -61
  106. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  107. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  108. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  109. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  110. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  111. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  112. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  113. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  114. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
  115. data/spec/api/api_collections_api_spec.rb +0 -61
  116. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  117. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  118. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  119. data/spec/models/galaxy_collection_spec.rb +0 -59
  120. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -15,14 +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
-
21
- attr_accessor :pulp_href
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
22
20
 
23
21
  # Artifact file representing the physical content
24
22
  attr_accessor :artifact
25
23
 
24
+ attr_accessor :pulp_href
25
+
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
28
+
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
  {
100
- :'pulp_created' => :'pulp_created',
101
- :'pulp_href' => :'pulp_href',
103
+ :'pulp_last_updated' => :'pulp_last_updated',
102
104
  :'artifact' => :'artifact',
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
  {
133
- :'pulp_created' => :'DateTime',
134
- :'pulp_href' => :'String',
137
+ :'pulp_last_updated' => :'DateTime',
135
138
  :'artifact' => :'String',
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,16 +187,20 @@ module PulpAnsibleClient
182
187
  h[k.to_sym] = v
183
188
  }
184
189
 
185
- if attributes.key?(:'pulp_created')
186
- self.pulp_created = attributes[:'pulp_created']
190
+ if attributes.key?(:'pulp_last_updated')
191
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
192
+ end
193
+
194
+ if attributes.key?(:'artifact')
195
+ self.artifact = attributes[:'artifact']
187
196
  end
188
197
 
189
198
  if attributes.key?(:'pulp_href')
190
199
  self.pulp_href = attributes[:'pulp_href']
191
200
  end
192
201
 
193
- if attributes.key?(:'artifact')
194
- self.artifact = attributes[:'artifact']
202
+ if attributes.key?(:'pulp_created')
203
+ self.pulp_created = attributes[:'pulp_created']
195
204
  end
196
205
 
197
206
  if attributes.key?(:'sha256')
@@ -435,9 +444,10 @@ module PulpAnsibleClient
435
444
  def ==(o)
436
445
  return true if self.equal?(o)
437
446
  self.class == o.class &&
438
- pulp_created == o.pulp_created &&
439
- pulp_href == o.pulp_href &&
447
+ pulp_last_updated == o.pulp_last_updated &&
440
448
  artifact == o.artifact &&
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
- [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
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