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