pulp_ansible_client 0.29.8 → 0.30.0
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 +4 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleCollectionRemote.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRole.md +4 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionSignaturesApi.md +2 -0
- data/docs/ContentCollectionVersionsApi.md +10 -8
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +15 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +28 -28
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +222 -222
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +124 -124
- data/lib/pulp_ansible_client/models/ansible_role.rb +18 -8
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -28
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +214 -214
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +5 -4
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +7 -1
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +121 -121
|
@@ -23,13 +23,14 @@ module PulpAnsibleClient
|
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
-
# @option opts [
|
|
27
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
|
26
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
28
27
|
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
29
|
-
# @option opts [
|
|
30
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
28
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
|
31
29
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
30
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
31
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
32
32
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
33
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
33
34
|
# @option opts [String] :expected_name The name of the collection.
|
|
34
35
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
|
35
36
|
# @option opts [String] :expected_version The version of the collection.
|
|
@@ -43,13 +44,14 @@ module PulpAnsibleClient
|
|
|
43
44
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
44
45
|
# @param [Hash] opts the optional parameters
|
|
45
46
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
46
|
-
# @option opts [
|
|
47
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
|
47
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
48
48
|
# @option opts [RemoteNetworkConfig] :downloader_config Configuration for the download process (e.g., proxies, auth, timeouts). Only applicable when providing a 'file_url.
|
|
49
|
-
# @option opts [
|
|
50
|
-
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
49
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
|
51
50
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
51
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
52
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
52
53
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
54
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
53
55
|
# @option opts [String] :expected_name The name of the collection.
|
|
54
56
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
|
55
57
|
# @option opts [String] :expected_version The version of the collection.
|
|
@@ -105,13 +107,14 @@ module PulpAnsibleClient
|
|
|
105
107
|
|
|
106
108
|
# form parameters
|
|
107
109
|
form_params = opts[:form_params] || {}
|
|
108
|
-
form_params['
|
|
109
|
-
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
110
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
110
111
|
form_params['downloader_config'] = opts[:'downloader_config'] if !opts[:'downloader_config'].nil?
|
|
111
|
-
form_params['
|
|
112
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
112
|
+
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
113
113
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
|
114
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
115
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
114
116
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
117
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
115
118
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
|
116
119
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
|
117
120
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb
CHANGED
|
@@ -74,7 +74,7 @@ module PulpAnsibleClient
|
|
|
74
74
|
fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
77
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
78
78
|
if @api_client.config.client_side_validation && name !~ pattern
|
|
79
79
|
fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
|
|
80
80
|
end
|
|
@@ -438,7 +438,7 @@ module PulpAnsibleClient
|
|
|
438
438
|
fail ArgumentError, 'invalid value for "opts[:"name2"]" when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
|
|
439
439
|
end
|
|
440
440
|
|
|
441
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
441
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
442
442
|
if @api_client.config.client_side_validation && !opts[:'name2'].nil? && opts[:'name2'] !~ pattern
|
|
443
443
|
fail ArgumentError, "invalid value for 'opts[:\"name2\"]' when calling PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
|
|
444
444
|
end
|
|
@@ -68,7 +68,7 @@ module PulpAnsibleClient
|
|
|
68
68
|
fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
71
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
72
72
|
if @api_client.config.client_side_validation && name !~ pattern
|
|
73
73
|
fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
|
|
74
74
|
end
|
|
@@ -414,7 +414,7 @@ module PulpAnsibleClient
|
|
|
414
414
|
fail ArgumentError, 'invalid value for "opts[:"name2"]" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
|
|
415
415
|
end
|
|
416
416
|
|
|
417
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
417
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
418
418
|
if @api_client.config.client_side_validation && !opts[:'name2'].nil? && opts[:'name2'] !~ pattern
|
|
419
419
|
fail ArgumentError, "invalid value for 'opts[:\"name2\"]' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
|
|
420
420
|
end
|
|
@@ -248,7 +248,7 @@ module PulpAnsibleClient
|
|
|
248
248
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
249
249
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
250
250
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
251
|
-
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `requirements_file` - Requirements file * `-requirements_file` - Requirements file (descending) * `auth_url` - Auth url * `-auth_url` - Auth url (descending) * `token` - Token * `-token` - Token (descending) * `sync_dependencies` - Sync dependencies * `-sync_dependencies` - Sync dependencies (descending) * `signed_only` - Signed only * `-signed_only` - Signed only (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
251
|
+
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `requirements_file` - Requirements file * `-requirements_file` - Requirements file (descending) * `auth_url` - Auth url * `-auth_url` - Auth url (descending) * `token` - Token * `-token` - Token (descending) * `sync_dependencies` - Sync dependencies * `-sync_dependencies` - Sync dependencies (descending) * `signed_only` - Signed only * `-signed_only` - Signed only (descending) * `sync_highest_versions` - Sync highest versions * `-sync_highest_versions` - Sync highest versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
252
252
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
253
253
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
254
254
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
@@ -288,7 +288,7 @@ module PulpAnsibleClient
|
|
|
288
288
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
289
289
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
290
290
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
291
|
-
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `requirements_file` - Requirements file * `-requirements_file` - Requirements file (descending) * `auth_url` - Auth url * `-auth_url` - Auth url (descending) * `token` - Token * `-token` - Token (descending) * `sync_dependencies` - Sync dependencies * `-sync_dependencies` - Sync dependencies (descending) * `signed_only` - Signed only * `-signed_only` - Signed only (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
291
|
+
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `requirements_file` - Requirements file * `-requirements_file` - Requirements file (descending) * `auth_url` - Auth url * `-auth_url` - Auth url (descending) * `token` - Token * `-token` - Token (descending) * `sync_dependencies` - Sync dependencies * `-sync_dependencies` - Sync dependencies (descending) * `signed_only` - Signed only * `-signed_only` - Signed only (descending) * `sync_highest_versions` - Sync highest versions * `-sync_highest_versions` - Sync highest versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
292
292
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
293
293
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
294
294
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
@@ -312,7 +312,7 @@ module PulpAnsibleClient
|
|
|
312
312
|
if @api_client.config.debugging
|
|
313
313
|
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...'
|
|
314
314
|
end
|
|
315
|
-
allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "tls_validation", "token", "total_timeout", "url", "username"]
|
|
315
|
+
allowable_values = ["-auth_url", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-requirements_file", "-signed_only", "-sock_connect_timeout", "-sock_read_timeout", "-sync_dependencies", "-sync_highest_versions", "-tls_validation", "-token", "-total_timeout", "-url", "-username", "auth_url", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "requirements_file", "signed_only", "sock_connect_timeout", "sock_read_timeout", "sync_dependencies", "sync_highest_versions", "tls_validation", "token", "total_timeout", "url", "username"]
|
|
316
316
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
317
317
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
318
318
|
end
|
|
@@ -19,6 +19,9 @@ module PulpAnsibleClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpAnsibleClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'name' => :'name',
|
|
37
41
|
:'namespace' => :'namespace'
|
|
@@ -47,6 +51,7 @@ module PulpAnsibleClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'name' => :'String',
|
|
52
57
|
:'namespace' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpAnsibleClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -166,6 +175,7 @@ module PulpAnsibleClient
|
|
|
166
175
|
return true if self.equal?(o)
|
|
167
176
|
self.class == o.class &&
|
|
168
177
|
repository == o.repository &&
|
|
178
|
+
overwrite == o.overwrite &&
|
|
169
179
|
pulp_labels == o.pulp_labels &&
|
|
170
180
|
name == o.name &&
|
|
171
181
|
namespace == o.namespace
|
|
@@ -180,7 +190,7 @@ module PulpAnsibleClient
|
|
|
180
190
|
# Calculates hash code according to all attributes.
|
|
181
191
|
# @return [Integer] Hash code
|
|
182
192
|
def hash
|
|
183
|
-
[repository, pulp_labels, name, namespace].hash
|
|
193
|
+
[repository, overwrite, pulp_labels, name, namespace].hash
|
|
184
194
|
end
|
|
185
195
|
|
|
186
196
|
# Builds the object from hash
|
|
@@ -139,7 +139,7 @@ module PulpAnsibleClient
|
|
|
139
139
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
142
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
143
143
|
if @name !~ pattern
|
|
144
144
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
145
145
|
end
|
|
@@ -166,7 +166,7 @@ module PulpAnsibleClient
|
|
|
166
166
|
return false if @name.nil?
|
|
167
167
|
return false if @name.to_s.length > 64
|
|
168
168
|
return false if @name.to_s.length < 3
|
|
169
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
169
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
170
170
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
171
171
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
172
172
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -188,7 +188,7 @@ module PulpAnsibleClient
|
|
|
188
188
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
189
189
|
end
|
|
190
190
|
|
|
191
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
191
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
192
192
|
if name !~ pattern
|
|
193
193
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
194
194
|
end
|
|
@@ -164,7 +164,7 @@ module PulpAnsibleClient
|
|
|
164
164
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
167
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
168
168
|
if @name !~ pattern
|
|
169
169
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
170
170
|
end
|
|
@@ -195,7 +195,7 @@ module PulpAnsibleClient
|
|
|
195
195
|
return false if @name.nil?
|
|
196
196
|
return false if @name.to_s.length > 64
|
|
197
197
|
return false if @name.to_s.length < 3
|
|
198
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
198
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
199
199
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
200
200
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
201
201
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -218,7 +218,7 @@ module PulpAnsibleClient
|
|
|
218
218
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
221
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
222
222
|
if name !~ pattern
|
|
223
223
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
224
224
|
end
|
|
@@ -93,6 +93,9 @@ module PulpAnsibleClient
|
|
|
93
93
|
# Sync only collections that have a signature
|
|
94
94
|
attr_accessor :signed_only
|
|
95
95
|
|
|
96
|
+
# The number of highest versions of each collection to sync. Unset or null syncs all versions. 1 syncs only the highest version.
|
|
97
|
+
attr_accessor :sync_highest_versions
|
|
98
|
+
|
|
96
99
|
class EnumAttributeValidator
|
|
97
100
|
attr_reader :datatype
|
|
98
101
|
attr_reader :allowable_values
|
|
@@ -143,7 +146,8 @@ module PulpAnsibleClient
|
|
|
143
146
|
:'auth_url' => :'auth_url',
|
|
144
147
|
:'token' => :'token',
|
|
145
148
|
:'sync_dependencies' => :'sync_dependencies',
|
|
146
|
-
:'signed_only' => :'signed_only'
|
|
149
|
+
:'signed_only' => :'signed_only',
|
|
150
|
+
:'sync_highest_versions' => :'sync_highest_versions'
|
|
147
151
|
}
|
|
148
152
|
end
|
|
149
153
|
|
|
@@ -180,7 +184,8 @@ module PulpAnsibleClient
|
|
|
180
184
|
:'auth_url' => :'String',
|
|
181
185
|
:'token' => :'String',
|
|
182
186
|
:'sync_dependencies' => :'Boolean',
|
|
183
|
-
:'signed_only' => :'Boolean'
|
|
187
|
+
:'signed_only' => :'Boolean',
|
|
188
|
+
:'sync_highest_versions' => :'Integer'
|
|
184
189
|
}
|
|
185
190
|
end
|
|
186
191
|
|
|
@@ -205,6 +210,7 @@ module PulpAnsibleClient
|
|
|
205
210
|
:'requirements_file',
|
|
206
211
|
:'auth_url',
|
|
207
212
|
:'token',
|
|
213
|
+
:'sync_highest_versions'
|
|
208
214
|
])
|
|
209
215
|
end
|
|
210
216
|
|
|
@@ -334,6 +340,10 @@ module PulpAnsibleClient
|
|
|
334
340
|
if attributes.key?(:'signed_only')
|
|
335
341
|
self.signed_only = attributes[:'signed_only']
|
|
336
342
|
end
|
|
343
|
+
|
|
344
|
+
if attributes.key?(:'sync_highest_versions')
|
|
345
|
+
self.sync_highest_versions = attributes[:'sync_highest_versions']
|
|
346
|
+
end
|
|
337
347
|
end
|
|
338
348
|
|
|
339
349
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -429,6 +439,10 @@ module PulpAnsibleClient
|
|
|
429
439
|
invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
|
|
430
440
|
end
|
|
431
441
|
|
|
442
|
+
if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
443
|
+
invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
|
|
444
|
+
end
|
|
445
|
+
|
|
432
446
|
invalid_properties
|
|
433
447
|
end
|
|
434
448
|
|
|
@@ -458,6 +472,7 @@ module PulpAnsibleClient
|
|
|
458
472
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
|
459
473
|
return false if !@token.nil? && @token.to_s.length > 2000
|
|
460
474
|
return false if !@token.nil? && @token.to_s.length < 1
|
|
475
|
+
return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
461
476
|
true
|
|
462
477
|
end
|
|
463
478
|
|
|
@@ -657,6 +672,16 @@ module PulpAnsibleClient
|
|
|
657
672
|
@token = token
|
|
658
673
|
end
|
|
659
674
|
|
|
675
|
+
# Custom attribute writer method with validation
|
|
676
|
+
# @param [Object] sync_highest_versions Value to be assigned
|
|
677
|
+
def sync_highest_versions=(sync_highest_versions)
|
|
678
|
+
if !sync_highest_versions.nil? && sync_highest_versions < 1
|
|
679
|
+
fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
@sync_highest_versions = sync_highest_versions
|
|
683
|
+
end
|
|
684
|
+
|
|
660
685
|
# Checks equality by comparing each attribute.
|
|
661
686
|
# @param [Object] Object to be compared
|
|
662
687
|
def ==(o)
|
|
@@ -687,7 +712,8 @@ module PulpAnsibleClient
|
|
|
687
712
|
auth_url == o.auth_url &&
|
|
688
713
|
token == o.token &&
|
|
689
714
|
sync_dependencies == o.sync_dependencies &&
|
|
690
|
-
signed_only == o.signed_only
|
|
715
|
+
signed_only == o.signed_only &&
|
|
716
|
+
sync_highest_versions == o.sync_highest_versions
|
|
691
717
|
end
|
|
692
718
|
|
|
693
719
|
# @see the `==` method
|
|
@@ -699,7 +725,7 @@ module PulpAnsibleClient
|
|
|
699
725
|
# Calculates hash code according to all attributes.
|
|
700
726
|
# @return [Integer] Hash code
|
|
701
727
|
def hash
|
|
702
|
-
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only].hash
|
|
728
|
+
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only, sync_highest_versions].hash
|
|
703
729
|
end
|
|
704
730
|
|
|
705
731
|
# Builds the object from hash
|
|
@@ -89,6 +89,9 @@ module PulpAnsibleClient
|
|
|
89
89
|
# Sync only collections that have a signature
|
|
90
90
|
attr_accessor :signed_only
|
|
91
91
|
|
|
92
|
+
# The number of highest versions of each collection to sync. Unset or null syncs all versions. 1 syncs only the highest version.
|
|
93
|
+
attr_accessor :sync_highest_versions
|
|
94
|
+
|
|
92
95
|
attr_accessor :last_sync_task
|
|
93
96
|
|
|
94
97
|
class EnumAttributeValidator
|
|
@@ -141,6 +144,7 @@ module PulpAnsibleClient
|
|
|
141
144
|
:'auth_url' => :'auth_url',
|
|
142
145
|
:'sync_dependencies' => :'sync_dependencies',
|
|
143
146
|
:'signed_only' => :'signed_only',
|
|
147
|
+
:'sync_highest_versions' => :'sync_highest_versions',
|
|
144
148
|
:'last_sync_task' => :'last_sync_task'
|
|
145
149
|
}
|
|
146
150
|
end
|
|
@@ -178,6 +182,7 @@ module PulpAnsibleClient
|
|
|
178
182
|
:'auth_url' => :'String',
|
|
179
183
|
:'sync_dependencies' => :'Boolean',
|
|
180
184
|
:'signed_only' => :'Boolean',
|
|
185
|
+
:'sync_highest_versions' => :'Integer',
|
|
181
186
|
:'last_sync_task' => :'String'
|
|
182
187
|
}
|
|
183
188
|
end
|
|
@@ -197,6 +202,7 @@ module PulpAnsibleClient
|
|
|
197
202
|
:'rate_limit',
|
|
198
203
|
:'requirements_file',
|
|
199
204
|
:'auth_url',
|
|
205
|
+
:'sync_highest_versions',
|
|
200
206
|
])
|
|
201
207
|
end
|
|
202
208
|
|
|
@@ -325,6 +331,10 @@ module PulpAnsibleClient
|
|
|
325
331
|
self.signed_only = attributes[:'signed_only']
|
|
326
332
|
end
|
|
327
333
|
|
|
334
|
+
if attributes.key?(:'sync_highest_versions')
|
|
335
|
+
self.sync_highest_versions = attributes[:'sync_highest_versions']
|
|
336
|
+
end
|
|
337
|
+
|
|
328
338
|
if attributes.key?(:'last_sync_task')
|
|
329
339
|
self.last_sync_task = attributes[:'last_sync_task']
|
|
330
340
|
end
|
|
@@ -367,6 +377,10 @@ module PulpAnsibleClient
|
|
|
367
377
|
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
|
368
378
|
end
|
|
369
379
|
|
|
380
|
+
if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
381
|
+
invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
|
|
382
|
+
end
|
|
383
|
+
|
|
370
384
|
invalid_properties
|
|
371
385
|
end
|
|
372
386
|
|
|
@@ -382,6 +396,7 @@ module PulpAnsibleClient
|
|
|
382
396
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
383
397
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
384
398
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
|
399
|
+
return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
|
|
385
400
|
true
|
|
386
401
|
end
|
|
387
402
|
|
|
@@ -445,6 +460,16 @@ module PulpAnsibleClient
|
|
|
445
460
|
@auth_url = auth_url
|
|
446
461
|
end
|
|
447
462
|
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] sync_highest_versions Value to be assigned
|
|
465
|
+
def sync_highest_versions=(sync_highest_versions)
|
|
466
|
+
if !sync_highest_versions.nil? && sync_highest_versions < 1
|
|
467
|
+
fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
@sync_highest_versions = sync_highest_versions
|
|
471
|
+
end
|
|
472
|
+
|
|
448
473
|
# Checks equality by comparing each attribute.
|
|
449
474
|
# @param [Object] Object to be compared
|
|
450
475
|
def ==(o)
|
|
@@ -475,6 +500,7 @@ module PulpAnsibleClient
|
|
|
475
500
|
auth_url == o.auth_url &&
|
|
476
501
|
sync_dependencies == o.sync_dependencies &&
|
|
477
502
|
signed_only == o.signed_only &&
|
|
503
|
+
sync_highest_versions == o.sync_highest_versions &&
|
|
478
504
|
last_sync_task == o.last_sync_task
|
|
479
505
|
end
|
|
480
506
|
|
|
@@ -487,7 +513,7 @@ module PulpAnsibleClient
|
|
|
487
513
|
# Calculates hash code according to all attributes.
|
|
488
514
|
# @return [Integer] Hash code
|
|
489
515
|
def hash
|
|
490
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
|
|
516
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only, sync_highest_versions, last_sync_task].hash
|
|
491
517
|
end
|
|
492
518
|
|
|
493
519
|
# Builds the object from hash
|
|
@@ -16,25 +16,25 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for CollectionVersion Content.
|
|
18
18
|
class AnsibleCollectionVersionResponse
|
|
19
|
-
attr_accessor :vuln_report
|
|
20
|
-
|
|
21
19
|
# Artifact file representing the physical content
|
|
22
20
|
attr_accessor :artifact
|
|
23
21
|
|
|
22
|
+
attr_accessor :pulp_href
|
|
23
|
+
|
|
24
24
|
# Timestamp of creation.
|
|
25
25
|
attr_accessor :pulp_created
|
|
26
26
|
|
|
27
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
28
|
+
attr_accessor :pulp_labels
|
|
29
|
+
|
|
27
30
|
# The Pulp Resource Name (PRN).
|
|
28
31
|
attr_accessor :prn
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
attr_accessor :pulp_labels
|
|
33
|
+
attr_accessor :vuln_report
|
|
32
34
|
|
|
33
35
|
# 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.
|
|
34
36
|
attr_accessor :pulp_last_updated
|
|
35
37
|
|
|
36
|
-
attr_accessor :pulp_href
|
|
37
|
-
|
|
38
38
|
# The SHA-256 checksum if available.
|
|
39
39
|
attr_accessor :sha256
|
|
40
40
|
|
|
@@ -97,13 +97,13 @@ module PulpAnsibleClient
|
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
98
|
def self.attribute_map
|
|
99
99
|
{
|
|
100
|
-
:'vuln_report' => :'vuln_report',
|
|
101
100
|
:'artifact' => :'artifact',
|
|
101
|
+
:'pulp_href' => :'pulp_href',
|
|
102
102
|
:'pulp_created' => :'pulp_created',
|
|
103
|
-
:'prn' => :'prn',
|
|
104
103
|
:'pulp_labels' => :'pulp_labels',
|
|
104
|
+
:'prn' => :'prn',
|
|
105
|
+
:'vuln_report' => :'vuln_report',
|
|
105
106
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
106
|
-
:'pulp_href' => :'pulp_href',
|
|
107
107
|
:'sha256' => :'sha256',
|
|
108
108
|
:'md5' => :'md5',
|
|
109
109
|
:'sha1' => :'sha1',
|
|
@@ -135,13 +135,13 @@ module PulpAnsibleClient
|
|
|
135
135
|
# Attribute type mapping.
|
|
136
136
|
def self.openapi_types
|
|
137
137
|
{
|
|
138
|
-
:'vuln_report' => :'String',
|
|
139
138
|
:'artifact' => :'String',
|
|
139
|
+
:'pulp_href' => :'String',
|
|
140
140
|
:'pulp_created' => :'Time',
|
|
141
|
-
:'prn' => :'String',
|
|
142
141
|
:'pulp_labels' => :'Hash<String, String>',
|
|
142
|
+
:'prn' => :'String',
|
|
143
|
+
:'vuln_report' => :'String',
|
|
143
144
|
:'pulp_last_updated' => :'Time',
|
|
144
|
-
:'pulp_href' => :'String',
|
|
145
145
|
:'sha256' => :'String',
|
|
146
146
|
:'md5' => :'String',
|
|
147
147
|
:'sha1' => :'String',
|
|
@@ -187,20 +187,16 @@ module PulpAnsibleClient
|
|
|
187
187
|
h[k.to_sym] = v
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
if attributes.key?(:'vuln_report')
|
|
191
|
-
self.vuln_report = attributes[:'vuln_report']
|
|
192
|
-
end
|
|
193
|
-
|
|
194
190
|
if attributes.key?(:'artifact')
|
|
195
191
|
self.artifact = attributes[:'artifact']
|
|
196
192
|
end
|
|
197
193
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
self.
|
|
194
|
+
if attributes.key?(:'pulp_href')
|
|
195
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
200
196
|
end
|
|
201
197
|
|
|
202
|
-
if attributes.key?(:'
|
|
203
|
-
self.
|
|
198
|
+
if attributes.key?(:'pulp_created')
|
|
199
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
204
200
|
end
|
|
205
201
|
|
|
206
202
|
if attributes.key?(:'pulp_labels')
|
|
@@ -209,12 +205,16 @@ module PulpAnsibleClient
|
|
|
209
205
|
end
|
|
210
206
|
end
|
|
211
207
|
|
|
212
|
-
if attributes.key?(:'
|
|
213
|
-
self.
|
|
208
|
+
if attributes.key?(:'prn')
|
|
209
|
+
self.prn = attributes[:'prn']
|
|
214
210
|
end
|
|
215
211
|
|
|
216
|
-
if attributes.key?(:'
|
|
217
|
-
self.
|
|
212
|
+
if attributes.key?(:'vuln_report')
|
|
213
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'pulp_last_updated')
|
|
217
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
if attributes.key?(:'sha256')
|
|
@@ -472,13 +472,13 @@ module PulpAnsibleClient
|
|
|
472
472
|
def ==(o)
|
|
473
473
|
return true if self.equal?(o)
|
|
474
474
|
self.class == o.class &&
|
|
475
|
-
vuln_report == o.vuln_report &&
|
|
476
475
|
artifact == o.artifact &&
|
|
476
|
+
pulp_href == o.pulp_href &&
|
|
477
477
|
pulp_created == o.pulp_created &&
|
|
478
|
-
prn == o.prn &&
|
|
479
478
|
pulp_labels == o.pulp_labels &&
|
|
479
|
+
prn == o.prn &&
|
|
480
|
+
vuln_report == o.vuln_report &&
|
|
480
481
|
pulp_last_updated == o.pulp_last_updated &&
|
|
481
|
-
pulp_href == o.pulp_href &&
|
|
482
482
|
sha256 == o.sha256 &&
|
|
483
483
|
md5 == o.md5 &&
|
|
484
484
|
sha1 == o.sha1 &&
|
|
@@ -510,7 +510,7 @@ module PulpAnsibleClient
|
|
|
510
510
|
# Calculates hash code according to all attributes.
|
|
511
511
|
# @return [Integer] Hash code
|
|
512
512
|
def hash
|
|
513
|
-
[
|
|
513
|
+
[artifact, pulp_href, pulp_created, pulp_labels, prn, vuln_report, pulp_last_updated, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
|
514
514
|
end
|
|
515
515
|
|
|
516
516
|
# Builds the object from hash
|