pulp_container_client 2.11.1 → 2.11.2

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