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