pulp_ansible_client 0.16.4 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +89 -21
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +4 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +3 -1
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +233 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NamespaceLink.md +19 -0
- data/docs/NamespaceLinkResponse.md +19 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/PatchedansibleAnsibleRepository.md +4 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.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 +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- 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 +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- 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 +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- 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 +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +237 -1
- data/docs/RemotesGitApi.md +229 -1
- data/docs/RemotesRoleApi.md +229 -1
- data/docs/RepositoriesAnsibleApi.md +465 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Repository.md +25 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/docs/VersionsApi.md +11 -11
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +219 -219
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +147 -147
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- 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 +11 -11
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
- data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
- data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +211 -211
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/repository.rb +306 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +32 -0
- data/spec/api/ansible_collections_api_spec.rb +50 -0
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/distributions_ansible_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
- data/spec/api/remotes_collection_api_spec.rb +54 -0
- data/spec/api/remotes_git_api_spec.rb +50 -0
- data/spec/api/remotes_role_api_spec.rb +50 -0
- data/spec/api/repositories_ansible_api_spec.rb +106 -0
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
- data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +17 -17
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_namespace_response_spec.rb +6 -0
- data/spec/models/collection_summary_response_spec.rb +95 -0
- data/spec/models/collection_version_copy_move_spec.rb +53 -0
- data/spec/models/collection_version_list_response_spec.rb +6 -0
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/collection_version_search_list_response_spec.rb +77 -0
- data/spec/models/collection_version_search_list_spec.rb +71 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/namespace_link_response_spec.rb +47 -0
- data/spec/models/namespace_link_spec.rb +47 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +17 -17
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/repository_response_spec.rb +89 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +241 -113
@@ -0,0 +1,260 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
# A serializer for the mark action.
|
17
|
+
class AnsibleRepositoryMark
|
18
|
+
# List of collection version hrefs to mark, use * to mark all content in repository
|
19
|
+
attr_accessor :content_units
|
20
|
+
|
21
|
+
# The string value of this mark.
|
22
|
+
attr_accessor :value
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'content_units' => :'content_units',
|
28
|
+
:'value' => :'value'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'content_units' => :'Array<AnyType>',
|
36
|
+
:'value' => :'String'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleRepositoryMark` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleRepositoryMark`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'content_units')
|
62
|
+
if (value = attributes[:'content_units']).is_a?(Array)
|
63
|
+
self.content_units = value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.key?(:'value')
|
68
|
+
self.value = attributes[:'value']
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
73
|
+
# @return Array for valid properties with the reasons
|
74
|
+
def list_invalid_properties
|
75
|
+
invalid_properties = Array.new
|
76
|
+
if @content_units.nil?
|
77
|
+
invalid_properties.push('invalid value for "content_units", content_units cannot be nil.')
|
78
|
+
end
|
79
|
+
|
80
|
+
if @value.nil?
|
81
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
if @value.to_s.length < 1
|
85
|
+
invalid_properties.push('invalid value for "value", the character length must be great than or equal to 1.')
|
86
|
+
end
|
87
|
+
|
88
|
+
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
89
|
+
if @value !~ pattern
|
90
|
+
invalid_properties.push("invalid value for \"value\", must conform to the pattern #{pattern}.")
|
91
|
+
end
|
92
|
+
|
93
|
+
invalid_properties
|
94
|
+
end
|
95
|
+
|
96
|
+
# Check to see if the all the properties in the model are valid
|
97
|
+
# @return true if the model is valid
|
98
|
+
def valid?
|
99
|
+
return false if @content_units.nil?
|
100
|
+
return false if @value.nil?
|
101
|
+
return false if @value.to_s.length < 1
|
102
|
+
return false if @value !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param [Object] value Value to be assigned
|
108
|
+
def value=(value)
|
109
|
+
if value.nil?
|
110
|
+
fail ArgumentError, 'value cannot be nil'
|
111
|
+
end
|
112
|
+
|
113
|
+
if value.to_s.length < 1
|
114
|
+
fail ArgumentError, 'invalid value for "value", the character length must be great than or equal to 1.'
|
115
|
+
end
|
116
|
+
|
117
|
+
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
118
|
+
if value !~ pattern
|
119
|
+
fail ArgumentError, "invalid value for \"value\", must conform to the pattern #{pattern}."
|
120
|
+
end
|
121
|
+
|
122
|
+
@value = value
|
123
|
+
end
|
124
|
+
|
125
|
+
# Checks equality by comparing each attribute.
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def ==(o)
|
128
|
+
return true if self.equal?(o)
|
129
|
+
self.class == o.class &&
|
130
|
+
content_units == o.content_units &&
|
131
|
+
value == o.value
|
132
|
+
end
|
133
|
+
|
134
|
+
# @see the `==` method
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def eql?(o)
|
137
|
+
self == o
|
138
|
+
end
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Integer] Hash code
|
142
|
+
def hash
|
143
|
+
[content_units, value].hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def self.build_from_hash(attributes)
|
150
|
+
new.build_from_hash(attributes)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Builds the object from hash
|
154
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
155
|
+
# @return [Object] Returns the model itself
|
156
|
+
def build_from_hash(attributes)
|
157
|
+
return nil unless attributes.is_a?(Hash)
|
158
|
+
self.class.openapi_types.each_pair do |key, type|
|
159
|
+
if type =~ /\AArray<(.*)>/i
|
160
|
+
# check to ensure the input is an array given that the attribute
|
161
|
+
# is documented as an array but the input is not
|
162
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
164
|
+
end
|
165
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
167
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
168
|
+
end
|
169
|
+
|
170
|
+
self
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserializes the data based on type
|
174
|
+
# @param string type Data type
|
175
|
+
# @param string value Value to be deserialized
|
176
|
+
# @return [Object] Deserialized data
|
177
|
+
def _deserialize(type, value)
|
178
|
+
case type.to_sym
|
179
|
+
when :DateTime
|
180
|
+
DateTime.parse(value)
|
181
|
+
when :Date
|
182
|
+
Date.parse(value)
|
183
|
+
when :String
|
184
|
+
value.to_s
|
185
|
+
when :Integer
|
186
|
+
value.to_i
|
187
|
+
when :Float
|
188
|
+
value.to_f
|
189
|
+
when :Boolean
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
191
|
+
true
|
192
|
+
else
|
193
|
+
false
|
194
|
+
end
|
195
|
+
when :Object
|
196
|
+
# generic object (usually a Hash), return directly
|
197
|
+
value
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each do |k, v|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
else # model
|
210
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the string representation of the object
|
215
|
+
# @return [String] String presentation of the object
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_body
|
223
|
+
to_hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the object in the form of hash
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
228
|
+
def to_hash
|
229
|
+
hash = {}
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
231
|
+
value = self.send(attr)
|
232
|
+
if value.nil?
|
233
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
234
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
235
|
+
end
|
236
|
+
|
237
|
+
hash[param] = _to_hash(value)
|
238
|
+
end
|
239
|
+
hash
|
240
|
+
end
|
241
|
+
|
242
|
+
# Outputs non-array value in the form of hash
|
243
|
+
# For object, use to_hash. Otherwise, just return the value
|
244
|
+
# @param [Object] value Any valid value
|
245
|
+
# @return [Hash] Returns the value in the form of hash
|
246
|
+
def _to_hash(value)
|
247
|
+
if value.is_a?(Array)
|
248
|
+
value.compact.map { |v| _to_hash(v) }
|
249
|
+
elsif value.is_a?(Hash)
|
250
|
+
{}.tap do |hash|
|
251
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
252
|
+
end
|
253
|
+
elsif value.respond_to? :to_hash
|
254
|
+
value.to_hash
|
255
|
+
else
|
256
|
+
value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
@@ -312,20 +312,20 @@ module PulpAnsibleClient
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -347,10 +347,10 @@ module PulpAnsibleClient
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
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
|
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
|
354
354
|
true
|
355
355
|
end
|
356
356
|
|
@@ -475,8 +475,8 @@ module PulpAnsibleClient
|
|
475
475
|
# Custom attribute writer method with validation
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
477
477
|
def total_timeout=(total_timeout)
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
478
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
480
480
|
end
|
481
481
|
|
482
482
|
@total_timeout = total_timeout
|
@@ -485,8 +485,8 @@ module PulpAnsibleClient
|
|
485
485
|
# Custom attribute writer method with validation
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
487
487
|
def connect_timeout=(connect_timeout)
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
490
490
|
end
|
491
491
|
|
492
492
|
@connect_timeout = connect_timeout
|
@@ -495,8 +495,8 @@ module PulpAnsibleClient
|
|
495
495
|
# Custom attribute writer method with validation
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
500
500
|
end
|
501
501
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -505,8 +505,8 @@ module PulpAnsibleClient
|
|
505
505
|
# Custom attribute writer method with validation
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
510
510
|
end
|
511
511
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|
@@ -259,20 +259,20 @@ module PulpAnsibleClient
|
|
259
259
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
260
260
|
end
|
261
261
|
|
262
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
263
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
262
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
264
264
|
end
|
265
265
|
|
266
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
267
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
266
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
267
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
268
268
|
end
|
269
269
|
|
270
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
271
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
270
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
271
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
272
272
|
end
|
273
273
|
|
274
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
275
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
274
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
276
276
|
end
|
277
277
|
|
278
278
|
invalid_properties
|
@@ -284,10 +284,10 @@ module PulpAnsibleClient
|
|
284
284
|
return false if @name.nil?
|
285
285
|
return false if @url.nil?
|
286
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
287
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
288
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
290
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
287
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
288
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
289
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
290
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
291
291
|
true
|
292
292
|
end
|
293
293
|
|
@@ -304,8 +304,8 @@ module PulpAnsibleClient
|
|
304
304
|
# Custom attribute writer method with validation
|
305
305
|
# @param [Object] total_timeout Value to be assigned
|
306
306
|
def total_timeout=(total_timeout)
|
307
|
-
if !total_timeout.nil? && total_timeout < 0
|
308
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
307
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
308
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
309
309
|
end
|
310
310
|
|
311
311
|
@total_timeout = total_timeout
|
@@ -314,8 +314,8 @@ module PulpAnsibleClient
|
|
314
314
|
# Custom attribute writer method with validation
|
315
315
|
# @param [Object] connect_timeout Value to be assigned
|
316
316
|
def connect_timeout=(connect_timeout)
|
317
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
318
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
317
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
318
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
319
319
|
end
|
320
320
|
|
321
321
|
@connect_timeout = connect_timeout
|
@@ -324,8 +324,8 @@ module PulpAnsibleClient
|
|
324
324
|
# Custom attribute writer method with validation
|
325
325
|
# @param [Object] sock_connect_timeout Value to be assigned
|
326
326
|
def sock_connect_timeout=(sock_connect_timeout)
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
329
329
|
end
|
330
330
|
|
331
331
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -334,8 +334,8 @@ module PulpAnsibleClient
|
|
334
334
|
# Custom attribute writer method with validation
|
335
335
|
# @param [Object] sock_read_timeout Value to be assigned
|
336
336
|
def sock_read_timeout=(sock_read_timeout)
|
337
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
338
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
337
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
338
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
339
339
|
end
|
340
340
|
|
341
341
|
@sock_read_timeout = sock_read_timeout
|
@@ -17,12 +17,12 @@ module PulpAnsibleClient
|
|
17
17
|
class AnsibleRoleResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
-
# Artifact file representing the physical content
|
21
|
-
attr_accessor :artifact
|
22
|
-
|
23
20
|
# Timestamp of creation.
|
24
21
|
attr_accessor :pulp_created
|
25
22
|
|
23
|
+
# Artifact file representing the physical content
|
24
|
+
attr_accessor :artifact
|
25
|
+
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -33,8 +33,8 @@ module PulpAnsibleClient
|
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'pulp_href' => :'pulp_href',
|
36
|
-
:'artifact' => :'artifact',
|
37
36
|
:'pulp_created' => :'pulp_created',
|
37
|
+
:'artifact' => :'artifact',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -45,8 +45,8 @@ module PulpAnsibleClient
|
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
47
|
:'pulp_href' => :'String',
|
48
|
-
:'artifact' => :'String',
|
49
48
|
:'pulp_created' => :'DateTime',
|
49
|
+
:'artifact' => :'String',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -78,14 +78,14 @@ module PulpAnsibleClient
|
|
78
78
|
self.pulp_href = attributes[:'pulp_href']
|
79
79
|
end
|
80
80
|
|
81
|
-
if attributes.key?(:'artifact')
|
82
|
-
self.artifact = attributes[:'artifact']
|
83
|
-
end
|
84
|
-
|
85
81
|
if attributes.key?(:'pulp_created')
|
86
82
|
self.pulp_created = attributes[:'pulp_created']
|
87
83
|
end
|
88
84
|
|
85
|
+
if attributes.key?(:'artifact')
|
86
|
+
self.artifact = attributes[:'artifact']
|
87
|
+
end
|
88
|
+
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -138,8 +138,8 @@ module PulpAnsibleClient
|
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
140
|
pulp_href == o.pulp_href &&
|
141
|
-
artifact == o.artifact &&
|
142
141
|
pulp_created == o.pulp_created &&
|
142
|
+
artifact == o.artifact &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[pulp_href,
|
157
|
+
[pulp_href, pulp_created, artifact, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -17,17 +17,21 @@ module PulpAnsibleClient
|
|
17
17
|
class CollectionNamespaceResponse
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
attr_accessor :metadata_sha256
|
21
|
+
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
|
-
:'name' => :'name'
|
25
|
+
:'name' => :'name',
|
26
|
+
:'metadata_sha256' => :'metadata_sha256'
|
24
27
|
}
|
25
28
|
end
|
26
29
|
|
27
30
|
# Attribute type mapping.
|
28
31
|
def self.openapi_types
|
29
32
|
{
|
30
|
-
:'name' => :'String'
|
33
|
+
:'name' => :'String',
|
34
|
+
:'metadata_sha256' => :'String'
|
31
35
|
}
|
32
36
|
end
|
33
37
|
|
@@ -55,6 +59,10 @@ module PulpAnsibleClient
|
|
55
59
|
if attributes.key?(:'name')
|
56
60
|
self.name = attributes[:'name']
|
57
61
|
end
|
62
|
+
|
63
|
+
if attributes.key?(:'metadata_sha256')
|
64
|
+
self.metadata_sha256 = attributes[:'metadata_sha256']
|
65
|
+
end
|
58
66
|
end
|
59
67
|
|
60
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -80,7 +88,8 @@ module PulpAnsibleClient
|
|
80
88
|
def ==(o)
|
81
89
|
return true if self.equal?(o)
|
82
90
|
self.class == o.class &&
|
83
|
-
name == o.name
|
91
|
+
name == o.name &&
|
92
|
+
metadata_sha256 == o.metadata_sha256
|
84
93
|
end
|
85
94
|
|
86
95
|
# @see the `==` method
|
@@ -92,7 +101,7 @@ module PulpAnsibleClient
|
|
92
101
|
# Calculates hash code according to all attributes.
|
93
102
|
# @return [Integer] Hash code
|
94
103
|
def hash
|
95
|
-
[name].hash
|
104
|
+
[name, metadata_sha256].hash
|
96
105
|
end
|
97
106
|
|
98
107
|
# Builds the object from hash
|