pulp_container_client 2.5.2 → 2.6.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 +5 -5
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
- data/docs/ContainerContainerRepository.md +2 -0
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/ContentTagsApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerRepository.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +5 -5
- data/lib/pulp_container_client/api/content_manifests_api.rb +5 -5
- data/lib/pulp_container_client/api/content_tags_api.rb +5 -5
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -40
- data/lib/pulp_container_client/models/container_container_distribution.rb +33 -33
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +50 -50
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +27 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +27 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +27 -1
- data/lib/pulp_container_client/models/content_summary.rb +12 -6
- data/lib/pulp_container_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +27 -1
- data/lib/pulp_container_client/models/repository_version_response.rb +10 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +42 -42
@@ -32,6 +32,9 @@ module PulpContainerClient
|
|
32
32
|
# An optional description.
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
+
attr_accessor :retained_versions
|
37
|
+
|
35
38
|
attr_accessor :remote
|
36
39
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,6 +47,7 @@ module PulpContainerClient
|
|
44
47
|
:'latest_version_href' => :'latest_version_href',
|
45
48
|
:'name' => :'name',
|
46
49
|
:'description' => :'description',
|
50
|
+
:'retained_versions' => :'retained_versions',
|
47
51
|
:'remote' => :'remote'
|
48
52
|
}
|
49
53
|
end
|
@@ -58,6 +62,7 @@ module PulpContainerClient
|
|
58
62
|
:'latest_version_href' => :'String',
|
59
63
|
:'name' => :'String',
|
60
64
|
:'description' => :'String',
|
65
|
+
:'retained_versions' => :'Integer',
|
61
66
|
:'remote' => :'String'
|
62
67
|
}
|
63
68
|
end
|
@@ -66,6 +71,7 @@ module PulpContainerClient
|
|
66
71
|
def self.openapi_nullable
|
67
72
|
Set.new([
|
68
73
|
:'description',
|
74
|
+
:'retained_versions',
|
69
75
|
:'remote'
|
70
76
|
])
|
71
77
|
end
|
@@ -113,6 +119,10 @@ module PulpContainerClient
|
|
113
119
|
self.description = attributes[:'description']
|
114
120
|
end
|
115
121
|
|
122
|
+
if attributes.key?(:'retained_versions')
|
123
|
+
self.retained_versions = attributes[:'retained_versions']
|
124
|
+
end
|
125
|
+
|
116
126
|
if attributes.key?(:'remote')
|
117
127
|
self.remote = attributes[:'remote']
|
118
128
|
end
|
@@ -126,6 +136,10 @@ module PulpContainerClient
|
|
126
136
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
127
137
|
end
|
128
138
|
|
139
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
140
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
129
143
|
invalid_properties
|
130
144
|
end
|
131
145
|
|
@@ -133,9 +147,20 @@ module PulpContainerClient
|
|
133
147
|
# @return true if the model is valid
|
134
148
|
def valid?
|
135
149
|
return false if @name.nil?
|
150
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
136
151
|
true
|
137
152
|
end
|
138
153
|
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param [Object] retained_versions Value to be assigned
|
156
|
+
def retained_versions=(retained_versions)
|
157
|
+
if !retained_versions.nil? && retained_versions < 1
|
158
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@retained_versions = retained_versions
|
162
|
+
end
|
163
|
+
|
139
164
|
# Checks equality by comparing each attribute.
|
140
165
|
# @param [Object] Object to be compared
|
141
166
|
def ==(o)
|
@@ -148,6 +173,7 @@ module PulpContainerClient
|
|
148
173
|
latest_version_href == o.latest_version_href &&
|
149
174
|
name == o.name &&
|
150
175
|
description == o.description &&
|
176
|
+
retained_versions == o.retained_versions &&
|
151
177
|
remote == o.remote
|
152
178
|
end
|
153
179
|
|
@@ -160,7 +186,7 @@ module PulpContainerClient
|
|
160
186
|
# Calculates hash code according to all attributes.
|
161
187
|
# @return [Integer] Hash code
|
162
188
|
def hash
|
163
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
189
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
|
164
190
|
end
|
165
191
|
|
166
192
|
# Builds the object from hash
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpContainerClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpContainerClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -15,8 +15,10 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
20
22
|
|
21
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
22
24
|
attr_accessor :name
|
@@ -24,14 +26,12 @@ module PulpContainerClient
|
|
24
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
25
27
|
attr_accessor :content_guard
|
26
28
|
|
29
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
|
+
attr_accessor :base_path
|
31
|
+
|
27
32
|
# RepositoryVersion to be served
|
28
33
|
attr_accessor :repository_version
|
29
34
|
|
30
|
-
attr_accessor :pulp_labels
|
31
|
-
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
33
|
-
attr_accessor :repository
|
34
|
-
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
36
|
attr_accessor :private
|
37
37
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'repository' => :'repository',
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
45
46
|
:'name' => :'name',
|
46
47
|
:'content_guard' => :'content_guard',
|
48
|
+
:'base_path' => :'base_path',
|
47
49
|
:'repository_version' => :'repository_version',
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
49
|
-
:'repository' => :'repository',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
52
52
|
}
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'
|
58
|
+
:'repository' => :'String',
|
59
|
+
:'pulp_labels' => :'Object',
|
59
60
|
:'name' => :'String',
|
60
61
|
:'content_guard' => :'String',
|
62
|
+
:'base_path' => :'String',
|
61
63
|
:'repository_version' => :'String',
|
62
|
-
:'pulp_labels' => :'Object',
|
63
|
-
:'repository' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
66
66
|
}
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
69
69
|
# List of attributes with nullable: true
|
70
70
|
def self.openapi_nullable
|
71
71
|
Set.new([
|
72
|
-
:'repository_version',
|
73
72
|
:'repository',
|
73
|
+
:'repository_version',
|
74
74
|
:'description'
|
75
75
|
])
|
76
76
|
end
|
@@ -90,8 +90,12 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'repository')
|
94
|
+
self.repository = attributes[:'repository']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'pulp_labels')
|
98
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
95
99
|
end
|
96
100
|
|
97
101
|
if attributes.key?(:'name')
|
@@ -102,16 +106,12 @@ module PulpContainerClient
|
|
102
106
|
self.content_guard = attributes[:'content_guard']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.key?(:'pulp_labels')
|
110
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
109
|
+
if attributes.key?(:'base_path')
|
110
|
+
self.base_path = attributes[:'base_path']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'repository_version')
|
114
|
+
self.repository_version = attributes[:'repository_version']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'private')
|
@@ -141,12 +141,12 @@ module PulpContainerClient
|
|
141
141
|
def ==(o)
|
142
142
|
return true if self.equal?(o)
|
143
143
|
self.class == o.class &&
|
144
|
-
|
144
|
+
repository == o.repository &&
|
145
|
+
pulp_labels == o.pulp_labels &&
|
145
146
|
name == o.name &&
|
146
147
|
content_guard == o.content_guard &&
|
148
|
+
base_path == o.base_path &&
|
147
149
|
repository_version == o.repository_version &&
|
148
|
-
pulp_labels == o.pulp_labels &&
|
149
|
-
repository == o.repository &&
|
150
150
|
private == o.private &&
|
151
151
|
description == o.description
|
152
152
|
end
|
@@ -160,7 +160,7 @@ module PulpContainerClient
|
|
160
160
|
# Calculates hash code according to all attributes.
|
161
161
|
# @return [Integer] Hash code
|
162
162
|
def hash
|
163
|
-
[
|
163
|
+
[repository, pulp_labels, name, content_guard, base_path, repository_version, private, description].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# Builds the object from hash
|
@@ -23,6 +23,9 @@ module PulpContainerClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
+
attr_accessor :retained_versions
|
28
|
+
|
26
29
|
attr_accessor :remote
|
27
30
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,6 +34,7 @@ module PulpContainerClient
|
|
31
34
|
:'pulp_labels' => :'pulp_labels',
|
32
35
|
:'name' => :'name',
|
33
36
|
:'description' => :'description',
|
37
|
+
:'retained_versions' => :'retained_versions',
|
34
38
|
:'remote' => :'remote'
|
35
39
|
}
|
36
40
|
end
|
@@ -41,6 +45,7 @@ module PulpContainerClient
|
|
41
45
|
:'pulp_labels' => :'Object',
|
42
46
|
:'name' => :'String',
|
43
47
|
:'description' => :'String',
|
48
|
+
:'retained_versions' => :'Integer',
|
44
49
|
:'remote' => :'String'
|
45
50
|
}
|
46
51
|
end
|
@@ -49,6 +54,7 @@ module PulpContainerClient
|
|
49
54
|
def self.openapi_nullable
|
50
55
|
Set.new([
|
51
56
|
:'description',
|
57
|
+
:'retained_versions',
|
52
58
|
:'remote'
|
53
59
|
])
|
54
60
|
end
|
@@ -80,6 +86,10 @@ module PulpContainerClient
|
|
80
86
|
self.description = attributes[:'description']
|
81
87
|
end
|
82
88
|
|
89
|
+
if attributes.key?(:'retained_versions')
|
90
|
+
self.retained_versions = attributes[:'retained_versions']
|
91
|
+
end
|
92
|
+
|
83
93
|
if attributes.key?(:'remote')
|
84
94
|
self.remote = attributes[:'remote']
|
85
95
|
end
|
@@ -89,15 +99,30 @@ module PulpContainerClient
|
|
89
99
|
# @return Array for valid properties with the reasons
|
90
100
|
def list_invalid_properties
|
91
101
|
invalid_properties = Array.new
|
102
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
103
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
104
|
+
end
|
105
|
+
|
92
106
|
invalid_properties
|
93
107
|
end
|
94
108
|
|
95
109
|
# Check to see if the all the properties in the model are valid
|
96
110
|
# @return true if the model is valid
|
97
111
|
def valid?
|
112
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
98
113
|
true
|
99
114
|
end
|
100
115
|
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] retained_versions Value to be assigned
|
118
|
+
def retained_versions=(retained_versions)
|
119
|
+
if !retained_versions.nil? && retained_versions < 1
|
120
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
121
|
+
end
|
122
|
+
|
123
|
+
@retained_versions = retained_versions
|
124
|
+
end
|
125
|
+
|
101
126
|
# Checks equality by comparing each attribute.
|
102
127
|
# @param [Object] Object to be compared
|
103
128
|
def ==(o)
|
@@ -106,6 +131,7 @@ module PulpContainerClient
|
|
106
131
|
pulp_labels == o.pulp_labels &&
|
107
132
|
name == o.name &&
|
108
133
|
description == o.description &&
|
134
|
+
retained_versions == o.retained_versions &&
|
109
135
|
remote == o.remote
|
110
136
|
end
|
111
137
|
|
@@ -118,7 +144,7 @@ module PulpContainerClient
|
|
118
144
|
# Calculates hash code according to all attributes.
|
119
145
|
# @return [Integer] Hash code
|
120
146
|
def hash
|
121
|
-
[pulp_labels, name, description, remote].hash
|
147
|
+
[pulp_labels, name, description, retained_versions, remote].hash
|
122
148
|
end
|
123
149
|
|
124
150
|
# Builds the object from hash
|
@@ -22,6 +22,8 @@ module PulpContainerClient
|
|
22
22
|
|
23
23
|
attr_accessor :number
|
24
24
|
|
25
|
+
attr_accessor :repository
|
26
|
+
|
25
27
|
# A repository version whose content was used as the initial set of content for this repository version
|
26
28
|
attr_accessor :base_version
|
27
29
|
|
@@ -34,6 +36,7 @@ module PulpContainerClient
|
|
34
36
|
:'pulp_href' => :'pulp_href',
|
35
37
|
:'pulp_created' => :'pulp_created',
|
36
38
|
:'number' => :'number',
|
39
|
+
:'repository' => :'repository',
|
37
40
|
:'base_version' => :'base_version',
|
38
41
|
:'content_summary' => :'content_summary'
|
39
42
|
}
|
@@ -45,6 +48,7 @@ module PulpContainerClient
|
|
45
48
|
:'pulp_href' => :'String',
|
46
49
|
:'pulp_created' => :'DateTime',
|
47
50
|
:'number' => :'Integer',
|
51
|
+
:'repository' => :'String',
|
48
52
|
:'base_version' => :'String',
|
49
53
|
:'content_summary' => :'ContentSummaryResponse'
|
50
54
|
}
|
@@ -83,6 +87,10 @@ module PulpContainerClient
|
|
83
87
|
self.number = attributes[:'number']
|
84
88
|
end
|
85
89
|
|
90
|
+
if attributes.key?(:'repository')
|
91
|
+
self.repository = attributes[:'repository']
|
92
|
+
end
|
93
|
+
|
86
94
|
if attributes.key?(:'base_version')
|
87
95
|
self.base_version = attributes[:'base_version']
|
88
96
|
end
|
@@ -113,6 +121,7 @@ module PulpContainerClient
|
|
113
121
|
pulp_href == o.pulp_href &&
|
114
122
|
pulp_created == o.pulp_created &&
|
115
123
|
number == o.number &&
|
124
|
+
repository == o.repository &&
|
116
125
|
base_version == o.base_version &&
|
117
126
|
content_summary == o.content_summary
|
118
127
|
end
|
@@ -126,7 +135,7 @@ module PulpContainerClient
|
|
126
135
|
# Calculates hash code according to all attributes.
|
127
136
|
# @return [Integer] Hash code
|
128
137
|
def hash
|
129
|
-
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
138
|
+
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
130
139
|
end
|
131
140
|
|
132
141
|
# Builds the object from hash
|
@@ -39,7 +39,7 @@ describe 'ContentBlobsApi' do
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
|
-
# @option opts [String] :media_type
|
42
|
+
# @option opts [Array<String>] :media_type
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
44
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|