pulp_container_client 2.10.7 → 2.10.8
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +5 -5
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +2 -2
@@ -15,42 +15,42 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
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 :retain_repo_versions
|
20
|
-
|
21
|
-
# An optional description.
|
22
|
-
attr_accessor :description
|
23
|
-
|
24
18
|
attr_accessor :pulp_labels
|
25
19
|
|
26
20
|
# A unique name for this repository.
|
27
21
|
attr_accessor :name
|
28
22
|
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
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 :retain_repo_versions
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
33
|
-
:'description' => :'description',
|
34
32
|
:'pulp_labels' => :'pulp_labels',
|
35
|
-
:'name' => :'name'
|
33
|
+
:'name' => :'name',
|
34
|
+
:'description' => :'description',
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'retain_repo_versions' => :'Integer',
|
43
|
-
:'description' => :'String',
|
44
42
|
:'pulp_labels' => :'Object',
|
45
|
-
:'name' => :'String'
|
43
|
+
:'name' => :'String',
|
44
|
+
:'description' => :'String',
|
45
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
-
:'retain_repo_versions',
|
53
52
|
:'description',
|
53
|
+
:'retain_repo_versions'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,14 +69,6 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'retain_repo_versions')
|
73
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.key?(:'description')
|
77
|
-
self.description = attributes[:'description']
|
78
|
-
end
|
79
|
-
|
80
72
|
if attributes.key?(:'pulp_labels')
|
81
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
82
74
|
end
|
@@ -84,20 +76,20 @@ module PulpContainerClient
|
|
84
76
|
if attributes.key?(:'name')
|
85
77
|
self.name = attributes[:'name']
|
86
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'description')
|
81
|
+
self.description = attributes[:'description']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
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 !@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
|
-
end
|
96
|
-
|
97
|
-
if !@description.nil? && @description.to_s.length < 1
|
98
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
99
|
-
end
|
100
|
-
|
101
93
|
if @name.nil?
|
102
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
103
95
|
end
|
@@ -106,27 +98,39 @@ module PulpContainerClient
|
|
106
98
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
99
|
end
|
108
100
|
|
101
|
+
if !@description.nil? && @description.to_s.length < 1
|
102
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
109
109
|
invalid_properties
|
110
110
|
end
|
111
111
|
|
112
112
|
# Check to see if the all the properties in the model are valid
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
116
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
117
115
|
return false if @name.nil?
|
118
116
|
return false if @name.to_s.length < 1
|
117
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
118
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
119
119
|
true
|
120
120
|
end
|
121
121
|
|
122
122
|
# Custom attribute writer method with validation
|
123
|
-
# @param [Object]
|
124
|
-
def
|
125
|
-
if
|
126
|
-
fail ArgumentError, '
|
123
|
+
# @param [Object] name Value to be assigned
|
124
|
+
def name=(name)
|
125
|
+
if name.nil?
|
126
|
+
fail ArgumentError, 'name cannot be nil'
|
127
127
|
end
|
128
128
|
|
129
|
-
|
129
|
+
if name.to_s.length < 1
|
130
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
131
|
+
end
|
132
|
+
|
133
|
+
@name = name
|
130
134
|
end
|
131
135
|
|
132
136
|
# Custom attribute writer method with validation
|
@@ -140,17 +144,13 @@ module PulpContainerClient
|
|
140
144
|
end
|
141
145
|
|
142
146
|
# Custom attribute writer method with validation
|
143
|
-
# @param [Object]
|
144
|
-
def
|
145
|
-
if
|
146
|
-
fail ArgumentError, '
|
147
|
-
end
|
148
|
-
|
149
|
-
if name.to_s.length < 1
|
150
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
147
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
148
|
+
def retain_repo_versions=(retain_repo_versions)
|
149
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
150
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
151
151
|
end
|
152
152
|
|
153
|
-
@
|
153
|
+
@retain_repo_versions = retain_repo_versions
|
154
154
|
end
|
155
155
|
|
156
156
|
# Checks equality by comparing each attribute.
|
@@ -158,10 +158,10 @@ module PulpContainerClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
-
retain_repo_versions == o.retain_repo_versions &&
|
162
|
-
description == o.description &&
|
163
161
|
pulp_labels == o.pulp_labels &&
|
164
|
-
name == o.name
|
162
|
+
name == o.name &&
|
163
|
+
description == o.description &&
|
164
|
+
retain_repo_versions == o.retain_repo_versions
|
165
165
|
end
|
166
166
|
|
167
167
|
# @see the `==` method
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
173
173
|
# Calculates hash code according to all attributes.
|
174
174
|
# @return [Integer] Hash code
|
175
175
|
def hash
|
176
|
-
[
|
176
|
+
[pulp_labels, name, description, retain_repo_versions].hash
|
177
177
|
end
|
178
178
|
|
179
179
|
# Builds the object from hash
|
@@ -15,59 +15,59 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :
|
19
|
-
|
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.
|
21
|
-
attr_accessor :retain_repo_versions
|
18
|
+
attr_accessor :pulp_labels
|
22
19
|
|
23
|
-
attr_accessor :
|
20
|
+
attr_accessor :pulp_href
|
24
21
|
|
25
|
-
|
22
|
+
# A unique name for this repository.
|
23
|
+
attr_accessor :name
|
26
24
|
|
27
25
|
# An optional description.
|
28
26
|
attr_accessor :description
|
29
27
|
|
30
|
-
|
31
|
-
|
32
|
-
# A unique name for this repository.
|
33
|
-
attr_accessor :name
|
28
|
+
# 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.
|
29
|
+
attr_accessor :retain_repo_versions
|
34
30
|
|
35
31
|
# Timestamp of creation.
|
36
32
|
attr_accessor :pulp_created
|
37
33
|
|
34
|
+
attr_accessor :latest_version_href
|
35
|
+
|
36
|
+
attr_accessor :versions_href
|
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',
|
41
42
|
:'pulp_href' => :'pulp_href',
|
43
|
+
:'name' => :'name',
|
44
|
+
:'description' => :'description',
|
42
45
|
:'retain_repo_versions' => :'retain_repo_versions',
|
43
|
-
:'
|
46
|
+
:'pulp_created' => :'pulp_created',
|
44
47
|
:'latest_version_href' => :'latest_version_href',
|
45
|
-
:'
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
|
-
:'name' => :'name',
|
48
|
-
:'pulp_created' => :'pulp_created'
|
48
|
+
:'versions_href' => :'versions_href'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
+
:'pulp_labels' => :'Object',
|
55
56
|
:'pulp_href' => :'String',
|
57
|
+
:'name' => :'String',
|
58
|
+
:'description' => :'String',
|
56
59
|
:'retain_repo_versions' => :'Integer',
|
57
|
-
:'
|
60
|
+
:'pulp_created' => :'DateTime',
|
58
61
|
:'latest_version_href' => :'String',
|
59
|
-
:'
|
60
|
-
:'pulp_labels' => :'Object',
|
61
|
-
:'name' => :'String',
|
62
|
-
:'pulp_created' => :'DateTime'
|
62
|
+
:'versions_href' => :'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
|
-
:'retain_repo_versions',
|
70
69
|
:'description',
|
70
|
+
:'retain_repo_versions',
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,59 +86,59 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'retain_repo_versions')
|
94
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
89
|
+
if attributes.key?(:'pulp_labels')
|
90
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
93
|
+
if attributes.key?(:'pulp_href')
|
94
|
+
self.pulp_href = attributes[:'pulp_href']
|
99
95
|
end
|
100
96
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
97
|
+
if attributes.key?(:'name')
|
98
|
+
self.name = attributes[:'name']
|
103
99
|
end
|
104
100
|
|
105
101
|
if attributes.key?(:'description')
|
106
102
|
self.description = attributes[:'description']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'name')
|
114
|
-
self.name = attributes[:'name']
|
105
|
+
if attributes.key?(:'retain_repo_versions')
|
106
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
115
107
|
end
|
116
108
|
|
117
109
|
if attributes.key?(:'pulp_created')
|
118
110
|
self.pulp_created = attributes[:'pulp_created']
|
119
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'latest_version_href')
|
114
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'versions_href')
|
118
|
+
self.versions_href = attributes[:'versions_href']
|
119
|
+
end
|
120
120
|
end
|
121
121
|
|
122
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
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
|
-
end
|
129
|
-
|
130
126
|
if @name.nil?
|
131
127
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
132
128
|
end
|
133
129
|
|
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
|
+
end
|
133
|
+
|
134
134
|
invalid_properties
|
135
135
|
end
|
136
136
|
|
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
|
141
140
|
return false if @name.nil?
|
141
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
142
142
|
true
|
143
143
|
end
|
144
144
|
|
@@ -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 &&
|
160
161
|
pulp_href == o.pulp_href &&
|
162
|
+
name == o.name &&
|
163
|
+
description == o.description &&
|
161
164
|
retain_repo_versions == o.retain_repo_versions &&
|
162
|
-
|
165
|
+
pulp_created == o.pulp_created &&
|
163
166
|
latest_version_href == o.latest_version_href &&
|
164
|
-
|
165
|
-
pulp_labels == o.pulp_labels &&
|
166
|
-
name == o.name &&
|
167
|
-
pulp_created == o.pulp_created
|
167
|
+
versions_href == o.versions_href
|
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
|
-
[
|
179
|
+
[pulp_labels, pulp_href, name, description, retain_repo_versions, pulp_created, latest_version_href, versions_href].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
|
19
|
-
attr_accessor :base_path
|
18
|
+
attr_accessor :pulp_labels
|
20
19
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
23
22
|
|
24
|
-
|
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
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -41,11 +41,11 @@ 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
|
-
:'repository' => :'repository',
|
46
44
|
:'pulp_labels' => :'pulp_labels',
|
47
|
-
:'name' => :'name',
|
48
45
|
:'content_guard' => :'content_guard',
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'name' => :'name',
|
48
|
+
:'repository' => :'repository',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'repository' => :'String',
|
60
58
|
:'pulp_labels' => :'Object',
|
61
|
-
:'name' => :'String',
|
62
59
|
:'content_guard' => :'String',
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,24 +90,24 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'pulp_labels')
|
94
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
97
|
+
if attributes.key?(:'content_guard')
|
98
|
+
self.content_guard = attributes[:'content_guard']
|
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')
|
106
106
|
self.name = attributes[:'name']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'repository')
|
110
|
+
self.repository = attributes[:'repository']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'repository_version')
|
@@ -186,11 +186,11 @@ 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
|
-
repository == o.repository &&
|
191
189
|
pulp_labels == o.pulp_labels &&
|
192
|
-
name == o.name &&
|
193
190
|
content_guard == o.content_guard &&
|
191
|
+
base_path == o.base_path &&
|
192
|
+
name == o.name &&
|
193
|
+
repository == o.repository &&
|
194
194
|
repository_version == o.repository_version &&
|
195
195
|
private == o.private &&
|
196
196
|
description == o.description
|
@@ -205,7 +205,7 @@ module PulpContainerClient
|
|
205
205
|
# Calculates hash code according to all attributes.
|
206
206
|
# @return [Integer] Hash code
|
207
207
|
def hash
|
208
|
-
[
|
208
|
+
[pulp_labels, content_guard, base_path, name, repository, repository_version, private, description].hash
|
209
209
|
end
|
210
210
|
|
211
211
|
# Builds the object from hash
|
@@ -15,42 +15,42 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
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 :retain_repo_versions
|
20
|
-
|
21
|
-
# An optional description.
|
22
|
-
attr_accessor :description
|
23
|
-
|
24
18
|
attr_accessor :pulp_labels
|
25
19
|
|
26
20
|
# A unique name for this repository.
|
27
21
|
attr_accessor :name
|
28
22
|
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
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 :retain_repo_versions
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
33
|
-
:'description' => :'description',
|
34
32
|
:'pulp_labels' => :'pulp_labels',
|
35
|
-
:'name' => :'name'
|
33
|
+
:'name' => :'name',
|
34
|
+
:'description' => :'description',
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'retain_repo_versions' => :'Integer',
|
43
|
-
:'description' => :'String',
|
44
42
|
:'pulp_labels' => :'Object',
|
45
|
-
:'name' => :'String'
|
43
|
+
:'name' => :'String',
|
44
|
+
:'description' => :'String',
|
45
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
-
:'retain_repo_versions',
|
53
52
|
:'description',
|
53
|
+
:'retain_repo_versions'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,14 +69,6 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'retain_repo_versions')
|
73
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.key?(:'description')
|
77
|
-
self.description = attributes[:'description']
|
78
|
-
end
|
79
|
-
|
80
72
|
if attributes.key?(:'pulp_labels')
|
81
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
82
74
|
end
|
@@ -84,22 +76,30 @@ module PulpContainerClient
|
|
84
76
|
if attributes.key?(:'name')
|
85
77
|
self.name = attributes[:'name']
|
86
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'description')
|
81
|
+
self.description = attributes[:'description']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
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 !@name.nil? && @name.to_s.length < 1
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
97
|
if !@description.nil? && @description.to_s.length < 1
|
98
98
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
99
99
|
end
|
100
100
|
|
101
|
-
if !@
|
102
|
-
invalid_properties.push('invalid value for "
|
101
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
102
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
103
103
|
end
|
104
104
|
|
105
105
|
invalid_properties
|
@@ -108,20 +108,20 @@ module PulpContainerClient
|
|
108
108
|
# Check to see if the all the properties in the model are valid
|
109
109
|
# @return true if the model is valid
|
110
110
|
def valid?
|
111
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
112
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
113
111
|
return false if !@name.nil? && @name.to_s.length < 1
|
112
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
113
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
114
|
true
|
115
115
|
end
|
116
116
|
|
117
117
|
# Custom attribute writer method with validation
|
118
|
-
# @param [Object]
|
119
|
-
def
|
120
|
-
if !
|
121
|
-
fail ArgumentError, 'invalid value for "
|
118
|
+
# @param [Object] name Value to be assigned
|
119
|
+
def name=(name)
|
120
|
+
if !name.nil? && name.to_s.length < 1
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
122
122
|
end
|
123
123
|
|
124
|
-
@
|
124
|
+
@name = name
|
125
125
|
end
|
126
126
|
|
127
127
|
# Custom attribute writer method with validation
|
@@ -135,13 +135,13 @@ module PulpContainerClient
|
|
135
135
|
end
|
136
136
|
|
137
137
|
# Custom attribute writer method with validation
|
138
|
-
# @param [Object]
|
139
|
-
def
|
140
|
-
if !
|
141
|
-
fail ArgumentError, 'invalid value for "
|
138
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
139
|
+
def retain_repo_versions=(retain_repo_versions)
|
140
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
141
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
142
142
|
end
|
143
143
|
|
144
|
-
@
|
144
|
+
@retain_repo_versions = retain_repo_versions
|
145
145
|
end
|
146
146
|
|
147
147
|
# Checks equality by comparing each attribute.
|
@@ -149,10 +149,10 @@ module PulpContainerClient
|
|
149
149
|
def ==(o)
|
150
150
|
return true if self.equal?(o)
|
151
151
|
self.class == o.class &&
|
152
|
-
retain_repo_versions == o.retain_repo_versions &&
|
153
|
-
description == o.description &&
|
154
152
|
pulp_labels == o.pulp_labels &&
|
155
|
-
name == o.name
|
153
|
+
name == o.name &&
|
154
|
+
description == o.description &&
|
155
|
+
retain_repo_versions == o.retain_repo_versions
|
156
156
|
end
|
157
157
|
|
158
158
|
# @see the `==` method
|
@@ -164,7 +164,7 @@ module PulpContainerClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[
|
167
|
+
[pulp_labels, name, description, retain_repo_versions].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|