pulp_container_client 2.29.0 → 2.29.2
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 +8 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/ContainerRepositorySyncURL.md +1 -1
- data/docs/ContentBlobsApi.md +4 -0
- data/docs/ContentManifestsApi.md +4 -0
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/ContentTagsApi.md +4 -0
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +66 -66
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +66 -66
- data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -59
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/nested_role.rb +1 -1
- data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +31 -31
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +2 -0
- data/spec/api/content_manifests_api_spec.rb +2 -0
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/content_tags_api_spec.rb +2 -0
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- 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 +5 -5
- metadata +59 -59
|
@@ -16,14 +16,11 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
# An optional description.
|
|
20
|
-
attr_accessor :description
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
19
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
20
|
attr_accessor :retain_repo_versions
|
|
26
21
|
|
|
22
|
+
attr_accessor :pulp_labels
|
|
23
|
+
|
|
27
24
|
# A unique name for this repository.
|
|
28
25
|
attr_accessor :name
|
|
29
26
|
|
|
@@ -33,15 +30,18 @@ module PulpContainerClient
|
|
|
33
30
|
# A reference to an associated signing service.
|
|
34
31
|
attr_accessor :manifest_signing_service
|
|
35
32
|
|
|
33
|
+
# An optional description.
|
|
34
|
+
attr_accessor :description
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'description' => :'description',
|
|
40
|
-
:'pulp_labels' => :'pulp_labels',
|
|
41
39
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
40
|
+
:'pulp_labels' => :'pulp_labels',
|
|
42
41
|
:'name' => :'name',
|
|
43
42
|
:'retain_checkpoints' => :'retain_checkpoints',
|
|
44
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
43
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
44
|
+
:'description' => :'description'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'description' => :'String',
|
|
57
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
58
56
|
:'retain_repo_versions' => :'Integer',
|
|
57
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
59
58
|
:'name' => :'String',
|
|
60
59
|
:'retain_checkpoints' => :'Integer',
|
|
61
|
-
:'manifest_signing_service' => :'String'
|
|
60
|
+
:'manifest_signing_service' => :'String',
|
|
61
|
+
:'description' => :'String'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
-
:'description',
|
|
69
68
|
:'retain_repo_versions',
|
|
70
69
|
:'retain_checkpoints',
|
|
71
|
-
:'manifest_signing_service'
|
|
70
|
+
:'manifest_signing_service',
|
|
71
|
+
:'description'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,8 +87,8 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
if attributes.key?(:'pulp_labels')
|
|
@@ -97,10 +97,6 @@ module PulpContainerClient
|
|
|
97
97
|
end
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'retain_repo_versions')
|
|
101
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
|
-
end
|
|
103
|
-
|
|
104
100
|
if attributes.key?(:'name')
|
|
105
101
|
self.name = attributes[:'name']
|
|
106
102
|
else
|
|
@@ -114,6 +110,10 @@ module PulpContainerClient
|
|
|
114
110
|
if attributes.key?(:'manifest_signing_service')
|
|
115
111
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
116
112
|
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'description')
|
|
115
|
+
self.description = attributes[:'description']
|
|
116
|
+
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -121,10 +121,6 @@ module PulpContainerClient
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
125
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
126
|
-
end
|
|
127
|
-
|
|
128
124
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
125
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
130
126
|
end
|
|
@@ -141,6 +137,10 @@ module PulpContainerClient
|
|
|
141
137
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
138
|
end
|
|
143
139
|
|
|
140
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
141
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -148,24 +148,14 @@ module PulpContainerClient
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
152
151
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
153
152
|
return false if @name.nil?
|
|
154
153
|
return false if @name.to_s.length < 1
|
|
155
154
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
155
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
-
# Custom attribute writer method with validation
|
|
160
|
-
# @param [Object] description Value to be assigned
|
|
161
|
-
def description=(description)
|
|
162
|
-
if !description.nil? && description.to_s.length < 1
|
|
163
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
@description = description
|
|
167
|
-
end
|
|
168
|
-
|
|
169
159
|
# Custom attribute writer method with validation
|
|
170
160
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
171
161
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -200,17 +190,27 @@ module PulpContainerClient
|
|
|
200
190
|
@retain_checkpoints = retain_checkpoints
|
|
201
191
|
end
|
|
202
192
|
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] description Value to be assigned
|
|
195
|
+
def description=(description)
|
|
196
|
+
if !description.nil? && description.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@description = description
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
description == o.description &&
|
|
209
|
-
pulp_labels == o.pulp_labels &&
|
|
210
208
|
retain_repo_versions == o.retain_repo_versions &&
|
|
209
|
+
pulp_labels == o.pulp_labels &&
|
|
211
210
|
name == o.name &&
|
|
212
211
|
retain_checkpoints == o.retain_checkpoints &&
|
|
213
|
-
manifest_signing_service == o.manifest_signing_service
|
|
212
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
213
|
+
description == o.description
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[retain_repo_versions, pulp_labels, name, retain_checkpoints, manifest_signing_service, description].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|
|
@@ -16,53 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# 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.
|
|
20
|
+
attr_accessor :pulp_last_updated
|
|
23
21
|
|
|
24
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
23
|
attr_accessor :retain_repo_versions
|
|
26
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
27
|
# A unique name for this repository.
|
|
28
28
|
attr_accessor :name
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
attr_accessor :latest_version_href
|
|
31
34
|
|
|
32
35
|
attr_accessor :pulp_href
|
|
33
36
|
|
|
34
|
-
# The Pulp Resource Name (PRN).
|
|
35
|
-
attr_accessor :prn
|
|
36
|
-
|
|
37
|
-
# Timestamp of creation.
|
|
38
|
-
attr_accessor :pulp_created
|
|
39
|
-
|
|
40
|
-
# 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.
|
|
41
|
-
attr_accessor :pulp_last_updated
|
|
42
|
-
|
|
43
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
44
|
-
attr_accessor :retain_checkpoints
|
|
45
|
-
|
|
46
37
|
# A reference to an associated signing service.
|
|
47
38
|
attr_accessor :manifest_signing_service
|
|
48
39
|
|
|
40
|
+
# An optional description.
|
|
41
|
+
attr_accessor :description
|
|
42
|
+
|
|
49
43
|
attr_accessor :versions_href
|
|
50
44
|
|
|
45
|
+
# Timestamp of creation.
|
|
46
|
+
attr_accessor :pulp_created
|
|
47
|
+
|
|
48
|
+
# The Pulp Resource Name (PRN).
|
|
49
|
+
attr_accessor :prn
|
|
50
|
+
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
54
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
56
55
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels',
|
|
57
57
|
:'name' => :'name',
|
|
58
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
58
59
|
:'latest_version_href' => :'latest_version_href',
|
|
59
60
|
:'pulp_href' => :'pulp_href',
|
|
60
|
-
:'prn' => :'prn',
|
|
61
|
-
:'pulp_created' => :'pulp_created',
|
|
62
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
64
61
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
65
|
-
:'
|
|
62
|
+
:'description' => :'description',
|
|
63
|
+
:'versions_href' => :'versions_href',
|
|
64
|
+
:'pulp_created' => :'pulp_created',
|
|
65
|
+
:'prn' => :'prn'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,28 +74,28 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
-
:'
|
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
77
|
+
:'pulp_last_updated' => :'Time',
|
|
79
78
|
:'retain_repo_versions' => :'Integer',
|
|
79
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
80
80
|
:'name' => :'String',
|
|
81
|
+
:'retain_checkpoints' => :'Integer',
|
|
81
82
|
:'latest_version_href' => :'String',
|
|
82
83
|
:'pulp_href' => :'String',
|
|
83
|
-
:'prn' => :'String',
|
|
84
|
-
:'pulp_created' => :'Time',
|
|
85
|
-
:'pulp_last_updated' => :'Time',
|
|
86
|
-
:'retain_checkpoints' => :'Integer',
|
|
87
84
|
:'manifest_signing_service' => :'String',
|
|
88
|
-
:'
|
|
85
|
+
:'description' => :'String',
|
|
86
|
+
:'versions_href' => :'String',
|
|
87
|
+
:'pulp_created' => :'Time',
|
|
88
|
+
:'prn' => :'String'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# List of attributes with nullable: true
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
|
-
:'description',
|
|
96
95
|
:'retain_repo_versions',
|
|
97
96
|
:'retain_checkpoints',
|
|
98
97
|
:'manifest_signing_service',
|
|
98
|
+
:'description',
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,8 +114,12 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
117
|
+
if attributes.key?(:'pulp_last_updated')
|
|
118
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'retain_repo_versions')
|
|
122
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
119
123
|
end
|
|
120
124
|
|
|
121
125
|
if attributes.key?(:'pulp_labels')
|
|
@@ -124,16 +128,16 @@ module PulpContainerClient
|
|
|
124
128
|
end
|
|
125
129
|
end
|
|
126
130
|
|
|
127
|
-
if attributes.key?(:'retain_repo_versions')
|
|
128
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
129
|
-
end
|
|
130
|
-
|
|
131
131
|
if attributes.key?(:'name')
|
|
132
132
|
self.name = attributes[:'name']
|
|
133
133
|
else
|
|
134
134
|
self.name = nil
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
+
if attributes.key?(:'retain_checkpoints')
|
|
138
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
139
|
+
end
|
|
140
|
+
|
|
137
141
|
if attributes.key?(:'latest_version_href')
|
|
138
142
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
139
143
|
end
|
|
@@ -142,28 +146,24 @@ module PulpContainerClient
|
|
|
142
146
|
self.pulp_href = attributes[:'pulp_href']
|
|
143
147
|
end
|
|
144
148
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'pulp_created')
|
|
150
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
149
|
+
if attributes.key?(:'manifest_signing_service')
|
|
150
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
self.
|
|
153
|
+
if attributes.key?(:'description')
|
|
154
|
+
self.description = attributes[:'description']
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
157
|
+
if attributes.key?(:'versions_href')
|
|
158
|
+
self.versions_href = attributes[:'versions_href']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
161
|
+
if attributes.key?(:'pulp_created')
|
|
162
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
165
|
+
if attributes.key?(:'prn')
|
|
166
|
+
self.prn = attributes[:'prn']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -222,18 +222,18 @@ module PulpContainerClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
|
|
226
|
-
pulp_labels == o.pulp_labels &&
|
|
225
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
227
226
|
retain_repo_versions == o.retain_repo_versions &&
|
|
227
|
+
pulp_labels == o.pulp_labels &&
|
|
228
228
|
name == o.name &&
|
|
229
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
229
230
|
latest_version_href == o.latest_version_href &&
|
|
230
231
|
pulp_href == o.pulp_href &&
|
|
231
|
-
prn == o.prn &&
|
|
232
|
-
pulp_created == o.pulp_created &&
|
|
233
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
234
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
235
232
|
manifest_signing_service == o.manifest_signing_service &&
|
|
236
|
-
|
|
233
|
+
description == o.description &&
|
|
234
|
+
versions_href == o.versions_href &&
|
|
235
|
+
pulp_created == o.pulp_created &&
|
|
236
|
+
prn == o.prn
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[pulp_last_updated, retain_repo_versions, pulp_labels, name, retain_checkpoints, latest_version_href, pulp_href, manifest_signing_service, description, versions_href, pulp_created, prn].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -19,7 +19,7 @@ module PulpContainerClient
|
|
|
19
19
|
# A remote to sync from. This will override a remote set on repository.
|
|
20
20
|
attr_accessor :remote
|
|
21
21
|
|
|
22
|
-
# If
|
|
22
|
+
# If `True`, synchronization will remove all content that is not present in the remote repository. If `False`, sync will be additive only.
|
|
23
23
|
attr_accessor :mirror
|
|
24
24
|
|
|
25
25
|
# If ``True``, only signed content will be synced. Signatures are not verified.
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PulpContainerClient
|
|
17
|
-
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
17
|
+
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
18
18
|
class NestedRole
|
|
19
19
|
attr_accessor :users
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PulpContainerClient
|
|
17
|
-
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with
|
|
17
|
+
# Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
|
|
18
18
|
class NestedRoleResponse
|
|
19
19
|
attr_accessor :users
|
|
20
20
|
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
# RepositoryVersion
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
20
|
+
attr_accessor :repository
|
|
23
21
|
|
|
24
22
|
# Whether this distribution should be shown in the content app.
|
|
25
23
|
attr_accessor :hidden
|
|
26
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
28
|
attr_accessor :name
|
|
29
29
|
|
|
30
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
-
attr_accessor :repository
|
|
32
|
-
|
|
33
30
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
31
|
attr_accessor :content_guard
|
|
35
32
|
|
|
36
33
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
37
34
|
attr_accessor :base_path
|
|
38
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'
|
|
49
|
-
:'pulp_labels' => :'pulp_labels',
|
|
48
|
+
:'repository' => :'repository',
|
|
50
49
|
:'hidden' => :'hidden',
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
51
|
:'name' => :'name',
|
|
52
|
-
:'repository' => :'repository',
|
|
53
52
|
:'content_guard' => :'content_guard',
|
|
54
53
|
:'base_path' => :'base_path',
|
|
54
|
+
:'repository_version' => :'repository_version',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'
|
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
+
:'repository' => :'String',
|
|
70
69
|
:'hidden' => :'Boolean',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
71
|
:'name' => :'String',
|
|
72
|
-
:'repository' => :'String',
|
|
73
72
|
:'content_guard' => :'String',
|
|
74
73
|
:'base_path' => :'String',
|
|
74
|
+
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -80,8 +80,8 @@ module PulpContainerClient
|
|
|
80
80
|
# List of attributes with nullable: true
|
|
81
81
|
def self.openapi_nullable
|
|
82
82
|
Set.new([
|
|
83
|
-
:'repository_version',
|
|
84
83
|
:'repository',
|
|
84
|
+
:'repository_version',
|
|
85
85
|
:'description'
|
|
86
86
|
])
|
|
87
87
|
end
|
|
@@ -101,14 +101,8 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'pulp_labels')
|
|
109
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
|
-
self.pulp_labels = value
|
|
111
|
-
end
|
|
104
|
+
if attributes.key?(:'repository')
|
|
105
|
+
self.repository = attributes[:'repository']
|
|
112
106
|
end
|
|
113
107
|
|
|
114
108
|
if attributes.key?(:'hidden')
|
|
@@ -117,12 +111,14 @@ module PulpContainerClient
|
|
|
117
111
|
self.hidden = false
|
|
118
112
|
end
|
|
119
113
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
|
|
114
|
+
if attributes.key?(:'pulp_labels')
|
|
115
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
116
|
+
self.pulp_labels = value
|
|
117
|
+
end
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
120
|
+
if attributes.key?(:'name')
|
|
121
|
+
self.name = attributes[:'name']
|
|
126
122
|
end
|
|
127
123
|
|
|
128
124
|
if attributes.key?(:'content_guard')
|
|
@@ -133,6 +129,10 @@ module PulpContainerClient
|
|
|
133
129
|
self.base_path = attributes[:'base_path']
|
|
134
130
|
end
|
|
135
131
|
|
|
132
|
+
if attributes.key?(:'repository_version')
|
|
133
|
+
self.repository_version = attributes[:'repository_version']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
136
|
if attributes.key?(:'private')
|
|
137
137
|
self.private = attributes[:'private']
|
|
138
138
|
end
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
|
|
219
|
-
pulp_labels == o.pulp_labels &&
|
|
218
|
+
repository == o.repository &&
|
|
220
219
|
hidden == o.hidden &&
|
|
220
|
+
pulp_labels == o.pulp_labels &&
|
|
221
221
|
name == o.name &&
|
|
222
|
-
repository == o.repository &&
|
|
223
222
|
content_guard == o.content_guard &&
|
|
224
223
|
base_path == o.base_path &&
|
|
224
|
+
repository_version == o.repository_version &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[repository, hidden, pulp_labels, name, content_guard, base_path, repository_version, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|