pulp_ansible_client 0.22.9 → 0.23.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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +3 -5
  4. data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
  5. data/docs/AnsibleCollectionVersion.md +7 -7
  6. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  7. data/docs/AnsibleGitRemote.md +28 -28
  8. data/docs/AnsibleGitRemoteResponse.md +28 -28
  9. data/docs/AnsibleRoleResponse.md +4 -4
  10. data/docs/ContentCollectionVersionsApi.md +8 -10
  11. data/docs/PatchedansibleAnsibleDistribution.md +3 -5
  12. data/docs/PatchedansibleGitRemote.md +28 -28
  13. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -4
  14. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  15. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -4
  16. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  17. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -15
  18. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -6
  19. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  20. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  21. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -6
  22. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  23. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  24. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
  25. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
  26. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  27. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  28. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  29. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  30. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +28 -28
  31. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
  32. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
  33. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +167 -167
  34. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  35. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  36. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  37. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
  38. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
  39. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  40. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +238 -238
  41. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  42. data/lib/pulp_ansible_client/version.rb +1 -1
  43. data/spec/api/content_collection_versions_api_spec.rb +4 -5
  44. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -2
  45. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  46. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -2
  47. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  48. data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
  49. data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
  50. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  51. data/spec/models/ansible_collection_version_spec.rb +5 -5
  52. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  53. data/spec/models/ansible_git_remote_spec.rb +19 -19
  54. data/spec/models/ansible_role_response_spec.rb +3 -3
  55. data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
  56. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  57. metadata +133 -133
@@ -102,12 +102,11 @@ module PulpAnsibleClient
102
102
  # @param name [String]
103
103
  # @param namespace [String]
104
104
  # @param [Hash] opts the optional parameters
105
- # @option opts [Boolean] :is_highest
106
105
  # @option opts [Integer] :limit Number of results to return per page.
107
106
  # @option opts [String] :name2
108
107
  # @option opts [String] :namespace2
109
108
  # @option opts [Integer] :offset The initial index from which to return the results.
110
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;version_major&#x60; - Version major * &#x60;-version_major&#x60; - Version major (descending) * &#x60;version_minor&#x60; - Version minor * &#x60;-version_minor&#x60; - Version minor (descending) * &#x60;version_patch&#x60; - Version patch * &#x60;-version_patch&#x60; - Version patch (descending) * &#x60;version_prerelease&#x60; - Version prerelease * &#x60;-version_prerelease&#x60; - Version prerelease (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
109
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;version_major&#x60; - Version major * &#x60;-version_major&#x60; - Version major (descending) * &#x60;version_minor&#x60; - Version minor * &#x60;-version_minor&#x60; - Version minor (descending) * &#x60;version_patch&#x60; - Version patch * &#x60;-version_patch&#x60; - Version patch (descending) * &#x60;version_prerelease&#x60; - Version prerelease * &#x60;-version_prerelease&#x60; - Version prerelease (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
111
110
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
112
111
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
113
112
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
@@ -131,12 +130,11 @@ module PulpAnsibleClient
131
130
  # @param name [String]
132
131
  # @param namespace [String]
133
132
  # @param [Hash] opts the optional parameters
134
- # @option opts [Boolean] :is_highest
135
133
  # @option opts [Integer] :limit Number of results to return per page.
136
134
  # @option opts [String] :name2
137
135
  # @option opts [String] :namespace2
138
136
  # @option opts [Integer] :offset The initial index from which to return the results.
