pulp_container_client 2.3.0.dev01611977129 → 2.4.0.dev01612927332

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ContainerContainerDistribution.md +13 -9
  4. data/docs/ContainerContainerDistributionResponse.md +17 -13
  5. data/docs/DistributionsContainerApi.md +2 -0
  6. data/docs/PatchedcontainerContainerDistribution.md +13 -9
  7. data/docs/PulpContainerNamespacesApi.md +16 -5
  8. data/docs/RemotesContainerApi.md +2 -0
  9. data/docs/RepositoriesContainerApi.md +2 -0
  10. data/docs/RepositoriesContainerPushApi.md +116 -2
  11. data/docs/RepositoriesContainerVersionsApi.md +2 -2
  12. data/lib/pulp_container_client/api/distributions_container_api.rb +3 -0
  13. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
  14. data/lib/pulp_container_client/api/remotes_container_api.rb +3 -0
  15. data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
  16. data/lib/pulp_container_client/api/repositories_container_push_api.rb +147 -4
  17. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
  18. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -34
  19. data/lib/pulp_container_client/models/container_container_distribution_response.rb +75 -54
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +50 -29
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/api/distributions_container_api_spec.rb +1 -0
  23. data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
  24. data/spec/api/remotes_container_api_spec.rb +1 -0
  25. data/spec/api/repositories_container_api_spec.rb +1 -0
  26. data/spec/api/repositories_container_push_api_spec.rb +29 -2
  27. data/spec/api/repositories_container_versions_api_spec.rb +2 -2
  28. data/spec/models/container_container_distribution_response_spec.rb +19 -7
  29. data/spec/models/container_container_distribution_spec.rb +16 -4
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +16 -4
  31. metadata +2 -2
@@ -15,27 +15,27 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- attr_accessor :pulp_href
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
19
20
 
20
- # A unique name. Ex, `rawhide` and `stable`.
21
- attr_accessor :name
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
22
23
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
24
+ attr_accessor :pulp_labels
25
25
 
26
- # An optional content-guard. If none is specified, a default one will be used.
27
- attr_accessor :content_guard
26
+ # A unique name. Ex, `rawhide` and `stable`.
27
+ attr_accessor :name
28
28
 
29
29
  # RepositoryVersion to be served
30
30
  attr_accessor :repository_version
31
31
 
32
- attr_accessor :pulp_labels
32
+ attr_accessor :pulp_href
33
33
 
34
- # Timestamp of creation.
35
- attr_accessor :pulp_created
34
+ # An optional content-guard. If none is specified, a default one will be used.
35
+ attr_accessor :content_guard
36
36
 
37
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
38
- attr_accessor :base_path
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
39
 
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
@@ -43,43 +43,54 @@ module PulpContainerClient
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_href' => :'pulp_href',
55
+ :'base_path' => :'base_path',
56
+ :'pulp_created' => :'pulp_created',
57
+ :'pulp_labels' => :'pulp_labels',
50
58
  :'name' => :'name',
51
- :'repository' => :'repository',
52
- :'content_guard' => :'content_guard',
53
59
  :'repository_version' => :'repository_version',
54
- :'pulp_labels' => :'pulp_labels',
55
- :'pulp_created' => :'pulp_created',
56
- :'base_path' => :'base_path',
60
+ :'pulp_href' => :'pulp_href',
61
+ :'content_guard' => :'content_guard',
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_href' => :'String',
73
+ :'base_path' => :'String',
74
+ :'pulp_created' => :'DateTime',
75
+ :'pulp_labels' => :'Object',
66
76
  :'name' => :'String',
67
- :'repository' => :'String',
68
- :'content_guard' => :'String',
69
77
  :'repository_version' => :'String',
70
- :'pulp_labels' => :'Object',
71
- :'pulp_created' => :'DateTime',
72
- :'base_path' => :'String',
78
+ :'pulp_href' => :'String',
79
+ :'content_guard' => :'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_href')
102
- self.pulp_href = attributes[:'pulp_href']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
103
114
  end
104
115
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
116
+ if attributes.key?(:'pulp_created')
117
+ self.pulp_created = attributes[:'pulp_created']
107
118
  end
108
119
 
109
- if attributes.key?(:'repository')
110
- self.repository = attributes[:'repository']
120
+ if attributes.key?(:'pulp_labels')
121
+ self.pulp_labels = attributes[:'pulp_labels']
111
122
  end
112
123
 
113
- if attributes.key?(:'content_guard')
114
- self.content_guard = attributes[:'content_guard']
124
+ if attributes.key?(:'name')
125
+ self.name = attributes[:'name']
115
126
  end
116
127
 
117
128
  if attributes.key?(:'repository_version')
118
129
  self.repository_version = attributes[:'repository_version']
119
130
  end
120
131
 
121
- if attributes.key?(:'pulp_labels')
122
- self.pulp_labels = attributes[:'pulp_labels']
132
+ if attributes.key?(:'pulp_href')
133
+ self.pulp_href = attributes[:'pulp_href']
123
134
  end
