pulp_container_client 2.27.11 → 2.27.13

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +18 -18
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/DistributionsPullThroughApi.md +10 -10
  10. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  11. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  12. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  13. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +80 -80
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +80 -80
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -60
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +41 -41
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/api/distributions_pull_through_api_spec.rb +2 -4
  25. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  26. data/spec/models/container_container_distribution_spec.rb +7 -7
  27. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  28. data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
  29. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  30. data/spec/models/container_container_push_repository_spec.rb +6 -6
  31. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  32. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  33. data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
  34. metadata +59 -59
@@ -16,53 +16,53 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- attr_accessor :pulp_labels
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ attr_accessor :latest_version_href
20
23
 
21
24
  # Retain X versions of the repository. Default is null which retains all versions.
22
25
  attr_accessor :retain_repo_versions
23
26
 
24
- # An optional description.
25
- attr_accessor :description
27
+ # A reference to an associated signing service.
28
+ attr_accessor :manifest_signing_service
26
29
 
27
30
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
31
  attr_accessor :retain_checkpoints
29
32
 
30
- attr_accessor :latest_version_href
31
-
32
33
  attr_accessor :pulp_href
33
34
 
34
- # The Pulp Resource Name (PRN).
35
- attr_accessor :prn
36
-
37
- # Timestamp of creation.
38
- attr_accessor :pulp_created
39
-
40
35
  # A unique name for this repository.
41
36
  attr_accessor :name
42
37
 
43
- # A reference to an associated signing service.
44
- attr_accessor :manifest_signing_service
45
-
46
38
  attr_accessor :versions_href
47
39
 
40
+ # An optional description.
41
+ attr_accessor :description
42
+
48
43
  # 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.
49
44
  attr_accessor :pulp_last_updated
50
45
 
46
+ attr_accessor :pulp_labels
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
- :'pulp_labels' => :'pulp_labels',
54
+ :'pulp_created' => :'pulp_created',
55
+ :'latest_version_href' => :'latest_version_href',
55
56
  :'retain_repo_versions' => :'retain_repo_versions',
56
- :'description' => :'description',
57
+ :'manifest_signing_service' => :'manifest_signing_service',
57
58
  :'retain_checkpoints' => :'retain_checkpoints',
58
- :'latest_version_href' => :'latest_version_href',
59
59
  :'pulp_href' => :'pulp_href',
60
- :'prn' => :'prn',
61
- :'pulp_created' => :'pulp_created',
62
60
  :'name' => :'name',
63
- :'manifest_signing_service' => :'manifest_signing_service',
64
61
  :'versions_href' => :'versions_href',
65
- :'pulp_last_updated' => :'pulp_last_updated'
62
+ :'description' => :'description',
63
+ :'pulp_last_updated' => :'pulp_last_updated',
64
+ :'pulp_labels' => :'pulp_labels',
65
+ :'prn' => :'prn'
66
66
  }
67
67
  end
68
68
 
@@ -74,18 +74,18 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'pulp_labels' => :'Hash<String, String>',
77
+ :'pulp_created' => :'Time',
78
+ :'latest_version_href' => :'String',
78
79
  :'retain_repo_versions' => :'Integer',
79
- :'description' => :'String',
80
+ :'manifest_signing_service' => :'String',
80
81
  :'retain_checkpoints' => :'Integer',
81
- :'latest_version_href' => :'String',
82
82
  :'pulp_href' => :'String',
83
- :'prn' => :'String',
84
- :'pulp_created' => :'Time',
85
83
  :'name' => :'String',
86
- :'manifest_signing_service' => :'String',
87
84
  :'versions_href' => :'String',
88
- :'pulp_last_updated' => :'Time'
85
+ :'description' => :'String',
86
+ :'pulp_last_updated' => :'Time',
87
+ :'pulp_labels' => :'Hash<String, String>',
88
+ :'prn' => :'String'
89
89
  }
90
90
  end
91
91
 
@@ -93,9 +93,9 @@ module PulpContainerClient
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
95
  :'retain_repo_versions',
96
- :'description',
97
- :'retain_checkpoints',
98
96
  :'manifest_signing_service',
97
+ :'retain_checkpoints',
98
+ :'description',
99
99
  ])
