pulp_container_client 2.8.0 → 2.8.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 +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRepository.md +3 -3
- data/docs/ContainerContainerRepositoryResponse.md +3 -3
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRepository.md +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +17 -17
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +27 -27
- data/lib/pulp_container_client/models/container_container_push_repository.rb +36 -36
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_repository.rb +17 -16
- data/lib/pulp_container_client/models/container_container_repository_response.rb +17 -16
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +17 -17
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +17 -16
- 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 +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- metadata +42 -42
@@ -15,42 +15,42 @@ 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 unique name for this repository.
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
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.
|
24
|
-
attr_accessor :
|
19
|
+
attr_accessor :retain_repo_versions
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
25
22
|
|
26
23
|
# An optional description.
|
27
24
|
attr_accessor :description
|
28
25
|
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
32
33
|
:'pulp_labels' => :'pulp_labels',
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'description' => :'description'
|
34
|
+
:'description' => :'description',
|
35
|
+
:'name' => :'name'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'retain_repo_versions' => :'Integer',
|
42
43
|
:'pulp_labels' => :'Object',
|
43
|
-
:'
|
44
|
-
:'
|
45
|
-
:'description' => :'String'
|
44
|
+
:'description' => :'String',
|
45
|
+
:'name' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
-
:'
|
53
|
-
:'description'
|
52
|
+
:'retain_repo_versions',
|
53
|
+
:'description',
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,33 +69,33 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.key?(:'name')
|
77
|
-
self.name = attributes[:'name']
|
72
|
+
if attributes.key?(:'retain_repo_versions')
|
73
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
78
74
|
end
|
79
75
|
|
80
|
-
if attributes.key?(:'
|
81
|
-
self.
|
76
|
+
if attributes.key?(:'pulp_labels')
|
77
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
82
78
|
end
|
83
79
|
|
84
80
|
if attributes.key?(:'description')
|
85
81
|
self.description = attributes[:'description']
|
86
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
|
+
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
-
if
|
94
|
-
invalid_properties.push('invalid value for "
|
93
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
94
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
|
-
if
|
98
|
-
invalid_properties.push('invalid value for "
|
97
|
+
if @name.nil?
|
98
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
99
|
end
|
100
100
|
|
101
101
|
invalid_properties
|
@@ -104,19 +104,19 @@ module PulpContainerClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
107
108
|
return false if @name.nil?
|
108
|
-
return false if !@retained_versions.nil? && @retained_versions < 1
|
109
109
|
true
|
110
110
|
end
|
111
111
|
|
112
112
|
# Custom attribute writer method with validation
|
113
|
-
# @param [Object]
|
114
|
-
def
|
115
|
-
if !
|
116
|
-
fail ArgumentError, 'invalid value for "
|
113
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
114
|
+
def retain_repo_versions=(retain_repo_versions)
|
115
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
116
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
117
117
|
end
|
118
118
|
|
119
|
-
@
|
119
|
+
@retain_repo_versions = retain_repo_versions
|
120
120
|
end
|
121
121
|
|
122
122
|
# Checks equality by comparing each attribute.
|
@@ -124,10 +124,10 @@ module PulpContainerClient
|
|
124
124
|
def ==(o)
|
125
125
|
return true if self.equal?(o)
|
126
126
|
self.class == o.class &&
|
127
|
+
retain_repo_versions == o.retain_repo_versions &&
|
127
128
|
pulp_labels == o.pulp_labels &&
|
128
|
-
|
129
|
-
|
130
|
-
description == o.description
|
129
|
+
description == o.description &&
|
130
|
+
name == o.name
|
131
131
|
end
|
132
132
|
|
133
133
|
# @see the `==` method
|
@@ -139,7 +139,7 @@ module PulpContainerClient
|
|
139
139
|
# Calculates hash code according to all attributes.
|
140
140
|
# @return [Integer] Hash code
|
141
141
|
def hash
|
142
|
-
[
|
142
|
+
[retain_repo_versions, pulp_labels, description, name].hash
|
143
143
|
end
|
144
144
|
|
145
145
|
# Builds the object from hash
|
@@ -15,59 +15,59 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
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
|
+
|
18
21
|
attr_accessor :pulp_labels
|
19
22
|
|
20
|
-
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
21
25
|
|
22
|
-
|
26
|
+
# Timestamp of creation.
|
27
|
+
attr_accessor :pulp_created
|
28
|
+
|
29
|
+
attr_accessor :latest_version_href
|
23
30
|
|
24
31
|
attr_accessor :pulp_href
|
25
32
|
|
33
|
+
attr_accessor :versions_href
|
34
|
+
|
26
35
|
# A unique name for this repository.
|
27
36
|
attr_accessor :name
|
28
37
|
|
29
|
-
# Timestamp of creation.
|
30
|
-
attr_accessor :pulp_created
|
31
|
-
|
32
|
-
# 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.
|
33
|
-
attr_accessor :retained_versions
|
34
|
-
|
35
|
-
# An optional description.
|
36
|
-
attr_accessor :description
|
37
|
-
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
41
42
|
:'pulp_labels' => :'pulp_labels',
|
43
|
+
:'description' => :'description',
|
44
|
+
:'pulp_created' => :'pulp_created',
|
42
45
|
:'latest_version_href' => :'latest_version_href',
|
43
|
-
:'versions_href' => :'versions_href',
|
44
46
|
:'pulp_href' => :'pulp_href',
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'retained_versions' => :'retained_versions',
|
48
|
-
:'description' => :'description'
|
47
|
+
:'versions_href' => :'versions_href',
|
48
|
+
:'name' => :'name'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
+
:'retain_repo_versions' => :'Integer',
|
55
56
|
:'pulp_labels' => :'Object',
|
57
|
+
:'description' => :'String',
|
58
|
+
:'pulp_created' => :'DateTime',
|
56
59
|
:'latest_version_href' => :'String',
|
57
|
-
:'versions_href' => :'String',
|
58
60
|
:'pulp_href' => :'String',
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'retained_versions' => :'Integer',
|
62
|
-
:'description' => :'String'
|
61
|
+
:'versions_href' => :'String',
|
62
|
+
:'name' => :'String'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
66
|
# List of attributes with nullable: true
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
|
-
:'
|
70
|
-
:'description'
|
69
|
+
:'retain_repo_versions',
|
70
|
+
:'description',
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,36 +86,36 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'retain_repo_versions')
|
90
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'pulp_labels')
|
94
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
97
|
+
if attributes.key?(:'description')
|
98
|
+
self.description = attributes[:'description']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'pulp_created')
|
102
|
+
self.pulp_created = attributes[:'pulp_created']
|
103
103
|
end
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'latest_version_href')
|
106
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_href')
|
110
|
+
self.pulp_href = attributes[:'pulp_href']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'versions_href')
|
114
|
+
self.versions_href = attributes[:'versions_href']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'name')
|
118
|
+
self.name = attributes[:'name']
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -123,12 +123,12 @@ module PulpContainerClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
-
if
|
127
|
-
invalid_properties.push('invalid value for "
|
126
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
127
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
128
128
|
end
|
129
129
|
|
130
|
-
if
|
131
|
-
invalid_properties.push('invalid value for "
|
130
|
+
if @name.nil?
|
131
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
132
132
|
end
|
133
133
|
|
134
134
|
invalid_properties
|
@@ -137,19 +137,19 @@ module PulpContainerClient
|
|
137
137
|
# Check to see if the all the properties in the model are valid
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
140
141
|
return false if @name.nil?
|
141
|
-
return false if !@retained_versions.nil? && @retained_versions < 1
|
142
142
|
true
|
143
143
|
end
|
144
144
|
|
145
145
|
# Custom attribute writer method with validation
|
146
|
-
# @param [Object]
|
147
|
-
def
|
148
|
-
if !
|
149
|
-
fail ArgumentError, 'invalid value for "
|
146
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
147
|
+
def retain_repo_versions=(retain_repo_versions)
|
148
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
149
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
150
150
|
end
|
151
151
|
|
152
|
-
@
|
152
|
+
@retain_repo_versions = retain_repo_versions
|
153
153
|
end
|
154
154
|
|
155
155
|
# Checks equality by comparing each attribute.
|
@@ -157,14 +157,14 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
+
retain_repo_versions == o.retain_repo_versions &&
|
160
161
|
pulp_labels == o.pulp_labels &&
|
162
|
+
description == o.description &&
|
163
|
+
pulp_created == o.pulp_created &&
|
161
164
|
latest_version_href == o.latest_version_href &&
|
162
|
-
versions_href == o.versions_href &&
|
163
165
|
pulp_href == o.pulp_href &&
|
164
|
-
|
165
|
-
|
166
|
-
retained_versions == o.retained_versions &&
|
167
|
-
description == o.description
|
166
|
+
versions_href == o.versions_href &&
|
167
|
+
name == o.name
|
168
168
|
end
|
169
169
|
|
170
170
|
# @see the `==` method
|
@@ -176,7 +176,7 @@ module PulpContainerClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[
|
179
|
+
[retain_repo_versions, pulp_labels, description, pulp_created, latest_version_href, pulp_href, versions_href, name].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -24,8 +24,9 @@ module PulpContainerClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
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.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +35,7 @@ module PulpContainerClient
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
35
36
|
:'name' => :'name',
|
36
37
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'remote' => :'remote'
|
39
40
|
}
|
40
41
|
end
|
@@ -45,7 +46,7 @@ module PulpContainerClient
|
|
45
46
|
:'pulp_labels' => :'Object',
|
46
47
|
:'name' => :'String',
|
47
48
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
49
50
|
:'remote' => :'String'
|
50
51
|
}
|
51
52
|
end
|
@@ -54,7 +55,7 @@ module PulpContainerClient
|
|
54
55
|
def self.openapi_nullable
|
55
56
|
Set.new([
|
56
57
|
:'description',
|
57
|
-
:'
|
58
|
+
:'retain_repo_versions',
|
58
59
|
:'remote'
|
59
60
|
])
|
60
61
|
end
|
@@ -86,8 +87,8 @@ module PulpContainerClient
|
|
86
87
|
self.description = attributes[:'description']
|
87
88
|
end
|
88
89
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'remote')
|
@@ -103,8 +104,8 @@ module PulpContainerClient
|
|
103
104
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
104
105
|
end
|
105
106
|
|
106
|
-
if !@
|
107
|
-
invalid_properties.push('invalid value for "
|
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.')
|
108
109
|
end
|
109
110
|
|
110
111
|
invalid_properties
|
@@ -114,18 +115,18 @@ module PulpContainerClient
|
|
114
115
|
# @return true if the model is valid
|
115
116
|
def valid?
|
116
117
|
return false if @name.nil?
|
117
|
-
return false if !@
|
118
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
118
119
|
true
|
119
120
|
end
|
120
121
|
|
121
122
|
# Custom attribute writer method with validation
|
122
|
-
# @param [Object]
|
123
|
-
def
|
124
|
-
if !
|
125
|
-
fail ArgumentError, 'invalid value for "
|
123
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
124
|
+
def retain_repo_versions=(retain_repo_versions)
|
125
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
126
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
126
127
|
end
|
127
128
|
|
128
|
-
@
|
129
|
+
@retain_repo_versions = retain_repo_versions
|
129
130
|
end
|
130
131
|
|
131
132
|
# Checks equality by comparing each attribute.
|
@@ -136,7 +137,7 @@ module PulpContainerClient
|
|
136
137
|
pulp_labels == o.pulp_labels &&
|
137
138
|
name == o.name &&
|
138
139
|
description == o.description &&
|
139
|
-
|
140
|
+
retain_repo_versions == o.retain_repo_versions &&
|
140
141
|
remote == o.remote
|
141
142
|
end
|
142
143
|
|
@@ -149,7 +150,7 @@ module PulpContainerClient
|
|
149
150
|
# Calculates hash code according to all attributes.
|
150
151
|
# @return [Integer] Hash code
|
151
152
|
def hash
|
152
|
-
[pulp_labels, name, description,
|
153
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
153
154
|
end
|
154
155
|
|
155
156
|
# Builds the object from hash
|