124
135
 
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
136
+ if attributes.key?(:'content_guard')
137
+ self.content_guard = attributes[:'content_guard']
127
138
  end
128
139
 
129
- if attributes.key?(:'base_path')
130
- self.base_path = attributes[:'base_path']
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 @name.nil?
147
- invalid_properties.push('invalid value for "name", name cannot be nil.')
148
- end
149
-
150
165
  if @base_path.nil?
151
166
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
152
167
  end
153
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name 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 @name.nil?
161
179
  return false if @base_path.nil?
180
+ return false if @name.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_href == o.pulp_href &&
189
+ base_path == o.base_path &&
190
+ pulp_created == o.pulp_created &&
191
+ pulp_labels == o.pulp_labels &&
171
192
  name == o.name &&
172
- repository == o.repository &&
173
- content_guard == o.content_guard &&
174
193
  repository_version == o.repository_version &&
175
- pulp_labels == o.pulp_labels &&
176
- pulp_created == o.pulp_created &&
177
- base_path == o.base_path &&
194
+ pulp_href == o.pulp_href &&
195
+ content_guard == o.content_guard &&
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_href, name, repository, content_guard, repository_version, pulp_labels, pulp_created, base_path, registry_path, namespace].hash
212
+ [base_path, pulp_created, pulp_labels, name, repository_version, pulp_href, content_guard, repository, registry_path, namespace, private, description].hash
192
213
  end
193
214
 
194
215
  # Builds the object from hash
@@ -15,52 +15,63 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
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
+
18
23
  # A unique name. Ex, `rawhide` and `stable`.
19
24
  attr_accessor :name
20
25
 
21
- # The latest RepositoryVersion for this Repository will be served.
22
- attr_accessor :repository
26
+ # RepositoryVersion to be served
27
+ attr_accessor :repository_version
23
28
 
24
29
  # An optional content-guard. If none is specified, a default one will be used.
25
30
  attr_accessor :content_guard
26
31
 
27
- # RepositoryVersion to be served
28
- attr_accessor :repository_version
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
29
34
 
30
- attr_accessor :pulp_labels
35
+ # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
+ attr_accessor :private
31
37
 
