pulp_container_client 2.15.0.dev1674789963 → 2.15.0.dev1674961693

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