pulp_ansible_client 0.2.0b15 → 0.2.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 +88 -61
- data/docs/AnsibleAnsibleDistribution.md +2 -8
- data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
- data/docs/AnsibleAnsibleRepository.md +4 -10
- data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
- data/docs/AnsibleCollectionRemote.md +4 -10
- data/docs/AnsibleCollectionRemoteResponse.md +49 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -25
- data/docs/AnsibleCollectionVersionResponse.md +67 -0
- data/docs/AnsibleCollectionsApi.md +47 -47
- data/docs/AnsibleRole.md +1 -5
- data/docs/AnsibleRoleRemote.md +37 -0
- data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
- data/docs/AnsibleRoleResponse.md +27 -0
- data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
- data/docs/CertificationEnum.md +16 -0
- data/docs/Collection.md +2 -12
- data/docs/CollectionImportApi.md +70 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
- data/docs/CollectionMetadata.md +1 -19
- data/docs/CollectionMetadataResponse.md +35 -0
- data/docs/CollectionNamespaceResponse.md +17 -0
- data/docs/CollectionOneShot.md +25 -0
- data/docs/CollectionRef.md +1 -3
- data/docs/CollectionRefResponse.md +21 -0
- data/docs/CollectionResponse.md +31 -0
- data/docs/CollectionVersion.md +3 -19
- data/docs/CollectionVersionResponse.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +42 -42
- data/docs/ContentRolesApi.md +32 -32
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsAnsibleApi.md +108 -60
- data/docs/GalaxyCollection.md +1 -5
- data/docs/GalaxyCollectionListApi.md +65 -0
- data/docs/GalaxyCollectionResponse.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
- data/docs/GalaxyDetailApi.md +61 -0
- data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +3 -3
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/PatchedansibleAnsibleDistribution.md +25 -0
- data/docs/PatchedansibleAnsibleRepository.md +21 -0
- data/docs/PatchedansibleCollectionRemote.md +43 -0
- data/docs/PatchedansibleRoleRemote.md +37 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PulpAnsibleApiApi.md +6 -12
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
- data/docs/PulpAnsibleTagsApi.md +4 -4
- data/docs/RemotesCollectionApi.md +127 -67
- data/docs/RemotesRoleApi.md +428 -0
- data/docs/RepositoriesAnsibleApi.md +100 -76
- data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
- data/docs/{Tag.md → TagResponse.md} +2 -2
- data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
- data/docs/V2CollectionsApi.md +112 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
- data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
- data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
- data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
- data/lib/pulp_ansible_client/api_client.rb +2 -2
- data/lib/pulp_ansible_client/api_error.rb +2 -2
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
- data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
- data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
- data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
- data/lib/pulp_ansible_client/models/collection.rb +7 -81
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
- data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
- data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
- data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
- data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
- data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
- data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
- data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
- data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
- data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
- data/lib/pulp_ansible_client/version.rb +3 -3
- data/lib/pulp_ansible_client.rb +41 -13
- data/pulp_ansible_client.gemspec +4 -4
- data/spec/api/ansible_collections_api_spec.rb +21 -21
- data/spec/api/collection_import_api_spec.rb +50 -0
- data/spec/api/content_collection_versions_api_spec.rb +18 -18
- data/spec/api/content_roles_api_spec.rb +13 -13
- data/spec/api/distributions_ansible_api_spec.rb +39 -18
- data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
- data/spec/api/galaxy_detail_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
- data/spec/api/remotes_collection_api_spec.rb +49 -22
- data/spec/api/remotes_role_api_spec.rb +150 -0
- data/spec/api/repositories_ansible_api_spec.rb +31 -22
- data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
- data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
- data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
- data/spec/api/v2_collections_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
- data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
- data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_spec.rb +5 -23
- data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
- data/spec/models/ansible_collection_remote_spec.rb +2 -24
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
- data/spec/models/ansible_collection_version_response_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -62
- data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
- data/spec/models/ansible_role_remote_spec.rb +101 -0
- data/spec/models/ansible_role_response_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -14
- data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/certification_enum_spec.rb +35 -0
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
- data/spec/models/collection_metadata_response_spec.rb +95 -0
- data/spec/models/collection_metadata_spec.rb +2 -56
- data/spec/models/collection_namespace_response_spec.rb +41 -0
- data/spec/models/collection_namespace_spec.rb +2 -2
- data/spec/models/collection_one_shot_spec.rb +65 -0
- data/spec/models/collection_ref_response_spec.rb +53 -0
- data/spec/models/collection_ref_spec.rb +2 -8
- data/spec/models/collection_response_spec.rb +83 -0
- data/spec/models/collection_spec.rb +2 -32
- data/spec/models/collection_version_response_spec.rb +101 -0
- data/spec/models/collection_version_spec.rb +2 -54
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/galaxy_collection_response_spec.rb +59 -0
- data/spec/models/galaxy_collection_spec.rb +2 -14
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +2 -2
- data/spec/models/inline_response20011_spec.rb +2 -2
- data/spec/models/inline_response20012_spec.rb +2 -2
- data/spec/models/inline_response20013_spec.rb +2 -2
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
- data/spec/models/patchedansible_role_remote_spec.rb +101 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +192 -80
- data/docs/RemotesAnsibleApi.md +0 -368
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
- data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
|
16
|
+
# A serializer for Collection Remotes.
|
17
|
+
class AnsibleCollectionRemoteResponse
|
17
18
|
attr_accessor :pulp_href
|
18
19
|
|
19
20
|
# Timestamp of creation.
|
@@ -25,10 +26,10 @@ module PulpAnsibleClient
|
|
25
26
|
# The URL of an external content source.
|
26
27
|
attr_accessor :url
|
27
28
|
|
28
|
-
# A
|
29
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
29
30
|
attr_accessor :ca_cert
|
30
31
|
|
31
|
-
# A
|
32
|
+
# A PEM encoded client certificate used for authentication.
|
32
33
|
attr_accessor :client_cert
|
33
34
|
|
34
35
|
# A PEM encoded private key used for authentication.
|
@@ -55,27 +56,14 @@ module PulpAnsibleClient
|
|
55
56
|
# The policy to use when downloading content.
|
56
57
|
attr_accessor :policy
|
57
58
|
|
58
|
-
|
59
|
-
|
60
|
-
attr_reader :allowable_values
|
61
|
-
|
62
|
-
def initialize(datatype, allowable_values)
|
63
|
-
@allowable_values = allowable_values.map do |value|
|
64
|
-
case datatype.to_s
|
65
|
-
when /Integer/i
|
66
|
-
value.to_i
|
67
|
-
when /Float/i
|
68
|
-
value.to_f
|
69
|
-
else
|
70
|
-
value
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
59
|
+
# The string version of Collection requirements yaml.
|
60
|
+
attr_accessor :requirements_file
|
74
61
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
62
|
+
# The URL to receive a session token from, e.g. used with Automation Hub.
|
63
|
+
attr_accessor :auth_url
|
64
|
+
|
65
|
+
# The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details
|
66
|
+
attr_accessor :token
|
79
67
|
|
80
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
69
|
def self.attribute_map
|
@@ -93,7 +81,10 @@ module PulpAnsibleClient
|
|
93
81
|
:'password' => :'password',
|
94
82
|
:'pulp_last_updated' => :'pulp_last_updated',
|
95
83
|
:'download_concurrency' => :'download_concurrency',
|
96
|
-
:'policy' => :'policy'
|
84
|
+
:'policy' => :'policy',
|
85
|
+
:'requirements_file' => :'requirements_file',
|
86
|
+
:'auth_url' => :'auth_url',
|
87
|
+
:'token' => :'token'
|
97
88
|
}
|
98
89
|
end
|
99
90
|
|
@@ -113,7 +104,10 @@ module PulpAnsibleClient
|
|
113
104
|
:'password' => :'String',
|
114
105
|
:'pulp_last_updated' => :'DateTime',
|
115
106
|
:'download_concurrency' => :'Integer',
|
116
|
-
:'policy' => :'
|
107
|
+
:'policy' => :'PolicyEnum',
|
108
|
+
:'requirements_file' => :'String',
|
109
|
+
:'auth_url' => :'String',
|
110
|
+
:'token' => :'String'
|
117
111
|
}
|
118
112
|
end
|
119
113
|
|
@@ -126,6 +120,9 @@ module PulpAnsibleClient
|
|
126
120
|
:'proxy_url',
|
127
121
|
:'username',
|
128
122
|
:'password',
|
123
|
+
:'requirements_file',
|
124
|
+
:'auth_url',
|
125
|
+
:'token'
|
129
126
|
])
|
130
127
|
end
|
131
128
|
|
@@ -133,13 +130,13 @@ module PulpAnsibleClient
|
|
133
130
|
# @param [Hash] attributes Model attributes in the form of hash
|
134
131
|
def initialize(attributes = {})
|
135
132
|
if (!attributes.is_a?(Hash))
|
136
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
133
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionRemoteResponse` initialize method"
|
137
134
|
end
|
138
135
|
|
139
136
|
# check to see if the attribute exists and convert string to symbol for hash key
|
140
137
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
141
138
|
if (!self.class.attribute_map.key?(k.to_sym))
|
142
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
139
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionRemoteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
143
140
|
end
|
144
141
|
h[k.to_sym] = v
|
145
142
|
}
|
@@ -198,8 +195,18 @@ module PulpAnsibleClient
|
|
198
195
|
|
199
196
|
if attributes.key?(:'policy')
|
200
197
|
self.policy = attributes[:'policy']
|
201
|
-
|
202
|
-
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'requirements_file')
|
201
|
+
self.requirements_file = attributes[:'requirements_file']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'auth_url')
|
205
|
+
self.auth_url = attributes[:'auth_url']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'token')
|
209
|
+
self.token = attributes[:'token']
|
203
210
|
end
|
204
211
|
end
|
205
212
|
|
@@ -211,44 +218,20 @@ module PulpAnsibleClient
|
|
211
218
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
212
219
|
end
|
213
220
|
|
214
|
-
if @name.to_s.length < 1
|
215
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
216
|
-
end
|
217
|
-
|
218
221
|
if @url.nil?
|
219
222
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
220
223
|
end
|
221
224
|
|
222
|
-
if
|
223
|
-
invalid_properties.push('invalid value for "
|
224
|
-
end
|
225
|
-
|
226
|
-
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
227
|
-
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
228
|
-
end
|
229
|
-
|
230
|
-
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
231
|
-
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
232
|
-
end
|
233
|
-
|
234
|
-
if !@client_key.nil? && @client_key.to_s.length < 1
|
235
|
-
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
236
|
-
end
|
237
|
-
|
238
|
-
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
239
|
-
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
240
|
-
end
|
241
|
-
|
242
|
-
if !@username.nil? && @username.to_s.length < 1
|
243
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
225
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
226
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
244
227
|
end
|
245
228
|
|
246
|
-
if !@
|
247
|
-
invalid_properties.push('invalid value for "
|
229
|
+
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
230
|
+
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
248
231
|
end
|
249
232
|
|
250
|
-
if !@
|
251
|
-
invalid_properties.push('invalid value for "
|
233
|
+
if !@token.nil? && @token.to_s.length > 2000
|
234
|
+
invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
|
252
235
|
end
|
253
236
|
|
254
237
|
invalid_properties
|
@@ -258,127 +241,41 @@ module PulpAnsibleClient
|
|
258
241
|
# @return true if the model is valid
|
259
242
|
def valid?
|
260
243
|
return false if @name.nil?
|
261
|
-
return false if @name.to_s.length < 1
|
262
244
|
return false if @url.nil?
|
263
|
-
return false if @url.to_s.length < 1
|
264
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
265
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
266
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
267
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
268
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
269
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
270
245
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
271
|
-
|
272
|
-
return false
|
246
|
+
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
247
|
+
return false if !@token.nil? && @token.to_s.length > 2000
|
273
248
|
true
|
274
249
|
end
|
275
250
|
|
276
251
|
# Custom attribute writer method with validation
|
277
|
-
# @param [Object]
|
278
|
-
def
|
279
|
-
if
|
280
|
-
fail ArgumentError, '
|
281
|
-
end
|
282
|
-
|
283
|
-
if name.to_s.length < 1
|
284
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
285
|
-
end
|
286
|
-
|
287
|
-
@name = name
|
288
|
-
end
|
289
|
-
|
290
|
-
# Custom attribute writer method with validation
|
291
|
-
# @param [Object] url Value to be assigned
|
292
|
-
def url=(url)
|
293
|
-
if url.nil?
|
294
|
-
fail ArgumentError, 'url cannot be nil'
|
295
|
-
end
|
296
|
-
|
297
|
-
if url.to_s.length < 1
|
298
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
299
|
-
end
|
300
|
-
|
301
|
-
@url = url
|
302
|
-
end
|
303
|
-
|
304
|
-
# Custom attribute writer method with validation
|
305
|
-
# @param [Object] ca_cert Value to be assigned
|
306
|
-
def ca_cert=(ca_cert)
|
307
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
308
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
309
|
-
end
|
310
|
-
|
311
|
-
@ca_cert = ca_cert
|
312
|
-
end
|
313
|
-
|
314
|
-
# Custom attribute writer method with validation
|
315
|
-
# @param [Object] client_cert Value to be assigned
|
316
|
-
def client_cert=(client_cert)
|
317
|
-
if !client_cert.nil? && client_cert.to_s.length < 1
|
318
|
-
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
319
|
-
end
|
320
|
-
|
321
|
-
@client_cert = client_cert
|
322
|
-
end
|
323
|
-
|
324
|
-
# Custom attribute writer method with validation
|
325
|
-
# @param [Object] client_key Value to be assigned
|
326
|
-
def client_key=(client_key)
|
327
|
-
if !client_key.nil? && client_key.to_s.length < 1
|
328
|
-
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
329
|
-
end
|
330
|
-
|
331
|
-
@client_key = client_key
|
332
|
-
end
|
333
|
-
|
334
|
-
# Custom attribute writer method with validation
|
335
|
-
# @param [Object] proxy_url Value to be assigned
|
336
|
-
def proxy_url=(proxy_url)
|
337
|
-
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
338
|
-
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
339
|
-
end
|
340
|
-
|
341
|
-
@proxy_url = proxy_url
|
342
|
-
end
|
343
|
-
|
344
|
-
# Custom attribute writer method with validation
|
345
|
-
# @param [Object] username Value to be assigned
|
346
|
-
def username=(username)
|
347
|
-
if !username.nil? && username.to_s.length < 1
|
348
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
252
|
+
# @param [Object] download_concurrency Value to be assigned
|
253
|
+
def download_concurrency=(download_concurrency)
|
254
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
255
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
349
256
|
end
|
350
257
|
|
351
|
-
@
|
258
|
+
@download_concurrency = download_concurrency
|
352
259
|
end
|
353
260
|
|
354
261
|
# Custom attribute writer method with validation
|
355
|
-
# @param [Object]
|
356
|
-
def
|
357
|
-
if !
|
358
|
-
fail ArgumentError, 'invalid value for "
|
262
|
+
# @param [Object] auth_url Value to be assigned
|
263
|
+
def auth_url=(auth_url)
|
264
|
+
if !auth_url.nil? && auth_url.to_s.length > 255
|
265
|
+
fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
|
359
266
|
end
|
360
267
|
|
361
|
-
@
|
268
|
+
@auth_url = auth_url
|
362
269
|
end
|
363
270
|
|
364
271
|
# Custom attribute writer method with validation
|
365
|
-
# @param [Object]
|
366
|
-
def
|
367
|
-
if !
|
368
|
-
fail ArgumentError, 'invalid value for "
|
272
|
+
# @param [Object] token Value to be assigned
|
273
|
+
def token=(token)
|
274
|
+
if !token.nil? && token.to_s.length > 2000
|
275
|
+
fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
|
369
276
|
end
|
370
277
|
|
371
|
-
@
|
372
|
-
end
|
373
|
-
|
374
|
-
# Custom attribute writer method checking allowed values (enum).
|
375
|
-
# @param [Object] policy Object to be assigned
|
376
|
-
def policy=(policy)
|
377
|
-
validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
|
378
|
-
unless validator.valid?(policy)
|
379
|
-
fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
|
380
|
-
end
|
381
|
-
@policy = policy
|
278
|
+
@token = token
|
382
279
|
end
|
383
280
|
|
384
281
|
# Checks equality by comparing each attribute.
|
@@ -399,7 +296,10 @@ module PulpAnsibleClient
|
|
399
296
|
password == o.password &&
|
400
297
|
pulp_last_updated == o.pulp_last_updated &&
|
401
298
|
download_concurrency == o.download_concurrency &&
|
402
|
-
policy == o.policy
|
299
|
+
policy == o.policy &&
|
300
|
+
requirements_file == o.requirements_file &&
|
301
|
+
auth_url == o.auth_url &&
|
302
|
+
token == o.token
|
403
303
|
end
|
404
304
|
|
405
305
|
# @see the `==` method
|
@@ -411,7 +311,7 @@ module PulpAnsibleClient
|
|
411
311
|
# Calculates hash code according to all attributes.
|
412
312
|
# @return [Integer] Hash code
|
413
313
|
def hash
|
414
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
|
314
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, requirements_file, auth_url, token].hash
|
415
315
|
end
|
416
316
|
|
417
317
|
# Builds the object from hash
|
data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
|
16
|
+
# A serializer for Ansible Collections.
|
17
|
+
class AnsibleCollectionResponse
|
17
18
|
# The name of the Collection.
|
18
19
|
attr_accessor :name
|
19
20
|
|
@@ -46,13 +47,13 @@ module PulpAnsibleClient
|
|
46
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
48
|
def initialize(attributes = {})
|
48
49
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionResponse` initialize method"
|
50
51
|
end
|
51
52
|
|
52
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
57
|
end
|
57
58
|
h[k.to_sym] = v
|
58
59
|
}
|
@@ -74,18 +75,10 @@ module PulpAnsibleClient
|
|
74
75
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
75
76
|
end
|
76
77
|
|
77
|
-
if @name.to_s.length < 1
|
78
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
79
|
-
end
|
80
|
-
|
81
78
|
if @namespace.nil?
|
82
79
|
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
83
80
|
end
|
84
81
|
|
85
|
-
if @namespace.to_s.length < 1
|
86
|
-
invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
|
87
|
-
end
|
88
|
-
|
89
82
|
invalid_properties
|
90
83
|
end
|
91
84
|
|
@@ -93,40 +86,10 @@ module PulpAnsibleClient
|
|
93
86
|
# @return true if the model is valid
|
94
87
|
def valid?
|
95
88
|
return false if @name.nil?
|
96
|
-
return false if @name.to_s.length < 1
|
97
89
|
return false if @namespace.nil?
|
98
|
-
return false if @namespace.to_s.length < 1
|
99
90
|
true
|
100
91
|
end
|
101
92
|
|
102
|
-
# Custom attribute writer method with validation
|
103
|
-
# @param [Object] name Value to be assigned
|
104
|
-
def name=(name)
|
105
|
-
if name.nil?
|
106
|
-
fail ArgumentError, 'name cannot be nil'
|
107
|
-
end
|
108
|
-
|
109
|
-
if name.to_s.length < 1
|
110
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
111
|
-
end
|
112
|
-
|
113
|
-
@name = name
|
114
|
-
end
|
115
|
-
|
116
|
-
# Custom attribute writer method with validation
|
117
|
-
# @param [Object] namespace Value to be assigned
|
118
|
-
def namespace=(namespace)
|
119
|
-
if namespace.nil?
|
120
|
-
fail ArgumentError, 'namespace cannot be nil'
|
121
|
-
end
|
122
|
-
|
123
|
-
if namespace.to_s.length < 1
|
124
|
-
fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
|
125
|
-
end
|
126
|
-
|
127
|
-
@namespace = namespace
|
128
|
-
end
|
129
|
-
|
130
93
|
# Checks equality by comparing each attribute.
|
131
94
|
# @param [Object] Object to be compared
|
132
95
|
def ==(o)
|