100
100
  end
101
101
 
@@ -114,57 +114,57 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'pulp_labels')
118
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
- self.pulp_labels = value
120
- end
117
+ if attributes.key?(:'pulp_created')
118
+ self.pulp_created = attributes[:'pulp_created']
119
+ end
120
+
121
+ if attributes.key?(:'latest_version_href')
122
+ self.latest_version_href = attributes[:'latest_version_href']
121
123
  end
122
124
 
123
125
  if attributes.key?(:'retain_repo_versions')
124
126
  self.retain_repo_versions = attributes[:'retain_repo_versions']
125
127
  end
126
128
 
127
- if attributes.key?(:'description')
128
- self.description = attributes[:'description']
129
+ if attributes.key?(:'manifest_signing_service')
130
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
129
131
  end
130
132
 
131
133
  if attributes.key?(:'retain_checkpoints')
132
134
  self.retain_checkpoints = attributes[:'retain_checkpoints']
133
135
  end
134
136
 
135
- if attributes.key?(:'latest_version_href')
136
- self.latest_version_href = attributes[:'latest_version_href']
137
- end
138
-
139
137
  if attributes.key?(:'pulp_href')
140
138
  self.pulp_href = attributes[:'pulp_href']
141
139
  end
142
140
 
143
- if attributes.key?(:'prn')
144
- self.prn = attributes[:'prn']
145
- end
146
-
147
- if attributes.key?(:'pulp_created')
148
- self.pulp_created = attributes[:'pulp_created']
149
- end
150
-
151
141
  if attributes.key?(:'name')
152
142
  self.name = attributes[:'name']
153
143
  else
154
144
  self.name = nil
155
145
  end
156
146
 
157
- if attributes.key?(:'manifest_signing_service')
158
- self.manifest_signing_service = attributes[:'manifest_signing_service']
159
- end
160
-
161
147
  if attributes.key?(:'versions_href')
162
148
  self.versions_href = attributes[:'versions_href']
163
149
  end
164
150
 
151
+ if attributes.key?(:'description')
152
+ self.description = attributes[:'description']
153
+ end
154
+
165
155
  if attributes.key?(:'pulp_last_updated')
166
156
  self.pulp_last_updated = attributes[:'pulp_last_updated']
167
157
  end
158
+
159
+ if attributes.key?(:'pulp_labels')
160
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
161
+ self.pulp_labels = value
162
+ end
163
+ end
164
+
165
+ if attributes.key?(:'prn')
166
+ self.prn = attributes[:'prn']
167
+ end
168
168
  end
169
169
 
170
170
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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
- pulp_labels == o.pulp_labels &&
225
+ pulp_created == o.pulp_created &&
226
+ latest_version_href == o.latest_version_href &&
226
227
  retain_repo_versions == o.retain_repo_versions &&
227
- description == o.description &&
228
+ manifest_signing_service == o.manifest_signing_service &&
228
229
  retain_checkpoints == o.retain_checkpoints &&
229
- latest_version_href == o.latest_version_href &&
230
230
  pulp_href == o.pulp_href &&
231
- prn == o.prn &&
232
- pulp_created == o.pulp_created &&
233
231
  name == o.name &&
234
- manifest_signing_service == o.manifest_signing_service &&
235
232
  versions_href == o.versions_href &&
236
- pulp_last_updated == o.pulp_last_updated
233
+ description == o.description &&
234
+ pulp_last_updated == o.pulp_last_updated &&
235
+ pulp_labels == o.pulp_labels &&
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
- [pulp_labels, retain_repo_versions, description, retain_checkpoints, latest_version_href, pulp_href, prn, pulp_created, name, manifest_signing_service, versions_href, pulp_last_updated].hash
248
+ [pulp_created, latest_version_href, retain_repo_versions, manifest_signing_service, retain_checkpoints, pulp_href, name, versions_href, description, pulp_last_updated, pulp_labels, prn].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
21
-
22
- attr_accessor :pulp_labels
23
-
24
- # The latest RepositoryVersion for this Repository will be served.
25
- attr_accessor :repository
19
+ # RepositoryVersion to be served
20
+ attr_accessor :repository_version
26
21
 
27
22
  # A unique name. Ex, `rawhide` and `stable`.
