pulp_container_client 2.9.6 → 2.10.0

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +8 -8
  5. data/docs/ContainerContainerPushRepository.md +3 -3
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  10. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  11. data/docs/PatchedcontainerContainerRemote.md +1 -1
  12. data/git_push.sh +58 -0
  13. data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
  14. data/lib/pulp_container_client/api_client.rb +4 -1
  15. data/lib/pulp_container_client/configuration.rb +0 -1
  16. data/lib/pulp_container_client/models/container_container_distribution.rb +70 -17
  17. data/lib/pulp_container_client/models/container_container_distribution_response.rb +33 -33
  18. data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
  19. data/lib/pulp_container_client/models/container_container_push_repository.rb +52 -18
  20. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
  21. data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
  22. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  23. data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
  24. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
  25. data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
  26. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +62 -17
  27. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -15
  28. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
  29. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
  30. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
  31. data/lib/pulp_container_client/models/remove_image.rb +19 -0
  32. data/lib/pulp_container_client/models/tag_image.rb +28 -0
  33. data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
  34. data/lib/pulp_container_client/version.rb +1 -1
  35. data/pulp_container_client.gemspec +3 -3
  36. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  37. data/spec/models/container_container_distribution_spec.rb +4 -4
  38. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  39. data/spec/models/container_container_push_repository_spec.rb +2 -2
  40. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  41. data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
  42. metadata +52 -57
@@ -15,25 +15,25 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
- attr_accessor :pulp_href
21
+ attr_accessor :pulp_labels
22
22
 
23
23
  # An optional content-guard. If none is specified, a default one will be used.
24
24
  attr_accessor :content_guard
25
25
 
26
- attr_accessor :pulp_labels
27
-
28
- # Timestamp of creation.
29
- attr_accessor :pulp_created
30
-
31
26
  # A unique name. Ex, `rawhide` and `stable`.
32
27
  attr_accessor :name
33
28
 
34
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\")
35
30
  attr_accessor :base_path
36
31
 
32
+ attr_accessor :pulp_href
33
+
34
+ # The latest RepositoryVersion for this Repository will be served.
35
+ attr_accessor :repository
36
+
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
39
39
 
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'repository' => :'repository',
56
- :'pulp_href' => :'pulp_href',
57
- :'content_guard' => :'content_guard',
58
- :'pulp_labels' => :'pulp_labels',
59
55
  :'pulp_created' => :'pulp_created',
56
+ :'pulp_labels' => :'pulp_labels',
57
+ :'content_guard' => :'content_guard',
60
58
  :'name' => :'name',
61
59
  :'base_path' => :'base_path',
60
+ :'pulp_href' => :'pulp_href',
61
+ :'repository' => :'repository',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
@@ -70,13 +70,13 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'repository' => :'String',
74
- :'pulp_href' => :'String',
75
- :'content_guard' => :'String',
76
- :'pulp_labels' => :'Object',
77
73
  :'pulp_created' => :'DateTime',
74
+ :'pulp_labels' => :'Object',
75
+ :'content_guard' => :'String',
78
76
  :'name' => :'String',
79
77
  :'base_path' => :'String',
78
+ :'pulp_href' => :'String',
79
+ :'repository' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,24 +109,16 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'repository')
113
- self.repository = attributes[:'repository']
114
- end
115
-
116
- if attributes.key?(:'pulp_href')
117
- self.pulp_href = attributes[:'pulp_href']
118
- end
119
-
120
- if attributes.key?(:'content_guard')
121
- self.content_guard = attributes[:'content_guard']
112
+ if attributes.key?(:'pulp_created')
113
+ self.pulp_created = attributes[:'pulp_created']
122
114
  end
123
115
 
124
116
  if attributes.key?(:'pulp_labels')
125
117
  self.pulp_labels = attributes[:'pulp_labels']
126
118
  end
127
119
 
