pulp_ansible_client 0.22.0 → 0.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +5 -5
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +29 -29
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +5 -5
- data/docs/{PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md → ApiPluginAnsibleSearchCollectionVersionsApi.md} +18 -17
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +29 -29
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +1 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +1 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb → api_plugin_ansible_search_collection_versions_api.rb} +26 -24
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +243 -243
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +1 -1
- data/spec/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb → api_plugin_ansible_search_collection_versions_api_spec.rb} +9 -8
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +145 -145
@@ -13,14 +13,15 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
class
|
16
|
+
class ApiPluginAnsibleSearchCollectionVersionsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# List cross repository collection version indexs
|
22
23
|
# A viewset for cross-repo searches.
|
23
|
-
# @param
|
24
|
+
# @param ansible_cross_repository_collection_version_index_href [String]
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [String] :dependency
|
26
27
|
# @option opts [Boolean] :deprecated
|
@@ -48,13 +49,14 @@ module PulpAnsibleClient
|
|
48
49
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
49
50
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
50
51
|
# @return [PaginatedCollectionVersionSearchListResponseList]
|
51
|
-
def list(
|
52
|
-
data, _status_code, _headers = list_with_http_info(
|
52
|
+
def list(ansible_cross_repository_collection_version_index_href, opts = {})
|
53
|
+
data, _status_code, _headers = list_with_http_info(ansible_cross_repository_collection_version_index_href, opts)
|
53
54
|
data
|
54
55
|
end
|
55
56
|
|
57
|
+
# List cross repository collection version indexs
|
56
58
|
# A viewset for cross-repo searches.
|
57
|
-
# @param
|
59
|
+
# @param ansible_cross_repository_collection_version_index_href [String]
|
58
60
|
# @param [Hash] opts the optional parameters
|
59
61
|
# @option opts [String] :dependency
|
60
62
|
# @option opts [Boolean] :deprecated
|
@@ -82,20 +84,20 @@ module PulpAnsibleClient
|
|
82
84
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
83
85
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
84
86
|
# @return [Array<(PaginatedCollectionVersionSearchListResponseList, Integer, Hash)>] PaginatedCollectionVersionSearchListResponseList data, response status code and response headers
|
85
|
-
def list_with_http_info(
|
87
|
+
def list_with_http_info(ansible_cross_repository_collection_version_index_href, opts = {})
|
86
88
|
if @api_client.config.debugging
|
87
|
-
@api_client.config.logger.debug 'Calling API:
|
89
|
+
@api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.list ...'
|
88
90
|
end
|
89
|
-
# verify the required parameter '
|
90
|
-
if @api_client.config.client_side_validation &&
|
91
|
-
fail ArgumentError, "Missing the required parameter '
|
91
|
+
# verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
|
92
|
+
if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
|
93
|
+
fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.list"
|
92
94
|
end
|
93
95
|
allowable_values = ["-name", "-namespace", "-pulp_created", "-version", "name", "namespace", "pulp_created", "version"]
|
94
96
|
if @api_client.config.client_side_validation && opts[:'order_by'] && !opts[:'order_by'].all? { |item| allowable_values.include?(item) }
|
95
97
|
fail ArgumentError, "invalid value for \"order_by\", must include one of #{allowable_values}"
|
96
98
|
end
|
97
99
|
# resource path
|
98
|
-
local_var_path = '
|
100
|
+
local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
|
99
101
|
|
100
102
|
# query parameters
|
101
103
|
query_params = opts[:query_params] || {}
|
@@ -153,40 +155,40 @@ module PulpAnsibleClient
|
|
153
155
|
|
154
156
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
155
157
|
if @api_client.config.debugging
|
156
|
-
@api_client.config.logger.debug "API called:
|
158
|
+
@api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
157
159
|
end
|
158
160
|
return data, status_code, headers
|
159
161
|
end
|
160
162
|
|
161
163
|
# A viewset for cross-repo searches.
|
162
|
-
# @param
|
164
|
+
# @param ansible_cross_repository_collection_version_index_href [String]
|
163
165
|
# @param collection_version_search_list [CollectionVersionSearchList]
|
164
166
|
# @param [Hash] opts the optional parameters
|
165
167
|
# @return [CollectionVersionSearchListResponse]
|
166
|
-
def rebuild(
|
167
|
-
data, _status_code, _headers = rebuild_with_http_info(
|
168
|
+
def rebuild(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
|
169
|
+
data, _status_code, _headers = rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts)
|
168
170
|
data
|
169
171
|
end
|
170
172
|
|
171
173
|
# A viewset for cross-repo searches.
|
172
|
-
# @param
|
174
|
+
# @param ansible_cross_repository_collection_version_index_href [String]
|
173
175
|
# @param collection_version_search_list [CollectionVersionSearchList]
|
174
176
|
# @param [Hash] opts the optional parameters
|
175
177
|
# @return [Array<(CollectionVersionSearchListResponse, Integer, Hash)>] CollectionVersionSearchListResponse data, response status code and response headers
|
176
|
-
def rebuild_with_http_info(
|
178
|
+
def rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
|
177
179
|
if @api_client.config.debugging
|
178
|
-
@api_client.config.logger.debug 'Calling API:
|
180
|
+
@api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.rebuild ...'
|
179
181
|
end
|
180
|
-
# verify the required parameter '
|
181
|
-
if @api_client.config.client_side_validation &&
|
182
|
-
fail ArgumentError, "Missing the required parameter '
|
182
|
+
# verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
|
183
|
+
if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
|
183
185
|
end
|
184
186
|
# verify the required parameter 'collection_version_search_list' is set
|
185
187
|
if @api_client.config.client_side_validation && collection_version_search_list.nil?
|
186
|
-
fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling
|
188
|
+
fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
|
187
189
|
end
|
188
190
|
# resource path
|
189
|
-
local_var_path = '
|
191
|
+
local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
|
190
192
|
|
191
193
|
# query parameters
|
192
194
|
query_params = opts[:query_params] || {}
|
@@ -221,7 +223,7 @@ module PulpAnsibleClient
|
|
221
223
|
|
222
224
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
223
225
|
if @api_client.config.debugging
|
224
|
-
@api_client.config.logger.debug "API called:
|
226
|
+
@api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
225
227
|
end
|
226
228
|
return data, status_code, headers
|
227
229
|
end
|
@@ -22,10 +22,10 @@ module PulpAnsibleClient
|
|
22
22
|
# Create a collection version
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :
|
25
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
26
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
27
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
27
28
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
29
|
# @option opts [String] :expected_name The name of the collection.
|
30
30
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
31
31
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -38,10 +38,10 @@ module PulpAnsibleClient
|
|
38
38
|
# Create a collection version
|
39
39
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :
|
41
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
42
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
43
44
|
# @option opts [String] :artifact Artifact file representing the physical content
|
44
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
45
45
|
# @option opts [String] :expected_name The name of the collection.
|
46
46
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
47
47
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -89,10 +89,10 @@ module PulpAnsibleClient
|
|
89
89
|
|
90
90
|
# form parameters
|
91
91
|
form_params = opts[:form_params] || {}
|
92
|
-
form_params['
|
92
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
93
93
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
94
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
94
95
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
95
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
96
96
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
97
97
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
98
98
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
@@ -19,6 +19,7 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# List cross repository collection version indexs
|
22
23
|
# A viewset for cross-repo searches.
|
23
24
|
# @param [Hash] opts the optional parameters
|
24
25
|
# @option opts [String] :dependency
|
@@ -52,6 +53,7 @@ module PulpAnsibleClient
|
|
52
53
|
data
|
53
54
|
end
|
54
55
|
|
56
|
+
# List cross repository collection version indexs
|
55
57
|
# A viewset for cross-repo searches.
|
56
58
|
# @param [Hash] opts the optional parameters
|
57
59
|
# @option opts [String] :dependency
|
@@ -128,7 +128,7 @@ module PulpAnsibleClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'localhost'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpAnsibleClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://localhost:24817/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -364,20 +364,20 @@ module PulpAnsibleClient
|
|
364
364
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
368
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
367
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
368
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
369
369
|
end
|
370
370
|
|
371
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
372
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
371
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
372
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
373
373
|
end
|
374
374
|
|
375
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
376
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
375
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
376
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
377
377
|
end
|
378
378
|
|
379
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
380
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
379
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
380
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
381
381
|
end
|
382
382
|
|
383
383
|
if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
@@ -419,10 +419,10 @@ module PulpAnsibleClient
|
|
419
419
|
return false if !@username.nil? && @username.to_s.length < 1
|
420
420
|
return false if !@password.nil? && @password.to_s.length < 1
|
421
421
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
422
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
423
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
424
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
425
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
422
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
423
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
424
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
425
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
426
426
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
427
427
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
428
428
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
@@ -552,8 +552,8 @@ module PulpAnsibleClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] total_timeout Value to be assigned
|
554
554
|
def total_timeout=(total_timeout)
|
555
|
-
if !total_timeout.nil? && total_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
555
|
+
if !total_timeout.nil? && total_timeout < 0
|
556
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@total_timeout = total_timeout
|
@@ -562,8 +562,8 @@ module PulpAnsibleClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] connect_timeout Value to be assigned
|
564
564
|
def connect_timeout=(connect_timeout)
|
565
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
565
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@connect_timeout = connect_timeout
|
@@ -572,8 +572,8 @@ module PulpAnsibleClient
|
|
572
572
|
# Custom attribute writer method with validation
|
573
573
|
# @param [Object] sock_connect_timeout Value to be assigned
|
574
574
|
def sock_connect_timeout=(sock_connect_timeout)
|
575
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
575
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
577
577
|
end
|
578
578
|
|
579
579
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -582,8 +582,8 @@ module PulpAnsibleClient
|
|
582
582
|
# Custom attribute writer method with validation
|
583
583
|
# @param [Object] sock_read_timeout Value to be assigned
|
584
584
|
def sock_read_timeout=(sock_read_timeout)
|
585
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
585
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
587
587
|
end
|
588
588
|
|
589
589
|
@sock_read_timeout = sock_read_timeout
|
@@ -309,20 +309,20 @@ module PulpAnsibleClient
|
|
309
309
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
312
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
313
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
316
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
317
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
318
318
|
end
|
319
319
|
|
320
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
321
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
320
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
321
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
322
322
|
end
|
323
323
|
|
324
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
325
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
324
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
325
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
326
326
|
end
|
327
327
|
|
328
328
|
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
@@ -338,10 +338,10 @@ module PulpAnsibleClient
|
|
338
338
|
return false if @name.nil?
|
339
339
|
return false if @url.nil?
|
340
340
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
341
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
342
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
343
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
344
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
341
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
342
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
343
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
344
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
345
345
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
346
346
|
true
|
347
347
|
end
|
@@ -359,8 +359,8 @@ module PulpAnsibleClient
|
|
359
359
|
# Custom attribute writer method with validation
|
360
360
|
# @param [Object] total_timeout Value to be assigned
|
361
361
|
def total_timeout=(total_timeout)
|
362
|
-
if !total_timeout.nil? && total_timeout < 0
|
363
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
362
|
+
if !total_timeout.nil? && total_timeout < 0
|
363
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
364
364
|
end
|
365
365
|
|
366
366
|
@total_timeout = total_timeout
|
@@ -369,8 +369,8 @@ module PulpAnsibleClient
|
|
369
369
|
# Custom attribute writer method with validation
|
370
370
|
# @param [Object] connect_timeout Value to be assigned
|
371
371
|
def connect_timeout=(connect_timeout)
|
372
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
373
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
372
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
373
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
374
374
|
end
|
375
375
|
|
376
376
|
@connect_timeout = connect_timeout
|
@@ -379,8 +379,8 @@ module PulpAnsibleClient
|
|
379
379
|
# Custom attribute writer method with validation
|
380
380
|
# @param [Object] sock_connect_timeout Value to be assigned
|
381
381
|
def sock_connect_timeout=(sock_connect_timeout)
|
382
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
383
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
382
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
383
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
384
384
|
end
|
385
385
|
|
386
386
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -389,8 +389,8 @@ module PulpAnsibleClient
|
|
389
389
|
# Custom attribute writer method with validation
|
390
390
|
# @param [Object] sock_read_timeout Value to be assigned
|
391
391
|
def sock_read_timeout=(sock_read_timeout)
|
392
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
393
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
392
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
393
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
394
394
|
end
|
395
395
|
|
396
396
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,18 +15,18 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
20
|
|
21
21
|
# An uploaded file that may be turned into the content unit.
|
22
22
|
attr_accessor :file
|
23
23
|
|
24
|
+
# An uncommitted upload that may be turned into the content unit.
|
25
|
+
attr_accessor :upload
|
26
|
+
|
24
27
|
# Artifact file representing the physical content
|
25
28
|
attr_accessor :artifact
|
26
29
|
|
27
|
-
# A URI of a repository the new content unit should be associated with.
|
28
|
-
attr_accessor :repository
|
29
|
-
|
30
30
|
# The name of the collection.
|
31
31
|
attr_accessor :expected_name
|
32
32
|
|
@@ -39,10 +39,10 @@ module PulpAnsibleClient
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'
|
42
|
+
:'repository' => :'repository',
|
43
43
|
:'file' => :'file',
|
44
|
+
:'upload' => :'upload',
|
44
45
|
:'artifact' => :'artifact',
|
45
|
-
:'repository' => :'repository',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
48
48
|
:'expected_version' => :'expected_version'
|
@@ -52,10 +52,10 @@ module PulpAnsibleClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'
|
55
|
+
:'repository' => :'String',
|
56
56
|
:'file' => :'File',
|
57
|
+
:'upload' => :'String',
|
57
58
|
:'artifact' => :'String',
|
58
|
-
:'repository' => :'String',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
61
61
|
:'expected_version' => :'String'
|
@@ -83,20 +83,20 @@ module PulpAnsibleClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
86
|
+
if attributes.key?(:'repository')
|
87
|
+
self.repository = attributes[:'repository']
|
88
88
|
end
|
89
89
|
|
90
90
|
if attributes.key?(:'file')
|
91
91
|
self.file = attributes[:'file']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'upload')
|
95
|
+
self.upload = attributes[:'upload']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
98
|
+
if attributes.key?(:'artifact')
|
99
|
+
self.artifact = attributes[:'artifact']
|
100
100
|
end
|
101
101
|
|
102
102
|
if attributes.key?(:'expected_name')
|
@@ -202,10 +202,10 @@ module PulpAnsibleClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
|
205
|
+
repository == o.repository &&
|
206
206
|
file == o.file &&
|
207
|
+
upload == o.upload &&
|
207
208
|
artifact == o.artifact &&
|
208
|
-
repository == o.repository &&
|
209
209
|
expected_name == o.expected_name &&
|
210
210
|
expected_namespace == o.expected_namespace &&
|
211
211
|
expected_version == o.expected_version
|
@@ -220,7 +220,7 @@ module PulpAnsibleClient
|
|
220
220
|
# Calculates hash code according to all attributes.
|
221
221
|
# @return [Integer] Hash code
|
222
222
|
def hash
|
223
|
-
[
|
223
|
+
[repository, file, upload, artifact, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|
@@ -15,17 +15,17 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
18
23
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
19
24
|
attr_accessor :pulp_last_updated
|
20
25
|
|
21
26
|
# Artifact file representing the physical content
|
22
27
|
attr_accessor :artifact
|
23
28
|
|
24
|
-
attr_accessor :pulp_href
|
25
|
-
|
26
|
-
# Timestamp of creation.
|
27
|
-
attr_accessor :pulp_created
|
28
|
-
|
29
29
|
# The SHA-256 checksum if available.
|
30
30
|
attr_accessor :sha256
|
31
31
|
|
@@ -100,10 +100,10 @@ module PulpAnsibleClient
|
|
100
100
|
# Attribute mapping from ruby-style variable name to JSON key.
|
101
101
|
def self.attribute_map
|
102
102
|
{
|
103
|
+
:'pulp_created' => :'pulp_created',
|
104
|
+
:'pulp_href' => :'pulp_href',
|
103
105
|
:'pulp_last_updated' => :'pulp_last_updated',
|
104
106
|
:'artifact' => :'artifact',
|
105
|
-
:'pulp_href' => :'pulp_href',
|
106
|
-
:'pulp_created' => :'pulp_created',
|
107
107
|
:'sha256' => :'sha256',
|
108
108
|
:'md5' => :'md5',
|
109
109
|
:'sha1' => :'sha1',
|
@@ -134,10 +134,10 @@ module PulpAnsibleClient
|
|
134
134
|
# Attribute type mapping.
|
135
135
|
def self.openapi_types
|
136
136
|
{
|
137
|
+
:'pulp_created' => :'DateTime',
|
138
|
+
:'pulp_href' => :'String',
|
137
139
|
:'pulp_last_updated' => :'DateTime',
|
138
140
|
:'artifact' => :'String',
|
139
|
-
:'pulp_href' => :'String',
|
140
|
-
:'pulp_created' => :'DateTime',
|
141
141
|
:'sha256' => :'String',
|
142
142
|
:'md5' => :'String',
|
143
143
|
:'sha1' => :'String',
|
@@ -187,20 +187,20 @@ module PulpAnsibleClient
|
|
187
187
|
h[k.to_sym] = v
|
188
188
|
}
|
189
189
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.key?(:'artifact')
|
195
|
-
self.artifact = attributes[:'artifact']
|
190
|
+
if attributes.key?(:'pulp_created')
|
191
|
+
self.pulp_created = attributes[:'pulp_created']
|
196
192
|
end
|
197
193
|
|
198
194
|
if attributes.key?(:'pulp_href')
|
199
195
|
self.pulp_href = attributes[:'pulp_href']
|
200
196
|
end
|
201
197
|
|
202
|
-
if attributes.key?(:'
|
203
|
-
self.
|
198
|
+
if attributes.key?(:'pulp_last_updated')
|
199
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes.key?(:'artifact')
|
203
|
+
self.artifact = attributes[:'artifact']
|
204
204
|
end
|
205
205
|
|
206
206
|
if attributes.key?(:'sha256')
|
@@ -444,10 +444,10 @@ module PulpAnsibleClient
|
|
444
444
|
def ==(o)
|
445
445
|
return true if self.equal?(o)
|
446
446
|
self.class == o.class &&
|
447
|
+
pulp_created == o.pulp_created &&
|
448
|
+
pulp_href == o.pulp_href &&
|
447
449
|
pulp_last_updated == o.pulp_last_updated &&
|
448
450
|
artifact == o.artifact &&
|
449
|
-
pulp_href == o.pulp_href &&
|
450
|
-
pulp_created == o.pulp_created &&
|
451
451
|
sha256 == o.sha256 &&
|
452
452
|
md5 == o.md5 &&
|
453
453
|
sha1 == o.sha1 &&
|
@@ -483,7 +483,7 @@ module PulpAnsibleClient
|
|
483
483
|
# Calculates hash code according to all attributes.
|
484
484
|
# @return [Integer] Hash code
|
485
485
|
def hash
|
486
|
-
[
|
486
|
+
[pulp_created, pulp_href, pulp_last_updated, artifact, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
487
487
|
end
|
488
488
|
|
489
489
|
# Builds the object from hash
|