pulp_deb_client 2.16.3 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/DebAptRemote.md +1 -1
  4. data/docs/DebAptRemoteResponse.md +1 -1
  5. data/docs/PatcheddebAptRemote.md +1 -1
  6. data/git_push.sh +58 -0
  7. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
  8. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
  9. data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
  10. data/lib/pulp_deb_client/api_client.rb +5 -2
  11. data/lib/pulp_deb_client/configuration.rb +0 -1
  12. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
  13. data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
  14. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  15. data/lib/pulp_deb_client/models/deb_apt_repository.rb +34 -0
  16. data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
  17. data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
  18. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
  19. data/lib/pulp_deb_client/models/deb_package_index.rb +45 -0
  20. data/lib/pulp_deb_client/models/deb_release.rb +57 -0
  21. data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
  22. data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
  23. data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
  24. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
  25. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
  26. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +30 -0
  27. data/lib/pulp_deb_client/version.rb +1 -1
  28. data/pulp_deb_client.gemspec +3 -3
  29. metadata +65 -64
@@ -93,6 +93,10 @@ module PulpDebClient
93
93
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
94
94
  end
95
95
 
96
+ if @relative_path.to_s.length < 1
97
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
98
+ end
99
+
96
100
  invalid_properties
97
101
  end
98
102
 
@@ -100,9 +104,24 @@ module PulpDebClient
100
104
  # @return true if the model is valid
101
105
  def valid?
102
106
  return false if @relative_path.nil?
107
+ return false if @relative_path.to_s.length < 1
103
108
  true
104
109
  end
105
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] relative_path Value to be assigned
113
+ def relative_path=(relative_path)
114
+ if relative_path.nil?
115
+ fail ArgumentError, 'relative_path cannot be nil'
116
+ end
117
+
118
+ if relative_path.to_s.length < 1
119
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
120
+ end
121
+
122
+ @relative_path = relative_path
123
+ end
124
+
106
125
  # Checks equality by comparing each attribute.
107
126
  # @param [Object] Object to be compared
108
127
  def ==(o)
@@ -110,10 +110,22 @@ module PulpDebClient
110
110
  invalid_properties.push('invalid value for "component", component cannot be nil.')
111
111
  end
112
112
 
113
+ if @component.to_s.length < 1
114
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
115
+ end
116
+
113
117
  if @architecture.nil?
114
118
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
115
119
  end
116
120
 
121
+ if @architecture.to_s.length < 1
122
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
123
+ end
124
+
125
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
126
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
127
+ end
128
+
117
129
  invalid_properties
118
130
  end
119
131
 
@@ -123,10 +135,51 @@ module PulpDebClient
123
135
  return false if @artifacts.nil?
124
136
  return false if @release.nil?
125
137
  return false if @component.nil?
138
+ return false if @component.to_s.length < 1
126
139
  return false if @architecture.nil?
140
+ return false if @architecture.to_s.length < 1
141
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
127
142
  true
128
143
  end
129
144
 
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] component Value to be assigned
147
+ def component=(component)
148
+ if component.nil?
149
+ fail ArgumentError, 'component cannot be nil'
150
+ end
151
+
152
+ if component.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @component = component
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] architecture Value to be assigned
161
+ def architecture=(architecture)
162
+ if architecture.nil?
163
+ fail ArgumentError, 'architecture cannot be nil'
164
+ end
165
+
166
+ if architecture.to_s.length < 1
167
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
168
+ end
169
+
170
+ @architecture = architecture
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] relative_path Value to be assigned
175
+ def relative_path=(relative_path)
176
+ if !relative_path.nil? && relative_path.to_s.length < 1
177
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
178
+ end
179
+
180
+ @relative_path = relative_path
181
+ end
182
+
130
183
  # Checks equality by comparing each attribute.
131
184
  # @param [Object] Object to be compared
132
185
  def ==(o)
@@ -106,6 +106,18 @@ module PulpDebClient
106
106
  invalid_properties.push('invalid value for "release", release cannot be nil.')
107
107
  end
108
108
 
109
+ if !@component.nil? && @component.to_s.length < 1
110
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
111
+ end
112
+
113
+ if !@architecture.nil? && @architecture.to_s.length < 1
114
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
115
+ end
116
+
117
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
118
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
119
+ end
120
+
109
121
  invalid_properties
