pulp_container_client 2.3.0.dev01611890753 → 2.4.0.dev01612840954

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.

Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -10
  3. data/docs/ContainerContainerDistribution.md +11 -7
  4. data/docs/ContainerContainerDistributionResponse.md +16 -12
  5. data/docs/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +19 -19
  6. data/docs/DistributionsContainerApi.md +2 -0
  7. data/docs/PatchedcontainerContainerDistribution.md +11 -7
  8. data/docs/PulpContainerNamespacesApi.md +16 -5
  9. data/docs/RemotesContainerApi.md +2 -0
  10. data/docs/RepositoriesContainerApi.md +2 -0
  11. data/docs/RepositoriesContainerPushApi.md +116 -2
  12. data/docs/RepositoriesContainerVersionsApi.md +2 -2
  13. data/lib/pulp_container_client.rb +1 -1
  14. data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +22 -22
  15. data/lib/pulp_container_client/api/distributions_container_api.rb +3 -0
  16. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
  17. data/lib/pulp_container_client/api/remotes_container_api.rb +3 -0
  18. data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
  19. data/lib/pulp_container_client/api/repositories_container_push_api.rb +147 -4
  20. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
  21. data/lib/pulp_container_client/models/container_container_distribution.rb +58 -37
  22. data/lib/pulp_container_client/models/container_container_distribution_response.rb +75 -54
  23. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +53 -32
  24. data/lib/pulp_container_client/version.rb +1 -1
  25. data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +6 -6
  26. data/spec/api/distributions_container_api_spec.rb +1 -0
  27. data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
  28. data/spec/api/remotes_container_api_spec.rb +1 -0
  29. data/spec/api/repositories_container_api_spec.rb +1 -0
  30. data/spec/api/repositories_container_push_api_spec.rb +29 -2
  31. data/spec/api/repositories_container_versions_api_spec.rb +2 -2
  32. data/spec/models/container_container_distribution_response_spec.rb +20 -8
  33. data/spec/models/container_container_distribution_spec.rb +17 -5
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +17 -5
  35. metadata +6 -6
@@ -144,7 +144,7 @@ module PulpContainerClient
144
144
  end
145
145
 
146
146
  # List repository versions
147
- # ContainerPushRepositoryVersion represents a single container push repository version.
147
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
148
148
  # @param container_container_push_repository_href [String]
149
149
  # @param [Hash] opts the optional parameters
150
150
  # @option opts [String] :content content
@@ -173,7 +173,7 @@ module PulpContainerClient
173
173
  end
174
174
 
175
175
  # List repository versions
176
- # ContainerPushRepositoryVersion represents a single container push repository version.
176
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
177
177
  # @param container_container_push_repository_href [String]
178
178
  # @param [Hash] opts the optional parameters
179
179
  # @option opts [String] :content content
@@ -382,7 +382,7 @@ module PulpContainerClient
382
382
  end
383
383
 
384
384
  # Inspect a repository version
385
- # ContainerPushRepositoryVersion represents a single container push repository version.
385
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
386
386
  # @param container_container_push_repository_version_href [String]
387
387
  # @param [Hash] opts the optional parameters
388
388
  # @option opts [String] :fields A list of fields to include in the response.
@@ -394,7 +394,7 @@ module PulpContainerClient
394
394
  end
395
395
 
396
396
  # Inspect a repository version
397
- # ContainerPushRepositoryVersion represents a single container push repository version.
397
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
398
398
  # @param container_container_push_repository_version_href [String]
399
399
  # @param [Hash] opts the optional parameters
400
400
  # @option opts [String] :fields A list of fields to include in the response.
@@ -15,14 +15,6 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
- attr_accessor :base_path
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
18
  # RepositoryVersion to be served
27
19
  attr_accessor :repository_version
28
20
 
@@ -32,35 +24,54 @@ module PulpContainerClient
32
24
  # A unique name. Ex, `rawhide` and `stable`.
33
25
  attr_accessor :name
34
26
 
27
+ attr_accessor :pulp_labels
28
+
29
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
+ attr_accessor :base_path
31
+
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
34
+
35
+ # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
+ attr_accessor :private
37
+
38
+ # An optional description.
39
+ attr_accessor :description
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
38
- :'base_path' => :'base_path',
39
- :'pulp_labels' => :'pulp_labels',
40
- :'repository' => :'repository',
41
44
  :'repository_version' => :'repository_version',
