pulp_container_client 2.7.0 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +3 -3
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +7 -7
- data/docs/ContainerContainerRepository.md +3 -3
- data/docs/ContainerContainerRepositoryResponse.md +3 -3
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRepository.md +3 -3
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +16 -16
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +36 -36
- data/lib/pulp_container_client/models/container_container_repository.rb +17 -16
- data/lib/pulp_container_client/models/container_container_repository_response.rb +17 -16
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +17 -16
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +3 -3
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- metadata +45 -45
@@ -15,13 +15,14 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
20
20
|
|
21
21
|
# A unique name. Ex, `rawhide` and `stable`.
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
|
-
|
24
|
+
# Timestamp of creation.
|
25
|
+
attr_accessor :pulp_created
|
25
26
|
|
26
27
|
# The latest RepositoryVersion for this Repository will be served.
|
27
28
|
attr_accessor :repository
|
@@ -29,8 +30,7 @@ module PulpContainerClient
|
|
29
30
|
# An optional content-guard. If none is specified, a default one will be used.
|
30
31
|
attr_accessor :content_guard
|
31
32
|
|
32
|
-
|
33
|
-
attr_accessor :base_path
|
33
|
+
attr_accessor :pulp_href
|
34
34
|
|
35
35
|
attr_accessor :pulp_labels
|
36
36
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'
|
55
|
+
:'base_path' => :'base_path',
|
56
56
|
:'name' => :'name',
|
57
|
-
:'
|
57
|
+
:'pulp_created' => :'pulp_created',
|
58
58
|
:'repository' => :'repository',
|
59
59
|
:'content_guard' => :'content_guard',
|
60
|
-
:'
|
60
|
+
:'pulp_href' => :'pulp_href',
|
61
61
|
:'pulp_labels' => :'pulp_labels',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
@@ -70,12 +70,12 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
73
|
+
:'base_path' => :'String',
|
74
74
|
:'name' => :'String',
|
75
|
-
:'
|
75
|
+
:'pulp_created' => :'DateTime',
|
76
76
|
:'repository' => :'String',
|
77
77
|
:'content_guard' => :'String',
|
78
|
-
:'
|
78
|
+
:'pulp_href' => :'String',
|
79
79
|
:'pulp_labels' => :'Object',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
@@ -109,16 +109,16 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'base_path')
|
113
|
+
self.base_path = attributes[:'base_path']
|
114
114
|
end
|
115
115
|
|
116
116
|
if attributes.key?(:'name')
|
117
117
|
self.name = attributes[:'name']
|
118
118
|
end
|
119
119
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
120
|
+
if attributes.key?(:'pulp_created')
|
121
|
+
self.pulp_created = attributes[:'pulp_created']
|
122
122
|
end
|
123
123
|
|
124
124
|
if attributes.key?(:'repository')
|
@@ -129,8 +129,8 @@ module PulpContainerClient
|
|
129
129
|
self.content_guard = attributes[:'content_guard']
|
130
130
|
end
|
131
131
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
132
|
+
if attributes.key?(:'pulp_href')
|
133
|
+
self.pulp_href = attributes[:'pulp_href']
|
134
134
|
end
|
135
135
|
|
136
136
|
if attributes.key?(:'pulp_labels')
|
@@ -162,22 +162,22 @@ module PulpContainerClient
|
|
162
162
|
# @return Array for valid properties with the reasons
|
163
163
|
def list_invalid_properties
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if @name.nil?
|
166
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @base_path.nil?
|
170
166
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @name.nil?
|
170
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
|
-
return false if @name.nil?
|
180
179
|
return false if @base_path.nil?
|
180
|
+
return false if @name.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -186,12 +186,12 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
|
189
|
+
base_path == o.base_path &&
|
190
190
|
name == o.name &&
|
191
|
-
|
191
|
+
pulp_created == o.pulp_created &&
|
192
192
|
repository == o.repository &&
|
193
193
|
content_guard == o.content_guard &&
|
194
|
-
|
194
|
+
pulp_href == o.pulp_href &&
|
195
195
|
pulp_labels == o.pulp_labels &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
registry_path == o.registry_path &&
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[base_path, name, pulp_created, repository, content_guard, pulp_href, pulp_labels, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
# A unique name for this repository.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
18
|
# An optional description.
|
22
19
|
attr_accessor :description
|
23
20
|
|
21
|
+
# A unique name for this repository.
|
22
|
+
attr_accessor :name
|
23
|
+
|
24
24
|
# 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.
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :retain_repo_versions
|
26
26
|
|
27
27
|
attr_accessor :pulp_labels
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'name' => :'name',
|
33
32
|
:'description' => :'description',
|
34
|
-
:'
|
33
|
+
:'name' => :'name',
|
34
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
35
35
|
:'pulp_labels' => :'pulp_labels'
|
36
36
|
}
|
37
37
|
end
|
@@ -39,9 +39,9 @@ module PulpContainerClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'name' => :'String',
|
43
42
|
:'description' => :'String',
|
44
|
-
:'
|
43
|
+
:'name' => :'String',
|
44
|
+
:'retain_repo_versions' => :'Integer',
|
45
45
|
:'pulp_labels' => :'Object'
|
46
46
|
}
|
47
47
|
end
|
@@ -50,7 +50,7 @@ module PulpContainerClient
|
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
52
|
:'description',
|
53
|
-
:'
|
53
|
+
:'retain_repo_versions',
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,16 +69,16 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'name')
|
73
|
-
self.name = attributes[:'name']
|
74
|
-
end
|
75
|
-
|
76
72
|
if attributes.key?(:'description')
|
77
73
|
self.description = attributes[:'description']
|
78
74
|
end
|
79
75
|
|
80
|
-
if attributes.key?(:'
|
81
|
-
self.
|
76
|
+
if attributes.key?(:'name')
|
77
|
+
self.name = attributes[:'name']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'retain_repo_versions')
|
81
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
82
82
|
end
|
83
83
|
|
84
84
|
if attributes.key?(:'pulp_labels')
|
@@ -94,8 +94,8 @@ module PulpContainerClient
|
|
94
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
95
95
|
end
|
96
96
|
|
97
|
-
if !@
|
98
|
-
invalid_properties.push('invalid value for "
|
97
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
98
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
99
99
|
end
|
100
100
|
|
101
101
|
invalid_properties
|
@@ -105,18 +105,18 @@ module PulpContainerClient
|
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
107
|
return false if @name.nil?
|
108
|
-
return false if !@
|
108
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
109
109
|
true
|
110
110
|
end
|
111
111
|
|
112
112
|
# Custom attribute writer method with validation
|
113
|
-
# @param [Object]
|
114
|
-
def
|
115
|
-
if !
|
116
|
-
fail ArgumentError, 'invalid value for "
|
113
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
114
|
+
def retain_repo_versions=(retain_repo_versions)
|
115
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
116
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
117
117
|
end
|
118
118
|
|
119
|
-
@
|
119
|
+
@retain_repo_versions = retain_repo_versions
|
120
120
|
end
|
121
121
|
|
122
122
|
# Checks equality by comparing each attribute.
|
@@ -124,9 +124,9 @@ module PulpContainerClient
|
|
124
124
|
def ==(o)
|
125
125
|
return true if self.equal?(o)
|
126
126
|
self.class == o.class &&
|
127
|
-
name == o.name &&
|
128
127
|
description == o.description &&
|
129
|
-
|
128
|
+
name == o.name &&
|
129
|
+
retain_repo_versions == o.retain_repo_versions &&
|
130
130
|
pulp_labels == o.pulp_labels
|
131
131
|
end
|
132
132
|
|
@@ -139,7 +139,7 @@ module PulpContainerClient
|
|
139
139
|
# Calculates hash code according to all attributes.
|
140
140
|
# @return [Integer] Hash code
|
141
141
|
def hash
|
142
|
-
[
|
142
|
+
[description, name, retain_repo_versions, pulp_labels].hash
|
143
143
|
end
|
144
144
|
|
145
145
|
# Builds the object from hash
|
@@ -15,12 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
|
-
# A unique name for this repository.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
18
|
attr_accessor :versions_href
|
25
19
|
|
26
20
|
# An optional description.
|
@@ -28,8 +22,14 @@ module PulpContainerClient
|
|
28
22
|
|
29
23
|
attr_accessor :latest_version_href
|
30
24
|
|
25
|
+
# A unique name for this repository.
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# Timestamp of creation.
|
29
|
+
attr_accessor :pulp_created
|
30
|
+
|
31
31
|
# 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.
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :retain_repo_versions
|
33
33
|
|
34
34
|
attr_accessor :pulp_href
|
35
35
|
|
@@ -38,12 +38,12 @@ module PulpContainerClient
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'pulp_created' => :'pulp_created',
|
42
|
-
:'name' => :'name',
|
43
41
|
:'versions_href' => :'versions_href',
|
44
42
|
:'description' => :'description',
|
45
43
|
:'latest_version_href' => :'latest_version_href',
|
46
|
-
:'
|
44
|
+
:'name' => :'name',
|
45
|
+
:'pulp_created' => :'pulp_created',
|
46
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
47
47
|
:'pulp_href' => :'pulp_href',
|
48
48
|
:'pulp_labels' => :'pulp_labels'
|
49
49
|
}
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'pulp_created' => :'DateTime',
|
56
|
-
:'name' => :'String',
|
57
55
|
:'versions_href' => :'String',
|
58
56
|
:'description' => :'String',
|
59
57
|
:'latest_version_href' => :'String',
|
60
|
-
:'
|
58
|
+
:'name' => :'String',
|
59
|
+
:'pulp_created' => :'DateTime',
|
60
|
+
:'retain_repo_versions' => :'Integer',
|
61
61
|
:'pulp_href' => :'String',
|
62
62
|
:'pulp_labels' => :'Object'
|
63
63
|
}
|
@@ -67,7 +67,7 @@ module PulpContainerClient
|
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
69
|
:'description',
|
70
|
-
:'
|
70
|
+
:'retain_repo_versions',
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,14 +86,6 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'pulp_created')
|
90
|
-
self.pulp_created = attributes[:'pulp_created']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
95
|
-
end
|
96
|
-
|
97
89
|
if attributes.key?(:'versions_href')
|
98
90
|
self.versions_href = attributes[:'versions_href']
|
99
91
|
end
|
@@ -106,8 +98,16 @@ module PulpContainerClient
|
|
106
98
|
self.latest_version_href = attributes[:'latest_version_href']
|
107
99
|
end
|
108
100
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
101
|
+
if attributes.key?(:'name')
|
102
|
+
self.name = attributes[:'name']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'pulp_created')
|
106
|
+
self.pulp_created = attributes[:'pulp_created']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'retain_repo_versions')
|
110
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'pulp_href')
|
@@ -127,8 +127,8 @@ module PulpContainerClient
|
|
127
127
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
128
128
|
end
|
129
129
|
|
130
|
-
if !@
|
131
|
-
invalid_properties.push('invalid value for "
|
130
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
132
132
|
end
|
133
133
|
|
134
134
|
invalid_properties
|
@@ -138,18 +138,18 @@ module PulpContainerClient
|
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
140
|
return false if @name.nil?
|
141
|
-
return false if !@
|
141
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
142
142
|
true
|
143
143
|
end
|
144
144
|
|
145
145
|
# Custom attribute writer method with validation
|
146
|
-
# @param [Object]
|
147
|
-
def
|
148
|
-
if !
|
149
|
-
fail ArgumentError, 'invalid value for "
|
146
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
147
|
+
def retain_repo_versions=(retain_repo_versions)
|
148
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
149
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
150
150
|
end
|
151
151
|
|
152
|
-
@
|
152
|
+
@retain_repo_versions = retain_repo_versions
|
153
153
|
end
|
154
154
|
|
155
155
|
# Checks equality by comparing each attribute.
|
@@ -157,12 +157,12 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
pulp_created == o.pulp_created &&
|
161
|
-
name == o.name &&
|
162
160
|
versions_href == o.versions_href &&
|
163
161
|
description == o.description &&
|
164
162
|
latest_version_href == o.latest_version_href &&
|
165
|
-
|
163
|
+
name == o.name &&
|
164
|
+
pulp_created == o.pulp_created &&
|
165
|
+
retain_repo_versions == o.retain_repo_versions &&
|
166
166
|
pulp_href == o.pulp_href &&
|
167
167
|
pulp_labels == o.pulp_labels
|
168
168
|
end
|
@@ -176,7 +176,7 @@ module PulpContainerClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[
|
179
|
+
[versions_href, description, latest_version_href, name, pulp_created, retain_repo_versions, pulp_href, pulp_labels].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -24,8 +24,9 @@ module PulpContainerClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
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 :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +35,7 @@ module PulpContainerClient
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
35
36
|
:'name' => :'name',
|
36
37
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'remote' => :'remote'
|
39
40
|
}
|
40
41
|
end
|
@@ -45,7 +46,7 @@ module PulpContainerClient
|
|
45
46
|
:'pulp_labels' => :'Object',
|
46
47
|
:'name' => :'String',
|
47
48
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
49
50
|
:'remote' => :'String'
|
50
51
|
}
|
51
52
|
end
|
@@ -54,7 +55,7 @@ module PulpContainerClient
|
|
54
55
|
def self.openapi_nullable
|
55
56
|
Set.new([
|
56
57
|
:'description',
|
57
|
-
:'
|
58
|
+
:'retain_repo_versions',
|
58
59
|
:'remote'
|
59
60
|
])
|
60
61
|
end
|
@@ -86,8 +87,8 @@ module PulpContainerClient
|
|
86
87
|
self.description = attributes[:'description']
|
87
88
|
end
|
88
89
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'remote')
|
@@ -103,8 +104,8 @@ module PulpContainerClient
|
|
103
104
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
104
105
|
end
|
105
106
|
|
106
|
-
if !@
|
107
|
-
invalid_properties.push('invalid value for "
|
107
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
108
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
108
109
|
end
|
109
110
|
|
110
111
|
invalid_properties
|
@@ -114,18 +115,18 @@ module PulpContainerClient
|
|
114
115
|
# @return true if the model is valid
|
115
116
|
def valid?
|
116
117
|
return false if @name.nil?
|
117
|
-
return false if !@
|
118
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
118
119
|
true
|
119
120
|
end
|
120
121
|
|
121
122
|
# Custom attribute writer method with validation
|
122
|
-
# @param [Object]
|
123
|
-
def
|
124
|
-
if !
|
125
|
-
fail ArgumentError, 'invalid value for "
|
123
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
124
|
+
def retain_repo_versions=(retain_repo_versions)
|
125
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
126
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
126
127
|
end
|
127
128
|
|
128
|
-
@
|
129
|
+
@retain_repo_versions = retain_repo_versions
|
129
130
|
end
|
130
131
|
|
131
132
|
# Checks equality by comparing each attribute.
|
@@ -136,7 +137,7 @@ module PulpContainerClient
|
|
136
137
|
pulp_labels == o.pulp_labels &&
|
137
138
|
name == o.name &&
|
138
139
|
description == o.description &&
|
139
|
-
|
140
|
+
retain_repo_versions == o.retain_repo_versions &&
|
140
141
|
remote == o.remote
|
141
142
|
end
|
142
143
|
|
@@ -149,7 +150,7 @@ module PulpContainerClient
|
|
149
150
|
# Calculates hash code according to all attributes.
|
150
151
|
# @return [Integer] Hash code
|
151
152
|
def hash
|
152
|
-
[pulp_labels, name, description,
|
153
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
153
154
|
end
|
154
155
|
|
155
156
|
# Builds the object from hash
|
@@ -33,8 +33,9 @@ module PulpContainerClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
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 :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +48,7 @@ module PulpContainerClient
|
|
47
48
|
:'latest_version_href' => :'latest_version_href',
|
48
49
|
:'name' => :'name',
|
49
50
|
:'description' => :'description',
|
50
|
-
:'
|
51
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
51
52
|
:'remote' => :'remote'
|
52
53
|
}
|
53
54
|
end
|
@@ -62,7 +63,7 @@ module PulpContainerClient
|
|
62
63
|
:'latest_version_href' => :'String',
|
63
64
|
:'name' => :'String',
|
64
65
|
:'description' => :'String',
|
65
|
-
:'
|
66
|
+
:'retain_repo_versions' => :'Integer',
|
66
67
|
:'remote' => :'String'
|
67
68
|
}
|
68
69
|
end
|
@@ -71,7 +72,7 @@ module PulpContainerClient
|
|
71
72
|
def self.openapi_nullable
|
72
73
|
Set.new([
|
73
74
|
:'description',
|
74
|
-
:'
|
75
|
+
:'retain_repo_versions',
|
75
76
|
:'remote'
|
76
77
|
])
|
77
78
|
end
|
@@ -119,8 +120,8 @@ module PulpContainerClient
|
|
119
120
|
self.description = attributes[:'description']
|
120
121
|
end
|
121
122
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
123
|
+
if attributes.key?(:'retain_repo_versions')
|
124
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
124
125
|
end
|
125
126
|
|
126
127
|
if attributes.key?(:'remote')
|
@@ -136,8 +137,8 @@ module PulpContainerClient
|
|
136
137
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
138
|
end
|
138
139
|
|
139
|
-
if !@
|
140
|
-
invalid_properties.push('invalid value for "
|
140
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
141
142
|
end
|
142
143
|
|
143
144
|
invalid_properties
|
@@ -147,18 +148,18 @@ module PulpContainerClient
|
|
147
148
|
# @return true if the model is valid
|
148
149
|
def valid?
|
149
150
|
return false if @name.nil?
|
150
|
-
return false if !@
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
151
152
|
true
|
152
153
|
end
|
153
154
|
|
154
155
|
# Custom attribute writer method with validation
|
155
|
-
# @param [Object]
|
156
|
-
def
|
157
|
-
if !
|
158
|
-
fail ArgumentError, 'invalid value for "
|
156
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
157
|
+
def retain_repo_versions=(retain_repo_versions)
|
158
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
159
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
159
160
|
end
|
160
161
|
|
161
|
-
@
|
162
|
+
@retain_repo_versions = retain_repo_versions
|
162
163
|
end
|
163
164
|
|
164
165
|
# Checks equality by comparing each attribute.
|
@@ -173,7 +174,7 @@ module PulpContainerClient
|
|
173
174
|
latest_version_href == o.latest_version_href &&
|
174
175
|
name == o.name &&
|
175
176
|
description == o.description &&
|
176
|
-
|
177
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
178
|
remote == o.remote
|
178
179
|
end
|
179
180
|
|
@@ -186,7 +187,7 @@ module PulpContainerClient
|
|
186
187
|
# Calculates hash code according to all attributes.
|
187
188
|
# @return [Integer] Hash code
|
188
189
|
def hash
|
189
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
190
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
|
190
191
|
end
|
191
192
|
|
192
193
|
# Builds the object from hash
|