pulp_ansible_client 0.21.7 → 0.22.1
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/AnsibleCollectionVersion.md +2 -2
- data/docs/AnsibleCollectionVersionResponse.md +10 -10
- data/docs/AnsibleCollectionsApi.md +60 -0
- data/docs/AnsibleGitRemote.md +25 -25
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/AnsibleRoleResponse.md +5 -5
- 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 +2 -2
- data/docs/Copy.md +1 -1
- data/docs/{PaginatedGalaxyCollectionVersionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
- data/docs/PatchedansibleGitRemote.md +25 -25
- 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 +3 -3
- 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_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +22 -22
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -139
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
- 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_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +203 -203
- 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 +1 -1
- 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_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +3 -3
- 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 +19 -19
- metadata +13 -37
- 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/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 -247
- 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
@@ -13,45 +13,41 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
# A serializer for
|
17
|
-
class
|
18
|
-
attr_accessor :
|
16
|
+
# A serializer for Ansible Collection Deprecations.
|
17
|
+
class AnsibleAnsibleCollectionDeprecatedResponse
|
18
|
+
attr_accessor :pulp_href
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
22
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
25
|
-
|
26
|
-
# Create a collection dict.
|
27
|
-
attr_accessor :collection
|
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
|
28
25
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
26
|
+
# The name of the Collection.
|
27
|
+
attr_accessor :name
|
31
28
|
|
32
|
-
|
29
|
+
# The namespace of the Collection.
|
30
|
+
attr_accessor :namespace
|
33
31
|
|
34
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
33
|
def self.attribute_map
|
36
34
|
{
|
37
|
-
:'
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'metadata' => :'metadata'
|
35
|
+
:'pulp_href' => :'pulp_href',
|
36
|
+
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
38
|
+
:'name' => :'name',
|
39
|
+
:'namespace' => :'namespace'
|
43
40
|
}
|
44
41
|
end
|
45
42
|
|
46
43
|
# Attribute type mapping.
|
47
44
|
def self.openapi_types
|
48
45
|
{
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'metadata' => :'CollectionMetadataResponse'
|
46
|
+
:'pulp_href' => :'String',
|
47
|
+
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
49
|
+
:'name' => :'String',
|
50
|
+
:'namespace' => :'String'
|
55
51
|
}
|
56
52
|
end
|
57
53
|
|
@@ -65,39 +61,35 @@ module PulpAnsibleClient
|
|
65
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
66
62
|
def initialize(attributes = {})
|
67
63
|
if (!attributes.is_a?(Hash))
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse` initialize method"
|
69
65
|
end
|
70
66
|
|
71
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
71
|
end
|
76
72
|
h[k.to_sym] = v
|
77
73
|
}
|
78
74
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
75
|
+
if attributes.key?(:'pulp_href')
|
76
|
+
self.pulp_href = attributes[:'pulp_href']
|
81
77
|
end
|
82
78
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
79
|
+
if attributes.key?(:'pulp_created')
|
80
|
+
self.pulp_created = attributes[:'pulp_created']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
83
|
+
if attributes.key?(:'pulp_last_updated')
|
84
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'name')
|
88
|
+
self.name = attributes[:'name']
|
93
89
|
end
|
94
90
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'metadata')
|
100
|
-
self.metadata = attributes[:'metadata']
|
91
|
+
if attributes.key?(:'namespace')
|
92
|
+
self.namespace = attributes[:'namespace']
|
101
93
|
end
|
102
94
|
end
|
103
95
|
|
@@ -105,12 +97,12 @@ module PulpAnsibleClient
|
|
105
97
|
# @return Array for valid properties with the reasons
|
106
98
|
def list_invalid_properties
|
107
99
|
invalid_properties = Array.new
|
108
|
-
if @
|
109
|
-
invalid_properties.push('invalid value for "
|
100
|
+
if @name.nil?
|
101
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
110
102
|
end
|
111
103
|
|
112
|
-
if @
|
113
|
-
invalid_properties.push('invalid value for "
|
104
|
+
if @namespace.nil?
|
105
|
+
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
114
106
|
end
|
115
107
|
|
116
108
|
invalid_properties
|
@@ -119,8 +111,8 @@ module PulpAnsibleClient
|
|
119
111
|
# Check to see if the all the properties in the model are valid
|
120
112
|
# @return true if the model is valid
|
121
113
|
def valid?
|
122
|
-
return false if @
|
123
|
-
return false if @
|
114
|
+
return false if @name.nil?
|
115
|
+
return false if @namespace.nil?
|
124
116
|
true
|
125
117
|
end
|
126
118
|
|
@@ -129,12 +121,11 @@ module PulpAnsibleClient
|
|
129
121
|
def ==(o)
|
130
122
|
return true if self.equal?(o)
|
131
123
|
self.class == o.class &&
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
metadata == o.metadata
|
124
|
+
pulp_href == o.pulp_href &&
|
125
|
+
pulp_created == o.pulp_created &&
|
126
|
+
pulp_last_updated == o.pulp_last_updated &&
|
127
|
+
name == o.name &&
|
128
|
+
namespace == o.namespace
|
138
129
|
end
|
139
130
|
|
140
131
|
# @see the `==` method
|
@@ -146,7 +137,7 @@ module PulpAnsibleClient
|
|
146
137
|
# Calculates hash code according to all attributes.
|
147
138
|
# @return [Integer] Hash code
|
148
139
|
def hash
|
149
|
-
[
|
140
|
+
[pulp_href, pulp_created, pulp_last_updated, name, namespace].hash
|
150
141
|
end
|
151
142
|
|
152
143
|
# Builds the object from hash
|
@@ -18,15 +18,15 @@ module PulpAnsibleClient
|
|
18
18
|
# A URI of a repository the new content unit should be associated with.
|
19
19
|
attr_accessor :repository
|
20
20
|
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
21
|
# An uploaded file that may be turned into the content unit.
|
25
22
|
attr_accessor :file
|
26
23
|
|
27
24
|
# An uncommitted upload that may be turned into the content unit.
|
28
25
|
attr_accessor :upload
|
29
26
|
|
27
|
+
# Artifact file representing the physical content
|
28
|
+
attr_accessor :artifact
|
29
|
+
|
30
30
|
# The name of the collection.
|
31
31
|
attr_accessor :expected_name
|
32
32
|
|
@@ -40,9 +40,9 @@ module PulpAnsibleClient
|
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
42
|
:'repository' => :'repository',
|
43
|
-
:'artifact' => :'artifact',
|
44
43
|
:'file' => :'file',
|
45
44
|
:'upload' => :'upload',
|
45
|
+
:'artifact' => :'artifact',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
48
48
|
:'expected_version' => :'expected_version'
|
@@ -53,9 +53,9 @@ module PulpAnsibleClient
|
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
55
|
:'repository' => :'String',
|
56
|
-
:'artifact' => :'String',
|
57
56
|
:'file' => :'File',
|
58
57
|
:'upload' => :'String',
|
58
|
+
:'artifact' => :'String',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
61
61
|
:'expected_version' => :'String'
|
@@ -87,10 +87,6 @@ module PulpAnsibleClient
|
|
87
87
|
self.repository = attributes[:'repository']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'artifact')
|
91
|
-
self.artifact = attributes[:'artifact']
|
92
|
-
end
|
93
|
-
|
94
90
|
if attributes.key?(:'file')
|
95
91
|
self.file = attributes[:'file']
|
96
92
|
end
|
@@ -99,6 +95,10 @@ module PulpAnsibleClient
|
|
99
95
|
self.upload = attributes[:'upload']
|
100
96
|
end
|
101
97
|
|
98
|
+
if attributes.key?(:'artifact')
|
99
|
+
self.artifact = attributes[:'artifact']
|
100
|
+
end
|
101
|
+
|
102
102
|
if attributes.key?(:'expected_name')
|
103
103
|
self.expected_name = attributes[:'expected_name']
|
104
104
|
end
|
@@ -203,9 +203,9 @@ module PulpAnsibleClient
|
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
205
|
repository == o.repository &&
|
206
|
-
artifact == o.artifact &&
|
207
206
|
file == o.file &&
|
208
207
|
upload == o.upload &&
|
208
|
+
artifact == o.artifact &&
|
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
|
-
[repository,
|
223
|
+
[repository, file, upload, artifact, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
# Artifact file representing the physical content
|
19
|
-
attr_accessor :artifact
|
20
|
-
|
21
18
|
# Timestamp of creation.
|
22
19
|
attr_accessor :pulp_created
|
23
20
|
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
24
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.
|
25
24
|
attr_accessor :pulp_last_updated
|
26
25
|
|
27
|
-
|
26
|
+
# Artifact file representing the physical content
|
27
|
+
attr_accessor :artifact
|
28
28
|
|
29
29
|
# The SHA-256 checksum if available.
|
30
30
|
attr_accessor :sha256
|
@@ -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
103
|
:'pulp_created' => :'pulp_created',
|
105
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
106
104
|
:'pulp_href' => :'pulp_href',
|
105
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
106
|
+
:'artifact' => :'artifact',
|
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
137
|
:'pulp_created' => :'DateTime',
|
139
|
-
:'pulp_last_updated' => :'DateTime',
|
140
138
|
:'pulp_href' => :'String',
|
139
|
+
:'pulp_last_updated' => :'DateTime',
|
140
|
+
:'artifact' => :'String',
|
141
141
|
:'sha256' => :'String',
|
142
142
|
:'md5' => :'String',
|
143
143
|
:'sha1' => :'String',
|
@@ -146,12 +146,12 @@ module PulpAnsibleClient
|
|
146
146
|
:'sha512' => :'String',
|
147
147
|
:'id' => :'String',
|
148
148
|
:'authors' => :'Array<String>',
|
149
|
-
:'contents' => :'
|
150
|
-
:'dependencies' => :'
|
149
|
+
:'contents' => :'AnyType',
|
150
|
+
:'dependencies' => :'AnyType',
|
151
151
|
:'description' => :'String',
|
152
|
-
:'docs_blob' => :'
|
153
|
-
:'manifest' => :'
|
154
|
-
:'files' => :'
|
152
|
+
:'docs_blob' => :'AnyType',
|
153
|
+
:'manifest' => :'AnyType',
|
154
|
+
:'files' => :'AnyType',
|
155
155
|
:'documentation' => :'String',
|
156
156
|
:'homepage' => :'String',
|
157
157
|
:'issues' => :'String',
|
@@ -187,20 +187,20 @@ 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
190
|
if attributes.key?(:'pulp_created')
|
195
191
|
self.pulp_created = attributes[:'pulp_created']
|
196
192
|
end
|
197
193
|
|
194
|
+
if attributes.key?(:'pulp_href')
|
195
|
+
self.pulp_href = attributes[:'pulp_href']
|
196
|
+
end
|
197
|
+
|
198
198
|
if attributes.key?(:'pulp_last_updated')
|
199
199
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
200
200
|
end
|
201
201
|
|
202
|
-
if attributes.key?(:'
|
203
|
-
self.
|
202
|
+
if attributes.key?(:'artifact')
|
203
|
+
self.artifact = attributes[:'artifact']
|
204
204
|
end
|
205
205
|
|
206
206
|
if attributes.key?(:'sha256')
|
@@ -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
447
|
pulp_created == o.pulp_created &&
|
449
|
-
pulp_last_updated == o.pulp_last_updated &&
|
450
448
|
pulp_href == o.pulp_href &&
|
449
|
+
pulp_last_updated == o.pulp_last_updated &&
|
450
|
+
artifact == o.artifact &&
|
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
|
-
[
|
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
|
487
487
|
end
|
488
488
|
|
489
489
|
# Builds the object from hash
|