pulp_container_client 2.8.0 → 2.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/ContainerContainerRepository.md +3 -3
- data/docs/ContainerContainerRepositoryResponse.md +3 -3
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRepository.md +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +15 -15
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +25 -25
- data/lib/pulp_container_client/models/container_container_push_repository.rb +32 -32
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +46 -46
- 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 +15 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +17 -16
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +5 -5
- data/spec/models/container_container_distribution_spec.rb +2 -2
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- 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 +2 -2
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- metadata +54 -48
@@ -15,59 +15,59 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
+
attr_accessor :latest_version_href
|
19
|
+
|
18
20
|
attr_accessor :pulp_labels
|
19
21
|
|
20
|
-
|
22
|
+
# 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.
|
23
|
+
attr_accessor :retain_repo_versions
|
21
24
|
|
22
25
|
attr_accessor :versions_href
|
23
26
|
|
24
|
-
|
27
|
+
# An optional description.
|
28
|
+
attr_accessor :description
|
25
29
|
|
26
|
-
|
27
|
-
attr_accessor :name
|
30
|
+
attr_accessor :pulp_href
|
28
31
|
|
29
32
|
# Timestamp of creation.
|
30
33
|
attr_accessor :pulp_created
|
31
34
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
34
|
-
|
35
|
-
# An optional description.
|
36
|
-
attr_accessor :description
|
35
|
+
# A unique name for this repository.
|
36
|
+
attr_accessor :name
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'pulp_labels' => :'pulp_labels',
|
42
41
|
:'latest_version_href' => :'latest_version_href',
|
42
|
+
:'pulp_labels' => :'pulp_labels',
|
43
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
43
44
|
:'versions_href' => :'versions_href',
|
45
|
+
:'description' => :'description',
|
44
46
|
:'pulp_href' => :'pulp_href',
|
45
|
-
:'name' => :'name',
|
46
47
|
:'pulp_created' => :'pulp_created',
|
47
|
-
:'
|
48
|
-
:'description' => :'description'
|
48
|
+
:'name' => :'name'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'pulp_labels' => :'Object',
|
56
55
|
:'latest_version_href' => :'String',
|
56
|
+
:'pulp_labels' => :'Object',
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
57
58
|
:'versions_href' => :'String',
|
59
|
+
:'description' => :'String',
|
58
60
|
:'pulp_href' => :'String',
|
59
|
-
:'name' => :'String',
|
60
61
|
:'pulp_created' => :'DateTime',
|
61
|
-
:'
|
62
|
-
:'description' => :'String'
|
62
|
+
:'name' => :'String'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
66
|
# List of attributes with nullable: true
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
|
-
:'
|
70
|
-
:'description'
|
69
|
+
:'retain_repo_versions',
|
70
|
+
:'description',
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,36 +86,36 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
+
if attributes.key?(:'latest_version_href')
|
90
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
91
|
+
end
|
92
|
+
|
89
93
|
if attributes.key?(:'pulp_labels')
|
90
94
|
self.pulp_labels = attributes[:'pulp_labels']
|
91
95
|
end
|
92
96
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
97
|
+
if attributes.key?(:'retain_repo_versions')
|
98
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
95
99
|
end
|
96
100
|
|
97
101
|
if attributes.key?(:'versions_href')
|
98
102
|
self.versions_href = attributes[:'versions_href']
|
99
103
|
end
|
100
104
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
105
|
+
if attributes.key?(:'description')
|
106
|
+
self.description = attributes[:'description']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_href')
|
110
|
+
self.pulp_href = attributes[:'pulp_href']
|
107
111
|
end
|
108
112
|
|
109
113
|
if attributes.key?(:'pulp_created')
|
110
114
|
self.pulp_created = attributes[:'pulp_created']
|
111
115
|
end
|
112
116
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.key?(:'description')
|
118
|
-
self.description = attributes[:'description']
|
117
|
+
if attributes.key?(:'name')
|
118
|
+
self.name = attributes[:'name']
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -123,12 +123,12 @@ 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
|
-
if
|
131
|
-
invalid_properties.push('invalid value for "
|
130
|
+
if @name.nil?
|
131
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
132
132
|
end
|
133
133
|
|
134
134
|
invalid_properties
|
@@ -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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
140
141
|
return false if @name.nil?
|
141
|
-
return false if !@retained_versions.nil? && @retained_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,14 +157,14 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
pulp_labels == o.pulp_labels &&
|
161
160
|
latest_version_href == o.latest_version_href &&
|
161
|
+
pulp_labels == o.pulp_labels &&
|
162
|
+
retain_repo_versions == o.retain_repo_versions &&
|
162
163
|
versions_href == o.versions_href &&
|
164
|
+
description == o.description &&
|
163
165
|
pulp_href == o.pulp_href &&
|
164
|
-
name == o.name &&
|
165
166
|
pulp_created == o.pulp_created &&
|
166
|
-
|
167
|
-
description == o.description
|
167
|
+
name == o.name
|
168
168
|
end
|
169
169
|
|
170
170
|
# @see the `==` method
|
@@ -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
|
-
[pulp_labels,
|
179
|
+
[latest_version_href, pulp_labels, retain_repo_versions, versions_href, description, pulp_href, pulp_created, name].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
|
@@ -15,13 +15,13 @@ 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
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
|
-
# The
|
24
|
-
attr_accessor :
|
23
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
|
+
attr_accessor :base_path
|
25
25
|
|
26
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
27
|
attr_accessor :name
|
@@ -41,9 +41,9 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'base_path' => :'base_path',
|
45
|
-
:'pulp_labels' => :'pulp_labels',
|
46
44
|
:'repository' => :'repository',
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
46
|
+
:'base_path' => :'base_path',
|
47
47
|
:'name' => :'name',
|
48
48
|
:'content_guard' => :'content_guard',
|
49
49
|
:'repository_version' => :'repository_version',
|
@@ -55,9 +55,9 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'pulp_labels' => :'Object',
|
60
58
|
:'repository' => :'String',
|
59
|
+
:'pulp_labels' => :'Object',
|
60
|
+
:'base_path' => :'String',
|
61
61
|
:'name' => :'String',
|
62
62
|
:'content_guard' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
@@ -90,16 +90,16 @@ 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
95
|
end
|
96
96
|
|
97
97
|
if attributes.key?(:'pulp_labels')
|
98
98
|
self.pulp_labels = attributes[:'pulp_labels']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'base_path')
|
102
|
+
self.base_path = attributes[:'base_path']
|
103
103
|
end
|
104
104
|
|
105
105
|
if attributes.key?(:'name')
|
@@ -141,9 +141,9 @@ module PulpContainerClient
|
|
141
141
|
def ==(o)
|
142
142
|
return true if self.equal?(o)
|
143
143
|
self.class == o.class &&
|
144
|
-
base_path == o.base_path &&
|
145
|
-
pulp_labels == o.pulp_labels &&
|
146
144
|
repository == o.repository &&
|
145
|
+
pulp_labels == o.pulp_labels &&
|
146
|
+
base_path == o.base_path &&
|
147
147
|
name == o.name &&
|
148
148
|
content_guard == o.content_guard &&
|
149
149
|
repository_version == o.repository_version &&
|
@@ -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, base_path, name, content_guard, repository_version, private, description].hash
|
164
164
|
end
|
165
165
|
|
166
166
|
# Builds the object from hash
|
@@ -17,22 +17,22 @@ module PulpContainerClient
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
18
|
attr_accessor :pulp_labels
|
19
19
|
|
20
|
-
# A unique name for this repository.
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
20
|
# 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.
|
24
|
-
attr_accessor :
|
21
|
+
attr_accessor :retain_repo_versions
|
25
22
|
|
26
23
|
# An optional description.
|
27
24
|
attr_accessor :description
|
28
25
|
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
32
|
:'pulp_labels' => :'pulp_labels',
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'
|
33
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
34
|
+
:'description' => :'description',
|
35
|
+
:'name' => :'name'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -40,17 +40,17 @@ module PulpContainerClient
|
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
42
|
:'pulp_labels' => :'Object',
|
43
|
-
:'
|
44
|
-
:'
|
45
|
-
:'
|
43
|
+
:'retain_repo_versions' => :'Integer',
|
44
|
+
:'description' => :'String',
|
45
|
+
:'name' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
-
:'
|
53
|
-
:'description'
|
52
|
+
:'retain_repo_versions',
|
53
|
+
:'description',
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -73,25 +73,25 @@ module PulpContainerClient
|
|
73
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
74
74
|
end
|
75
75
|
|
76
|
-
if attributes.key?(:'
|
77
|
-
self.
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'retained_versions')
|
81
|
-
self.retained_versions = attributes[:'retained_versions']
|
76
|
+
if attributes.key?(:'retain_repo_versions')
|
77
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
82
78
|
end
|
83
79
|
|
84
80
|
if attributes.key?(:'description')
|
85
81
|
self.description = attributes[:'description']
|
86
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
|
+
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
invalid_properties
|
@@ -100,18 +100,18 @@ module PulpContainerClient
|
|
100
100
|
# Check to see if the all the properties in the model are valid
|
101
101
|
# @return true if the model is valid
|
102
102
|
def valid?
|
103
|
-
return false if !@
|
103
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
104
|
true
|
105
105
|
end
|
106
106
|
|
107
107
|
# Custom attribute writer method with validation
|
108
|
-
# @param [Object]
|
109
|
-
def
|
110
|
-
if !
|
111
|
-
fail ArgumentError, 'invalid value for "
|
108
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
109
|
+
def retain_repo_versions=(retain_repo_versions)
|
110
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
111
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
112
112
|
end
|
113
113
|
|
114
|
-
@
|
114
|
+
@retain_repo_versions = retain_repo_versions
|
115
115
|
end
|
116
116
|
|
117
117
|
# Checks equality by comparing each attribute.
|
@@ -120,9 +120,9 @@ module PulpContainerClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
pulp_labels == o.pulp_labels &&
|
123
|
-
|
124
|
-
|
125
|
-
|
123
|
+
retain_repo_versions == o.retain_repo_versions &&
|
124
|
+
description == o.description &&
|
125
|
+
name == o.name
|
126
126
|
end
|
127
127
|
|
128
128
|
# @see the `==` method
|
@@ -134,7 +134,7 @@ module PulpContainerClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[pulp_labels,
|
137
|
+
[pulp_labels, retain_repo_versions, description, name].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|