pulp_container_client 2.26.14 → 2.26.15
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 +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +56 -56
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +48 -48
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- 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_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +59 -59
|
@@ -16,28 +16,28 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
# An optional description.
|
|
20
|
-
attr_accessor :description
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
19
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
20
|
attr_accessor :retain_repo_versions
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :name
|
|
22
|
+
attr_accessor :pulp_labels
|
|
29
23
|
|
|
30
24
|
# A reference to an associated signing service.
|
|
31
25
|
attr_accessor :manifest_signing_service
|
|
32
26
|
|
|
27
|
+
# An optional description.
|
|
28
|
+
attr_accessor :description
|
|
29
|
+
|
|
30
|
+
# A unique name for this repository.
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
-
:'description' => :'description',
|
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
|
38
36
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'
|
|
40
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
+
:'description' => :'description',
|
|
40
|
+
:'name' => :'name'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
|
49
49
|
# Attribute type mapping.
|
|
50
50
|
def self.openapi_types
|
|
51
51
|
{
|
|
52
|
-
:'description' => :'String',
|
|
53
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
54
52
|
:'retain_repo_versions' => :'Integer',
|
|
55
|
-
:'
|
|
56
|
-
:'manifest_signing_service' => :'String'
|
|
53
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
54
|
+
:'manifest_signing_service' => :'String',
|
|
55
|
+
:'description' => :'String',
|
|
56
|
+
:'name' => :'String'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# List of attributes with nullable: true
|
|
61
61
|
def self.openapi_nullable
|
|
62
62
|
Set.new([
|
|
63
|
-
:'description',
|
|
64
63
|
:'retain_repo_versions',
|
|
65
|
-
:'manifest_signing_service'
|
|
64
|
+
:'manifest_signing_service',
|
|
65
|
+
:'description',
|
|
66
66
|
])
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -81,8 +81,8 @@ module PulpContainerClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
if attributes.key?(:'pulp_labels')
|
|
@@ -91,8 +91,12 @@ module PulpContainerClient
|
|
|
91
91
|
end
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
94
|
+
if attributes.key?(:'manifest_signing_service')
|
|
95
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'description')
|
|
99
|
+
self.description = attributes[:'description']
|
|
96
100
|
end
|
|
97
101
|
|
|
98
102
|
if attributes.key?(:'name')
|
|
@@ -100,10 +104,6 @@ module PulpContainerClient
|
|
|
100
104
|
else
|
|
101
105
|
self.name = nil
|
|
102
106
|
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'manifest_signing_service')
|
|
105
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
106
|
-
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -165,11 +165,11 @@ module PulpContainerClient
|
|
|
165
165
|
def ==(o)
|
|
166
166
|
return true if self.equal?(o)
|
|
167
167
|
self.class == o.class &&
|
|
168
|
-
description == o.description &&
|
|
169
|
-
pulp_labels == o.pulp_labels &&
|
|
170
168
|
retain_repo_versions == o.retain_repo_versions &&
|
|
171
|
-
|
|
172
|
-
manifest_signing_service == o.manifest_signing_service
|
|
169
|
+
pulp_labels == o.pulp_labels &&
|
|
170
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
171
|
+
description == o.description &&
|
|
172
|
+
name == o.name
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
# @see the `==` method
|
|
@@ -181,7 +181,7 @@ module PulpContainerClient
|
|
|
181
181
|
# Calculates hash code according to all attributes.
|
|
182
182
|
# @return [Integer] Hash code
|
|
183
183
|
def hash
|
|
184
|
-
[
|
|
184
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, description, name].hash
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
# Builds the object from hash
|
|
@@ -16,49 +16,49 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
# An optional description.
|
|
20
|
-
attr_accessor :description
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_href
|
|
23
|
-
|
|
24
|
-
attr_accessor :latest_version_href
|
|
25
|
-
|
|
26
19
|
attr_accessor :versions_href
|
|
27
20
|
|
|
21
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
22
|
+
attr_accessor :retain_repo_versions
|
|
23
|
+
|
|
28
24
|
# The Pulp Resource Name (PRN).
|
|
29
25
|
attr_accessor :prn
|
|
30
26
|
|
|
31
27
|
attr_accessor :pulp_labels
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :retain_repo_versions
|
|
29
|
+
attr_accessor :latest_version_href
|
|
35
30
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
31
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
32
|
+
attr_accessor :pulp_last_updated
|
|
38
33
|
|
|
39
34
|
# A reference to an associated signing service.
|
|
40
35
|
attr_accessor :manifest_signing_service
|
|
41
36
|
|
|
42
|
-
#
|
|
43
|
-
attr_accessor :
|
|
37
|
+
# An optional description.
|
|
38
|
+
attr_accessor :description
|
|
39
|
+
|
|
40
|
+
# A unique name for this repository.
|
|
41
|
+
attr_accessor :name
|
|
44
42
|
|
|
45
43
|
# Timestamp of creation.
|
|
46
44
|
attr_accessor :pulp_created
|
|
47
45
|
|
|
46
|
+
attr_accessor :pulp_href
|
|
47
|
+
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
-
:'description' => :'description',
|
|
52
|
-
:'pulp_href' => :'pulp_href',
|
|
53
|
-
:'latest_version_href' => :'latest_version_href',
|
|
54
51
|
:'versions_href' => :'versions_href',
|
|
52
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
55
53
|
:'prn' => :'prn',
|
|
56
54
|
:'pulp_labels' => :'pulp_labels',
|
|
57
|
-
:'
|
|
58
|
-
:'name' => :'name',
|
|
59
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
|
+
:'latest_version_href' => :'latest_version_href',
|
|
60
56
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
61
|
-
:'
|
|
57
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
58
|
+
:'description' => :'description',
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'pulp_created' => :'pulp_created',
|
|
61
|
+
:'pulp_href' => :'pulp_href'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -70,26 +70,26 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'description' => :'String',
|
|
74
|
-
:'pulp_href' => :'String',
|
|
75
|
-
:'latest_version_href' => :'String',
|
|
76
73
|
:'versions_href' => :'String',
|
|
74
|
+
:'retain_repo_versions' => :'Integer',
|
|
77
75
|
:'prn' => :'String',
|
|
78
76
|
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
-
:'
|
|
80
|
-
:'name' => :'String',
|
|
81
|
-
:'manifest_signing_service' => :'String',
|
|
77
|
+
:'latest_version_href' => :'String',
|
|
82
78
|
:'pulp_last_updated' => :'Time',
|
|
83
|
-
:'
|
|
79
|
+
:'manifest_signing_service' => :'String',
|
|
80
|
+
:'description' => :'String',
|
|
81
|
+
:'name' => :'String',
|
|
82
|
+
:'pulp_created' => :'Time',
|
|
83
|
+
:'pulp_href' => :'String'
|
|
84
84
|
}
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# List of attributes with nullable: true
|
|
88
88
|
def self.openapi_nullable
|
|
89
89
|
Set.new([
|
|
90
|
-
:'description',
|
|
91
90
|
:'retain_repo_versions',
|
|
92
91
|
:'manifest_signing_service',
|
|
92
|
+
:'description',
|
|
93
93
|
])
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -108,22 +108,14 @@ module PulpContainerClient
|
|
|
108
108
|
h[k.to_sym] = v
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'description')
|
|
112
|
-
self.description = attributes[:'description']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'pulp_href')
|
|
116
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'latest_version_href')
|
|
120
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
|
121
|
-
end
|
|
122
|
-
|
|
123
111
|
if attributes.key?(:'versions_href')
|
|
124
112
|
self.versions_href = attributes[:'versions_href']
|
|
125
113
|
end
|
|
126
114
|
|
|
115
|
+
if attributes.key?(:'retain_repo_versions')
|
|
116
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
117
|
+
end
|
|
118
|
+
|
|
127
119
|
if attributes.key?(:'prn')
|
|
128
120
|
self.prn = attributes[:'prn']
|
|
129
121
|
end
|
|
@@ -134,27 +126,35 @@ module PulpContainerClient
|
|
|
134
126
|
end
|
|
135
127
|
end
|
|
136
128
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
129
|
+
if attributes.key?(:'latest_version_href')
|
|
130
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
139
131
|
end
|
|
140
132
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
143
|
-
else
|
|
144
|
-
self.name = nil
|
|
133
|
+
if attributes.key?(:'pulp_last_updated')
|
|
134
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
145
135
|
end
|
|
146
136
|
|
|
147
137
|
if attributes.key?(:'manifest_signing_service')
|
|
148
138
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
149
139
|
end
|
|
150
140
|
|
|
151
|
-
if attributes.key?(:'
|
|
152
|
-
self.
|
|
141
|
+
if attributes.key?(:'description')
|
|
142
|
+
self.description = attributes[:'description']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'name')
|
|
146
|
+
self.name = attributes[:'name']
|
|
147
|
+
else
|
|
148
|
+
self.name = nil
|
|
153
149
|
end
|
|
154
150
|
|
|
155
151
|
if attributes.key?(:'pulp_created')
|
|
156
152
|
self.pulp_created = attributes[:'pulp_created']
|
|
157
153
|
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'pulp_href')
|
|
156
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
157
|
+
end
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -182,17 +182,17 @@ module PulpContainerClient
|
|
|
182
182
|
def ==(o)
|
|
183
183
|
return true if self.equal?(o)
|
|
184
184
|
self.class == o.class &&
|
|
185
|
-
description == o.description &&
|
|
186
|
-
pulp_href == o.pulp_href &&
|
|
187
|
-
latest_version_href == o.latest_version_href &&
|
|
188
185
|
versions_href == o.versions_href &&
|
|
186
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
189
187
|
prn == o.prn &&
|
|
190
188
|
pulp_labels == o.pulp_labels &&
|
|
191
|
-
|
|
192
|
-
name == o.name &&
|
|
193
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
189
|
+
latest_version_href == o.latest_version_href &&
|
|
194
190
|
pulp_last_updated == o.pulp_last_updated &&
|
|
195
|
-
|
|
191
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
192
|
+
description == o.description &&
|
|
193
|
+
name == o.name &&
|
|
194
|
+
pulp_created == o.pulp_created &&
|
|
195
|
+
pulp_href == o.pulp_href
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
# @see the `==` method
|
|
@@ -204,7 +204,7 @@ module PulpContainerClient
|
|
|
204
204
|
# Calculates hash code according to all attributes.
|
|
205
205
|
# @return [Integer] Hash code
|
|
206
206
|
def hash
|
|
207
|
-
[
|
|
207
|
+
[versions_href, retain_repo_versions, prn, pulp_labels, latest_version_href, pulp_last_updated, manifest_signing_service, description, name, pulp_created, pulp_href].hash
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
# Builds the object from hash
|
|
@@ -16,22 +16,22 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
20
|
+
attr_accessor :base_path
|
|
21
|
+
|
|
22
|
+
attr_accessor :pulp_labels
|
|
23
|
+
|
|
19
24
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
25
|
attr_accessor :content_guard
|
|
21
26
|
|
|
22
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
23
|
-
attr_accessor :repository
|
|
24
|
-
|
|
25
27
|
# Whether this distribution should be shown in the content app.
|
|
26
28
|
attr_accessor :hidden
|
|
27
29
|
|
|
28
|
-
attr_accessor :pulp_labels
|
|
29
|
-
|
|
30
30
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
31
|
attr_accessor :name
|
|
32
32
|
|
|
33
|
-
# The
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
34
|
+
attr_accessor :repository
|
|
35
35
|
|
|
36
36
|
# RepositoryVersion to be served
|
|
37
37
|
attr_accessor :repository_version
|
|
@@ -45,12 +45,12 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'base_path' => :'base_path',
|
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
|
48
50
|
:'content_guard' => :'content_guard',
|
|
49
|
-
:'repository' => :'repository',
|
|
50
51
|
:'hidden' => :'hidden',
|
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
|
52
52
|
:'name' => :'name',
|
|
53
|
-
:'
|
|
53
|
+
:'repository' => :'repository',
|
|
54
54
|
:'repository_version' => :'repository_version',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
@@ -65,12 +65,12 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
+
:'base_path' => :'String',
|
|
69
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
70
|
:'content_guard' => :'String',
|
|
69
|
-
:'repository' => :'String',
|
|
70
71
|
:'hidden' => :'Boolean',
|
|
71
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
72
72
|
:'name' => :'String',
|
|
73
|
-
:'
|
|
73
|
+
:'repository' => :'String',
|
|
74
74
|
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
@@ -101,12 +101,18 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
104
|
+
if attributes.key?(:'base_path')
|
|
105
|
+
self.base_path = attributes[:'base_path']
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
|
|
108
|
+
if attributes.key?(:'pulp_labels')
|
|
109
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
|
+
self.pulp_labels = value
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'content_guard')
|
|
115
|
+
self.content_guard = attributes[:'content_guard']
|
|
110
116
|
end
|
|
111
117
|
|
|
112
118
|
if attributes.key?(:'hidden')
|
|
@@ -115,18 +121,12 @@ module PulpContainerClient
|
|
|
115
121
|
self.hidden = false
|
|
116
122
|
end
|
|
117
123
|
|
|
118
|
-
if attributes.key?(:'pulp_labels')
|
|
119
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
120
|
-
self.pulp_labels = value
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
|
|
124
124
|
if attributes.key?(:'name')
|
|
125
125
|
self.name = attributes[:'name']
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
128
|
+
if attributes.key?(:'repository')
|
|
129
|
+
self.repository = attributes[:'repository']
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
if attributes.key?(:'repository_version')
|
|
@@ -147,14 +147,14 @@ module PulpContainerClient
|
|
|
147
147
|
def list_invalid_properties
|
|
148
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
149
149
|
invalid_properties = Array.new
|
|
150
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
151
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
150
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
155
151
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
156
152
|
end
|
|
157
153
|
|
|
154
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
155
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
158
|
if !@description.nil? && @description.to_s.length < 1
|
|
159
159
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
160
160
|
end
|
|
@@ -166,26 +166,12 @@ module PulpContainerClient
|
|
|
166
166
|
# @return true if the model is valid
|
|
167
167
|
def valid?
|
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
170
169
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
170
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
171
171
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
# Custom attribute writer method with validation
|
|
176
|
-
# @param [Object] name Value to be assigned
|
|
177
|
-
def name=(name)
|
|
178
|
-
if name.nil?
|
|
179
|
-
fail ArgumentError, 'name cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if name.to_s.length < 1
|
|
183
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
@name = name
|
|
187
|
-
end
|
|
188
|
-
|
|
189
175
|
# Custom attribute writer method with validation
|
|
190
176
|
# @param [Object] base_path Value to be assigned
|
|
191
177
|
def base_path=(base_path)
|
|
@@ -200,6 +186,20 @@ module PulpContainerClient
|
|
|
200
186
|
@base_path = base_path
|
|
201
187
|
end
|
|
202
188
|
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] name Value to be assigned
|
|
191
|
+
def name=(name)
|
|
192
|
+
if name.nil?
|
|
193
|
+
fail ArgumentError, 'name cannot be nil'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if name.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@name = name
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Custom attribute writer method with validation
|
|
204
204
|
# @param [Object] description Value to be assigned
|
|
205
205
|
def description=(description)
|
|
@@ -215,12 +215,12 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
+
base_path == o.base_path &&
|
|
219
|
+
pulp_labels == o.pulp_labels &&
|
|
218
220
|
content_guard == o.content_guard &&
|
|
219
|
-
repository == o.repository &&
|
|
220
221
|
hidden == o.hidden &&
|
|
221
|
-
pulp_labels == o.pulp_labels &&
|
|
222
222
|
name == o.name &&
|
|
223
|
-
|
|
223
|
+
repository == o.repository &&
|
|
224
224
|
repository_version == o.repository_version &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[base_path, pulp_labels, content_guard, hidden, name, repository, repository_version, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|