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