128
- if attributes.key?(:'pulp_created')
129
- self.pulp_created = attributes[:'pulp_created']
120
+ if attributes.key?(:'content_guard')
121
+ self.content_guard = attributes[:'content_guard']
130
122
  end
131
123
 
132
124
  if attributes.key?(:'name')
@@ -137,6 +129,14 @@ module PulpContainerClient
137
129
  self.base_path = attributes[:'base_path']
138
130
  end
139
131
 
132
+ if attributes.key?(:'pulp_href')
133
+ self.pulp_href = attributes[:'pulp_href']
134
+ end
135
+
136
+ if attributes.key?(:'repository')
137
+ self.repository = attributes[:'repository']
138
+ end
139
+
140
140
  if attributes.key?(:'repository_version')
141
141
  self.repository_version = attributes[:'repository_version']
142
142
  end
@@ -186,13 +186,13 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- repository == o.repository &&
190
- pulp_href == o.pulp_href &&
191
- content_guard == o.content_guard &&
192
- pulp_labels == o.pulp_labels &&
193
189
  pulp_created == o.pulp_created &&
190
+ pulp_labels == o.pulp_labels &&
191
+ content_guard == o.content_guard &&
194
192
  name == o.name &&
195
193
  base_path == o.base_path &&
194
+ pulp_href == o.pulp_href &&
195
+ repository == o.repository &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [repository, pulp_href, content_guard, pulp_labels, pulp_created, name, base_path, repository_version, registry_path, namespace, private, description].hash
212
+ [pulp_created, pulp_labels, content_guard, name, base_path, pulp_href, repository, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -69,6 +69,10 @@ module PulpContainerClient
69
69
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
70
70
  end
71
71
 
72
+ if @name.to_s.length < 1
73
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
@@ -77,6 +81,7 @@ module PulpContainerClient
77
81
  def valid?
78
82
  return false if @name.nil?
79
83
  return false if @name.to_s.length > 255
84
+ return false if @name.to_s.length < 1
80
85
  true
81
86
  end
82
87
 
@@ -91,6 +96,10 @@ module PulpContainerClient
91
96
  fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
92
97
  end
93
98
 
99
+ if name.to_s.length < 1
100
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
101
+ end
102
+
94
103
  @name = name
95
104
  end
96
105
 
@@ -20,19 +20,19 @@ module PulpContainerClient
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
- # A unique name for this repository.
24
- attr_accessor :name
25
-
26
23
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
24
  attr_accessor :retain_repo_versions
28
25
 
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
32
  :'description' => :'description',
33
33
  :'pulp_labels' => :'pulp_labels',
34
- :'name' => :'name',
35
- :'retain_repo_versions' => :'retain_repo_versions'
34
+ :'retain_repo_versions' => :'retain_repo_versions',
35
+ :'name' => :'name'
36
36
  }
37
37
  end
38
38
 
@@ -41,8 +41,8 @@ module PulpContainerClient
41
41
  {
42
42
  :'description' => :'String',
43
43
  :'pulp_labels' => :'Object',
44
- :'name' => :'String',
45
- :'retain_repo_versions' => :'Integer'
44
+ :'retain_repo_versions' => :'Integer',
45
+ :'name' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -50,7 +50,7 @@ module PulpContainerClient
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
52
  :'description',
53
- :'retain_repo_versions'
53
+ :'retain_repo_versions',
54
54
  ])
55
55
  end
56
56
 
@@ -77,38 +77,58 @@ module PulpContainerClient
77
77
  self.pulp_labels = attributes[:'pulp_labels']
78
78
  end
79
79
 
80
- if attributes.key?(:'name')
81
- self.name = attributes[:'name']
82
- end
83
-
84
80
  if attributes.key?(:'retain_repo_versions')
85
81
  self.retain_repo_versions = attributes[:'retain_repo_versions']
86
82
  end
83
+
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if @name.nil?
94
- invalid_properties.push('invalid value for "name", name cannot be nil.')
93
+ if !@description.nil? && @description.to_s.length < 1
94
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
95
  end