42
45
  :'content_guard' => :'content_guard',
43
- :'name' => :'name'
46
+ :'name' => :'name',
47
+ :'pulp_labels' => :'pulp_labels',
48
+ :'base_path' => :'base_path',
49
+ :'repository' => :'repository',
50
+ :'private' => :'private',
51
+ :'description' => :'description'
44
52
  }
45
53
  end
46
54
 
47
55
  # Attribute type mapping.
48
56
  def self.openapi_types
49
57
  {
50
- :'base_path' => :'String',
51
- :'pulp_labels' => :'Object',
52
- :'repository' => :'String',
53
58
  :'repository_version' => :'String',
54
59
  :'content_guard' => :'String',
55
- :'name' => :'String'
60
+ :'name' => :'String',
61
+ :'pulp_labels' => :'Object',
62
+ :'base_path' => :'String',
63
+ :'repository' => :'String',
64
+ :'private' => :'Boolean',
65
+ :'description' => :'String'
56
66
  }
57
67
  end
58
68
 
59
69
  # List of attributes with nullable: true
60
70
  def self.openapi_nullable
61
71
  Set.new([
62
- :'repository',
63
72
  :'repository_version',
73
+ :'repository',
74
+ :'description'
64
75
  ])
65
76
  end
66
77
 
@@ -79,28 +90,36 @@ module PulpContainerClient
79
90
  h[k.to_sym] = v
80
91
  }
81
92
 
82
- if attributes.key?(:'base_path')
83
- self.base_path = attributes[:'base_path']
93
+ if attributes.key?(:'repository_version')
94
+ self.repository_version = attributes[:'repository_version']
95
+ end
96
+
97
+ if attributes.key?(:'content_guard')
98
+ self.content_guard = attributes[:'content_guard']
99
+ end
100
+
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
84
103
  end
85
104
 
86
105
  if attributes.key?(:'pulp_labels')
87
106
  self.pulp_labels = attributes[:'pulp_labels']
88
107
  end
89
108
 
90
- if attributes.key?(:'repository')
91
- self.repository = attributes[:'repository']
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
92
111
  end
93
112
 
94
- if attributes.key?(:'repository_version')
95
- self.repository_version = attributes[:'repository_version']
113
+ if attributes.key?(:'repository')
114
+ self.repository = attributes[:'repository']
96
115
  end
97
116
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
117
+ if attributes.key?(:'private')
118
+ self.private = attributes[:'private']
100
119
  end
101
120
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
121
+ if attributes.key?(:'description')
122
+ self.description = attributes[:'description']
104
123
  end
105
124
  end
106
125
 
@@ -108,22 +127,22 @@ module PulpContainerClient
108
127
  # @return Array for valid properties with the reasons
109
128
  def list_invalid_properties
110
129
  invalid_properties = Array.new
111
- if @base_path.nil?
112
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
113
- end
114
-
115
130
  if @name.nil?
116
131
  invalid_properties.push('invalid value for "name", name cannot be nil.')
117
132
  end
118
133
 
134
+ if @base_path.nil?
135
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
136
+ end
137
+
119
138
  invalid_properties
120
139
  end
121
140
 
122
141
  # Check to see if the all the properties in the model are valid
123
142
  # @return true if the model is valid
124
143
  def valid?
125
- return false if @base_path.nil?
126
144
  return false if @name.nil?
145
+ return false if @base_path.nil?
127
146
  true
128
147
  end
129
148
 
@@ -132,12 +151,14 @@ module PulpContainerClient
132
151
  def ==(o)
133
152
  return true if self.equal?(o)
134
153
  self.class == o.class &&
135
- base_path == o.base_path &&
136
- pulp_labels == o.pulp_labels &&
137
- repository == o.repository &&
138
154
  repository_version == o.repository_version &&
139
155
  content_guard == o.content_guard &&
140
- name == o.name
156
+ name == o.name &&
157
+ pulp_labels == o.pulp_labels &&
158
+ base_path == o.base_path &&
159
+ repository == o.repository &&
160
+ private == o.private &&
161
+ description == o.description
141
162
  end
