pulp_ansible_client 0.16.7 → 0.17.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 +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 +5 -5
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- 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/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_response.rb +13 -4
- 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_git_remote.rb +241 -241
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +159 -159
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- 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_git_remote.rb +223 -223
- 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_spec.rb +3 -3
- 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_repository_mark_spec.rb +47 -0
- 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 +19 -19
- 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 +248 -120
@@ -0,0 +1,402 @@
|
|
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 Namespaces.
|
17
|
+
class AnsibleAnsibleNamespaceMetadataResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Required named, only accepts lowercase, numbers and underscores.
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# Optional namespace company owner.
|
24
|
+
attr_accessor :company
|
25
|
+
|
26
|
+
# Optional namespace contact email.
|
27
|
+
attr_accessor :email
|
28
|
+
|
29
|
+
# Optional short description.
|
30
|
+
attr_accessor :description
|
31
|
+
|
32
|
+
# Optional resource page in markdown format.
|
33
|
+
attr_accessor :resources
|
34
|
+
|
35
|
+
# Labeled related links.
|
36
|
+
attr_accessor :links
|
37
|
+
|
38
|
+
# SHA256 digest of avatar image if present.
|
39
|
+
attr_accessor :avatar_sha256
|
40
|
+
|
41
|
+
# Download link for avatar image if present.
|
42
|
+
attr_accessor :avatar_url
|
43
|
+
|
44
|
+
attr_accessor :metadata_sha256
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'pulp_href' => :'pulp_href',
|
50
|
+
:'name' => :'name',
|
51
|
+
:'company' => :'company',
|
52
|
+
:'email' => :'email',
|
53
|
+
:'description' => :'description',
|
54
|
+
:'resources' => :'resources',
|
55
|
+
:'links' => :'links',
|
56
|
+
:'avatar_sha256' => :'avatar_sha256',
|
57
|
+
:'avatar_url' => :'avatar_url',
|
58
|
+
:'metadata_sha256' => :'metadata_sha256'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.openapi_types
|
64
|
+
{
|
65
|
+
:'pulp_href' => :'String',
|
66
|
+
:'name' => :'String',
|
67
|
+
:'company' => :'String',
|
68
|
+
:'email' => :'String',
|
69
|
+
:'description' => :'String',
|
70
|
+
:'resources' => :'String',
|
71
|
+
:'links' => :'Array<NamespaceLinkResponse>',
|
72
|
+
:'avatar_sha256' => :'String',
|
73
|
+
:'avatar_url' => :'String',
|
74
|
+
:'metadata_sha256' => :'String'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# List of attributes with nullable: true
|
79
|
+
def self.openapi_nullable
|
80
|
+
Set.new([
|
81
|
+
])
|
82
|
+
end
|
83
|
+
|
84
|
+
# Initializes the object
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
def initialize(attributes = {})
|
87
|
+
if (!attributes.is_a?(Hash))
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadataResponse` initialize method"
|
89
|
+
end
|
90
|
+
|
91
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
93
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadataResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
95
|
+
end
|
96
|
+
h[k.to_sym] = v
|
97
|
+
}
|
98
|
+
|
99
|
+
if attributes.key?(:'pulp_href')
|
100
|
+
self.pulp_href = attributes[:'pulp_href']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'name')
|
104
|
+
self.name = attributes[:'name']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'company')
|
108
|
+
self.company = attributes[:'company']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'email')
|
112
|
+
self.email = attributes[:'email']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'description')
|
116
|
+
self.description = attributes[:'description']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'resources')
|
120
|
+
self.resources = attributes[:'resources']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'links')
|
124
|
+
if (value = attributes[:'links']).is_a?(Array)
|
125
|
+
self.links = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'avatar_sha256')
|
130
|
+
self.avatar_sha256 = attributes[:'avatar_sha256']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'avatar_url')
|
134
|
+
self.avatar_url = attributes[:'avatar_url']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'metadata_sha256')
|
138
|
+
self.metadata_sha256 = attributes[:'metadata_sha256']
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
143
|
+
# @return Array for valid properties with the reasons
|
144
|
+
def list_invalid_properties
|
145
|
+
invalid_properties = Array.new
|
146
|
+
if @name.nil?
|
147
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if @name.to_s.length > 64
|
151
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
152
|
+
end
|
153
|
+
|
154
|
+
if @name.to_s.length < 3
|
155
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
156
|
+
end
|
157
|
+
|
158
|
+
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
159
|
+
if @name !~ pattern
|
160
|
+
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
161
|
+
end
|
162
|
+
|
163
|
+
if !@company.nil? && @company.to_s.length > 64
|
164
|
+
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 64.')
|
165
|
+
end
|
166
|
+
|
167
|
+
if !@email.nil? && @email.to_s.length > 256
|
168
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
|
169
|
+
end
|
170
|
+
|
171
|
+
if !@description.nil? && @description.to_s.length > 256
|
172
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
|
173
|
+
end
|
174
|
+
|
175
|
+
if !@avatar_sha256.nil? && @avatar_sha256.to_s.length > 64
|
176
|
+
invalid_properties.push('invalid value for "avatar_sha256", the character length must be smaller than or equal to 64.')
|
177
|
+
end
|
178
|
+
|
179
|
+
invalid_properties
|
180
|
+
end
|
181
|
+
|
182
|
+
# Check to see if the all the properties in the model are valid
|
183
|
+
# @return true if the model is valid
|
184
|
+
def valid?
|
185
|
+
return false if @name.nil?
|
186
|
+
return false if @name.to_s.length > 64
|
187
|
+
return false if @name.to_s.length < 3
|
188
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
189
|
+
return false if !@company.nil? && @company.to_s.length > 64
|
190
|
+
return false if !@email.nil? && @email.to_s.length > 256
|
191
|
+
return false if !@description.nil? && @description.to_s.length > 256
|
192
|
+
return false if !@avatar_sha256.nil? && @avatar_sha256.to_s.length > 64
|
193
|
+
true
|
194
|
+
end
|
195
|
+
|
196
|
+
# Custom attribute writer method with validation
|
197
|
+
# @param [Object] name Value to be assigned
|
198
|
+
def name=(name)
|
199
|
+
if name.nil?
|
200
|
+
fail ArgumentError, 'name cannot be nil'
|
201
|
+
end
|
202
|
+
|
203
|
+
if name.to_s.length > 64
|
204
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
205
|
+
end
|
206
|
+
|
207
|
+
if name.to_s.length < 3
|
208
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
209
|
+
end
|
210
|
+
|
211
|
+
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
212
|
+
if name !~ pattern
|
213
|
+
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
214
|
+
end
|
215
|
+
|
216
|
+
@name = name
|
217
|
+
end
|
218
|
+
|
219
|
+
# Custom attribute writer method with validation
|
220
|
+
# @param [Object] company Value to be assigned
|
221
|
+
def company=(company)
|
222
|
+
if !company.nil? && company.to_s.length > 64
|
223
|
+
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
|
224
|
+
end
|
225
|
+
|
226
|
+
@company = company
|
227
|
+
end
|
228
|
+
|
229
|
+
# Custom attribute writer method with validation
|
230
|
+
# @param [Object] email Value to be assigned
|
231
|
+
def email=(email)
|
232
|
+
if !email.nil? && email.to_s.length > 256
|
233
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
234
|
+
end
|
235
|
+
|
236
|
+
@email = email
|
237
|
+
end
|
238
|
+
|
239
|
+
# Custom attribute writer method with validation
|
240
|
+
# @param [Object] description Value to be assigned
|
241
|
+
def description=(description)
|
242
|
+
if !description.nil? && description.to_s.length > 256
|
243
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
|
244
|
+
end
|
245
|
+
|
246
|
+
@description = description
|
247
|
+
end
|
248
|
+
|
249
|
+
# Custom attribute writer method with validation
|
250
|
+
# @param [Object] avatar_sha256 Value to be assigned
|
251
|
+
def avatar_sha256=(avatar_sha256)
|
252
|
+
if !avatar_sha256.nil? && avatar_sha256.to_s.length > 64
|
253
|
+
fail ArgumentError, 'invalid value for "avatar_sha256", the character length must be smaller than or equal to 64.'
|
254
|
+
end
|
255
|
+
|
256
|
+
@avatar_sha256 = avatar_sha256
|
257
|
+
end
|
258
|
+
|
259
|
+
# Checks equality by comparing each attribute.
|
260
|
+
# @param [Object] Object to be compared
|
261
|
+
def ==(o)
|
262
|
+
return true if self.equal?(o)
|
263
|
+
self.class == o.class &&
|
264
|
+
pulp_href == o.pulp_href &&
|
265
|
+
name == o.name &&
|
266
|
+
company == o.company &&
|
267
|
+
email == o.email &&
|
268
|
+
description == o.description &&
|
269
|
+
resources == o.resources &&
|
270
|
+
links == o.links &&
|
271
|
+
avatar_sha256 == o.avatar_sha256 &&
|
272
|
+
avatar_url == o.avatar_url &&
|
273
|
+
metadata_sha256 == o.metadata_sha256
|
274
|
+
end
|
275
|
+
|
276
|
+
# @see the `==` method
|
277
|
+
# @param [Object] Object to be compared
|
278
|
+
def eql?(o)
|
279
|
+
self == o
|
280
|
+
end
|
281
|
+
|
282
|
+
# Calculates hash code according to all attributes.
|
283
|
+
# @return [Integer] Hash code
|
284
|
+
def hash
|
285
|
+
[pulp_href, name, company, email, description, resources, links, avatar_sha256, avatar_url, metadata_sha256].hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Builds the object from hash
|
289
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
290
|
+
# @return [Object] Returns the model itself
|
291
|
+
def self.build_from_hash(attributes)
|
292
|
+
new.build_from_hash(attributes)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Builds the object from hash
|
296
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
297
|
+
# @return [Object] Returns the model itself
|
298
|
+
def build_from_hash(attributes)
|
299
|
+
return nil unless attributes.is_a?(Hash)
|
300
|
+
self.class.openapi_types.each_pair do |key, type|
|
301
|
+
if type =~ /\AArray<(.*)>/i
|
302
|
+
# check to ensure the input is an array given that the attribute
|
303
|
+
# is documented as an array but the input is not
|
304
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
305
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
306
|
+
end
|
307
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
308
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
309
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
310
|
+
end
|
311
|
+
|
312
|
+
self
|
313
|
+
end
|
314
|
+
|
315
|
+
# Deserializes the data based on type
|
316
|
+
# @param string type Data type
|
317
|
+
# @param string value Value to be deserialized
|
318
|
+
# @return [Object] Deserialized data
|
319
|
+
def _deserialize(type, value)
|
320
|
+
case type.to_sym
|
321
|
+
when :DateTime
|
322
|
+
DateTime.parse(value)
|
323
|
+
when :Date
|
324
|
+
Date.parse(value)
|
325
|
+
when :String
|
326
|
+
value.to_s
|
327
|
+
when :Integer
|
328
|
+
value.to_i
|
329
|
+
when :Float
|
330
|
+
value.to_f
|
331
|
+
when :Boolean
|
332
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
333
|
+
true
|
334
|
+
else
|
335
|
+
false
|
336
|
+
end
|
337
|
+
when :Object
|
338
|
+
# generic object (usually a Hash), return directly
|
339
|
+
value
|
340
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
341
|
+
inner_type = Regexp.last_match[:inner_type]
|
342
|
+
value.map { |v| _deserialize(inner_type, v) }
|
343
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
344
|
+
k_type = Regexp.last_match[:k_type]
|
345
|
+
v_type = Regexp.last_match[:v_type]
|
346
|
+
{}.tap do |hash|
|
347
|
+
value.each do |k, v|
|
348
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
349
|
+
end
|
350
|
+
end
|
351
|
+
else # model
|
352
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
# Returns the string representation of the object
|
357
|
+
# @return [String] String presentation of the object
|
358
|
+
def to_s
|
359
|
+
to_hash.to_s
|
360
|
+
end
|
361
|
+
|
362
|
+
# to_body is an alias to to_hash (backward compatibility)
|
363
|
+
# @return [Hash] Returns the object in the form of hash
|
364
|
+
def to_body
|
365
|
+
to_hash
|
366
|
+
end
|
367
|
+
|
368
|
+
# Returns the object in the form of hash
|
369
|
+
# @return [Hash] Returns the object in the form of hash
|
370
|
+
def to_hash
|
371
|
+
hash = {}
|
372
|
+
self.class.attribute_map.each_pair do |attr, param|
|
373
|
+
value = self.send(attr)
|
374
|
+
if value.nil?
|
375
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
376
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
377
|
+
end
|
378
|
+
|
379
|
+
hash[param] = _to_hash(value)
|
380
|
+
end
|
381
|
+
hash
|
382
|
+
end
|
383
|
+
|
384
|
+
# Outputs non-array value in the form of hash
|
385
|
+
# For object, use to_hash. Otherwise, just return the value
|
386
|
+
# @param [Object] value Any valid value
|
387
|
+
# @return [Hash] Returns the value in the form of hash
|
388
|
+
def _to_hash(value)
|
389
|
+
if value.is_a?(Array)
|
390
|
+
value.compact.map { |v| _to_hash(v) }
|
391
|
+
elsif value.is_a?(Hash)
|
392
|
+
{}.tap do |hash|
|
393
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
394
|
+
end
|
395
|
+
elsif value.respond_to? :to_hash
|
396
|
+
value.to_hash
|
397
|
+
else
|
398
|
+
value
|
399
|
+
end
|
400
|
+
end
|
401
|
+
end
|
402
|
+
end
|
@@ -23,7 +23,7 @@ module PulpAnsibleClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
27
27
|
attr_accessor :retain_repo_versions
|
28
28
|
|
29
29
|
# An optional remote to use by default when syncing.
|
@@ -35,6 +35,8 @@ module PulpAnsibleClient
|
|
35
35
|
# Gpg public key to verify collection signatures against
|
36
36
|
attr_accessor :gpgkey
|
37
37
|
|
38
|
+
attr_accessor :private
|
39
|
+
|
38
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
41
|
def self.attribute_map
|
40
42
|
{
|
@@ -44,7 +46,8 @@ module PulpAnsibleClient
|
|
44
46
|
:'retain_repo_versions' => :'retain_repo_versions',
|
45
47
|
:'remote' => :'remote',
|
46
48
|
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
47
|
-
:'gpgkey' => :'gpgkey'
|
49
|
+
:'gpgkey' => :'gpgkey',
|
50
|
+
:'private' => :'private'
|
48
51
|
}
|
49
52
|
end
|
50
53
|
|
@@ -57,7 +60,8 @@ module PulpAnsibleClient
|
|
57
60
|
:'retain_repo_versions' => :'Integer',
|
58
61
|
:'remote' => :'String',
|
59
62
|
:'last_synced_metadata_time' => :'DateTime',
|
60
|
-
:'gpgkey' => :'String'
|
63
|
+
:'gpgkey' => :'String',
|
64
|
+
:'private' => :'Boolean'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -68,7 +72,7 @@ module PulpAnsibleClient
|
|
68
72
|
:'retain_repo_versions',
|
69
73
|
:'remote',
|
70
74
|
:'last_synced_metadata_time',
|
71
|
-
:'gpgkey'
|
75
|
+
:'gpgkey',
|
72
76
|
])
|
73
77
|
end
|
74
78
|
|
@@ -116,6 +120,10 @@ module PulpAnsibleClient
|
|
116
120
|
if attributes.key?(:'gpgkey')
|
117
121
|
self.gpgkey = attributes[:'gpgkey']
|
118
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'private')
|
125
|
+
self.private = attributes[:'private']
|
126
|
+
end
|
119
127
|
end
|
120
128
|
|
121
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -211,7 +219,8 @@ module PulpAnsibleClient
|
|
211
219
|
retain_repo_versions == o.retain_repo_versions &&
|
212
220
|
remote == o.remote &&
|
213
221
|
last_synced_metadata_time == o.last_synced_metadata_time &&
|
214
|
-
gpgkey == o.gpgkey
|
222
|
+
gpgkey == o.gpgkey &&
|
223
|
+
private == o.private
|
215
224
|
end
|
216
225
|
|
217
226
|
# @see the `==` method
|
@@ -223,7 +232,7 @@ module PulpAnsibleClient
|
|
223
232
|
# Calculates hash code according to all attributes.
|
224
233
|
# @return [Integer] Hash code
|
225
234
|
def hash
|
226
|
-
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
|
235
|
+
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, private].hash
|
227
236
|
end
|
228
237
|
|
229
238
|
# Builds the object from hash
|
@@ -32,7 +32,7 @@ module PulpAnsibleClient
|
|
32
32
|
# An optional description.
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
36
36
|
attr_accessor :retain_repo_versions
|
37
37
|
|
38
38
|
# An optional remote to use by default when syncing.
|
@@ -44,6 +44,10 @@ module PulpAnsibleClient
|
|
44
44
|
# Gpg public key to verify collection signatures against
|
45
45
|
attr_accessor :gpgkey
|
46
46
|
|
47
|
+
attr_accessor :last_sync_task
|
48
|
+
|
49
|
+
attr_accessor :private
|
50
|
+
|
47
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
52
|
def self.attribute_map
|
49
53
|
{
|
@@ -57,7 +61,9 @@ module PulpAnsibleClient
|
|
57
61
|
:'retain_repo_versions' => :'retain_repo_versions',
|
58
62
|
:'remote' => :'remote',
|
59
63
|
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
60
|
-
:'gpgkey' => :'gpgkey'
|
64
|
+
:'gpgkey' => :'gpgkey',
|
65
|
+
:'last_sync_task' => :'last_sync_task',
|
66
|
+
:'private' => :'private'
|
61
67
|
}
|
62
68
|
end
|
63
69
|
|
@@ -74,7 +80,9 @@ module PulpAnsibleClient
|
|
74
80
|
:'retain_repo_versions' => :'Integer',
|
75
81
|
:'remote' => :'String',
|
76
82
|
:'last_synced_metadata_time' => :'DateTime',
|
77
|
-
:'gpgkey' => :'String'
|
83
|
+
:'gpgkey' => :'String',
|
84
|
+
:'last_sync_task' => :'TaskResponse',
|
85
|
+
:'private' => :'Boolean'
|
78
86
|
}
|
79
87
|
end
|
80
88
|
|
@@ -85,7 +93,7 @@ module PulpAnsibleClient
|
|
85
93
|
:'retain_repo_versions',
|
86
94
|
:'remote',
|
87
95
|
:'last_synced_metadata_time',
|
88
|
-
:'gpgkey'
|
96
|
+
:'gpgkey',
|
89
97
|
])
|
90
98
|
end
|
91
99
|
|
@@ -149,6 +157,14 @@ module PulpAnsibleClient
|
|
149
157
|
if attributes.key?(:'gpgkey')
|
150
158
|
self.gpgkey = attributes[:'gpgkey']
|
151
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'last_sync_task')
|
162
|
+
self.last_sync_task = attributes[:'last_sync_task']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'private')
|
166
|
+
self.private = attributes[:'private']
|
167
|
+
end
|
152
168
|
end
|
153
169
|
|
154
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -199,7 +215,9 @@ module PulpAnsibleClient
|
|
199
215
|
retain_repo_versions == o.retain_repo_versions &&
|
200
216
|
remote == o.remote &&
|
201
217
|
last_synced_metadata_time == o.last_synced_metadata_time &&
|
202
|
-
gpgkey == o.gpgkey
|
218
|
+
gpgkey == o.gpgkey &&
|
219
|
+
last_sync_task == o.last_sync_task &&
|
220
|
+
private == o.private
|
203
221
|
end
|
204
222
|
|
205
223
|
# @see the `==` method
|
@@ -211,7 +229,7 @@ module PulpAnsibleClient
|
|
211
229
|
# Calculates hash code according to all attributes.
|
212
230
|
# @return [Integer] Hash code
|
213
231
|
def hash
|
214
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
|
232
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
|
215
233
|
end
|
216
234
|
|
217
235
|
# Builds the object from hash
|
@@ -85,6 +85,8 @@ module PulpAnsibleClient
|
|
85
85
|
# Sync only collections that have a signature
|
86
86
|
attr_accessor :signed_only
|
87
87
|
|
88
|
+
attr_accessor :last_sync_task
|
89
|
+
|
88
90
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
91
|
def self.attribute_map
|
90
92
|
{
|
@@ -111,7 +113,8 @@ module PulpAnsibleClient
|
|
111
113
|
:'requirements_file' => :'requirements_file',
|
112
114
|
:'auth_url' => :'auth_url',
|
113
115
|
:'sync_dependencies' => :'sync_dependencies',
|
114
|
-
:'signed_only' => :'signed_only'
|
116
|
+
:'signed_only' => :'signed_only',
|
117
|
+
:'last_sync_task' => :'last_sync_task'
|
115
118
|
}
|
116
119
|
end
|
117
120
|
|
@@ -141,7 +144,8 @@ module PulpAnsibleClient
|
|
141
144
|
:'requirements_file' => :'String',
|
142
145
|
:'auth_url' => :'String',
|
143
146
|
:'sync_dependencies' => :'Boolean',
|
144
|
-
:'signed_only' => :'Boolean'
|
147
|
+
:'signed_only' => :'Boolean',
|
148
|
+
:'last_sync_task' => :'TaskResponse'
|
145
149
|
}
|
146
150
|
end
|
147
151
|
|
@@ -283,6 +287,10 @@ module PulpAnsibleClient
|
|
283
287
|
else
|
284
288
|
self.signed_only = false
|
285
289
|
end
|
290
|
+
|
291
|
+
if attributes.key?(:'last_sync_task')
|
292
|
+
self.last_sync_task = attributes[:'last_sync_task']
|
293
|
+
end
|
286
294
|
end
|
287
295
|
|
288
296
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -426,7 +434,8 @@ module PulpAnsibleClient
|
|
426
434
|
requirements_file == o.requirements_file &&
|
427
435
|
auth_url == o.auth_url &&
|
428
436
|
sync_dependencies == o.sync_dependencies &&
|
429
|
-
signed_only == o.signed_only
|
437
|
+
signed_only == o.signed_only &&
|
438
|
+
last_sync_task == o.last_sync_task
|
430
439
|
end
|
431
440
|
|
432
441
|
# @see the `==` method
|
@@ -438,7 +447,7 @@ module PulpAnsibleClient
|
|
438
447
|
# Calculates hash code according to all attributes.
|
439
448
|
# @return [Integer] Hash code
|
440
449
|
def hash
|
441
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only].hash
|
450
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
|
442
451
|
end
|
443
452
|
|
444
453
|
# Builds the object from hash
|
@@ -68,22 +68,12 @@ module PulpAnsibleClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|