96
96
 
97
97
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
98
98
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
99
99
  end
100
100
 
101
+ if @name.nil?
102
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
103
+ end
104
+
105
+ if @name.to_s.length < 1
106
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
+ end
108
+
101
109
  invalid_properties
102
110
  end
103
111
 
104
112
  # Check to see if the all the properties in the model are valid
105
113
  # @return true if the model is valid
106
114
  def valid?
107
- return false if @name.nil?
115
+ return false if !@description.nil? && @description.to_s.length < 1
108
116
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
117
+ return false if @name.nil?
118
+ return false if @name.to_s.length < 1
109
119
  true
110
120
  end
111
121
 
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] description Value to be assigned
124
+ def description=(description)
125
+ if !description.nil? && description.to_s.length < 1
126
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
127
+ end
128
+
129
+ @description = description
130
+ end
131
+
112
132
  # Custom attribute writer method with validation
113
133
  # @param [Object] retain_repo_versions Value to be assigned
114
134
  def retain_repo_versions=(retain_repo_versions)
@@ -119,6 +139,20 @@ module PulpContainerClient
119
139
  @retain_repo_versions = retain_repo_versions
120
140
  end
121
141
 
142
+ # Custom attribute writer method with validation
143
+ # @param [Object] name Value to be assigned
144
+ def name=(name)
145
+ if name.nil?
146
+ fail ArgumentError, 'name cannot be nil'
147
+ end
148
+
149
+ if name.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @name = name
154
+ end
155
+
122
156
  # Checks equality by comparing each attribute.
123
157
  # @param [Object] Object to be compared
124
158
  def ==(o)
@@ -126,8 +160,8 @@ module PulpContainerClient
126
160
  self.class == o.class &&
127
161
  description == o.description &&
128
162
  pulp_labels == o.pulp_labels &&
129
- name == o.name &&
130
- retain_repo_versions == o.retain_repo_versions
163
+ retain_repo_versions == o.retain_repo_versions &&
164
+ name == o.name
131
165
  end
132
166
 
133
167
  # @see the `==` method
@@ -139,7 +173,7 @@ module PulpContainerClient
139
173
  # Calculates hash code according to all attributes.
140
174
  # @return [Integer] Hash code
141
175
  def hash
142
- [description, pulp_labels, name, retain_repo_versions].hash
176
+ [description, pulp_labels, retain_repo_versions, name].hash
143
177
  end
144
178
 
145
179
  # Builds the object from hash
@@ -15,51 +15,51 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :versions_href
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
19
20
 
20
21
  # An optional description.
21
22
  attr_accessor :description
22
23
 
23
- attr_accessor :pulp_href
24
-
25
24
  attr_accessor :pulp_labels
26
25
 
27
- attr_accessor :latest_version_href
28
-
29
- # Timestamp of creation.
30
- attr_accessor :pulp_created
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retain_repo_versions
31
28
 
32
29
  # A unique name for this repository.
33
30
  attr_accessor :name
34
31
 
35
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
- attr_accessor :retain_repo_versions
32
+ attr_accessor :versions_href
33
+
34
+ attr_accessor :latest_version_href
35
+
36
+ attr_accessor :pulp_href
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'versions_href' => :'versions_href',
41
+ :'pulp_created' => :'pulp_created',
42
42
  :'description' => :'description',
43
- :'pulp_href' => :'pulp_href',
44
43
  :'pulp_labels' => :'pulp_labels',
45
- :'latest_version_href' => :'latest_version_href',
46
- :'pulp_created' => :'pulp_created',
44
+ :'retain_repo_versions' => :'retain_repo_versions',
47
45
  :'name' => :'name',
48
- :'retain_repo_versions' => :'retain_repo_versions'
46
+ :'versions_href' => :'versions_href',
47
+ :'latest_version_href' => :'latest_version_href',
48
+ :'pulp_href' => :'pulp_href'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'versions_href' => :'String',
55
+ :'pulp_created' => :'DateTime',
56
56
  :'description' => :'String',