139
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;version_major&#x60; - Version major * &#x60;-version_major&#x60; - Version major (descending) * &#x60;version_minor&#x60; - Version minor * &#x60;-version_minor&#x60; - Version minor (descending) * &#x60;version_patch&#x60; - Version patch * &#x60;-version_patch&#x60; - Version patch (descending) * &#x60;version_prerelease&#x60; - Version prerelease * &#x60;-version_prerelease&#x60; - Version prerelease (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
137
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;authors&#x60; - Authors * &#x60;-authors&#x60; - Authors (descending) * &#x60;contents&#x60; - Contents * &#x60;-contents&#x60; - Contents (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;docs_blob&#x60; - Docs blob * &#x60;-docs_blob&#x60; - Docs blob (descending) * &#x60;manifest&#x60; - Manifest * &#x60;-manifest&#x60; - Manifest (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;documentation&#x60; - Documentation * &#x60;-documentation&#x60; - Documentation (descending) * &#x60;homepage&#x60; - Homepage * &#x60;-homepage&#x60; - Homepage (descending) * &#x60;issues&#x60; - Issues * &#x60;-issues&#x60; - Issues (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;namespace&#x60; - Namespace * &#x60;-namespace&#x60; - Namespace (descending) * &#x60;repository&#x60; - Repository * &#x60;-repository&#x60; - Repository (descending) * &#x60;requires_ansible&#x60; - Requires ansible * &#x60;-requires_ansible&#x60; - Requires ansible (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;version_major&#x60; - Version major * &#x60;-version_major&#x60; - Version major (descending) * &#x60;version_minor&#x60; - Version minor * &#x60;-version_minor&#x60; - Version minor (descending) * &#x60;version_patch&#x60; - Version patch * &#x60;-version_patch&#x60; - Version patch (descending) * &#x60;version_prerelease&#x60; - Version prerelease * &#x60;-version_prerelease&#x60; - Version prerelease (descending) * &#x60;is_highest&#x60; - Is highest * &#x60;-is_highest&#x60; - Is highest (descending) * &#x60;search_vector&#x60; - Search vector * &#x60;-search_vector&#x60; - Search vector (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
140
138
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
141
139
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
142
140
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
@@ -166,7 +164,7 @@ module PulpAnsibleClient
166
164
  if @api_client.config.client_side_validation && namespace.nil?
167
165
  fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
168
166
  end