28
23
  attr_accessor :name
29
24
 
30
- # RepositoryVersion to be served
31
- attr_accessor :repository_version
25
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
26
+ attr_accessor :base_path
32
27
 
33
28
  # An optional content-guard. If none is specified, a default one will be used.
34
29
  attr_accessor :content_guard
35
30
 
36
- # 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
- attr_accessor :base_path
31
+ # Whether this distribution should be shown in the content app.
32
+ attr_accessor :hidden
33
+
34
+ attr_accessor :pulp_labels
35
+
36
+ # The latest RepositoryVersion for this Repository will be served.
37
+ attr_accessor :repository
38
38
 
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
@@ -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
+ :'repository_version' => :'repository_version',
49
+ :'name' => :'name',
50
+ :'base_path' => :'base_path',
51
+ :'content_guard' => :'content_guard',
48
52
  :'hidden' => :'hidden',
49
53
  :'pulp_labels' => :'pulp_labels',
50
54
  :'repository' => :'repository',
51
- :'name' => :'name',
52
- :'repository_version' => :'repository_version',
53
- :'content_guard' => :'content_guard',
54
- :'base_path' => :'base_path',
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
+ :'repository_version' => :'String',
69
+ :'name' => :'String',
70
+ :'base_path' => :'String',
71
+ :'content_guard' => :'String',
68
72
  :'hidden' => :'Boolean',
69
73
  :'pulp_labels' => :'Hash<String, String>',
70
74
  :'repository' => :'String',
71
- :'name' => :'String',
72
- :'repository_version' => :'String',
73
- :'content_guard' => :'String',
74
- :'base_path' => :'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',
84
83
  :'repository_version',
84
+ :'repository',
85
85
  :'description'
86
86
  ])
87
87
  end
@@ -101,6 +101,22 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
+ if attributes.key?(:'repository_version')
105
+ self.repository_version = attributes[:'repository_version']
106
+ end
107
+
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ end
111
+
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
114
+ end
115
+
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
118
+ end
119
+
104
120
  if attributes.key?(:'hidden')
105
121
  self.hidden = attributes[:'hidden']
106
122
  else
@@ -117,22 +133,6 @@ module PulpContainerClient
117
133
  self.repository = attributes[:'repository']
118
134
  end
119
135
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
122
- end
123
-
124
- if attributes.key?(:'repository_version')
125
- self.repository_version = attributes[:'repository_version']
126
- end
127
-
128
- if attributes.key?(:'content_guard')
129
- self.content_guard = attributes[:'content_guard']
130
- end
131
-
132
- if attributes.key?(:'base_path')
133
- self.base_path = attributes[:'base_path']
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
+ repository_version == o.repository_version &&
219
+ name == o.name &&
220
+ base_path == o.base_path &&
221
+ content_guard == o.content_guard &&
218
222
  hidden == o.hidden &&
219
223
  pulp_labels == o.pulp_labels &&
220
224
  repository == o.repository &&