57
- :'pulp_href' => :'String',
58
57
  :'pulp_labels' => :'Object',
59
- :'latest_version_href' => :'String',
60
- :'pulp_created' => :'DateTime',
58
+ :'retain_repo_versions' => :'Integer',
61
59
  :'name' => :'String',
62
- :'retain_repo_versions' => :'Integer'
60
+ :'versions_href' => :'String',
61
+ :'latest_version_href' => :'String',
62
+ :'pulp_href' => :'String'
63
63
  }
64
64
  end
65
65
 
@@ -67,7 +67,7 @@ module PulpContainerClient
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
69
  :'description',
70
- :'retain_repo_versions'
70
+ :'retain_repo_versions',
71
71
  ])
72
72
  end
73
73
 
@@ -86,36 +86,36 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'versions_href')
90
- self.versions_href = attributes[:'versions_href']
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
91
  end
92
92
 
93
93
  if attributes.key?(:'description')
94
94
  self.description = attributes[:'description']
95
95
  end
96
96
 
97
- if attributes.key?(:'pulp_href')
98
- self.pulp_href = attributes[:'pulp_href']
99
- end
100
-
101
97
  if attributes.key?(:'pulp_labels')
102
98
  self.pulp_labels = attributes[:'pulp_labels']
103
99
  end
104
100
 
105
- if attributes.key?(:'latest_version_href')
106
- self.latest_version_href = attributes[:'latest_version_href']
107
- end
108
-
109
- if attributes.key?(:'pulp_created')
110
- self.pulp_created = attributes[:'pulp_created']
101
+ if attributes.key?(:'retain_repo_versions')
102
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
111
103
  end
112
104
 
113
105
  if attributes.key?(:'name')
114
106
  self.name = attributes[:'name']
115
107
  end
116
108
 
117
- if attributes.key?(:'retain_repo_versions')
118
- self.retain_repo_versions = attributes[:'retain_repo_versions']
109
+ if attributes.key?(:'versions_href')
110
+ self.versions_href = attributes[:'versions_href']
111
+ end
112
+
113
+ if attributes.key?(:'latest_version_href')
114
+ self.latest_version_href = attributes[:'latest_version_href']
115
+ end
116
+
117
+ if attributes.key?(:'pulp_href')
118
+ self.pulp_href = attributes[:'pulp_href']
119
119
  end
120
120
  end
121
121
 
@@ -123,22 +123,22 @@ module PulpContainerClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if @name.nil?
127
- invalid_properties.push('invalid value for "name", name cannot be nil.')
128
- end
129
-
130
126
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
127
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
128
  end
133
129
 
130
+ if @name.nil?
131
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
137
137
  # Check to see if the all the properties in the model are valid
138
138
  # @return true if the model is valid
139
139
  def valid?
140
- return false if @name.nil?
141
140
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ return false if @name.nil?
142
142
  true
143
143
  end
144
144
 
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
- versions_href == o.versions_href &&
160
+ pulp_created == o.pulp_created &&
161
161
  description == o.description &&
162
- pulp_href == o.pulp_href &&
163
162
  pulp_labels == o.pulp_labels &&
164
- latest_version_href == o.latest_version_href &&
165
- pulp_created == o.pulp_created &&
163
+ retain_repo_versions == o.retain_repo_versions &&
166
164
  name == o.name &&
167
- retain_repo_versions == o.retain_repo_versions
165
+ versions_href == o.versions_href &&
166
+ latest_version_href == o.latest_version_href &&
167
+ pulp_href == o.pulp_href
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [versions_href, description, pulp_href, pulp_labels, latest_version_href, pulp_created, name, retain_repo_versions].hash
179
+ [pulp_created, description, pulp_labels, retain_repo_versions, name, versions_href, latest_version_href, pulp_href].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash