pulpcore_client 3.28.29 → 3.28.31
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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactDistributionResponse.md +7 -7
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +3 -3
- data/docs/ContentguardsApi.md +3 -3
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +1 -1
- data/docs/DistributionsApi.md +3 -3
- data/docs/DistributionsArtifactsApi.md +1 -1
- data/docs/DomainsApi.md +1 -1
- data/docs/ExportersFilesystemApi.md +1 -1
- data/docs/ExportersFilesystemExportsApi.md +1 -1
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsRolesApi.md +1 -1
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PublicationsApi.md +3 -3
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +3 -3
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +3 -3
- data/docs/RepositoriesReclaimSpaceApi.md +1 -1
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/RolesApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TaskSchedulesApi.md +1 -1
- data/docs/TasksApi.md +1 -1
- data/docs/UploadsApi.md +1 -1
- data/docs/UpstreamPulpsApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/docs/UsersRolesApi.md +1 -1
- data/docs/WorkersApi.md +1 -1
- data/lib/pulpcore_client/api/content_api.rb +3 -3
- data/lib/pulpcore_client/api/contentguards_api.rb +3 -3
- data/lib/pulpcore_client/api/distributions_api.rb +3 -3
- data/lib/pulpcore_client/api/publications_api.rb +2 -6
- data/lib/pulpcore_client/api/remotes_api.rb +2 -6
- data/lib/pulpcore_client/api/repositories_api.rb +2 -6
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +35 -35
- data/lib/pulpcore_client/models/remote_response.rb +20 -20
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/content_api_spec.rb +1 -1
- data/spec/api/contentguards_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/publications_api_spec.rb +1 -1
- data/spec/api/remotes_api_spec.rb +1 -1
- data/spec/api/repositories_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- metadata +155 -155
|
@@ -37,7 +37,7 @@ module PulpcoreClient
|
|
|
37
37
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
38
38
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
39
39
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
40
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
40
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
41
41
|
# @option opts [String] :repository Filter results where repository matches value
|
|
42
42
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
43
43
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -67,7 +67,7 @@ module PulpcoreClient
|
|
|
67
67
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
68
68
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
69
69
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
70
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
70
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
71
71
|
# @option opts [String] :repository Filter results where repository matches value
|
|
72
72
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
73
73
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
83
83
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
84
84
|
end
|
|
85
|
-
allowable_values = ["core.artifact"
|
|
85
|
+
allowable_values = ["core.artifact"]
|
|
86
86
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
87
87
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
88
88
|
end
|
|
@@ -35,7 +35,7 @@ module PulpcoreClient
|
|
|
35
35
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
36
36
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
37
37
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
38
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
38
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
39
39
|
# @option opts [String] :repository Repository referenced by HREF
|
|
40
40
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
41
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -62,7 +62,7 @@ module PulpcoreClient
|
|
|
62
62
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
63
63
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
64
64
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
65
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
65
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
66
66
|
# @option opts [String] :repository Repository referenced by HREF
|
|
67
67
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
68
68
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -76,10 +76,6 @@ module PulpcoreClient
|
|
|
76
76
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
77
77
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
78
78
|
end
|
|
79
|
-
allowable_values = ["file.file"]
|
|
80
|
-
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
81
|
-
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
82
|
-
end
|
|
83
79
|
# resource path
|
|
84
80
|
local_var_path = '/pulp/api/v3/publications/'
|
|
85
81
|
|
|
@@ -39,7 +39,7 @@ module PulpcoreClient
|
|
|
39
39
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
40
40
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
41
41
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
42
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
42
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
43
43
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
44
44
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
45
45
|
# @return [PaginatedRemoteResponseList]
|
|
@@ -68,7 +68,7 @@ module PulpcoreClient
|
|
|
68
68
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
69
69
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
70
70
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
71
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
71
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
72
72
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
73
73
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
74
74
|
# @return [Array<(PaginatedRemoteResponseList, Integer, Hash)>] PaginatedRemoteResponseList data, response status code and response headers
|
|
@@ -80,10 +80,6 @@ module PulpcoreClient
|
|
|
80
80
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
81
81
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
82
82
|
end
|
|
83
|
-
allowable_values = ["file.file"]
|
|
84
|
-
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
85
|
-
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
86
|
-
end
|
|
87
83
|
# resource path
|
|
88
84
|
local_var_path = '/pulp/api/v3/remotes/'
|
|
89
85
|
|
|
@@ -34,7 +34,7 @@ module PulpcoreClient
|
|
|
34
34
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
35
35
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
36
36
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
37
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
37
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
38
38
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
39
39
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
40
40
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
@@ -68,7 +68,7 @@ module PulpcoreClient
|
|
|
68
68
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
69
69
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
70
70
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
71
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
71
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
72
72
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
73
73
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
74
74
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
@@ -90,10 +90,6 @@ module PulpcoreClient
|
|
|
90
90
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
91
91
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
92
92
|
end
|
|
93
|
-
allowable_values = ["file.file"]
|
|
94
|
-
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
95
|
-
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
96
|
-
end
|
|
97
93
|
# resource path
|
|
98
94
|
local_var_path = '/pulp/api/v3/repositories/'
|
|
99
95
|
|
|
@@ -127,8 +127,8 @@ module PulpcoreClient
|
|
|
127
127
|
attr_accessor :force_ending_format
|
|
128
128
|
|
|
129
129
|
def initialize
|
|
130
|
-
@scheme = '
|
|
131
|
-
@host = '
|
|
130
|
+
@scheme = 'http'
|
|
131
|
+
@host = 'localhost'
|
|
132
132
|
@base_path = ''
|
|
133
133
|
@api_key = {}
|
|
134
134
|
@api_key_prefix = {}
|
|
@@ -210,7 +210,7 @@ module PulpcoreClient
|
|
|
210
210
|
def server_settings
|
|
211
211
|
[
|
|
212
212
|
{
|
|
213
|
-
url: "
|
|
213
|
+
url: "http://localhost:24817/",
|
|
214
214
|
description: "No description provided",
|
|
215
215
|
}
|
|
216
216
|
]
|
|
@@ -15,6 +15,11 @@ require 'date'
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
# A serializer for ArtifactDistribution.
|
|
17
17
|
class ArtifactDistributionResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
20
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
21
|
+
attr_accessor :base_path
|
|
22
|
+
|
|
18
23
|
# Timestamp of creation.
|
|
19
24
|
attr_accessor :pulp_created
|
|
20
25
|
|
|
@@ -23,30 +28,25 @@ module PulpcoreClient
|
|
|
23
28
|
|
|
24
29
|
attr_accessor :pulp_labels
|
|
25
30
|
|
|
26
|
-
# Whether this distribution should be shown in the content app.
|
|
27
|
-
attr_accessor :hidden
|
|
28
|
-
|
|
29
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
30
|
-
attr_accessor :base_path
|
|
31
|
-
|
|
32
|
-
attr_accessor :pulp_href
|
|
33
|
-
|
|
34
31
|
# An optional content-guard.
|
|
35
32
|
attr_accessor :content_guard
|
|
36
33
|
|
|
34
|
+
# Whether this distribution should be shown in the content app.
|
|
35
|
+
attr_accessor :hidden
|
|
36
|
+
|
|
37
37
|
# The URL for accessing the publication as defined by this distribution.
|
|
38
38
|
attr_accessor :base_url
|
|
39
39
|
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
41
|
def self.attribute_map
|
|
42
42
|
{
|
|
43
|
+
:'pulp_href' => :'pulp_href',
|
|
44
|
+
:'base_path' => :'base_path',
|
|
43
45
|
:'pulp_created' => :'pulp_created',
|
|
44
46
|
:'name' => :'name',
|
|
45
47
|
:'pulp_labels' => :'pulp_labels',
|
|
46
|
-
:'hidden' => :'hidden',
|
|
47
|
-
:'base_path' => :'base_path',
|
|
48
|
-
:'pulp_href' => :'pulp_href',
|
|
49
48
|
:'content_guard' => :'content_guard',
|
|
49
|
+
:'hidden' => :'hidden',
|
|
50
50
|
:'base_url' => :'base_url'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
@@ -54,13 +54,13 @@ module PulpcoreClient
|
|
|
54
54
|
# Attribute type mapping.
|
|
55
55
|
def self.openapi_types
|
|
56
56
|
{
|
|
57
|
+
:'pulp_href' => :'String',
|
|
58
|
+
:'base_path' => :'String',
|
|
57
59
|
:'pulp_created' => :'DateTime',
|
|
58
60
|
:'name' => :'String',
|
|
59
61
|
:'pulp_labels' => :'Hash<String, String>',
|
|
60
|
-
:'hidden' => :'Boolean',
|
|
61
|
-
:'base_path' => :'String',
|
|
62
|
-
:'pulp_href' => :'String',
|
|
63
62
|
:'content_guard' => :'String',
|
|
63
|
+
:'hidden' => :'Boolean',
|
|
64
64
|
:'base_url' => :'String'
|
|
65
65
|
}
|
|
66
66
|
end
|
|
@@ -87,6 +87,14 @@ module PulpcoreClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
if attributes.key?(:'pulp_href')
|
|
91
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'base_path')
|
|
95
|
+
self.base_path = attributes[:'base_path']
|
|
96
|
+
end
|
|
97
|
+
|
|
90
98
|
if attributes.key?(:'pulp_created')
|
|
91
99
|
self.pulp_created = attributes[:'pulp_created']
|
|
92
100
|
end
|
|
@@ -101,24 +109,16 @@ module PulpcoreClient
|
|
|
101
109
|
end
|
|
102
110
|
end
|
|
103
111
|
|
|
112
|
+
if attributes.key?(:'content_guard')
|
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
|
114
|
+
end
|
|
115
|
+
|
|
104
116
|
if attributes.key?(:'hidden')
|
|
105
117
|
self.hidden = attributes[:'hidden']
|
|
106
118
|
else
|
|
107
119
|
self.hidden = false
|
|
108
120
|
end
|
|
109
121
|
|
|
110
|
-
if attributes.key?(:'base_path')
|
|
111
|
-
self.base_path = attributes[:'base_path']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if attributes.key?(:'pulp_href')
|
|
115
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if attributes.key?(:'content_guard')
|
|
119
|
-
self.content_guard = attributes[:'content_guard']
|
|
120
|
-
end
|
|
121
|
-
|
|
122
122
|
if attributes.key?(:'base_url')
|
|
123
123
|
self.base_url = attributes[:'base_url']
|
|
124
124
|
end
|
|
@@ -128,22 +128,22 @@ module PulpcoreClient
|
|
|
128
128
|
# @return Array for valid properties with the reasons
|
|
129
129
|
def list_invalid_properties
|
|
130
130
|
invalid_properties = Array.new
|
|
131
|
-
if @name.nil?
|
|
132
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
133
|
-
end
|
|
134
|
-
|
|
135
131
|
if @base_path.nil?
|
|
136
132
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
137
133
|
end
|
|
138
134
|
|
|
135
|
+
if @name.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
139
|
invalid_properties
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# Check to see if the all the properties in the model are valid
|
|
143
143
|
# @return true if the model is valid
|
|
144
144
|
def valid?
|
|
145
|
-
return false if @name.nil?
|
|
146
145
|
return false if @base_path.nil?
|
|
146
|
+
return false if @name.nil?
|
|
147
147
|
true
|
|
148
148
|
end
|
|
149
149
|
|
|
@@ -152,13 +152,13 @@ module PulpcoreClient
|
|
|
152
152
|
def ==(o)
|
|
153
153
|
return true if self.equal?(o)
|
|
154
154
|
self.class == o.class &&
|
|
155
|
+
pulp_href == o.pulp_href &&
|
|
156
|
+
base_path == o.base_path &&
|
|
155
157
|
pulp_created == o.pulp_created &&
|
|
156
158
|
name == o.name &&
|
|
157
159
|
pulp_labels == o.pulp_labels &&
|
|
158
|
-
hidden == o.hidden &&
|
|
159
|
-
base_path == o.base_path &&
|
|
160
|
-
pulp_href == o.pulp_href &&
|
|
161
160
|
content_guard == o.content_guard &&
|
|
161
|
+
hidden == o.hidden &&
|
|
162
162
|
base_url == o.base_url
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
|
171
171
|
# Calculates hash code according to all attributes.
|
|
172
172
|
# @return [Integer] Hash code
|
|
173
173
|
def hash
|
|
174
|
-
[
|
|
174
|
+
[pulp_href, base_path, pulp_created, name, pulp_labels, content_guard, hidden, base_url].hash
|
|
175
175
|
end
|
|
176
176
|
|
|
177
177
|
# Builds the object from hash
|
|
@@ -259,20 +259,20 @@ module PulpcoreClient
|
|
|
259
259
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
260
260
|
end
|
|
261
261
|
|
|
262
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
|
263
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
|
262
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
|
263
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
|
264
264
|
end
|
|
265
265
|
|
|
266
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
|
267
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
|
266
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
|
267
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
271
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
|
270
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
271
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
275
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
274
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
275
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
|
276
276
|
end
|
|
277
277
|
|
|
278
278
|
invalid_properties
|
|
@@ -284,10 +284,10 @@ module PulpcoreClient
|
|
|
284
284
|
return false if @name.nil?
|
|
285
285
|
return false if @url.nil?
|
|
286
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
287
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
|
288
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
|
289
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
290
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
287
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
|
288
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
|
289
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
290
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
291
291
|
true
|
|
292
292
|
end
|
|
293
293
|
|
|
@@ -304,8 +304,8 @@ module PulpcoreClient
|
|
|
304
304
|
# Custom attribute writer method with validation
|
|
305
305
|
# @param [Object] total_timeout Value to be assigned
|
|
306
306
|
def total_timeout=(total_timeout)
|
|
307
|
-
if !total_timeout.nil? && total_timeout < 0
|
|
308
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
|
307
|
+
if !total_timeout.nil? && total_timeout < 0
|
|
308
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
|
309
309
|
end
|
|
310
310
|
|
|
311
311
|
@total_timeout = total_timeout
|
|
@@ -314,8 +314,8 @@ module PulpcoreClient
|
|
|
314
314
|
# Custom attribute writer method with validation
|
|
315
315
|
# @param [Object] connect_timeout Value to be assigned
|
|
316
316
|
def connect_timeout=(connect_timeout)
|
|
317
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
|
318
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
|
317
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
|
318
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
|
319
319
|
end
|
|
320
320
|
|
|
321
321
|
@connect_timeout = connect_timeout
|
|
@@ -324,8 +324,8 @@ module PulpcoreClient
|
|
|
324
324
|
# Custom attribute writer method with validation
|
|
325
325
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
326
326
|
def sock_connect_timeout=(sock_connect_timeout)
|
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
|
329
329
|
end
|
|
330
330
|
|
|
331
331
|
@sock_connect_timeout = sock_connect_timeout
|
|
@@ -334,8 +334,8 @@ module PulpcoreClient
|
|
|
334
334
|
# Custom attribute writer method with validation
|
|
335
335
|
# @param [Object] sock_read_timeout Value to be assigned
|
|
336
336
|
def sock_read_timeout=(sock_read_timeout)
|
|
337
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
338
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
337
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
338
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
|
339
339
|
end
|
|
340
340
|
|
|
341
341
|
@sock_read_timeout = sock_read_timeout
|
|
@@ -68,12 +68,22 @@ module PulpcoreClient
|
|
|
68
68
|
# @return Array for valid properties with the reasons
|
|
69
69
|
def list_invalid_properties
|
|
70
70
|
invalid_properties = Array.new
|
|
71
|
+
if @name.nil?
|
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if @is_set.nil?
|
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
|
77
|
+
end
|
|
78
|
+
|
|
71
79
|
invalid_properties
|
|
72
80
|
end
|
|
73
81
|
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
|
75
83
|
# @return true if the model is valid
|
|
76
84
|
def valid?
|
|
85
|
+
return false if @name.nil?
|
|
86
|
+
return false if @is_set.nil?
|
|
77
87
|
true
|
|
78
88
|
end
|
|
79
89
|
|
|
@@ -41,7 +41,7 @@ describe 'ContentApi' do
|
|
|
41
41
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
|
42
42
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
43
43
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
44
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata
|
|
44
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata
|
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
46
46
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
47
47
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -46,7 +46,7 @@ describe 'ContentguardsApi' do
|
|
|
46
46
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
47
47
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
48
48
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
49
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect
|
|
49
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect
|
|
50
50
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
51
51
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
52
52
|
# @return [PaginatedContentGuardResponseList]
|
|
@@ -51,7 +51,7 @@ describe 'DistributionsApi' do
|
|
|
51
51
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
52
52
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
53
53
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
54
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
54
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.artifact` - core.artifact
|
|
55
55
|
# @option opts [String] :repository Filter results where repository matches value
|
|
56
56
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
57
57
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -49,7 +49,7 @@ describe 'PublicationsApi' do
|
|
|
49
49
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
50
50
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
51
51
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
52
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
52
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
53
53
|
# @option opts [String] :repository Repository referenced by HREF
|
|
54
54
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
55
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -53,7 +53,7 @@ describe 'RemotesApi' do
|
|
|
53
53
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
54
54
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
55
55
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
56
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
56
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
57
57
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
58
58
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
59
59
|
# @return [PaginatedRemoteResponseList]
|
|
@@ -48,7 +48,7 @@ describe 'RepositoriesApi' do
|
|
|
48
48
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
49
49
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
50
50
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
51
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
51
|
+
# @option opts [Array<String>] :pulp_type__in Pulp type is in
|
|
52
52
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
|
53
53
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
54
54
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("
|
|
21
|
+
# uri = URI.parse("http://localhost:24817")
|
|
22
22
|
# PulpcoreClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("
|
|
31
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("
|
|
38
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -32,43 +32,43 @@ describe 'ArtifactDistributionResponse' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "pulp_href"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "base_path"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "pulp_created"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "name"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "pulp_labels"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "content_guard"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
describe 'test attribute "
|
|
71
|
+
describe 'test attribute "hidden"' do
|
|
72
72
|
it 'should work' do
|
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
74
|
end
|