142
163
 
143
164
  # @see the `==` method
@@ -149,7 +170,7 @@ module PulpContainerClient
149
170
  # Calculates hash code according to all attributes.
150
171
  # @return [Integer] Hash code
151
172
  def hash
152
- [base_path, pulp_labels, repository, repository_version, content_guard, name].hash
173
+ [repository_version, content_guard, name, pulp_labels, base_path, repository, private, description].hash
153
174
  end
154
175
 
155
176
  # Builds the object from hash
@@ -15,71 +15,82 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
23
-
24
- attr_accessor :pulp_labels
25
-
26
- # The latest RepositoryVersion for this Repository will be served.
27
- attr_accessor :repository
28
-
29
- attr_accessor :pulp_href
30
-
31
18
  # RepositoryVersion to be served
32
19
  attr_accessor :repository_version
33
20
 
34
21
  # An optional content-guard. If none is specified, a default one will be used.
35
22
  attr_accessor :content_guard
36
23
 
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
26
+
27
+ attr_accessor :pulp_href
28
+
37
29
  # A unique name. Ex, `rawhide` and `stable`.
38
30
  attr_accessor :name
39
31
 
32
+ attr_accessor :pulp_labels
33
+
34
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
35
+ attr_accessor :base_path
36
+
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
42
42
 
43
43
  # Namespace this distribution belongs to.
44
44
  attr_accessor :namespace
45
45
 
46
+ # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
47
+ attr_accessor :private
48
+
49
+ # An optional description.
50
+ attr_accessor :description
51
+
46
52
  # Attribute mapping from ruby-style variable name to JSON key.
47
53
  def self.attribute_map
48
54
  {
49
- :'pulp_created' => :'pulp_created',
50
- :'base_path' => :'base_path',
51
- :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
- :'pulp_href' => :'pulp_href',
54
55
  :'repository_version' => :'repository_version',
55
56
  :'content_guard' => :'content_guard',
57
+ :'pulp_created' => :'pulp_created',
58
+ :'pulp_href' => :'pulp_href',
56
59
  :'name' => :'name',
60
+ :'pulp_labels' => :'pulp_labels',
61
+ :'base_path' => :'base_path',
62
+ :'repository' => :'repository',
57
63
  :'registry_path' => :'registry_path',
58
- :'namespace' => :'namespace'
64
+ :'namespace' => :'namespace',
65
+ :'private' => :'private',
66
+ :'description' => :'description'
59
67
  }
60
68
  end
61
69
 
62
70
  # Attribute type mapping.
63
71
  def self.openapi_types
64
72
  {
65
- :'pulp_created' => :'DateTime',
66
- :'base_path' => :'String',
67
- :'pulp_labels' => :'Object',
68
- :'repository' => :'String',
69
- :'pulp_href' => :'String',
70
73
  :'repository_version' => :'String',
71
74
  :'content_guard' => :'String',
75
+ :'pulp_created' => :'DateTime',
76
+ :'pulp_href' => :'String',
72
77
  :'name' => :'String',
78
+ :'pulp_labels' => :'Object',
79
+ :'base_path' => :'String',
80
+ :'repository' => :'String',
73
81
  :'registry_path' => :'String',
74
- :'namespace' => :'String'
82
+ :'namespace' => :'String',
83
+ :'private' => :'Boolean',
84
+ :'description' => :'String'
75
85
  }
76
86
  end
77
87
 
78
88
  # List of attributes with nullable: true
79
89
  def self.openapi_nullable
80
90
  Set.new([
81
- :'repository',
82
91
  :'repository_version',
92
+ :'repository',
93
+ :'description'
83
94
  ])
84
95
  end
85
96
 
@@ -98,36 +109,36 @@ module PulpContainerClient
98
109
  h[k.to_sym] = v
99
110
  }
100
111
 
101
- if attributes.key?(:'pulp_created')
102
- self.pulp_created = attributes[:'pulp_created']
103
- end
104
-
105
- if attributes.key?(:'base_path')
106
- self.base_path = attributes[:'base_path']
112
+ if attributes.key?(:'repository_version')
113
+ self.repository_version = attributes[:'repository_version']
107
114
  end