110
122
  end
111
123
 
@@ -114,9 +126,42 @@ module PulpDebClient
114
126
  def valid?
115
127
  return false if @artifacts.nil?
116
128
  return false if @release.nil?
129
+ return false if !@component.nil? && @component.to_s.length < 1
130
+ return false if !@architecture.nil? && @architecture.to_s.length < 1
131
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
117
132
  true
118
133
  end
119
134
 
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] component Value to be assigned
137
+ def component=(component)
138
+ if !component.nil? && component.to_s.length < 1
139
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
140
+ end
141
+
142
+ @component = component
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] architecture Value to be assigned
147
+ def architecture=(architecture)
148
+ if !architecture.nil? && architecture.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @architecture = architecture
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] relative_path Value to be assigned
157
+ def relative_path=(relative_path)
158
+ if !relative_path.nil? && relative_path.to_s.length < 1
159
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
160
+ end
161
+
162
+ @relative_path = relative_path
163
+ end
164
+
120
165
  # Checks equality by comparing each attribute.
121
166
  # @param [Object] Object to be compared
122
167
  def ==(o)
@@ -81,14 +81,26 @@ module PulpDebClient
81
81
  invalid_properties.push('invalid value for "codename", codename cannot be nil.')
82
82
  end
83
83
 
84
+ if @codename.to_s.length < 1
85
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
86
+ end
87
+
84
88
  if @suite.nil?
85
89
  invalid_properties.push('invalid value for "suite", suite cannot be nil.')
86
90
  end
87
91
 
92
+ if @suite.to_s.length < 1
93
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
94
+ end
95
+
88
96
  if @distribution.nil?
89
97
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
90
98
  end
91
99
 
100
+ if @distribution.to_s.length < 1
101
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
102
+ end
103
+
92
104
  invalid_properties
93
105
  end
94
106
 
@@ -96,11 +108,56 @@ module PulpDebClient
96
108
  # @return true if the model is valid
97
109
  def valid?
98
110
  return false if @codename.nil?
111
+ return false if @codename.to_s.length < 1
99
112
  return false if @suite.nil?
113
+ return false if @suite.to_s.length < 1
100
114
  return false if @distribution.nil?
115
+ return false if @distribution.to_s.length < 1
101
116
  true
102
117
  end
103
118
 
119
+ # Custom attribute writer method with validation
120
+ # @param [Object] codename Value to be assigned
121
+ def codename=(codename)
122
+ if codename.nil?
123
+ fail ArgumentError, 'codename cannot be nil'
124
+ end
125
+
126
+ if codename.to_s.length < 1
127
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
128
+ end
129
+
130
+ @codename = codename
131
+ end
132
+
133
+ # Custom attribute writer method with validation
134
+ # @param [Object] suite Value to be assigned
135
+ def suite=(suite)
136
+ if suite.nil?
137
+ fail ArgumentError, 'suite cannot be nil'
138
+ end
139
+
140
+ if suite.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @suite = suite
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] distribution Value to be assigned
149
+ def distribution=(distribution)
150
+ if distribution.nil?
151
+ fail ArgumentError, 'distribution cannot be nil'
152
+ end
153
+
154
+ if distribution.to_s.length < 1
155
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
156
+ end
157
+
158
+ @distribution = distribution
159
+ end
160
+
104
161
  # Checks equality by comparing each attribute.
105
162
  # @param [Object] Object to be compared
106
163
  def ==(o)
@@ -75,6 +75,10 @@ module PulpDebClient
75
75
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
76
76
  end
77
77
 
78
+ if @architecture.to_s.length < 1
79
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
80
+ end
81
+
78
82
  if @release.nil?
79
83
  invalid_properties.push('invalid value for "release", release cannot be nil.')
80
84
  end
@@ -86,10 +90,25 @@ module PulpDebClient
86
90
  # @return true if the model is valid
87
91
  def valid?
88
92
  return false if @architecture.nil?
93
+ return false if @architecture.to_s.length < 1
89
94
  return false if @release.nil?
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] architecture Value to be assigned
100
+ def architecture=(architecture)
101
+ if architecture.nil?
102
+ fail ArgumentError, 'architecture cannot be nil'
103
+ end
104
+
105
+ if architecture.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @architecture = architecture
110
+ end
111
+
93
112
  # Checks equality by comparing each attribute.