221
- name == o.name &&
222
- repository_version == o.repository_version &&
223
- content_guard == o.content_guard &&
224
- base_path == o.base_path &&
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
- [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, private, description].hash
238
+ [repository_version, name, base_path, content_guard, hidden, pulp_labels, repository, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -16,25 +16,25 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class PatchedcontainerContainerPullThroughDistribution
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
21
-
22
- attr_accessor :pulp_labels
23
-
24
- # The latest RepositoryVersion for this Repository will be served.
25
- attr_accessor :repository
19
+ # RepositoryVersion to be served
20
+ attr_accessor :repository_version
26
21
 
27
22
  # A unique name. Ex, `rawhide` and `stable`.
28
23
  attr_accessor :name
29
24
 
30
- # RepositoryVersion to be served
31
- attr_accessor :repository_version
25
+ # The registry path exposed by this pull-through distribution.
26
+ attr_accessor :base_path
32
27
 
33
28
  # An optional content-guard. If none is specified, a default one will be used.
34
29
  attr_accessor :content_guard
35
30
 
36
- # 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
- attr_accessor :base_path
31
+ # Whether this distribution should be shown in the content app.
32
+ attr_accessor :hidden
33
+
34
+ attr_accessor :pulp_labels
35
+
36
+ # The latest RepositoryVersion for this Repository will be served.
37
+ attr_accessor :repository
38
38
 
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
@@ -51,13 +51,13 @@ module PulpContainerClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
+ :'repository_version' => :'repository_version',
55
+ :'name' => :'name',
56
+ :'base_path' => :'base_path',
57
+ :'content_guard' => :'content_guard',
54
58
  :'hidden' => :'hidden',
55
59
  :'pulp_labels' => :'pulp_labels',
56
60
  :'repository' => :'repository',
57
- :'name' => :'name',
58
- :'repository_version' => :'repository_version',
59
- :'content_guard' => :'content_guard',
60
- :'base_path' => :'base_path',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
63
63
  :'private' => :'private',
@@ -73,13 +73,13 @@ module PulpContainerClient
73
73
  # Attribute type mapping.
74
74
  def self.openapi_types
75
75
  {
76
+ :'repository_version' => :'String',
77
+ :'name' => :'String',
78
+ :'base_path' => :'String',
79
+ :'content_guard' => :'String',
76
80
  :'hidden' => :'Boolean',
77
81
  :'pulp_labels' => :'Hash<String, String>',
78
82
  :'repository' => :'String',
79
- :'name' => :'String',
80
- :'repository_version' => :'String',
81
- :'content_guard' => :'String',
82
- :'base_path' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -90,8 +90,8 @@ module PulpContainerClient
90
90
  # List of attributes with nullable: true
91
91
  def self.openapi_nullable
92
92
  Set.new([
93
- :'repository',
94
93
  :'repository_version',
94
+ :'repository',
95
95
  :'description'
96
96
  ])
97
97
  end
@@ -111,6 +111,22 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
+ if attributes.key?(:'repository_version')
115
+ self.repository_version = attributes[:'repository_version']
116
+ end
117
+
118
+ if attributes.key?(:'name')
119
+ self.name = attributes[:'name']
120
+ end
121
+
122
+ if attributes.key?(:'base_path')
123
+ self.base_path = attributes[:'base_path']
124
+ end
125
+
126
+ if attributes.key?(:'content_guard')
127
+ self.content_guard = attributes[:'content_guard']
128
+ end
129
+
114
130
  if attributes.key?(:'hidden')
115
131
  self.hidden = attributes[:'hidden']
116
132
  else
@@ -127,22 +143,6 @@ module PulpContainerClient
127
143
  self.repository = attributes[:'repository']
128
144
  end
129
145
 
130
- if attributes.key?(:'name')
131
- self.name = attributes[:'name']
132
- end
133
-
134
- if attributes.key?(:'repository_version')
135
- self.repository_version = attributes[:'repository_version']
136
- end
137
-
138
- if attributes.key?(:'content_guard')
139
- self.content_guard = attributes[:'content_guard']
140
- end
141
-
142
- if attributes.key?(:'base_path')
143
- self.base_path = attributes[:'base_path']
144
- end
145
-
146
146
  if attributes.key?(:'remote')
147
147
  self.remote = attributes[:'remote']
148
148
  end
@@ -235,13 +235,13 @@ module PulpContainerClient
235
235
  def ==(o)
236
236
  return true if self.equal?(o)
237
237
  self.class == o.class &&
238
+ repository_version == o.repository_version &&
239
+ name == o.name &&
240
+ base_path == o.base_path &&
241
+ content_guard == o.content_guard &&
238
242
  hidden == o.hidden &&
239
243
  pulp_labels == o.pulp_labels &&
240
244
  repository == o.repository &&
241
- name == o.name &&
242
- repository_version == o.repository_version &&
243
- content_guard == o.content_guard &&
244
- base_path == o.base_path &&
245
245
  remote == o.remote &&
246
246
  distributions == o.distributions &&
247
247
  private == o.private &&
@@ -257,7 +257,7 @@ module PulpContainerClient
257
257
  # Calculates hash code according to all attributes.
258
258
  # @return [Integer] Hash code
259
259
  def hash
260
- [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, remote, distributions, private, description].hash
260
+ [repository_version, name, base_path, content_guard, hidden, pulp_labels, repository, remote, distributions, private, description].hash
261
261
  end
262
262
 
263
263
  # Builds the object from hash