169
- allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
167
+ allowable_values = ["-authors", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-repository", "-requires_ansible", "-search_vector", "-sha256", "-timestamp_of_interest", "-upstream_id", "-version", "-version_major", "-version_minor", "-version_patch", "-version_prerelease", "authors", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "repository", "requires_ansible", "search_vector", "sha256", "timestamp_of_interest", "upstream_id", "version", "version_major", "version_minor", "version_patch", "version_prerelease"]
170
168
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
171
169
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
172
170
  end
@@ -175,7 +173,6 @@ module PulpAnsibleClient
175
173
 
176
174
  # query parameters
177
175
  query_params = opts[:query_params] || {}
178
- query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
179
176
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
180
177
  query_params[:'name'] = opts[:'name2'] if !opts[:'name2'].nil?
181
178
  query_params[:'namespace'] = opts[:'namespace2'] if !opts[:'namespace2'].nil?
@@ -66,7 +66,7 @@ module PulpAnsibleClient
66
66
  fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
67
67
  end
68
68
 
69
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
69
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
70
70
  if @api_client.config.client_side_validation && name !~ pattern
71
71
  fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
72
72
  end
@@ -397,7 +397,7 @@ module PulpAnsibleClient
397
397
  fail ArgumentError, 'invalid value for "opts[:"name"]" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
398
398
  end
399
399
 
400
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
400
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
401
401
  if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ pattern
402
402
  fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
403
403
  end
@@ -21,11 +21,6 @@ module PulpAnsibleClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
26
-
27
- attr_accessor :pulp_labels
28
-
29
24
  # A unique name. Ex, `rawhide` and `stable`.
30
25
  attr_accessor :name
31
26
 
@@ -35,16 +30,17 @@ module PulpAnsibleClient
35
30
  # RepositoryVersion to be served
36
31
  attr_accessor :repository_version
37
32
 
33
+ attr_accessor :pulp_labels
34
+
38
35
  # Attribute mapping from ruby-style variable name to JSON key.
39
36
  def self.attribute_map
40
37
  {
41
38
  :'base_path' => :'base_path',
42
39
  :'content_guard' => :'content_guard',
43
- :'hidden' => :'hidden',
44
- :'pulp_labels' => :'pulp_labels',
45
40
  :'name' => :'name',
46
41
  :'repository' => :'repository',
47
- :'repository_version' => :'repository_version'
42
+ :'repository_version' => :'repository_version',
43
+ :'pulp_labels' => :'pulp_labels'
48
44
  }
49
45
  end
50
46
 
@@ -53,11 +49,10 @@ module PulpAnsibleClient
53
49
  {
54
50
  :'base_path' => :'String',
55
51
  :'content_guard' => :'String',
56
- :'hidden' => :'Boolean',
57
- :'pulp_labels' => :'Hash<String, String>',
58
52
  :'name' => :'String',
59
53
  :'repository' => :'String',
60
- :'repository_version' => :'String'
54
+ :'repository_version' => :'String',
55
+ :'pulp_labels' => :'Hash<String, String>'
61
56
  }
62
57
  end
63
58
 
@@ -66,7 +61,7 @@ module PulpAnsibleClient
66
61
  Set.new([
67
62
  :'content_guard',
68
63
  :'repository',
69
- :'repository_version'
64
+ :'repository_version',
70
65
  ])
71
66
  end
72
67
 
@@ -93,18 +88,6 @@ module PulpAnsibleClient
93
88
  self.content_guard = attributes[:'content_guard']
94
89
  end
95
90
 
96
- if attributes.key?(:'hidden')
97
- self.hidden = attributes[:'hidden']
98
- else
99
- self.hidden = false
100
- end
101
-
102
- if attributes.key?(:'pulp_labels')
103
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
- self.pulp_labels = value
105
- end
106
- end
107
-
108
91
  if attributes.key?(:'name')
109
92
  self.name = attributes[:'name']
110
93
  end
@@ -116,6 +99,12 @@ module PulpAnsibleClient
116
99
  if attributes.key?(:'repository_version')
117
100
  self.repository_version = attributes[:'repository_version']
118
101
  end
102
+
103
+ if attributes.key?(:'pulp_labels')
104
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
+ self.pulp_labels = value
106
+ end
107
+ end
119
108
  end
120
109
 
121
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -186,11 +175,10 @@ module PulpAnsibleClient
186
175
  self.class == o.class &&
187
176
  base_path == o.base_path &&
188
177
  content_guard == o.content_guard &&
189
- hidden == o.hidden &&
190
- pulp_labels == o.pulp_labels &&
191
178
  name == o.name &&
192
179
  repository == o.repository &&
193
- repository_version == o.repository_version
180
+ repository_version == o.repository_version &&
181
+ pulp_labels == o.pulp_labels
194
182
  end
195
183
 
196
184
  # @see the `==` method
@@ -202,7 +190,7 @@ module PulpAnsibleClient
202
190
  # Calculates hash code according to all attributes.
203
191
  # @return [Integer] Hash code
204
192
  def hash
205
- [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
193
+ [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
206
194
  end
207
195
 
208
196
  # Builds the object from hash
@@ -17,57 +17,41 @@ module PulpAnsibleClient
17
17
  class AnsibleAnsibleDistributionResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # The Pulp Resource Name (PRN).
21
- attr_accessor :prn
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
26
- # 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.
27
- attr_accessor :pulp_last_updated
28
-
29
23
  # 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
24
  attr_accessor :base_path
31
25
 
32
26
  # An optional content-guard.
33
27
  attr_accessor :content_guard
34
28
 
35
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
36
- attr_accessor :no_content_change_since
37
-
38
- # Whether this distribution should be shown in the content app.
39
- attr_accessor :hidden
40
-
41
- attr_accessor :pulp_labels
42
-
43
29
  # A unique name. Ex, `rawhide` and `stable`.
44
30
  attr_accessor :name
45
31
 
46
32
  # The latest RepositoryVersion for this Repository will be served.
47
33
  attr_accessor :repository
48
34
 
35
+ # RepositoryVersion to be served
36
+ attr_accessor :repository_version
37
+
49
38
  # The URL of a Collection content source.
50
39
  attr_accessor :client_url
51
40
 
52
- # RepositoryVersion to be served
53
- attr_accessor :repository_version
41
+ attr_accessor :pulp_labels
54
42
 
55
43
  # Attribute mapping from ruby-style variable name to JSON key.
56
44
  def self.attribute_map
57
45
  {
58
46
  :'pulp_href' => :'pulp_href',
59
- :'prn' => :'prn',
60
47
  :'pulp_created' => :'pulp_created',
61
- :'pulp_last_updated' => :'pulp_last_updated',
62
48
  :'base_path' => :'base_path',
63
49
  :'content_guard' => :'content_guard',
64
- :'no_content_change_since' => :'no_content_change_since',
65
- :'hidden' => :'hidden',
66
- :'pulp_labels' => :'pulp_labels',
67
50
  :'name' => :'name',
68
51
  :'repository' => :'repository',
52
+ :'repository_version' => :'repository_version',
69
53
  :'client_url' => :'client_url',
70
- :'repository_version' => :'repository_version'
54
+ :'pulp_labels' => :'pulp_labels'
71
55
  }
72
56
  end
73
57
 
@@ -75,18 +59,14 @@ module PulpAnsibleClient
75
59
  def self.openapi_types
76
60
  {
77
61
  :'pulp_href' => :'String',
78
- :'prn' => :'String',
79
62
  :'pulp_created' => :'DateTime',
80
- :'pulp_last_updated' => :'DateTime',
81
63
  :'base_path' => :'String',
82
64
  :'content_guard' => :'String',
83
- :'no_content_change_since' => :'String',
84
- :'hidden' => :'Boolean',
85
- :'pulp_labels' => :'Hash<String, String>',
86
65
  :'name' => :'String',
87
66
  :'repository' => :'String',
67
+ :'repository_version' => :'String',
88
68
  :'client_url' => :'String',
89
- :'repository_version' => :'String'
69
+ :'pulp_labels' => :'Hash<String, String>'
90
70
  }
91
71
  end
92
72
 
@@ -95,7 +75,7 @@ module PulpAnsibleClient
95
75
  Set.new([
96
76
  :'content_guard',
97
77
  :'repository',
98
- :'repository_version'
78
+ :'repository_version',
99
79
  ])
100
80
  end
101
81
 
@@ -118,18 +98,10 @@ module PulpAnsibleClient
118
98
  self.pulp_href = attributes[:'pulp_href']
119
99
  end
120
100
 
121
- if attributes.key?(:'prn')
122
- self.prn = attributes[:'prn']
123
- end
124
-
125
101
  if attributes.key?(:'pulp_created')
126
102
  self.pulp_created = attributes[:'pulp_created']
127
103
  end
128
104
 
129
- if attributes.key?(:'pulp_last_updated')
130
- self.pulp_last_updated = attributes[:'pulp_last_updated']
131
- end
132
-
133
105
  if attributes.key?(:'base_path')
134
106
  self.base_path = attributes[:'base_path']
135
107
  end
@@ -138,22 +110,6 @@ module PulpAnsibleClient
138
110
  self.content_guard = attributes[:'content_guard']
139
111
  end
140
112
 
141
- if attributes.key?(:'no_content_change_since')
142
- self.no_content_change_since = attributes[:'no_content_change_since']
143
- end
144
-
145
- if attributes.key?(:'hidden')
146
- self.hidden = attributes[:'hidden']
147
- else
148
- self.hidden = false
149
- end
150
-
151
- if attributes.key?(:'pulp_labels')
152
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
153
- self.pulp_labels = value
154
- end
155
- end
156
-
157
113
  if attributes.key?(:'name')
158
114
  self.name = attributes[:'name']
159
115
  end
@@ -162,12 +118,18 @@ module PulpAnsibleClient
162
118
  self.repository = attributes[:'repository']
163
119
  end
164
120
 
121
+ if attributes.key?(:'repository_version')
122
+ self.repository_version = attributes[:'repository_version']
123
+ end
124
+
165
125
  if attributes.key?(:'client_url')
166
126
  self.client_url = attributes[:'client_url']
167
127
  end
168
128
 
169
- if attributes.key?(:'repository_version')
170
- self.repository_version = attributes[:'repository_version']
129
+ if attributes.key?(:'pulp_labels')
130
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
131
+ self.pulp_labels = value
132
+ end
171
133
  end
172
134
  end
173
135
 
@@ -200,18 +162,14 @@ module PulpAnsibleClient
200
162
  return true if self.equal?(o)
201
163
  self.class == o.class &&
202
164
  pulp_href == o.pulp_href &&
203
- prn == o.prn &&
204
165
  pulp_created == o.pulp_created &&
205
- pulp_last_updated == o.pulp_last_updated &&
206
166
  base_path == o.base_path &&
207
167
  content_guard == o.content_guard &&
208
- no_content_change_since == o.no_content_change_since &&
209
- hidden == o.hidden &&
210
- pulp_labels == o.pulp_labels &&
211
168
  name == o.name &&
212
169
  repository == o.repository &&
170
+ repository_version == o.repository_version &&
213
171
  client_url == o.client_url &&
214
- repository_version == o.repository_version
172
+ pulp_labels == o.pulp_labels
215
173
  end
216
174
 
217
175
  # @see the `==` method
@@ -223,7 +181,7 @@ module PulpAnsibleClient
223
181
  # Calculates hash code according to all attributes.
224
182
  # @return [Integer] Hash code
225
183
  def hash
226
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, client_url, repository_version].hash
184
+ [pulp_href, pulp_created, base_path, content_guard, name, repository, repository_version, client_url, pulp_labels].hash
227
185
  end
228
186
 
229
187
  # Builds the object from hash
@@ -130,7 +130,7 @@ module PulpAnsibleClient
130
130
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
131
131
  end
132
132
 
133
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
133
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
134
134
  if @name !~ pattern
135
135
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
136
136
  end
@@ -156,7 +156,7 @@ module PulpAnsibleClient
156
156
  return false if @name.nil?
157
157
  return false if @name.to_s.length > 64
158
158
  return false if @name.to_s.length < 3
159
- return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
159
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
160
160
  return false if !@company.nil? && @company.to_s.length > 64
161
161
  return false if !@email.nil? && @email.to_s.length > 256
162
162
  return false if !@description.nil? && @description.to_s.length > 256
@@ -178,7 +178,7 @@ module PulpAnsibleClient
178
178
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
179
179
  end
180
180
 
181
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
181
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
182
182
  if name !~ pattern
183
183
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
184
184
  end
@@ -155,7 +155,7 @@ module PulpAnsibleClient
155
155
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
156
156
  end
157
157
 
158
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
158
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
159
159
  if @name !~ pattern
160
160
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
161
161
  end
@@ -185,7 +185,7 @@ module PulpAnsibleClient
185
185
  return false if @name.nil?
186
186
  return false if @name.to_s.length > 64
187
187
  return false if @name.to_s.length < 3
188
- return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
188
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
189
189
  return false if !@company.nil? && @company.to_s.length > 64
190
190
  return false if !@email.nil? && @email.to_s.length > 256
191
191
  return false if !@description.nil? && @description.to_s.length > 256
@@ -208,7 +208,7 @@ module PulpAnsibleClient
208
208
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
209
209
  end
210
210
 
211
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
211
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
212
212
  if name !~ pattern
213
213
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
214
214
  end
@@ -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.0
368
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.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.0
372
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.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.0
376
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.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.0
380
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.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.0
423
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
424
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
425
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.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.0
556
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.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.0
566
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.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.0
576
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.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.0
586
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.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
@@ -318,20 +318,20 @@ module PulpAnsibleClient
318
318
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
319
319
  end
320
320
 
321
- if !@total_timeout.nil? && @total_timeout < 0.0
322
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
321
+ if !@total_timeout.nil? && @total_timeout < 0
322
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
323
323
  end
324
324
 
325
- if !@connect_timeout.nil? && @connect_timeout < 0.0
326
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
325
+ if !@connect_timeout.nil? && @connect_timeout < 0
326
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
327
327
  end
328
328
 
329
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
330
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
329
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
330
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
331
331
  end
332
332
 
333
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
334
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
333
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
334
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
335
335
  end
336
336
 
337
337
  if !@auth_url.nil? && @auth_url.to_s.length > 255
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if @name.nil?
348
348
  return false if @url.nil?
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
355
355
  true
356
356
  end
@@ -368,8 +368,8 @@ module PulpAnsibleClient
368
368
  # Custom attribute writer method with validation
369
369
  # @param [Object] total_timeout Value to be assigned
370
370
  def total_timeout=(total_timeout)
371
- if !total_timeout.nil? && total_timeout < 0.0
372
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
371
+ if !total_timeout.nil? && total_timeout < 0
372
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
373
373
  end
374
374
 
375
375
  @total_timeout = total_timeout
@@ -378,8 +378,8 @@ module PulpAnsibleClient
378
378
  # Custom attribute writer method with validation
379
379
  # @param [Object] connect_timeout Value to be assigned
380
380
  def connect_timeout=(connect_timeout)
381
- if !connect_timeout.nil? && connect_timeout < 0.0
382
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
381
+ if !connect_timeout.nil? && connect_timeout < 0
382
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
383
383
  end
384
384
 
385
385
  @connect_timeout = connect_timeout
@@ -388,8 +388,8 @@ module PulpAnsibleClient
388
388
  # Custom attribute writer method with validation
389
389
  # @param [Object] sock_connect_timeout Value to be assigned
390
390
  def sock_connect_timeout=(sock_connect_timeout)
391
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
392
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
391
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
392
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
393
393
  end
394
394
 
395
395
  @sock_connect_timeout = sock_connect_timeout
@@ -398,8 +398,8 @@ module PulpAnsibleClient
398
398
  # Custom attribute writer method with validation
399
399
  # @param [Object] sock_read_timeout Value to be assigned
400
400
  def sock_read_timeout=(sock_read_timeout)
401
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
402
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
401
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
402
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
403
403
  end
404
404
 
405
405
  @sock_read_timeout = sock_read_timeout