108
115
 
109
- if attributes.key?(:'pulp_labels')
110
- self.pulp_labels = attributes[:'pulp_labels']
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
111
118
  end
112
119
 
113
- if attributes.key?(:'repository')
114
- self.repository = attributes[:'repository']
120
+ if attributes.key?(:'pulp_created')
121
+ self.pulp_created = attributes[:'pulp_created']
115
122
  end
116
123
 
117
124
  if attributes.key?(:'pulp_href')
118
125
  self.pulp_href = attributes[:'pulp_href']
119
126
  end
120
127
 
121
- if attributes.key?(:'repository_version')
122
- self.repository_version = attributes[:'repository_version']
128
+ if attributes.key?(:'name')
129
+ self.name = attributes[:'name']
123
130
  end
124
131
 
125
- if attributes.key?(:'content_guard')
126
- self.content_guard = attributes[:'content_guard']
132
+ if attributes.key?(:'pulp_labels')
133
+ self.pulp_labels = attributes[:'pulp_labels']
127
134
  end
128
135
 
129
- if attributes.key?(:'name')
130
- self.name = attributes[:'name']
136
+ if attributes.key?(:'base_path')
137
+ self.base_path = attributes[:'base_path']
138
+ end
139
+
140
+ if attributes.key?(:'repository')
141
+ self.repository = attributes[:'repository']
131
142
  end
132
143
 
133
144
  if attributes.key?(:'registry_path')
@@ -137,28 +148,36 @@ module PulpContainerClient
137
148
  if attributes.key?(:'namespace')
138
149
  self.namespace = attributes[:'namespace']
139
150
  end
151
+
152
+ if attributes.key?(:'private')
153
+ self.private = attributes[:'private']
154
+ end
155
+
156
+ if attributes.key?(:'description')
157
+ self.description = attributes[:'description']
158
+ end
140
159
  end
141
160
 
142
161
  # Show invalid properties with the reasons. Usually used together with valid?
143
162
  # @return Array for valid properties with the reasons
144
163
  def list_invalid_properties
145
164
  invalid_properties = Array.new
146
- if @base_path.nil?
147
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
148
- end
149
-
150
165
  if @name.nil?
151
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
152
167
  end
153
168
 
169
+ if @base_path.nil?
170
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
+ end
172
+
154
173
  invalid_properties
155
174
  end
156
175
 
157
176
  # Check to see if the all the properties in the model are valid
158
177
  # @return true if the model is valid
159
178
  def valid?
160
- return false if @base_path.nil?
161
179
  return false if @name.nil?
180
+ return false if @base_path.nil?
162
181
  true
163
182
  end
164
183
 
@@ -167,16 +186,18 @@ module PulpContainerClient
167
186
  def ==(o)
168
187
  return true if self.equal?(o)
169
188
  self.class == o.class &&
170
- pulp_created == o.pulp_created &&
171
- base_path == o.base_path &&
172
- pulp_labels == o.pulp_labels &&
173
- repository == o.repository &&
174
- pulp_href == o.pulp_href &&
175
189
  repository_version == o.repository_version &&
176
190
  content_guard == o.content_guard &&
191
+ pulp_created == o.pulp_created &&
192
+ pulp_href == o.pulp_href &&
177
193
  name == o.name &&
194
+ pulp_labels == o.pulp_labels &&
195
+ base_path == o.base_path &&
196
+ repository == o.repository &&
178
197
  registry_path == o.registry_path &&
179
- namespace == o.namespace
198
+ namespace == o.namespace &&
199
+ private == o.private &&
200
+ description == o.description
180
201
  end
181
202
 
182
203
  # @see the `==` method
@@ -188,7 +209,7 @@ module PulpContainerClient
188
209
  # Calculates hash code according to all attributes.
189
210
  # @return [Integer] Hash code
190
211
  def hash
191
- [pulp_created, base_path, pulp_labels, repository, pulp_href, repository_version, content_guard, name, registry_path, namespace].hash
212
+ [repository_version, content_guard, pulp_created, pulp_href, name, pulp_labels, base_path, repository, registry_path, namespace, private, description].hash
192
213
  end
193
214
 
194
215
  # Builds the object from hash