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.
- checksums.yaml +4 -4
- data/README.md +8 -15
- data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
- data/docs/AnsibleCollectionRemoteResponse.md +2 -2
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +10 -8
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleCollectionsApi.md +60 -0
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRoleRemoteResponse.md +2 -2
- data/docs/AnsibleRoleResponse.md +4 -2
- data/docs/CollectionImportDetailResponse.md +2 -2
- data/docs/CollectionMetadataResponse.md +2 -2
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionDocsResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +2 -2
- data/docs/ContentCollectionDeprecationsApi.md +10 -10
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/Copy.md +1 -1
- data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
- data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedTagResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
- data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
- data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleRoleResponseList.md +2 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RepositoryResponse.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/VersionsApi.md +0 -55
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
- data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -8
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
- data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -9
- data/spec/api/ansible_collections_api_spec.rb +14 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/versions_api_spec.rb +0 -14
- data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
- data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
- data/spec/models/ansible_collection_version_response_spec.rb +8 -2
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_remote_response_spec.rb +6 -6
- data/spec/models/ansible_role_response_spec.rb +7 -1
- data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +140 -164
- data/docs/ApiCollectionsApi.md +0 -112
- data/docs/GalaxyCollection.md +0 -23
- data/docs/GalaxyCollectionResponse.md +0 -31
- data/docs/GalaxyCollectionVersionResponse.md +0 -27
- data/docs/GalaxyDetailApi.md +0 -61
- data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
- data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
- data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
- data/spec/api/api_collections_api_spec.rb +0 -61
- data/spec/api/galaxy_detail_api_spec.rb +0 -48
- data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
- data/spec/models/galaxy_collection_response_spec.rb +0 -83
- data/spec/models/galaxy_collection_spec.rb +0 -59
- 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
|
-
#
|
19
|
-
attr_accessor :
|
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
|
-
:'
|
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
|
-
:'
|
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?(:'
|
87
|
-
self.
|
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?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'artifact')
|
95
|
+
self.artifact = attributes[:'artifact']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
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
|
-
|
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
|
-
[
|
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' => :'
|
145
|
-
:'dependencies' => :'
|
149
|
+
:'contents' => :'AnyType',
|
150
|
+
:'dependencies' => :'AnyType',
|
146
151
|
:'description' => :'String',
|
147
|
-
:'docs_blob' => :'
|
148
|
-
:'manifest' => :'
|
149
|
-
:'files' => :'
|
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?(:'
|
186
|
-
self.
|
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?(:'
|
190
|
-
self.
|
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
|
-
[
|
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
|