pulpcore_client 3.0.0rc2.dev.1558464474 → 3.0.0rc2.dev.1558538021
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulpcore_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
- data/lib/pulpcore_client/models/artifact.rb +90 -0
- data/lib/pulpcore_client/models/progress_report.rb +15 -0
- data/lib/pulpcore_client/models/repository.rb +15 -0
- data/lib/pulpcore_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c411628d76cf39ab9e0a0097fcc745dcfa2078e32a8d97ddc6db3855e6e08ec7
|
4
|
+
data.tar.gz: 5476b7daccececc2f3bd95626032061a2e230509e71e6c8c8913961756fbf758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e41a6fcd32fcd5b5de3170f69fbe2d3d2c6616f1c299cbf50dbc35bfafe6a26b8ebe45c25e83c19dbc7cca85769da2d0a267da9d4e5a6a190818cf488cf5125
|
7
|
+
data.tar.gz: 38d26d8bc4ea7bce39a25b9b18c85703221d13ea3239e9ae48cbef3ce7fb27c77dbdbeb5b287a06fce87aaa36fea3f450dbd4b3ba3a7fcd27662fd88852a6177
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.0.0rc2.dev.
|
10
|
+
- Package version: 3.0.0rc2.dev.1558538021
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulpcore_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulpcore_client-3.0.0rc2.dev.
|
26
|
+
gem install ./pulpcore_client-3.0.0rc2.dev.1558538021.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.
|
29
|
+
(for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1558538021.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'pulpcore_client', '~> 3.0.0rc2.dev.
|
35
|
+
gem 'pulpcore_client', '~> 3.0.0rc2.dev.1558538021'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -52,6 +52,30 @@ module PulpcoreClient
|
|
52
52
|
if @api_client.config.debugging
|
53
53
|
@api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_create ...'
|
54
54
|
end
|
55
|
+
if @api_client.config.client_side_validation && !opts[:'md5'].nil? && opts[:'md5'].to_s.length < 1
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
57
|
+
end
|
58
|
+
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'sha1'].nil? && opts[:'sha1'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"sha1"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
61
|
+
end
|
62
|
+
|
63
|
+
if @api_client.config.client_side_validation && !opts[:'sha224'].nil? && opts[:'sha224'].to_s.length < 1
|
64
|
+
fail ArgumentError, 'invalid value for "opts[:"sha224"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
65
|
+
end
|
66
|
+
|
67
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
69
|
+
end
|
70
|
+
|
71
|
+
if @api_client.config.client_side_validation && !opts[:'sha384'].nil? && opts[:'sha384'].to_s.length < 1
|
72
|
+
fail ArgumentError, 'invalid value for "opts[:"sha384"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
73
|
+
end
|
74
|
+
|
75
|
+
if @api_client.config.client_side_validation && !opts[:'sha512'].nil? && opts[:'sha512'].to_s.length < 1
|
76
|
+
fail ArgumentError, 'invalid value for "opts[:"sha512"]" when calling ArtifactsApi.artifacts_create, the character length must be great than or equal to 1.'
|
77
|
+
end
|
78
|
+
|
55
79
|
# resource path
|
56
80
|
local_var_path = '/pulp/api/v3/artifacts/'
|
57
81
|
|
@@ -144,15 +144,105 @@ module PulpcoreClient
|
|
144
144
|
# @return Array for valid properties with the reasons
|
145
145
|
def list_invalid_properties
|
146
146
|
invalid_properties = Array.new
|
147
|
+
if !@md5.nil? && @md5.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "md5", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if !@sha1.nil? && @sha1.to_s.length < 1
|
152
|
+
invalid_properties.push('invalid value for "sha1", the character length must be great than or equal to 1.')
|
153
|
+
end
|
154
|
+
|
155
|
+
if !@sha224.nil? && @sha224.to_s.length < 1
|
156
|
+
invalid_properties.push('invalid value for "sha224", the character length must be great than or equal to 1.')
|
157
|
+
end
|
158
|
+
|
159
|
+
if !@sha256.nil? && @sha256.to_s.length < 1
|
160
|
+
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
161
|
+
end
|
162
|
+
|
163
|
+
if !@sha384.nil? && @sha384.to_s.length < 1
|
164
|
+
invalid_properties.push('invalid value for "sha384", the character length must be great than or equal to 1.')
|
165
|
+
end
|
166
|
+
|
167
|
+
if !@sha512.nil? && @sha512.to_s.length < 1
|
168
|
+
invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
|
169
|
+
end
|
170
|
+
|
147
171
|
invalid_properties
|
148
172
|
end
|
149
173
|
|
150
174
|
# Check to see if the all the properties in the model are valid
|
151
175
|
# @return true if the model is valid
|
152
176
|
def valid?
|
177
|
+
return false if !@md5.nil? && @md5.to_s.length < 1
|
178
|
+
return false if !@sha1.nil? && @sha1.to_s.length < 1
|
179
|
+
return false if !@sha224.nil? && @sha224.to_s.length < 1
|
180
|
+
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
181
|
+
return false if !@sha384.nil? && @sha384.to_s.length < 1
|
182
|
+
return false if !@sha512.nil? && @sha512.to_s.length < 1
|
153
183
|
true
|
154
184
|
end
|
155
185
|
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] md5 Value to be assigned
|
188
|
+
def md5=(md5)
|
189
|
+
if !md5.nil? && md5.to_s.length < 1
|
190
|
+
fail ArgumentError, 'invalid value for "md5", the character length must be great than or equal to 1.'
|
191
|
+
end
|
192
|
+
|
193
|
+
@md5 = md5
|
194
|
+
end
|
195
|
+
|
196
|
+
# Custom attribute writer method with validation
|
197
|
+
# @param [Object] sha1 Value to be assigned
|
198
|
+
def sha1=(sha1)
|
199
|
+
if !sha1.nil? && sha1.to_s.length < 1
|
200
|
+
fail ArgumentError, 'invalid value for "sha1", the character length must be great than or equal to 1.'
|
201
|
+
end
|
202
|
+
|
203
|
+
@sha1 = sha1
|
204
|
+
end
|
205
|
+
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] sha224 Value to be assigned
|
208
|
+
def sha224=(sha224)
|
209
|
+
if !sha224.nil? && sha224.to_s.length < 1
|
210
|
+
fail ArgumentError, 'invalid value for "sha224", the character length must be great than or equal to 1.'
|
211
|
+
end
|
212
|
+
|
213
|
+
@sha224 = sha224
|
214
|
+
end
|
215
|
+
|
216
|
+
# Custom attribute writer method with validation
|
217
|
+
# @param [Object] sha256 Value to be assigned
|
218
|
+
def sha256=(sha256)
|
219
|
+
if !sha256.nil? && sha256.to_s.length < 1
|
220
|
+
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
221
|
+
end
|
222
|
+
|
223
|
+
@sha256 = sha256
|
224
|
+
end
|
225
|
+
|
226
|
+
# Custom attribute writer method with validation
|
227
|
+
# @param [Object] sha384 Value to be assigned
|
228
|
+
def sha384=(sha384)
|
229
|
+
if !sha384.nil? && sha384.to_s.length < 1
|
230
|
+
fail ArgumentError, 'invalid value for "sha384", the character length must be great than or equal to 1.'
|
231
|
+
end
|
232
|
+
|
233
|
+
@sha384 = sha384
|
234
|
+
end
|
235
|
+
|
236
|
+
# Custom attribute writer method with validation
|
237
|
+
# @param [Object] sha512 Value to be assigned
|
238
|
+
def sha512=(sha512)
|
239
|
+
if !sha512.nil? && sha512.to_s.length < 1
|
240
|
+
fail ArgumentError, 'invalid value for "sha512", the character length must be great than or equal to 1.'
|
241
|
+
end
|
242
|
+
|
243
|
+
@sha512 = sha512
|
244
|
+
end
|
245
|
+
|
156
246
|
# Checks equality by comparing each attribute.
|
157
247
|
# @param [Object] Object to be compared
|
158
248
|
def ==(o)
|
@@ -108,6 +108,10 @@ module PulpcoreClient
|
|
108
108
|
invalid_properties.push('invalid value for "state", the character length must be great than or equal to 1.')
|
109
109
|
end
|
110
110
|
|
111
|
+
if !@suffix.nil? && @suffix.to_s.length < 1
|
112
|
+
invalid_properties.push('invalid value for "suffix", the character length must be great than or equal to 1.')
|
113
|
+
end
|
114
|
+
|
111
115
|
invalid_properties
|
112
116
|
end
|
113
117
|
|
@@ -116,6 +120,7 @@ module PulpcoreClient
|
|
116
120
|
def valid?
|
117
121
|
return false if !@message.nil? && @message.to_s.length < 1
|
118
122
|
return false if !@state.nil? && @state.to_s.length < 1
|
123
|
+
return false if !@suffix.nil? && @suffix.to_s.length < 1
|
119
124
|
true
|
120
125
|
end
|
121
126
|
|
@@ -139,6 +144,16 @@ module PulpcoreClient
|
|
139
144
|
@state = state
|
140
145
|
end
|
141
146
|
|
147
|
+
# Custom attribute writer method with validation
|
148
|
+
# @param [Object] suffix Value to be assigned
|
149
|
+
def suffix=(suffix)
|
150
|
+
if !suffix.nil? && suffix.to_s.length < 1
|
151
|
+
fail ArgumentError, 'invalid value for "suffix", the character length must be great than or equal to 1.'
|
152
|
+
end
|
153
|
+
|
154
|
+
@suffix = suffix
|
155
|
+
end
|
156
|
+
|
142
157
|
# Checks equality by comparing each attribute.
|
143
158
|
# @param [Object] Object to be compared
|
144
159
|
def ==(o)
|
@@ -105,6 +105,10 @@ module PulpcoreClient
|
|
105
105
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
106
106
|
end
|
107
107
|
|
108
|
+
if !@description.nil? && @description.to_s.length < 1
|
109
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
110
|
+
end
|
111
|
+
|
108
112
|
invalid_properties
|
109
113
|
end
|
110
114
|
|
@@ -113,6 +117,7 @@ module PulpcoreClient
|
|
113
117
|
def valid?
|
114
118
|
return false if @name.nil?
|
115
119
|
return false if @name.to_s.length < 1
|
120
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
116
121
|
true
|
117
122
|
end
|
118
123
|
|
@@ -130,6 +135,16 @@ module PulpcoreClient
|
|
130
135
|
@name = name
|
131
136
|
end
|
132
137
|
|
138
|
+
# Custom attribute writer method with validation
|
139
|
+
# @param [Object] description Value to be assigned
|
140
|
+
def description=(description)
|
141
|
+
if !description.nil? && description.to_s.length < 1
|
142
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
143
|
+
end
|
144
|
+
|
145
|
+
@description = description
|
146
|
+
end
|
147
|
+
|
133
148
|
# Checks equality by comparing each attribute.
|
134
149
|
# @param [Object] Object to be compared
|
135
150
|
def ==(o)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0rc2.dev.
|
4
|
+
version: 3.0.0rc2.dev.1558538021
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|