pulp_deb_client 2.14.1 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContentGenericContentsApi.md +1 -1
- data/docs/ContentInstallerFileIndicesApi.md +1 -1
- data/docs/ContentInstallerPackagesApi.md +1 -1
- data/docs/ContentPackageIndicesApi.md +1 -1
- data/docs/ContentPackageReleaseComponentsApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentReleaseArchitecturesApi.md +1 -1
- data/docs/ContentReleaseComponentsApi.md +1 -1
- data/docs/ContentReleaseFilesApi.md +1 -1
- data/docs/ContentReleasesApi.md +1 -1
- data/docs/DebAptRemote.md +1 -1
- data/docs/DebAptRemoteResponse.md +1 -1
- data/docs/DebAptRepository.md +3 -3
- data/docs/DebAptRepositoryResponse.md +3 -3
- data/docs/DebPackageIndex.md +2 -2
- data/docs/DebPackageIndexResponse.md +2 -2
- data/docs/DistributionsAptApi.md +1 -1
- data/docs/PatcheddebAptRemote.md +1 -1
- data/docs/PatcheddebAptRepository.md +3 -3
- data/docs/PublicationsAptApi.md +1 -1
- data/docs/PublicationsVerbatimApi.md +1 -1
- data/docs/RemotesAptApi.md +1 -1
- data/docs/RepositoriesAptApi.md +1 -1
- data/docs/RepositoriesAptVersionsApi.md +1 -1
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +51 -16
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
- data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
- data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
- data/lib/pulp_deb_client/models/deb_package_index.rb +41 -6
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +0 -10
- data/lib/pulp_deb_client/models/deb_release.rb +57 -0
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
- data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
- data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +47 -16
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/deb_apt_repository_response_spec.rb +1 -1
- data/spec/models/deb_apt_repository_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
- metadata +63 -57
@@ -106,12 +106,16 @@ module PulpDebClient
|
|
106
106
|
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
107
107
|
end
|
108
108
|
|
109
|
-
if
|
110
|
-
invalid_properties.push('invalid value for "component",
|
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
111
|
end
|
112
112
|
|
113
|
-
if
|
114
|
-
invalid_properties.push('invalid value for "architecture",
|
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.')
|
115
119
|
end
|
116
120
|
|
117
121
|
invalid_properties
|
@@ -122,11 +126,42 @@ module PulpDebClient
|
|
122
126
|
def valid?
|
123
127
|
return false if @artifacts.nil?
|
124
128
|
return false if @release.nil?
|
125
|
-
return false if
|
126
|
-
return false if
|
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
|
127
132
|
true
|
128
133
|
end
|
129
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
|
+
|
130
165
|
# Checks equality by comparing each attribute.
|
131
166
|
# @param [Object] Object to be compared
|
132
167
|
def ==(o)
|
@@ -123,14 +123,6 @@ module PulpDebClient
|
|
123
123
|
invalid_properties.push('invalid value for "release", release cannot be nil.')
|
124
124
|
end
|
125
125
|
|
126
|
-
if @component.nil?
|
127
|
-
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
|
-
if @architecture.nil?
|
131
|
-
invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
126
|
invalid_properties
|
135
127
|
end
|
136
128
|
|
@@ -139,8 +131,6 @@ module PulpDebClient
|
|
139
131
|
def valid?
|
140
132
|
return false if @artifacts.nil?
|
141
133
|
return false if @release.nil?
|
142
|
-
return false if @component.nil?
|
143
|
-
return false if @architecture.nil?
|
144
134
|
true
|
145
135
|
end
|
146
136
|
|
@@ -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)
|
@@ -74,7 +74,7 @@ module PulpDebClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
|
@@ -333,6 +333,46 @@ module PulpDebClient
|
|
333
333
|
# @return Array for valid properties with the reasons
|
334
334
|
def list_invalid_properties
|
335
335
|
invalid_properties = Array.new
|
336
|
+
if !@name.nil? && @name.to_s.length < 1
|
337
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
338
|
+
end
|
339
|
+
|
340
|
+
if !@url.nil? && @url.to_s.length < 1
|
341
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
342
|
+
end
|
343
|
+
|
344
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
345
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
346
|
+
end
|
347
|
+
|
348
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
349
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
350
|
+
end
|
351
|
+
|
352
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
353
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
354
|
+
end
|
355
|
+
|
356
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
357
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
358
|
+
end
|
359
|
+
|
360
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
361
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
362
|
+
end
|
363
|
+
|
364
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
365
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
366
|
+
end
|
367
|
+
|
368
|
+
if !@username.nil? && @username.to_s.length < 1
|
369
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
370
|
+
end
|
371
|
+
|
372
|
+
if !@password.nil? && @password.to_s.length < 1
|
373
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
374
|
+
end
|
375
|
+
|
336
376
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
337
377
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
338
378
|
end
|
@@ -353,20 +393,150 @@ module PulpDebClient
|
|
353
393
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
354
394
|
end
|
355
395
|
|
396
|
+
if !@distributions.nil? && @distributions.to_s.length < 1
|
397
|
+
invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
|
398
|
+
end
|
399
|
+
|
400
|
+
if !@components.nil? && @components.to_s.length < 1
|
401
|
+
invalid_properties.push('invalid value for "components", the character length must be great than or equal to 1.')
|
402
|
+
end
|
403
|
+
|
404
|
+
if !@architectures.nil? && @architectures.to_s.length < 1
|
405
|
+
invalid_properties.push('invalid value for "architectures", the character length must be great than or equal to 1.')
|
406
|
+
end
|
407
|
+
|
408
|
+
if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
409
|
+
invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
|
410
|
+
end
|
411
|
+
|
356
412
|
invalid_properties
|
357
413
|
end
|
358
414
|
|
359
415
|
# Check to see if the all the properties in the model are valid
|
360
416
|
# @return true if the model is valid
|
361
417
|
def valid?
|
418
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
419
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
420
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
421
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
422
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
423
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
424
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
425
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
426
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
427
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
362
428
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
363
429
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
364
430
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
365
431
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
366
432
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
433
|
+
return false if !@distributions.nil? && @distributions.to_s.length < 1
|
434
|
+
return false if !@components.nil? && @components.to_s.length < 1
|
435
|
+
return false if !@architectures.nil? && @architectures.to_s.length < 1
|
436
|
+
return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
367
437
|
true
|
368
438
|
end
|
369
439
|
|
440
|
+
# Custom attribute writer method with validation
|
441
|
+
# @param [Object] name Value to be assigned
|
442
|
+
def name=(name)
|
443
|
+
if !name.nil? && name.to_s.length < 1
|
444
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
445
|
+
end
|
446
|
+
|
447
|
+
@name = name
|
448
|
+
end
|
449
|
+
|
450
|
+
# Custom attribute writer method with validation
|
451
|
+
# @param [Object] url Value to be assigned
|
452
|
+
def url=(url)
|
453
|
+
if !url.nil? && url.to_s.length < 1
|
454
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
455
|
+
end
|
456
|
+
|
457
|
+
@url = url
|
458
|
+
end
|
459
|
+
|
460
|
+
# Custom attribute writer method with validation
|
461
|
+
# @param [Object] ca_cert Value to be assigned
|
462
|
+
def ca_cert=(ca_cert)
|
463
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
464
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
465
|
+
end
|
466
|
+
|
467
|
+
@ca_cert = ca_cert
|
468
|
+
end
|
469
|
+
|
470
|
+
# Custom attribute writer method with validation
|
471
|
+
# @param [Object] client_cert Value to be assigned
|
472
|
+
def client_cert=(client_cert)
|
473
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
474
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
475
|
+
end
|
476
|
+
|
477
|
+
@client_cert = client_cert
|
478
|
+
end
|
479
|
+
|
480
|
+
# Custom attribute writer method with validation
|
481
|
+
# @param [Object] client_key Value to be assigned
|
482
|
+
def client_key=(client_key)
|
483
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
484
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
485
|
+
end
|
486
|
+
|
487
|
+
@client_key = client_key
|
488
|
+
end
|
489
|
+
|
490
|
+
# Custom attribute writer method with validation
|
491
|
+
# @param [Object] proxy_url Value to be assigned
|
492
|
+
def proxy_url=(proxy_url)
|
493
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
494
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
495
|
+
end
|
496
|
+
|
497
|
+
@proxy_url = proxy_url
|
498
|
+
end
|
499
|
+
|
500
|
+
# Custom attribute writer method with validation
|
501
|
+
# @param [Object] proxy_username Value to be assigned
|
502
|
+
def proxy_username=(proxy_username)
|
503
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
504
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
505
|
+
end
|
506
|
+
|
507
|
+
@proxy_username = proxy_username
|
508
|
+
end
|
509
|
+
|
510
|
+
# Custom attribute writer method with validation
|
511
|
+
# @param [Object] proxy_password Value to be assigned
|
512
|
+
def proxy_password=(proxy_password)
|
513
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
514
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
515
|
+
end
|
516
|
+
|
517
|
+
@proxy_password = proxy_password
|
518
|
+
end
|
519
|
+
|
520
|
+
# Custom attribute writer method with validation
|
521
|
+
# @param [Object] username Value to be assigned
|
522
|
+
def username=(username)
|
523
|
+
if !username.nil? && username.to_s.length < 1
|
524
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
525
|
+
end
|
526
|
+
|
527
|
+
@username = username
|
528
|
+
end
|
529
|
+
|
530
|
+
# Custom attribute writer method with validation
|
531
|
+
# @param [Object] password Value to be assigned
|
532
|
+
def password=(password)
|
533
|
+
if !password.nil? && password.to_s.length < 1
|
534
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
535
|
+
end
|
536
|
+
|
537
|
+
@password = password
|
538
|
+
end
|
539
|
+
|
370
540
|
# Custom attribute writer method with validation
|
371
541
|
# @param [Object] download_concurrency Value to be assigned
|
372
542
|
def download_concurrency=(download_concurrency)
|
@@ -417,6 +587,46 @@ module PulpDebClient
|
|
417
587
|
@sock_read_timeout = sock_read_timeout
|
418
588
|
end
|
419
589
|
|
590
|
+
# Custom attribute writer method with validation
|
591
|
+
# @param [Object] distributions Value to be assigned
|
592
|
+
def distributions=(distributions)
|
593
|
+
if !distributions.nil? && distributions.to_s.length < 1
|
594
|
+
fail ArgumentError, 'invalid value for "distributions", the character length must be great than or equal to 1.'
|
595
|
+
end
|
596
|
+
|
597
|
+
@distributions = distributions
|
598
|
+
end
|
599
|
+
|
600
|
+
# Custom attribute writer method with validation
|
601
|
+
# @param [Object] components Value to be assigned
|
602
|
+
def components=(components)
|
603
|
+
if !components.nil? && components.to_s.length < 1
|
604
|
+
fail ArgumentError, 'invalid value for "components", the character length must be great than or equal to 1.'
|
605
|
+
end
|
606
|
+
|
607
|
+
@components = components
|
608
|
+
end
|
609
|
+
|
610
|
+
# Custom attribute writer method with validation
|
611
|
+
# @param [Object] architectures Value to be assigned
|
612
|
+
def architectures=(architectures)
|
613
|
+
if !architectures.nil? && architectures.to_s.length < 1
|
614
|
+
fail ArgumentError, 'invalid value for "architectures", the character length must be great than or equal to 1.'
|
615
|
+
end
|
616
|
+
|
617
|
+
@architectures = architectures
|
618
|
+
end
|
619
|
+
|
620
|
+
# Custom attribute writer method with validation
|
621
|
+
# @param [Object] gpgkey Value to be assigned
|
622
|
+
def gpgkey=(gpgkey)
|
623
|
+
if !gpgkey.nil? && gpgkey.to_s.length < 1
|
624
|
+
fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
|
625
|
+
end
|
626
|
+
|
627
|
+
@gpgkey = gpgkey
|
628
|
+
end
|
629
|
+
|
420
630
|
# Checks equality by comparing each attribute.
|
421
631
|
# @param [Object] Object to be compared
|
422
632
|
def ==(o)
|