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