pulp_cookbook_client 0.1.0b9 → 0.1.0b10.dev1674790537
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_cookbook_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/docs/ContentCookbooksApi.md +16 -14
- data/docs/CookbookCookbookDistribution.md +1 -1
- data/docs/CookbookCookbookDistributionResponse.md +1 -1
- data/docs/CookbookCookbookPackageContent.md +6 -4
- data/docs/CookbookCookbookPackageContentResponse.md +3 -3
- data/docs/CookbookCookbookRemote.md +3 -3
- data/docs/CookbookCookbookRemoteResponse.md +3 -1
- data/docs/CookbookCookbookRemoteResponseHiddenFields.md +19 -0
- data/docs/CookbookCookbookRepository.md +1 -1
- data/docs/CookbookCookbookRepositoryResponse.md +1 -1
- data/docs/DistributionsCookbookApi.md +20 -14
- data/docs/PatchedcookbookCookbookDistribution.md +1 -1
- data/docs/PatchedcookbookCookbookRemote.md +3 -3
- data/docs/PatchedcookbookCookbookRepository.md +1 -1
- data/docs/PublicationsCookbookApi.md +14 -12
- data/docs/RemotesCookbookApi.md +14 -14
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesCookbookApi.md +14 -12
- data/docs/RepositoriesCookbookVersionsApi.md +18 -18
- data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +28 -21
- data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +32 -19
- data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +24 -17
- data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +23 -19
- data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +24 -17
- data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +32 -28
- data/lib/pulp_cookbook_client/api_client.rb +2 -5
- data/lib/pulp_cookbook_client/configuration.rb +1 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +25 -15
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +11 -11
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +6 -4
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +17 -3
- data/lib/pulp_cookbook_client/models/{repository_version.rb → cookbook_cookbook_remote_response_hidden_fields.rb} +19 -12
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +4 -2
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +4 -2
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +4 -2
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +6 -4
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +4 -2
- data/lib/pulp_cookbook_client/models/{content_summary.rb → repair.rb} +13 -50
- data/lib/pulp_cookbook_client/version.rb +1 -1
- data/lib/pulp_cookbook_client.rb +2 -2
- data/pulp_cookbook_client.gemspec +3 -3
- data/spec/api/content_cookbooks_api_spec.rb +8 -7
- data/spec/api/distributions_cookbook_api_spec.rb +10 -7
- data/spec/api/publications_cookbook_api_spec.rb +7 -6
- data/spec/api/remotes_cookbook_api_spec.rb +7 -7
- data/spec/api/repositories_cookbook_api_spec.rb +7 -6
- data/spec/api/repositories_cookbook_versions_api_spec.rb +8 -8
- data/spec/models/cookbook_cookbook_package_content_response_spec.rb +2 -2
- data/spec/models/cookbook_cookbook_package_content_spec.rb +8 -2
- data/spec/models/{content_summary_spec.rb → cookbook_cookbook_remote_response_hidden_fields_spec.rb} +8 -14
- data/spec/models/cookbook_cookbook_remote_response_spec.rb +6 -0
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +37 -38
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/git_push.sh +0 -58
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module PulpCookbookClient
|
16
16
|
# Serializer for the cookbook content.
|
17
17
|
class CookbookCookbookPackageContentResponse
|
18
|
-
# Artifact file representing the physical content
|
19
|
-
attr_accessor :artifact
|
20
|
-
|
21
18
|
# Timestamp of creation.
|
22
19
|
attr_accessor :pulp_created
|
23
20
|
|
21
|
+
# Artifact file representing the physical content
|
22
|
+
attr_accessor :artifact
|
23
|
+
|
24
24
|
attr_accessor :pulp_href
|
25
25
|
|
26
26
|
# name of the cookbook
|
@@ -38,8 +38,8 @@ module PulpCookbookClient
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'artifact' => :'artifact',
|
42
41
|
:'pulp_created' => :'pulp_created',
|
42
|
+
:'artifact' => :'artifact',
|
43
43
|
:'pulp_href' => :'pulp_href',
|
44
44
|
:'name' => :'name',
|
45
45
|
:'version' => :'version',
|
@@ -51,8 +51,8 @@ module PulpCookbookClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'artifact' => :'String',
|
55
54
|
:'pulp_created' => :'DateTime',
|
55
|
+
:'artifact' => :'String',
|
56
56
|
:'pulp_href' => :'String',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'version' => :'String',
|
@@ -82,14 +82,14 @@ module PulpCookbookClient
|
|
82
82
|
h[k.to_sym] = v
|
83
83
|
}
|
84
84
|
|
85
|
-
if attributes.key?(:'artifact')
|
86
|
-
self.artifact = attributes[:'artifact']
|
87
|
-
end
|
88
|
-
|
89
85
|
if attributes.key?(:'pulp_created')
|
90
86
|
self.pulp_created = attributes[:'pulp_created']
|
91
87
|
end
|
92
88
|
|
89
|
+
if attributes.key?(:'artifact')
|
90
|
+
self.artifact = attributes[:'artifact']
|
91
|
+
end
|
92
|
+
|
93
93
|
if attributes.key?(:'pulp_href')
|
94
94
|
self.pulp_href = attributes[:'pulp_href']
|
95
95
|
end
|
@@ -134,8 +134,8 @@ module PulpCookbookClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
-
artifact == o.artifact &&
|
138
137
|
pulp_created == o.pulp_created &&
|
138
|
+
artifact == o.artifact &&
|
139
139
|
pulp_href == o.pulp_href &&
|
140
140
|
name == o.name &&
|
141
141
|
version == o.version &&
|
@@ -152,7 +152,7 @@ module PulpCookbookClient
|
|
152
152
|
# Calculates hash code according to all attributes.
|
153
153
|
# @return [Integer] Hash code
|
154
154
|
def hash
|
155
|
-
[
|
155
|
+
[pulp_created, artifact, pulp_href, name, version, dependencies, content_id].hash
|
156
156
|
end
|
157
157
|
|
158
158
|
# Builds the object from hash
|
@@ -39,13 +39,13 @@ module PulpCookbookClient
|
|
39
39
|
# The username to authenticte to the proxy.
|
40
40
|
attr_accessor :proxy_username
|
41
41
|
|
42
|
-
# The password to
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
43
43
|
attr_accessor :proxy_password
|
44
44
|
|
45
45
|
# The username to be used for authentication when syncing.
|
46
46
|
attr_accessor :username
|
47
47
|
|
48
|
-
# The password to be used for authentication when syncing.
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
49
49
|
attr_accessor :password
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
@@ -122,7 +122,7 @@ module PulpCookbookClient
|
|
122
122
|
:'proxy_password' => :'String',
|
123
123
|
:'username' => :'String',
|
124
124
|
:'password' => :'String',
|
125
|
-
:'pulp_labels' => :'
|
125
|
+
:'pulp_labels' => :'Hash<String, String>',
|
126
126
|
:'download_concurrency' => :'Integer',
|
127
127
|
:'max_retries' => :'Integer',
|
128
128
|
:'policy' => :'PolicyEnum',
|
@@ -217,7 +217,9 @@ module PulpCookbookClient
|
|
217
217
|
end
|
218
218
|
|
219
219
|
if attributes.key?(:'pulp_labels')
|
220
|
-
|
220
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
221
|
+
self.pulp_labels = value
|
222
|
+
end
|
221
223
|
end
|
222
224
|
|
223
225
|
if attributes.key?(:'download_concurrency')
|
@@ -70,6 +70,9 @@ module PulpCookbookClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
+
# List of hidden (write only) fields
|
74
|
+
attr_accessor :hidden_fields
|
75
|
+
|
73
76
|
# An optional JSON object in the format {\"<cookbook name>\": \"<version_string>\" }. Used to limit the cookbooks to synchronize from the remote
|
74
77
|
attr_accessor :cookbooks
|
75
78
|
|
@@ -95,6 +98,7 @@ module PulpCookbookClient
|
|
95
98
|
:'sock_read_timeout' => :'sock_read_timeout',
|
96
99
|
:'headers' => :'headers',
|
97
100
|
:'rate_limit' => :'rate_limit',
|
101
|
+
:'hidden_fields' => :'hidden_fields',
|
98
102
|
:'cookbooks' => :'cookbooks'
|
99
103
|
}
|
100
104
|
end
|
@@ -110,7 +114,7 @@ module PulpCookbookClient
|
|
110
114
|
:'client_cert' => :'String',
|
111
115
|
:'tls_validation' => :'Boolean',
|
112
116
|
:'proxy_url' => :'String',
|
113
|
-
:'pulp_labels' => :'
|
117
|
+
:'pulp_labels' => :'Hash<String, String>',
|
114
118
|
:'pulp_last_updated' => :'DateTime',
|
115
119
|
:'download_concurrency' => :'Integer',
|
116
120
|
:'max_retries' => :'Integer',
|
@@ -121,6 +125,7 @@ module PulpCookbookClient
|
|
121
125
|
:'sock_read_timeout' => :'Float',
|
122
126
|
:'headers' => :'Array<Object>',
|
123
127
|
:'rate_limit' => :'Integer',
|
128
|
+
:'hidden_fields' => :'Array<CookbookCookbookRemoteResponseHiddenFields>',
|
124
129
|
:'cookbooks' => :'Object'
|
125
130
|
}
|
126
131
|
end
|
@@ -189,7 +194,9 @@ module PulpCookbookClient
|
|
189
194
|
end
|
190
195
|
|
191
196
|
if attributes.key?(:'pulp_labels')
|
192
|
-
|
197
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
198
|
+
self.pulp_labels = value
|
199
|
+
end
|
193
200
|
end
|
194
201
|
|
195
202
|
if attributes.key?(:'pulp_last_updated')
|
@@ -234,6 +241,12 @@ module PulpCookbookClient
|
|
234
241
|
self.rate_limit = attributes[:'rate_limit']
|
235
242
|
end
|
236
243
|
|
244
|
+
if attributes.key?(:'hidden_fields')
|
245
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
246
|
+
self.hidden_fields = value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
237
250
|
if attributes.key?(:'cookbooks')
|
238
251
|
self.cookbooks = attributes[:'cookbooks']
|
239
252
|
end
|
@@ -361,6 +374,7 @@ module PulpCookbookClient
|
|
361
374
|
sock_read_timeout == o.sock_read_timeout &&
|
362
375
|
headers == o.headers &&
|
363
376
|
rate_limit == o.rate_limit &&
|
377
|
+
hidden_fields == o.hidden_fields &&
|
364
378
|
cookbooks == o.cookbooks
|
365
379
|
end
|
366
380
|
|
@@ -373,7 +387,7 @@ module PulpCookbookClient
|
|
373
387
|
# Calculates hash code according to all attributes.
|
374
388
|
# @return [Integer] Hash code
|
375
389
|
def hash
|
376
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, cookbooks].hash
|
390
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, cookbooks].hash
|
377
391
|
end
|
378
392
|
|
379
393
|
# Builds the object from hash
|
@@ -13,22 +13,24 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpCookbookClient
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
attr_accessor :
|
16
|
+
class CookbookCookbookRemoteResponseHiddenFields
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :is_set
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
24
|
+
:'name' => :'name',
|
25
|
+
:'is_set' => :'is_set'
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
28
29
|
# Attribute type mapping.
|
29
30
|
def self.openapi_types
|
30
31
|
{
|
31
|
-
:'
|
32
|
+
:'name' => :'String',
|
33
|
+
:'is_set' => :'Boolean'
|
32
34
|
}
|
33
35
|
end
|
34
36
|
|
@@ -42,19 +44,23 @@ module PulpCookbookClient
|
|
42
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
45
|
def initialize(attributes = {})
|
44
46
|
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpCookbookClient::
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpCookbookClient::CookbookCookbookRemoteResponseHiddenFields` initialize method"
|
46
48
|
end
|
47
49
|
|
48
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
49
51
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
52
|
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpCookbookClient::
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpCookbookClient::CookbookCookbookRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
54
|
end
|
53
55
|
h[k.to_sym] = v
|
54
56
|
}
|
55
57
|
|
56
|
-
if attributes.key?(:'
|
57
|
-
self.
|
58
|
+
if attributes.key?(:'name')
|
59
|
+
self.name = attributes[:'name']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.key?(:'is_set')
|
63
|
+
self.is_set = attributes[:'is_set']
|
58
64
|
end
|
59
65
|
end
|
60
66
|
|
@@ -76,7 +82,8 @@ module PulpCookbookClient
|
|
76
82
|
def ==(o)
|
77
83
|
return true if self.equal?(o)
|
78
84
|
self.class == o.class &&
|
79
|
-
|
85
|
+
name == o.name &&
|
86
|
+
is_set == o.is_set
|
80
87
|
end
|
81
88
|
|
82
89
|
# @see the `==` method
|
@@ -88,7 +95,7 @@ module PulpCookbookClient
|
|
88
95
|
# Calculates hash code according to all attributes.
|
89
96
|
# @return [Integer] Hash code
|
90
97
|
def hash
|
91
|
-
[
|
98
|
+
[name, is_set].hash
|
92
99
|
end
|
93
100
|
|
94
101
|
# Builds the object from hash
|
@@ -43,7 +43,7 @@ module PulpCookbookClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'description' => :'String',
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
@@ -76,7 +76,9 @@ module PulpCookbookClient
|
|
76
76
|
}
|
77
77
|
|
78
78
|
if attributes.key?(:'pulp_labels')
|
79
|
-
|
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?(:'name')
|
@@ -59,7 +59,7 @@ module PulpCookbookClient
|
|
59
59
|
:'pulp_href' => :'String',
|
60
60
|
:'pulp_created' => :'DateTime',
|
61
61
|
:'versions_href' => :'String',
|
62
|
-
:'pulp_labels' => :'
|
62
|
+
:'pulp_labels' => :'Hash<String, String>',
|
63
63
|
:'latest_version_href' => :'String',
|
64
64
|
:'name' => :'String',
|
65
65
|
:'description' => :'String',
|
@@ -105,7 +105,9 @@ module PulpCookbookClient
|
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'pulp_labels')
|
108
|
-
|
108
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
109
|
+
self.pulp_labels = value
|
110
|
+
end
|
109
111
|
end
|
110
112
|
|
111
113
|
if attributes.key?(:'latest_version_href')
|
@@ -49,7 +49,7 @@ module PulpCookbookClient
|
|
49
49
|
{
|
50
50
|
:'base_path' => :'String',
|
51
51
|
:'content_guard' => :'String',
|
52
|
-
:'pulp_labels' => :'
|
52
|
+
:'pulp_labels' => :'Hash<String, String>',
|
53
53
|
:'name' => :'String',
|
54
54
|
:'repository' => :'String',
|
55
55
|
:'publication' => :'String'
|
@@ -89,7 +89,9 @@ module PulpCookbookClient
|
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes.key?(:'pulp_labels')
|
92
|
-
|
92
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
|
+
self.pulp_labels = value
|
94
|
+
end
|
93
95
|
end
|
94
96
|
|
95
97
|
if attributes.key?(:'name')
|
@@ -39,13 +39,13 @@ module PulpCookbookClient
|
|
39
39
|
# The username to authenticte to the proxy.
|
40
40
|
attr_accessor :proxy_username
|
41
41
|
|
42
|
-
# The password to
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
43
43
|
attr_accessor :proxy_password
|
44
44
|
|
45
45
|
# The username to be used for authentication when syncing.
|
46
46
|
attr_accessor :username
|
47
47
|
|
48
|
-
# The password to be used for authentication when syncing.
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
49
49
|
attr_accessor :password
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
@@ -122,7 +122,7 @@ module PulpCookbookClient
|
|
122
122
|
:'proxy_password' => :'String',
|
123
123
|
:'username' => :'String',
|
124
124
|
:'password' => :'String',
|
125
|
-
:'pulp_labels' => :'
|
125
|
+
:'pulp_labels' => :'Hash<String, String>',
|
126
126
|
:'download_concurrency' => :'Integer',
|
127
127
|
:'max_retries' => :'Integer',
|
128
128
|
:'policy' => :'PolicyEnum',
|
@@ -217,7 +217,9 @@ module PulpCookbookClient
|
|
217
217
|
end
|
218
218
|
|
219
219
|
if attributes.key?(:'pulp_labels')
|
220
|
-
|
220
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
221
|
+
self.pulp_labels = value
|
222
|
+
end
|
221
223
|
end
|
222
224
|
|
223
225
|
if attributes.key?(:'download_concurrency')
|
@@ -43,7 +43,7 @@ module PulpCookbookClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'description' => :'String',
|
49
49
|
:'retain_repo_versions' => :'Integer',
|
@@ -76,7 +76,9 @@ module PulpCookbookClient
|
|
76
76
|
}
|
77
77
|
|
78
78
|
if attributes.key?(:'pulp_labels')
|
79
|
-
|
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?(:'name')
|
@@ -13,29 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpCookbookClient
|
16
|
-
|
17
|
-
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :removed
|
21
|
-
|
22
|
-
attr_accessor :present
|
16
|
+
class Repair
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
18
|
+
attr_accessor :verify_checksums
|
23
19
|
|
24
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
21
|
def self.attribute_map
|
26
22
|
{
|
27
|
-
:'
|
28
|
-
:'removed' => :'removed',
|
29
|
-
:'present' => :'present'
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
30
24
|
}
|
31
25
|
end
|
32
26
|
|
33
27
|
# Attribute type mapping.
|
34
28
|
def self.openapi_types
|
35
29
|
{
|
36
|
-
:'
|
37
|
-
:'removed' => :'Hash<String, Object>',
|
38
|
-
:'present' => :'Hash<String, Object>'
|
30
|
+
:'verify_checksums' => :'Boolean'
|
39
31
|
}
|
40
32
|
end
|
41
33
|
|
@@ -49,33 +41,21 @@ module PulpCookbookClient
|
|
49
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
42
|
def initialize(attributes = {})
|
51
43
|
if (!attributes.is_a?(Hash))
|
52
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpCookbookClient::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpCookbookClient::Repair` initialize method"
|
53
45
|
end
|
54
46
|
|
55
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpCookbookClient::
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpCookbookClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
51
|
end
|
60
52
|
h[k.to_sym] = v
|
61
53
|
}
|
62
54
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.key?(:'removed')
|
70
|
-
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
-
self.removed = value
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.key?(:'present')
|
76
|
-
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
-
self.present = value
|
78
|
-
end
|
55
|
+
if attributes.key?(:'verify_checksums')
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
57
|
+
else
|
58
|
+
self.verify_checksums = true
|
79
59
|
end
|
80
60
|
end
|
81
61
|
|
@@ -83,27 +63,12 @@ module PulpCookbookClient
|
|
83
63
|
# @return Array for valid properties with the reasons
|
84
64
|
def list_invalid_properties
|
85
65
|
invalid_properties = Array.new
|
86
|
-
if @added.nil?
|
87
|
-
invalid_properties.push('invalid value for "added", added cannot be nil.')
|
88
|
-
end
|
89
|
-
|
90
|
-
if @removed.nil?
|
91
|
-
invalid_properties.push('invalid value for "removed", removed cannot be nil.')
|
92
|
-
end
|
93
|
-
|
94
|
-
if @present.nil?
|
95
|
-
invalid_properties.push('invalid value for "present", present cannot be nil.')
|
96
|
-
end
|
97
|
-
|
98
66
|
invalid_properties
|
99
67
|
end
|
100
68
|
|
101
69
|
# Check to see if the all the properties in the model are valid
|
102
70
|
# @return true if the model is valid
|
103
71
|
def valid?
|
104
|
-
return false if @added.nil?
|
105
|
-
return false if @removed.nil?
|
106
|
-
return false if @present.nil?
|
107
72
|
true
|
108
73
|
end
|
109
74
|
|
@@ -112,9 +77,7 @@ module PulpCookbookClient
|
|
112
77
|
def ==(o)
|
113
78
|
return true if self.equal?(o)
|
114
79
|
self.class == o.class &&
|
115
|
-
|
116
|
-
removed == o.removed &&
|
117
|
-
present == o.present
|
80
|
+
verify_checksums == o.verify_checksums
|
118
81
|
end
|
119
82
|
|
120
83
|
# @see the `==` method
|
@@ -126,7 +89,7 @@ module PulpCookbookClient
|
|
126
89
|
# Calculates hash code according to all attributes.
|
127
90
|
# @return [Integer] Hash code
|
128
91
|
def hash
|
129
|
-
[
|
92
|
+
[verify_checksums].hash
|
130
93
|
end
|
131
94
|
|
132
95
|
# Builds the object from hash
|
data/lib/pulp_cookbook_client.rb
CHANGED
@@ -18,7 +18,6 @@ require 'pulp_cookbook_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_cookbook_client/models/async_operation_response'
|
21
|
-
require 'pulp_cookbook_client/models/content_summary'
|
22
21
|
require 'pulp_cookbook_client/models/content_summary_response'
|
23
22
|
require 'pulp_cookbook_client/models/cookbook_cookbook_distribution'
|
24
23
|
require 'pulp_cookbook_client/models/cookbook_cookbook_distribution_response'
|
@@ -28,6 +27,7 @@ require 'pulp_cookbook_client/models/cookbook_cookbook_publication'
|
|
28
27
|
require 'pulp_cookbook_client/models/cookbook_cookbook_publication_response'
|
29
28
|
require 'pulp_cookbook_client/models/cookbook_cookbook_remote'
|
30
29
|
require 'pulp_cookbook_client/models/cookbook_cookbook_remote_response'
|
30
|
+
require 'pulp_cookbook_client/models/cookbook_cookbook_remote_response_hidden_fields'
|
31
31
|
require 'pulp_cookbook_client/models/cookbook_cookbook_repository'
|
32
32
|
require 'pulp_cookbook_client/models/cookbook_cookbook_repository_response'
|
33
33
|
require 'pulp_cookbook_client/models/paginated_repository_version_response_list'
|
@@ -40,9 +40,9 @@ require 'pulp_cookbook_client/models/patchedcookbook_cookbook_distribution'
|
|
40
40
|
require 'pulp_cookbook_client/models/patchedcookbook_cookbook_remote'
|
41
41
|
require 'pulp_cookbook_client/models/patchedcookbook_cookbook_repository'
|
42
42
|
require 'pulp_cookbook_client/models/policy_enum'
|
43
|
+
require 'pulp_cookbook_client/models/repair'
|
43
44
|
require 'pulp_cookbook_client/models/repository_add_remove_content'
|
44
45
|
require 'pulp_cookbook_client/models/repository_sync_url'
|
45
|
-
require 'pulp_cookbook_client/models/repository_version'
|
46
46
|
require 'pulp_cookbook_client/models/repository_version_response'
|
47
47
|
|
48
48
|
# APIs
|
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_cookbook"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -37,9 +37,10 @@ describe 'ContentCookbooksApi' do
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param name name of the cookbook
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
41
|
-
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
41
|
+
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
43
44
|
# @option opts [String] :version version of the cookbook
|
44
45
|
# @return [AsyncOperationResponse]
|
45
46
|
describe 'create test' do
|
@@ -56,13 +57,13 @@ describe 'ContentCookbooksApi' do
|
|
56
57
|
# @option opts [Integer] :limit Number of results to return per page.
|
57
58
|
# @option opts [String] :name Filter results where name matches value
|
58
59
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
59
|
-
# @option opts [String] :ordering
|
60
|
+
# @option opts [Array<String>] :ordering Ordering
|
60
61
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
61
62
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
62
63
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
63
64
|
# @option opts [String] :version Filter results where version matches value
|
64
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
65
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
65
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
66
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
66
67
|
# @return [PaginatedcookbookCookbookPackageContentResponseList]
|
67
68
|
describe 'list test' do
|
68
69
|
it 'should work' do
|
@@ -75,8 +76,8 @@ describe 'ContentCookbooksApi' do
|
|
75
76
|
# Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
|
76
77
|
# @param cookbook_cookbook_package_content_href
|
77
78
|
# @param [Hash] opts the optional parameters
|
78
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
79
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
79
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
81
|
# @return [CookbookCookbookPackageContentResponse]
|
81
82
|
describe 'read test' do
|
82
83
|
it 'should work' do
|
@@ -60,21 +60,24 @@ describe 'DistributionsCookbookApi' do
|
|
60
60
|
# List cookbook distributions
|
61
61
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :base_path
|
63
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
64
64
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
65
65
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
66
66
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
67
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
-
# @option opts [String] :name
|
68
|
+
# @option opts [String] :name Filter results where name matches value
|
69
69
|
# @option opts [String] :name__contains Filter results where name contains value
|
70
70
|
# @option opts [String] :name__icontains Filter results where name contains value
|
71
71
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
72
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
73
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
|
-
# @option opts [String] :ordering
|
74
|
+
# @option opts [Array<String>] :ordering Ordering
|
75
75
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
76
|
-
# @option opts [String] :
|
77
|
-
# @option opts [String] :
|
76
|
+
# @option opts [String] :repository Filter results where repository matches value
|
77
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
78
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
79
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
81
|
# @return [PaginatedcookbookCookbookDistributionResponseList]
|
79
82
|
describe 'list test' do
|
80
83
|
it 'should work' do
|
@@ -100,8 +103,8 @@ describe 'DistributionsCookbookApi' do
|
|
100
103
|
# Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
|
101
104
|
# @param cookbook_cookbook_distribution_href
|
102
105
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
104
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
108
|
# @return [CookbookCookbookDistributionResponse]
|
106
109
|
describe 'read test' do
|
107
110
|
it 'should work' do
|