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