pulp_container_client 2.7.1 → 2.8.3
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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +5 -5
- 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 +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- 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 +23 -23
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +32 -32
- data/lib/pulp_container_client/models/container_container_push_repository.rb +16 -16
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +29 -29
- 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 +18 -18
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +16 -16
- 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 +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +4 -4
- data/spec/models/container_container_push_repository_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- metadata +42 -42
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
20
|
|
21
21
|
# Timestamp of creation.
|
22
22
|
attr_accessor :pulp_created
|
23
23
|
|
24
|
+
attr_accessor :pulp_href
|
25
|
+
|
24
26
|
# The latest RepositoryVersion for this Repository will be served.
|
25
27
|
attr_accessor :repository
|
26
28
|
|
27
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
28
|
-
attr_accessor :content_guard
|
29
|
-
|
30
|
-
attr_accessor :pulp_href
|
31
|
-
|
32
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
30
|
attr_accessor :name
|
34
31
|
|
35
32
|
attr_accessor :pulp_labels
|
36
33
|
|
34
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
+
attr_accessor :base_path
|
36
|
+
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
39
39
|
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'base_path' => :'base_path',
|
56
|
-
:'pulp_created' => :'pulp_created',
|
57
|
-
:'repository' => :'repository',
|
58
55
|
:'content_guard' => :'content_guard',
|
56
|
+
:'pulp_created' => :'pulp_created',
|
59
57
|
:'pulp_href' => :'pulp_href',
|
58
|
+
:'repository' => :'repository',
|
60
59
|
:'name' => :'name',
|
61
60
|
:'pulp_labels' => :'pulp_labels',
|
61
|
+
:'base_path' => :'base_path',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'base_path' => :'String',
|
74
|
-
:'pulp_created' => :'DateTime',
|
75
|
-
:'repository' => :'String',
|
76
73
|
:'content_guard' => :'String',
|
74
|
+
:'pulp_created' => :'DateTime',
|
77
75
|
:'pulp_href' => :'String',
|
76
|
+
:'repository' => :'String',
|
78
77
|
:'name' => :'String',
|
79
78
|
:'pulp_labels' => :'Object',
|
79
|
+
:'base_path' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,26 +109,22 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
114
114
|
end
|
115
115
|
|
116
116
|
if attributes.key?(:'pulp_created')
|
117
117
|
self.pulp_created = attributes[:'pulp_created']
|
118
118
|
end
|
119
119
|
|
120
|
-
if attributes.key?(:'repository')
|
121
|
-
self.repository = attributes[:'repository']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'content_guard')
|
125
|
-
self.content_guard = attributes[:'content_guard']
|
126
|
-
end
|
127
|
-
|
128
120
|
if attributes.key?(:'pulp_href')
|
129
121
|
self.pulp_href = attributes[:'pulp_href']
|
130
122
|
end
|
131
123
|
|
124
|
+
if attributes.key?(:'repository')
|
125
|
+
self.repository = attributes[:'repository']
|
126
|
+
end
|
127
|
+
|
132
128
|
if attributes.key?(:'name')
|
133
129
|
self.name = attributes[:'name']
|
134
130
|
end
|
@@ -137,6 +133,10 @@ module PulpContainerClient
|
|
137
133
|
self.pulp_labels = attributes[:'pulp_labels']
|
138
134
|
end
|
139
135
|
|
136
|
+
if attributes.key?(:'base_path')
|
137
|
+
self.base_path = attributes[:'base_path']
|
138
|
+
end
|
139
|
+
|
140
140
|
if attributes.key?(:'repository_version')
|
141
141
|
self.repository_version = attributes[:'repository_version']
|
142
142
|
end
|
@@ -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 @base_path.nil?
|
166
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @name.nil?
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @base_path.nil?
|
170
|
+
invalid_properties.push('invalid value for "base_path", base_path 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 @base_path.nil?
|
180
179
|
return false if @name.nil?
|
180
|
+
return false if @base_path.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -186,13 +186,13 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
base_path == o.base_path &&
|
190
|
-
pulp_created == o.pulp_created &&
|
191
|
-
repository == o.repository &&
|
192
189
|
content_guard == o.content_guard &&
|
190
|
+
pulp_created == o.pulp_created &&
|
193
191
|
pulp_href == o.pulp_href &&
|
192
|
+
repository == o.repository &&
|
194
193
|
name == o.name &&
|
195
194
|
pulp_labels == o.pulp_labels &&
|
195
|
+
base_path == o.base_path &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
registry_path == o.registry_path &&
|
198
198
|
namespace == o.namespace &&
|
@@ -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
|
+
[content_guard, pulp_created, pulp_href, repository, name, pulp_labels, base_path, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
18
|
# 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.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :retain_repo_versions
|
20
20
|
|
21
21
|
# A unique name for this repository.
|
22
22
|
attr_accessor :name
|
@@ -29,7 +29,7 @@ module PulpContainerClient
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
33
33
|
:'name' => :'name',
|
34
34
|
:'pulp_labels' => :'pulp_labels',
|
35
35
|
:'description' => :'description'
|
@@ -39,7 +39,7 @@ module PulpContainerClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'
|
42
|
+
:'retain_repo_versions' => :'Integer',
|
43
43
|
:'name' => :'String',
|
44
44
|
:'pulp_labels' => :'Object',
|
45
45
|
:'description' => :'String'
|
@@ -49,7 +49,7 @@ module PulpContainerClient
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
-
:'
|
52
|
+
:'retain_repo_versions',
|
53
53
|
:'description'
|
54
54
|
])
|
55
55
|
end
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
72
|
+
if attributes.key?(:'retain_repo_versions')
|
73
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
74
74
|
end
|
75
75
|
|
76
76
|
if attributes.key?(:'name')
|
@@ -90,8 +90,8 @@ module PulpContainerClient
|
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
-
if !@
|
94
|
-
invalid_properties.push('invalid value for "
|
93
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
94
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
97
|
if @name.nil?
|
@@ -104,19 +104,19 @@ module PulpContainerClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
return false if !@
|
107
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
108
108
|
return false if @name.nil?
|
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,7 +124,7 @@ module PulpContainerClient
|
|
124
124
|
def ==(o)
|
125
125
|
return true if self.equal?(o)
|
126
126
|
self.class == o.class &&
|
127
|
-
|
127
|
+
retain_repo_versions == o.retain_repo_versions &&
|
128
128
|
name == o.name &&
|
129
129
|
pulp_labels == o.pulp_labels &&
|
130
130
|
description == o.description
|
@@ -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
|
+
[retain_repo_versions, name, pulp_labels, description].hash
|
143
143
|
end
|
144
144
|
|
145
145
|
# Builds the object from hash
|
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
|
18
|
+
attr_accessor :versions_href
|
19
|
+
|
20
|
+
attr_accessor :latest_version_href
|
20
21
|
|
21
22
|
# Timestamp of creation.
|
22
23
|
attr_accessor :pulp_created
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
attr_accessor :latest_version_href
|
25
|
+
# 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.
|
26
|
+
attr_accessor :retain_repo_versions
|
27
27
|
|
28
28
|
attr_accessor :pulp_href
|
29
29
|
|
@@ -38,10 +38,10 @@ module PulpContainerClient
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'retained_versions' => :'retained_versions',
|
42
|
-
:'pulp_created' => :'pulp_created',
|
43
41
|
:'versions_href' => :'versions_href',
|
44
42
|
:'latest_version_href' => :'latest_version_href',
|
43
|
+
:'pulp_created' => :'pulp_created',
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
45
45
|
:'pulp_href' => :'pulp_href',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'pulp_labels' => :'pulp_labels',
|
@@ -52,10 +52,10 @@ module PulpContainerClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'retained_versions' => :'Integer',
|
56
|
-
:'pulp_created' => :'DateTime',
|
57
55
|
:'versions_href' => :'String',
|
58
56
|
:'latest_version_href' => :'String',
|
57
|
+
:'pulp_created' => :'DateTime',
|
58
|
+
:'retain_repo_versions' => :'Integer',
|
59
59
|
:'pulp_href' => :'String',
|
60
60
|
:'name' => :'String',
|
61
61
|
:'pulp_labels' => :'Object',
|
@@ -66,7 +66,7 @@ module PulpContainerClient
|
|
66
66
|
# List of attributes with nullable: true
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
|
-
:'
|
69
|
+
:'retain_repo_versions',
|
70
70
|
:'description'
|
71
71
|
])
|
72
72
|
end
|
@@ -86,14 +86,6 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'retained_versions')
|
90
|
-
self.retained_versions = attributes[:'retained_versions']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'pulp_created')
|
94
|
-
self.pulp_created = attributes[:'pulp_created']
|
95
|
-
end
|
96
|
-
|
97
89
|
if attributes.key?(:'versions_href')
|
98
90
|
self.versions_href = attributes[:'versions_href']
|
99
91
|
end
|
@@ -102,6 +94,14 @@ module PulpContainerClient
|
|
102
94
|
self.latest_version_href = attributes[:'latest_version_href']
|
103
95
|
end
|
104
96
|
|
97
|
+
if attributes.key?(:'pulp_created')
|
98
|
+
self.pulp_created = attributes[:'pulp_created']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'retain_repo_versions')
|
102
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
103
|
+
end
|
104
|
+
|
105
105
|
if attributes.key?(:'pulp_href')
|
106
106
|
self.pulp_href = attributes[:'pulp_href']
|
107
107
|
end
|
@@ -123,8 +123,8 @@ module PulpContainerClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
-
if !@
|
127
|
-
invalid_properties.push('invalid value for "
|
126
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
127
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
128
128
|
end
|
129
129
|
|
130
130
|
if @name.nil?
|
@@ -137,19 +137,19 @@ module PulpContainerClient
|
|
137
137
|
# Check to see if the all the properties in the model are valid
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
|
-
return false if !@
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
141
|
return false if @name.nil?
|
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,10 +157,10 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
retained_versions == o.retained_versions &&
|
161
|
-
pulp_created == o.pulp_created &&
|
162
160
|
versions_href == o.versions_href &&
|
163
161
|
latest_version_href == o.latest_version_href &&
|
162
|
+
pulp_created == o.pulp_created &&
|
163
|
+
retain_repo_versions == o.retain_repo_versions &&
|
164
164
|
pulp_href == o.pulp_href &&
|
165
165
|
name == o.name &&
|
166
166
|
pulp_labels == o.pulp_labels &&
|
@@ -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, latest_version_href, pulp_created, retain_repo_versions, pulp_href, name, pulp_labels, description].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
|