pulp_ansible_client 0.4.3 → 0.5.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 -12
- data/docs/AnsibleCollectionVersion.md +0 -2
- data/docs/AnsibleCollectionVersionResponse.md +5 -9
- data/docs/AnsibleCopyApi.md +62 -0
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionResponse.md +5 -5
- data/docs/CollectionVersionResponse.md +0 -2
- data/docs/ContentCollectionVersionsApi.md +0 -4
- data/docs/Copy.md +17 -0
- data/docs/{CertificationEnum.md → PatchedCollection.md} +3 -2
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +0 -4
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +86 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +0 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +10 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -16
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +17 -42
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_response.rb +22 -32
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -10
- data/lib/pulp_ansible_client/models/{collection_metadata.rb → copy.rb} +15 -16
- data/lib/pulp_ansible_client/models/{collection_namespace.rb → patched_collection.rb} +11 -16
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -7
- data/spec/api/{pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb → ansible_copy_api_spec.rb} +12 -15
- data/spec/api/content_collection_versions_api_spec.rb +0 -2
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +0 -2
- data/spec/models/ansible_collection_version_response_spec.rb +2 -14
- data/spec/models/ansible_collection_version_spec.rb +0 -6
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_response_spec.rb +7 -7
- data/spec/models/collection_version_response_spec.rb +0 -6
- data/spec/models/{collection_metadata_spec.rb → copy_spec.rb} +7 -7
- data/spec/models/{collection_namespace_spec.rb → patched_collection_spec.rb} +7 -7
- metadata +14 -30
- data/docs/Collection.md +0 -21
- data/docs/CollectionMetadata.md +0 -17
- data/docs/CollectionNamespace.md +0 -17
- data/docs/CollectionRef.md +0 -19
- data/docs/CollectionVersion.md +0 -21
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +0 -63
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +0 -108
- data/lib/pulp_ansible_client/models/certification_enum.rb +0 -37
- data/lib/pulp_ansible_client/models/collection.rb +0 -240
- data/lib/pulp_ansible_client/models/collection_ref.rb +0 -226
- data/lib/pulp_ansible_client/models/collection_version.rb +0 -235
- data/spec/models/certification_enum_spec.rb +0 -35
- data/spec/models/collection_ref_spec.rb +0 -47
- data/spec/models/collection_spec.rb +0 -53
- data/spec/models/collection_version_spec.rb +0 -53
@@ -45,9 +45,6 @@ module PulpAnsibleClient
|
|
45
45
|
# The URL to the collection issue tracker.
|
46
46
|
attr_accessor :issues
|
47
47
|
|
48
|
-
# Indicates that the version is certified
|
49
|
-
attr_accessor :certification
|
50
|
-
|
51
48
|
# A list of licenses for content inside of a collection.
|
52
49
|
attr_accessor :license
|
53
50
|
|
@@ -76,7 +73,6 @@ module PulpAnsibleClient
|
|
76
73
|
:'documentation' => :'documentation',
|
77
74
|
:'homepage' => :'homepage',
|
78
75
|
:'issues' => :'issues',
|
79
|
-
:'certification' => :'certification',
|
80
76
|
:'license' => :'license',
|
81
77
|
:'name' => :'name',
|
82
78
|
:'namespace' => :'namespace',
|
@@ -98,7 +94,6 @@ module PulpAnsibleClient
|
|
98
94
|
:'documentation' => :'String',
|
99
95
|
:'homepage' => :'String',
|
100
96
|
:'issues' => :'String',
|
101
|
-
:'certification' => :'String',
|
102
97
|
:'license' => :'Array<String>',
|
103
98
|
:'name' => :'String',
|
104
99
|
:'namespace' => :'String',
|
@@ -172,10 +167,6 @@ module PulpAnsibleClient
|
|
172
167
|
self.issues = attributes[:'issues']
|
173
168
|
end
|
174
169
|
|
175
|
-
if attributes.key?(:'certification')
|
176
|
-
self.certification = attributes[:'certification']
|
177
|
-
end
|
178
|
-
|
179
170
|
if attributes.key?(:'license')
|
180
171
|
if (value = attributes[:'license']).is_a?(Array)
|
181
172
|
self.license = value
|
@@ -255,10 +246,6 @@ module PulpAnsibleClient
|
|
255
246
|
invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
|
256
247
|
end
|
257
248
|
|
258
|
-
if @certification.nil?
|
259
|
-
invalid_properties.push('invalid value for "certification", certification cannot be nil.')
|
260
|
-
end
|
261
|
-
|
262
249
|
if @license.nil?
|
263
250
|
invalid_properties.push('invalid value for "license", license cannot be nil.')
|
264
251
|
end
|
@@ -314,7 +301,6 @@ module PulpAnsibleClient
|
|
314
301
|
return false if @homepage.to_s.length > 2000
|
315
302
|
return false if @issues.nil?
|
316
303
|
return false if @issues.to_s.length > 2000
|
317
|
-
return false if @certification.nil?
|
318
304
|
return false if @license.nil?
|
319
305
|
return false if @name.nil?
|
320
306
|
return false if @name.to_s.length > 32
|
@@ -440,7 +426,6 @@ module PulpAnsibleClient
|
|
440
426
|
documentation == o.documentation &&
|
441
427
|
homepage == o.homepage &&
|
442
428
|
issues == o.issues &&
|
443
|
-
certification == o.certification &&
|
444
429
|
license == o.license &&
|
445
430
|
name == o.name &&
|
446
431
|
namespace == o.namespace &&
|
@@ -457,7 +442,7 @@ module PulpAnsibleClient
|
|
457
442
|
# Calculates hash code according to all attributes.
|
458
443
|
# @return [Integer] Hash code
|
459
444
|
def hash
|
460
|
-
[artifact, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues,
|
445
|
+
[artifact, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, version].hash
|
461
446
|
end
|
462
447
|
|
463
448
|
# Builds the object from hash
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
|
19
|
-
attr_accessor :artifact
|
18
|
+
attr_accessor :pulp_href
|
20
19
|
|
21
20
|
# Timestamp of creation.
|
22
21
|
attr_accessor :pulp_created
|
23
22
|
|
24
|
-
|
23
|
+
# Artifact file representing the physical content
|
24
|
+
attr_accessor :artifact
|
25
25
|
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
@@ -68,9 +68,6 @@ module PulpAnsibleClient
|
|
68
68
|
# The URL to the collection issue tracker.
|
69
69
|
attr_accessor :issues
|
70
70
|
|
71
|
-
# Indicates that the version is certified
|
72
|
-
attr_accessor :certification
|
73
|
-
|
74
71
|
# A list of licenses for content inside of a collection.
|
75
72
|
attr_accessor :license
|
76
73
|
|
@@ -88,15 +85,12 @@ module PulpAnsibleClient
|
|
88
85
|
# The version of the collection.
|
89
86
|
attr_accessor :version
|
90
87
|
|
91
|
-
# Whether or not the collection has been deprecated.
|
92
|
-
attr_accessor :deprecated
|
93
|
-
|
94
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
95
89
|
def self.attribute_map
|
96
90
|
{
|
97
|
-
:'artifact' => :'artifact',
|
98
|
-
:'pulp_created' => :'pulp_created',
|
99
91
|
:'pulp_href' => :'pulp_href',
|
92
|
+
:'pulp_created' => :'pulp_created',
|
93
|
+
:'artifact' => :'artifact',
|
100
94
|
:'md5' => :'md5',
|
101
95
|
:'sha1' => :'sha1',
|
102
96
|
:'sha224' => :'sha224',
|
@@ -112,23 +106,21 @@ module PulpAnsibleClient
|
|
112
106
|
:'documentation' => :'documentation',
|
113
107
|
:'homepage' => :'homepage',
|
114
108
|
:'issues' => :'issues',
|
115
|
-
:'certification' => :'certification',
|
116
109
|
:'license' => :'license',
|
117
110
|
:'name' => :'name',
|
118
111
|
:'namespace' => :'namespace',
|
119
112
|
:'repository' => :'repository',
|
120
113
|
:'tags' => :'tags',
|
121
|
-
:'version' => :'version'
|
122
|
-
:'deprecated' => :'deprecated'
|
114
|
+
:'version' => :'version'
|
123
115
|
}
|
124
116
|
end
|
125
117
|
|
126
118
|
# Attribute type mapping.
|
127
119
|
def self.openapi_types
|
128
120
|
{
|
129
|
-
:'artifact' => :'String',
|
130
|
-
:'pulp_created' => :'DateTime',
|
131
121
|
:'pulp_href' => :'String',
|
122
|
+
:'pulp_created' => :'DateTime',
|
123
|
+
:'artifact' => :'String',
|
132
124
|
:'md5' => :'String',
|
133
125
|
:'sha1' => :'String',
|
134
126
|
:'sha224' => :'String',
|
@@ -144,14 +136,12 @@ module PulpAnsibleClient
|
|
144
136
|
:'documentation' => :'String',
|
145
137
|
:'homepage' => :'String',
|
146
138
|
:'issues' => :'String',
|
147
|
-
:'certification' => :'String',
|
148
139
|
:'license' => :'Array<String>',
|
149
140
|
:'name' => :'String',
|
150
141
|
:'namespace' => :'String',
|
151
142
|
:'repository' => :'String',
|
152
143
|
:'tags' => :'Array<AnsibleTagResponse>',
|
153
|
-
:'version' => :'String'
|
154
|
-
:'deprecated' => :'Boolean'
|
144
|
+
:'version' => :'String'
|
155
145
|
}
|
156
146
|
end
|
157
147
|
|
@@ -176,16 +166,16 @@ module PulpAnsibleClient
|
|
176
166
|
h[k.to_sym] = v
|
177
167
|
}
|
178
168
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
169
|
+
if attributes.key?(:'pulp_href')
|
170
|
+
self.pulp_href = attributes[:'pulp_href']
|
181
171
|
end
|
182
172
|
|
183
173
|
if attributes.key?(:'pulp_created')
|
184
174
|
self.pulp_created = attributes[:'pulp_created']
|
185
175
|
end
|
186
176
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
177
|
+
if attributes.key?(:'artifact')
|
178
|
+
self.artifact = attributes[:'artifact']
|
189
179
|
end
|
190
180
|
|
191
181
|
if attributes.key?(:'md5')
|
@@ -252,10 +242,6 @@ module PulpAnsibleClient
|
|
252
242
|
self.issues = attributes[:'issues']
|
253
243
|
end
|
254
244
|
|
255
|
-
if attributes.key?(:'certification')
|
256
|
-
self.certification = attributes[:'certification']
|
257
|
-
end
|
258
|
-
|
259
245
|
if attributes.key?(:'license')
|
260
246
|
if (value = attributes[:'license']).is_a?(Array)
|
261
247
|
self.license = value
|
@@ -283,10 +269,6 @@ module PulpAnsibleClient
|
|
283
269
|
if attributes.key?(:'version')
|
284
270
|
self.version = attributes[:'version']
|
285
271
|
end
|
286
|
-
|
287
|
-
if attributes.key?(:'deprecated')
|
288
|
-
self.deprecated = attributes[:'deprecated']
|
289
|
-
end
|
290
272
|
end
|
291
273
|
|
292
274
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -345,10 +327,6 @@ module PulpAnsibleClient
|
|
345
327
|
invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
|
346
328
|
end
|
347
329
|
|
348
|
-
if @certification.nil?
|
349
|
-
invalid_properties.push('invalid value for "certification", certification cannot be nil.')
|
350
|
-
end
|
351
|
-
|
352
330
|
if @license.nil?
|
353
331
|
invalid_properties.push('invalid value for "license", license cannot be nil.')
|
354
332
|
end
|
@@ -404,7 +382,6 @@ module PulpAnsibleClient
|
|
404
382
|
return false if @homepage.to_s.length > 2000
|
405
383
|
return false if @issues.nil?
|
406
384
|
return false if @issues.to_s.length > 2000
|
407
|
-
return false if @certification.nil?
|
408
385
|
return false if @license.nil?
|
409
386
|
return false if @name.nil?
|
410
387
|
return false if @name.to_s.length > 32
|
@@ -520,9 +497,9 @@ module PulpAnsibleClient
|
|
520
497
|
def ==(o)
|
521
498
|
return true if self.equal?(o)
|
522
499
|
self.class == o.class &&
|
523
|
-
artifact == o.artifact &&
|
524
|
-
pulp_created == o.pulp_created &&
|
525
500
|
pulp_href == o.pulp_href &&
|
501
|
+
pulp_created == o.pulp_created &&
|
502
|
+
artifact == o.artifact &&
|
526
503
|
md5 == o.md5 &&
|
527
504
|
sha1 == o.sha1 &&
|
528
505
|
sha224 == o.sha224 &&
|
@@ -538,14 +515,12 @@ module PulpAnsibleClient
|
|
538
515
|
documentation == o.documentation &&
|
539
516
|
homepage == o.homepage &&
|
540
517
|
issues == o.issues &&
|
541
|
-
certification == o.certification &&
|
542
518
|
license == o.license &&
|
543
519
|
name == o.name &&
|
544
520
|
namespace == o.namespace &&
|
545
521
|
repository == o.repository &&
|
546
522
|
tags == o.tags &&
|
547
|
-
version == o.version
|
548
|
-
deprecated == o.deprecated
|
523
|
+
version == o.version
|
549
524
|
end
|
550
525
|
|
551
526
|
# @see the `==` method
|
@@ -557,7 +532,7 @@ module PulpAnsibleClient
|
|
557
532
|
# Calculates hash code according to all attributes.
|
558
533
|
# @return [Integer] Hash code
|
559
534
|
def hash
|
560
|
-
[
|
535
|
+
[pulp_href, pulp_created, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, tags, version].hash
|
561
536
|
end
|
562
537
|
|
563
538
|
# Builds the object from hash
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
-
|
19
|
-
attr_accessor :artifact
|
18
|
+
attr_accessor :pulp_href
|
20
19
|
|
21
20
|
# Timestamp of creation.
|
22
21
|
attr_accessor :pulp_created
|
23
22
|
|
24
|
-
|
23
|
+
# Artifact file representing the physical content
|
24
|
+
attr_accessor :artifact
|
25
25
|
|
26
26
|
attr_accessor :version
|
27
27
|
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'artifact' => :'artifact',
|
36
|
-
:'pulp_created' => :'pulp_created',
|
37
35
|
:'pulp_href' => :'pulp_href',
|
36
|
+
:'pulp_created' => :'pulp_created',
|
37
|
+
:'artifact' => :'artifact',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'artifact' => :'String',
|
48
|
-
:'pulp_created' => :'DateTime',
|
49
47
|
:'pulp_href' => :'String',
|
48
|
+
:'pulp_created' => :'DateTime',
|
49
|
+
:'artifact' => :'String',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,16 +74,16 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
-
if attributes.key?(:'
|
78
|
-
self.
|
77
|
+
if attributes.key?(:'pulp_href')
|
78
|
+
self.pulp_href = attributes[:'pulp_href']
|
79
79
|
end
|
80
80
|
|
81
81
|
if attributes.key?(:'pulp_created')
|
82
82
|
self.pulp_created = attributes[:'pulp_created']
|
83
83
|
end
|
84
84
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
85
|
+
if attributes.key?(:'artifact')
|
86
|
+
self.artifact = attributes[:'artifact']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes.key?(:'version')
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
-
artifact == o.artifact &&
|
141
|
-
pulp_created == o.pulp_created &&
|
142
140
|
pulp_href == o.pulp_href &&
|
141
|
+
pulp_created == o.pulp_created &&
|
142
|
+
artifact == o.artifact &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[
|
157
|
+
[pulp_href, pulp_created, artifact, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -17,10 +17,6 @@ module PulpAnsibleClient
|
|
17
17
|
class CollectionResponse
|
18
18
|
attr_accessor :href
|
19
19
|
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
|
-
attr_accessor :updated_at
|
23
|
-
|
24
20
|
attr_accessor :namespace
|
25
21
|
|
26
22
|
attr_accessor :name
|
@@ -31,17 +27,21 @@ module PulpAnsibleClient
|
|
31
27
|
|
32
28
|
attr_accessor :highest_version
|
33
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
|
+
attr_accessor :updated_at
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'href' => :'href',
|
38
|
-
:'created_at' => :'created_at',
|
39
|
-
:'updated_at' => :'updated_at',
|
40
38
|
:'namespace' => :'namespace',
|
41
39
|
:'name' => :'name',
|
42
40
|
:'deprecated' => :'deprecated',
|
43
41
|
:'versions_url' => :'versions_url',
|
44
|
-
:'highest_version' => :'highest_version'
|
42
|
+
:'highest_version' => :'highest_version',
|
43
|
+
:'created_at' => :'created_at',
|
44
|
+
:'updated_at' => :'updated_at'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -49,13 +49,13 @@ module PulpAnsibleClient
|
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
51
|
:'href' => :'String',
|
52
|
-
:'created_at' => :'DateTime',
|
53
|
-
:'updated_at' => :'DateTime',
|
54
52
|
:'namespace' => :'String',
|
55
53
|
:'name' => :'String',
|
56
54
|
:'deprecated' => :'Boolean',
|
57
55
|
:'versions_url' => :'String',
|
58
|
-
:'highest_version' => :'Object'
|
56
|
+
:'highest_version' => :'Object',
|
57
|
+
:'created_at' => :'String',
|
58
|
+
:'updated_at' => :'String'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -84,14 +84,6 @@ module PulpAnsibleClient
|
|
84
84
|
self.href = attributes[:'href']
|
85
85
|
end
|
86
86
|
|
87
|
-
if attributes.key?(:'created_at')
|
88
|
-
self.created_at = attributes[:'created_at']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.key?(:'updated_at')
|
92
|
-
self.updated_at = attributes[:'updated_at']
|
93
|
-
end
|
94
|
-
|
95
87
|
if attributes.key?(:'namespace')
|
96
88
|
self.namespace = attributes[:'namespace']
|
97
89
|
end
|
@@ -111,20 +103,20 @@ module PulpAnsibleClient
|
|
111
103
|
if attributes.key?(:'highest_version')
|
112
104
|
self.highest_version = attributes[:'highest_version']
|
113
105
|
end
|
106
|
+
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'updated_at')
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @created_at.nil?
|
121
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
|
-
if @updated_at.nil?
|
125
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
120
|
if @deprecated.nil?
|
129
121
|
invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.')
|
130
122
|
end
|
@@ -135,8 +127,6 @@ module PulpAnsibleClient
|
|
135
127
|
# Check to see if the all the properties in the model are valid
|
136
128
|
# @return true if the model is valid
|
137
129
|
def valid?
|
138
|
-
return false if @created_at.nil?
|
139
|
-
return false if @updated_at.nil?
|
140
130
|
return false if @deprecated.nil?
|
141
131
|
true
|
142
132
|
end
|
@@ -147,13 +137,13 @@ module PulpAnsibleClient
|
|
147
137
|
return true if self.equal?(o)
|
148
138
|
self.class == o.class &&
|
149
139
|
href == o.href &&
|
150
|
-
created_at == o.created_at &&
|
151
|
-
updated_at == o.updated_at &&
|
152
140
|
namespace == o.namespace &&
|
153
141
|
name == o.name &&
|
154
142
|
deprecated == o.deprecated &&
|
155
143
|
versions_url == o.versions_url &&
|
156
|
-
highest_version == o.highest_version
|
144
|
+
highest_version == o.highest_version &&
|
145
|
+
created_at == o.created_at &&
|
146
|
+
updated_at == o.updated_at
|
157
147
|
end
|
158
148
|
|
159
149
|
# @see the `==` method
|
@@ -165,7 +155,7 @@ module PulpAnsibleClient
|
|
165
155
|
# Calculates hash code according to all attributes.
|
166
156
|
# @return [Integer] Hash code
|
167
157
|
def hash
|
168
|
-
[href,
|
158
|
+
[href, namespace, name, deprecated, versions_url, highest_version, created_at, updated_at].hash
|
169
159
|
end
|
170
160
|
|
171
161
|
# Builds the object from hash
|
@@ -17,8 +17,6 @@ module PulpAnsibleClient
|
|
17
17
|
class CollectionVersionResponse
|
18
18
|
attr_accessor :version
|
19
19
|
|
20
|
-
attr_accessor :certification
|
21
|
-
|
22
20
|
attr_accessor :href
|
23
21
|
|
24
22
|
attr_accessor :created_at
|
@@ -41,7 +39,6 @@ module PulpAnsibleClient
|
|
41
39
|
def self.attribute_map
|
42
40
|
{
|
43
41
|
:'version' => :'version',
|
44
|
-
:'certification' => :'certification',
|
45
42
|
:'href' => :'href',
|
46
43
|
:'created_at' => :'created_at',
|
47
44
|
:'updated_at' => :'updated_at',
|
@@ -58,7 +55,6 @@ module PulpAnsibleClient
|
|
58
55
|
def self.openapi_types
|
59
56
|
{
|
60
57
|
:'version' => :'String',
|
61
|
-
:'certification' => :'CertificationEnum',
|
62
58
|
:'href' => :'String',
|
63
59
|
:'created_at' => :'DateTime',
|
64
60
|
:'updated_at' => :'DateTime',
|
@@ -96,10 +92,6 @@ module PulpAnsibleClient
|
|
96
92
|
self.version = attributes[:'version']
|
97
93
|
end
|
98
94
|
|
99
|
-
if attributes.key?(:'certification')
|
100
|
-
self.certification = attributes[:'certification']
|
101
|
-
end
|
102
|
-
|
103
95
|
if attributes.key?(:'href')
|
104
96
|
self.href = attributes[:'href']
|
105
97
|
end
|
@@ -166,7 +158,6 @@ module PulpAnsibleClient
|
|
166
158
|
return true if self.equal?(o)
|
167
159
|
self.class == o.class &&
|
168
160
|
version == o.version &&
|
169
|
-
certification == o.certification &&
|
170
161
|
href == o.href &&
|
171
162
|
created_at == o.created_at &&
|
172
163
|
updated_at == o.updated_at &&
|
@@ -187,7 +178,7 @@ module PulpAnsibleClient
|
|
187
178
|
# Calculates hash code according to all attributes.
|
188
179
|
# @return [Integer] Hash code
|
189
180
|
def hash
|
190
|
-
[version,
|
181
|
+
[version, href, created_at, updated_at, artifact, collection, download_url, name, namespace, metadata].hash
|
191
182
|
end
|
192
183
|
|
193
184
|
# Builds the object from hash
|
@@ -13,21 +13,22 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
# A serializer for
|
17
|
-
class
|
18
|
-
|
16
|
+
# A serializer for Content Copy API.
|
17
|
+
class Copy
|
18
|
+
# A JSON document describing sources, destinations, and content to be copied
|
19
|
+
attr_accessor :config
|
19
20
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
23
|
-
:'
|
24
|
+
:'config' => :'config'
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
27
28
|
# Attribute type mapping.
|
28
29
|
def self.openapi_types
|
29
30
|
{
|
30
|
-
:'
|
31
|
+
:'config' => :'Object'
|
31
32
|
}
|
32
33
|
end
|
33
34
|
|
@@ -41,21 +42,19 @@ module PulpAnsibleClient
|
|
41
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
42
43
|
def initialize(attributes = {})
|
43
44
|
if (!attributes.is_a?(Hash))
|
44
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::Copy` initialize method"
|
45
46
|
end
|
46
47
|
|
47
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
48
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::Copy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
52
|
end
|
52
53
|
h[k.to_sym] = v
|
53
54
|
}
|
54
55
|
|
55
|
-
if attributes.key?(:'
|
56
|
-
|
57
|
-
self.tags = value
|
58
|
-
end
|
56
|
+
if attributes.key?(:'config')
|
57
|
+
self.config = attributes[:'config']
|
59
58
|
end
|
60
59
|
end
|
61
60
|
|
@@ -63,8 +62,8 @@ module PulpAnsibleClient
|
|
63
62
|
# @return Array for valid properties with the reasons
|
64
63
|
def list_invalid_properties
|
65
64
|
invalid_properties = Array.new
|
66
|
-
if @
|
67
|
-
invalid_properties.push('invalid value for "
|
65
|
+
if @config.nil?
|
66
|
+
invalid_properties.push('invalid value for "config", config cannot be nil.')
|
68
67
|
end
|
69
68
|
|
70
69
|
invalid_properties
|
@@ -73,7 +72,7 @@ module PulpAnsibleClient
|
|
73
72
|
# Check to see if the all the properties in the model are valid
|
74
73
|
# @return true if the model is valid
|
75
74
|
def valid?
|
76
|
-
return false if @
|
75
|
+
return false if @config.nil?
|
77
76
|
true
|
78
77
|
end
|
79
78
|
|
@@ -82,7 +81,7 @@ module PulpAnsibleClient
|
|
82
81
|
def ==(o)
|
83
82
|
return true if self.equal?(o)
|
84
83
|
self.class == o.class &&
|
85
|
-
|
84
|
+
config == o.config
|
86
85
|
end
|
87
86
|
|
88
87
|
# @see the `==` method
|
@@ -94,7 +93,7 @@ module PulpAnsibleClient
|
|
94
93
|
# Calculates hash code according to all attributes.
|
95
94
|
# @return [Integer] Hash code
|
96
95
|
def hash
|
97
|
-
[
|
96
|
+
[config].hash
|
98
97
|
end
|
99
98
|
|
100
99
|
# Builds the object from hash
|