32
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
- attr_accessor :base_path
38
+ # An optional description.
39
+ attr_accessor :description
34
40
 
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  def self.attribute_map
37
43
  {
44
+ :'base_path' => :'base_path',
45
+ :'pulp_labels' => :'pulp_labels',
38
46
  :'name' => :'name',
39
- :'repository' => :'repository',
40
- :'content_guard' => :'content_guard',
41
47
  :'repository_version' => :'repository_version',
42
- :'pulp_labels' => :'pulp_labels',
43
- :'base_path' => :'base_path'
48
+ :'content_guard' => :'content_guard',
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
  {
58
+ :'base_path' => :'String',
59
+ :'pulp_labels' => :'Object',
50
60
  :'name' => :'String',
51
- :'repository' => :'String',
52
- :'content_guard' => :'String',
53
61
  :'repository_version' => :'String',
54
- :'pulp_labels' => :'Object',
55
- :'base_path' => :'String'
62
+ :'content_guard' => :'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
 
93
+ if attributes.key?(:'base_path')
94
+ self.base_path = attributes[:'base_path']
95
+ end
96
+
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
+ end
100
+
82
101
  if attributes.key?(:'name')
83
102
  self.name = attributes[:'name']
84
103
  end
85
104
 
86
- if attributes.key?(:'repository')
87
- self.repository = attributes[:'repository']
105
+ if attributes.key?(:'repository_version')
106
+ self.repository_version = attributes[:'repository_version']
88
107
  end
89
108
 
90
109
  if attributes.key?(:'content_guard')
91
110
  self.content_guard = attributes[:'content_guard']
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?(:'pulp_labels')
99
- self.pulp_labels = attributes[:'pulp_labels']
117
+ if attributes.key?(:'private')
118
+ self.private = attributes[:'private']
100
119
  end
101
120
 
102
- if attributes.key?(:'base_path')
103
- self.base_path = attributes[:'base_path']
121
+ if attributes.key?(:'description')
122
+ self.description = attributes[:'description']
104
123
  end
105
124
  end
106
125
 
@@ -122,12 +141,14 @@ module PulpContainerClient
122
141
  def ==(o)
123
142
  return true if self.equal?(o)
124
143
  self.class == o.class &&
144
+ base_path == o.base_path &&
145
+ pulp_labels == o.pulp_labels &&
125
146
  name == o.name &&
126
- repository == o.repository &&
127
- content_guard == o.content_guard &&
128
147
  repository_version == o.repository_version &&
129
- pulp_labels == o.pulp_labels &&
130
- base_path == o.base_path
148
+ content_guard == o.content_guard &&
149
+ repository == o.repository &&
150
+ private == o.private &&
151
+ description == o.description
131
152
  end
132
153
 
133
154
  # @see the `==` method
@@ -139,7 +160,7 @@ module PulpContainerClient
139
160
  # Calculates hash code according to all attributes.
140
161
  # @return [Integer] Hash code
141
162
  def hash
142
- [name, repository, content_guard, repository_version, pulp_labels, base_path].hash
163
+ [base_path, pulp_labels, name, repository_version, content_guard, repository, private, description].hash
143
164
  end
144
165
 
145
166
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.3.0.dev01611977129'
14
+ VERSION = '2.4.0.dev01612927332'
15
15
  end
@@ -73,6 +73,7 @@ describe 'DistributionsContainerApi' do
73
73
  # @option opts [String] :namespace__name namespace__name
74
74
  # @option opts [Integer] :offset The initial index from which to return the results.
75
75
  # @option opts [String] :ordering Which field to use when ordering the results.
76
+ # @option opts [String] :pulp_label_select pulp_label_select
76
77
  # @option opts [String] :fields A list of fields to include in the response.
77
78
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
79
  # @return [PaginatedcontainerContainerDistributionResponseList]
@@ -46,10 +46,10 @@ describe 'PulpContainerNamespacesApi' do
46
46
 
47
47
  # unit tests for delete
48
48
  # Delete a container namespace
49
- # ViewSet for ContainerNamespaces.
49
+ # Trigger an asynchronous delete task
50
50
  # @param container_container_namespace_href
51
51
  # @param [Hash] opts the optional parameters
52
- # @return [nil]
52
+ # @return [AsyncOperationResponse]
53
53
  describe 'delete test' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -61,6 +61,11 @@ describe 'PulpContainerNamespacesApi' do
61
61
  # ViewSet for ContainerNamespaces.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
+ # @option opts [String] :name name
65
+ # @option opts [String] :name__contains name__contains
66
+ # @option opts [String] :name__icontains name__icontains
67
+ # @option opts [String] :name__in name__in
68
+ # @option opts [String] :name__startswith name__startswith
64
69
  # @option opts [Integer] :offset The initial index from which to return the results.
65
70
  # @option opts [String] :ordering Which field to use when ordering the results.
66
71
  # @option opts [String] :fields A list of fields to include in the response.
@@ -68,6 +68,7 @@ describe 'RemotesContainerApi' do
68
68
  # @option opts [String] :name__startswith name__startswith
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
+ # @option opts [String] :pulp_label_select pulp_label_select
71
72
  # @option opts [String] :pulp_last_updated pulp_last_updated
72
73
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
73
74
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -123,6 +123,7 @@ describe 'RepositoriesContainerApi' do
123
123
  # @option opts [String] :name__startswith name__startswith
124
124
  # @option opts [Integer] :offset The initial index from which to return the results.
125
125
  # @option opts [String] :ordering Which field to use when ordering the results.
126
+ # @option opts [String] :pulp_label_select pulp_label_select
126
127
  # @option opts [String] :fields A list of fields to include in the response.
127
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
128
129
  # @return [PaginatedcontainerContainerRepositoryResponseList]
@@ -34,7 +34,7 @@ describe 'RepositoriesContainerPushApi' do
34
34
 
35
35
  # unit tests for list
36
36
  # List container push repositorys
37
- # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
37
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
40
  # @option opts [String] :name name
@@ -44,6 +44,7 @@ describe 'RepositoriesContainerPushApi' do
44
44
  # @option opts [String] :name__startswith name__startswith
45
45
  # @option opts [Integer] :offset The initial index from which to return the results.
46
46
  # @option opts [String] :ordering Which field to use when ordering the results.
47
+ # @option opts [String] :pulp_label_select pulp_label_select
47
48
  # @option opts [String] :fields A list of fields to include in the response.
48
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
49
50
  # @return [PaginatedcontainerContainerPushRepositoryResponseList]
@@ -55,7 +56,7 @@ describe 'RepositoriesContainerPushApi' do
55
56
 
56
57
  # unit tests for read
57
58
  # Inspect a container push repository
58
- # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal
59
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
59
60
  # @param container_container_push_repository_href
60
61
  # @param [Hash] opts the optional parameters
61
62
  # @option opts [String] :fields A list of fields to include in the response.
@@ -67,4 +68,30 @@ describe 'RepositoriesContainerPushApi' do
67
68
  end
68
69
  end
69
70
 
71
+ # unit tests for tag
72
+ # Create a Tag
73
+ # Trigger an asynchronous task to tag an image in the repository
74
+ # @param container_container_push_repository_href
75
+ # @param tag_image
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [AsyncOperationResponse]
78
+ describe 'tag test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for untag
85
+ # Delete a tag
86
+ # Trigger an asynchronous task to untag an image in the repository
87
+ # @param container_container_push_repository_href
88
+ # @param un_tag_image
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ describe 'untag test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
70
97
  end