94
113
  # @param [Object] Object to be compared
95
114
  def ==(o)
@@ -75,6 +75,10 @@ module PulpDebClient
75
75
  invalid_properties.push('invalid value for "component", component cannot be nil.')
76
76
  end
77
77
 
78
+ if @component.to_s.length < 1
79
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
80
+ end
81
+
78
82
  if @release.nil?
79
83
  invalid_properties.push('invalid value for "release", release cannot be nil.')
80
84
  end
@@ -86,10 +90,25 @@ module PulpDebClient
86
90
  # @return true if the model is valid
87
91
  def valid?
88
92
  return false if @component.nil?
93
+ return false if @component.to_s.length < 1
89
94
  return false if @release.nil?
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] component Value to be assigned
100
+ def component=(component)
101
+ if component.nil?
102
+ fail ArgumentError, 'component cannot be nil'
103
+ end
104
+
105
+ if component.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @component = component
110
+ end
111
+
93
112
  # Checks equality by comparing each attribute.
94
113
  # @param [Object] Object to be compared
95
114
  def ==(o)
@@ -102,10 +102,26 @@ module PulpDebClient
102
102
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
103
  end
104
104
 
105
+ if !@codename.nil? && @codename.to_s.length < 1
106
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
107
+ end
108
+
109
+ if !@suite.nil? && @suite.to_s.length < 1
110
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
111
+ end
112
+
105
113
  if @distribution.nil?
106
114
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
107
115
  end
108
116
 
117
+ if @distribution.to_s.length < 1
118
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
119
+ end
120
+
121
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
122
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
123
+ end
124
+
109
125
  invalid_properties
110
126
  end
111
127
 
@@ -113,10 +129,58 @@ module PulpDebClient
113
129
  # @return true if the model is valid
114
130
  def valid?
115
131
  return false if @artifacts.nil?
132
+ return false if !@codename.nil? && @codename.to_s.length < 1
133
+ return false if !@suite.nil? && @suite.to_s.length < 1
116
134
  return false if @distribution.nil?
135
+ return false if @distribution.to_s.length < 1
136
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
117
137
  true
118
138
  end
119
139
 
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] codename Value to be assigned
142
+ def codename=(codename)
143
+ if !codename.nil? && codename.to_s.length < 1
144
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
145
+ end
146
+
147
+ @codename = codename
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] suite Value to be assigned
152
+ def suite=(suite)
153
+ if !suite.nil? && suite.to_s.length < 1
154
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
155
+ end
156
+
157
+ @suite = suite
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param [Object] distribution Value to be assigned
162
+ def distribution=(distribution)
163
+ if distribution.nil?
164
+ fail ArgumentError, 'distribution cannot be nil'
165
+ end
166
+
167
+ if distribution.to_s.length < 1
168
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
169
+ end
170
+
171
+ @distribution = distribution
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] relative_path Value to be assigned
176
+ def relative_path=(relative_path)
177
+ if !relative_path.nil? && relative_path.to_s.length < 1
178
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
179
+ end
180
+
181
+ @relative_path = relative_path
182
+ end
183
+
120
184
  # Checks equality by comparing each attribute.
121
185
  # @param [Object] Object to be compared
122
186
  def ==(o)
@@ -109,15 +109,45 @@ module PulpDebClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if !@base_path.nil? && @base_path.to_s.length < 1
113
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
114
+ end
115
+
116
+ if !@name.nil? && @name.to_s.length < 1
117
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
118
+ end
119
+
112
120
  invalid_properties
113
121
  end
114
122
 
115
123
  # Check to see if the all the properties in the model are valid
116
124
  # @return true if the model is valid
117
125
  def valid?
126
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
127
+ return false if !@name.nil? && @name.to_s.length < 1
118
128
  true
119
129
  end
120
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] base_path Value to be assigned
133
+ def base_path=(base_path)
134
+ if !base_path.nil? && base_path.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @base_path = base_path
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] name Value to be assigned
143
+ def name=(name)
144
+ if !name.nil? && name.to_s.length < 1
145
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
146
+ end
147
+
148
+ @name = name
149
+ end
150
+
121
151
  # Checks equality by comparing each attribute.
122
152
  # @param [Object] Object to be compared
123
153
  def ==(o)