pulp_rpm_client 3.5.1 → 3.6.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 +73 -55
- data/docs/{Addon.md → AddonResponse.md} +2 -2
- data/docs/{Artifact.md → ArtifactResponse.md} +3 -3
- data/docs/{Checksum.md → ChecksumResponse.md} +2 -2
- data/docs/ContentAdvisoriesApi.md +44 -44
- data/docs/ContentDistributionTreesApi.md +25 -25
- data/docs/ContentModulemdDefaultsApi.md +32 -32
- data/docs/ContentModulemdsApi.md +34 -34
- data/docs/ContentPackagecategoriesApi.md +25 -25
- data/docs/ContentPackageenvironmentsApi.md +25 -25
- data/docs/ContentPackagegroupsApi.md +25 -25
- data/docs/ContentPackagelangpacksApi.md +25 -25
- data/docs/ContentPackagesApi.md +64 -64
- data/docs/ContentRepoMetadataFilesApi.md +25 -25
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsRpmApi.md +108 -60
- data/docs/{Image.md → ImageResponse.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 +3 -3
- 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/MetadataChecksumTypeEnum.md +16 -0
- data/docs/PackageChecksumTypeEnum.md +16 -0
- data/docs/PatchedrpmRpmDistribution.md +23 -0
- data/docs/PatchedrpmRpmRemote.md +39 -0
- data/docs/PatchedrpmRpmRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsRpmApi.md +40 -40
- data/docs/RemotesRpmApi.md +125 -65
- data/docs/RepositoriesRpmApi.md +97 -73
- data/docs/RepositoriesRpmVersionsApi.md +94 -62
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/RpmCopyApi.md +10 -10
- data/docs/{RpmDistributionTree.md → RpmDistributionTreeResponse.md} +6 -6
- data/docs/RpmModulemd.md +8 -8
- data/docs/RpmModulemdDefaults.md +8 -8
- data/docs/RpmModulemdDefaultsResponse.md +29 -0
- data/docs/RpmModulemdResponse.md +39 -0
- data/docs/RpmPackage.md +7 -79
- data/docs/{RpmPackageCategory.md → RpmPackageCategoryResponse.md} +2 -2
- data/docs/{RpmPackageEnvironment.md → RpmPackageEnvironmentResponse.md} +2 -2
- data/docs/{RpmPackageGroup.md → RpmPackageGroupResponse.md} +2 -2
- data/docs/{RpmPackageLangpacks.md → RpmPackageLangpacksResponse.md} +2 -2
- data/docs/RpmPackageResponse.md +95 -0
- data/docs/{RpmRepoMetadataFile.md → RpmRepoMetadataFileResponse.md} +2 -2
- data/docs/RpmRepositorySyncURL.md +1 -1
- data/docs/RpmRpmDistribution.md +1 -7
- data/docs/RpmRpmDistributionResponse.md +29 -0
- data/docs/RpmRpmPublication.md +3 -7
- data/docs/RpmRpmPublicationResponse.md +27 -0
- data/docs/RpmRpmRemote.md +4 -10
- data/docs/RpmRpmRemoteResponse.md +45 -0
- data/docs/RpmRpmRepository.md +3 -9
- data/docs/RpmRpmRepositoryResponse.md +33 -0
- data/docs/RpmUpdateCollection.md +1 -3
- data/docs/RpmUpdateCollectionResponse.md +23 -0
- data/docs/RpmUpdateRecord.md +4 -40
- data/docs/RpmUpdateRecordResponse.md +55 -0
- data/docs/{Variant.md → VariantResponse.md} +2 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +60 -60
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +42 -54
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +44 -76
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +36 -36
- data/lib/pulp_rpm_client/api/content_packages_api.rb +92 -92
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +36 -36
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +153 -90
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +59 -59
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +181 -100
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +145 -118
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +137 -92
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +15 -15
- data/lib/pulp_rpm_client/api_client.rb +2 -2
- data/lib/pulp_rpm_client/api_error.rb +2 -2
- data/lib/pulp_rpm_client/configuration.rb +3 -3
- data/lib/pulp_rpm_client/models/{addon.rb → addon_response.rb} +6 -100
- data/lib/pulp_rpm_client/models/{artifact.rb → artifact_response.rb} +9 -93
- data/lib/pulp_rpm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_rpm_client/models/{checksum.rb → checksum_response.rb} +6 -43
- data/lib/pulp_rpm_client/models/content_summary.rb +9 -15
- data/lib/pulp_rpm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_rpm_client/models/copy.rb +3 -2
- data/lib/pulp_rpm_client/models/{image.rb → image_response.rb} +7 -63
- data/lib/pulp_rpm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response20014.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_rpm_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_rpm_client/models/metadata_checksum_type_enum.rb +41 -0
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +41 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +240 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +340 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +265 -0
- data/lib/pulp_rpm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_rpm_client/models/repository_version.rb +7 -43
- data/lib/pulp_rpm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_rpm_client/models/{rpm_distribution_tree.rb → rpm_distribution_tree_response.rb} +17 -234
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +42 -153
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +40 -86
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +282 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +346 -0
- data/lib/pulp_rpm_client/models/rpm_package.rb +28 -501
- data/lib/pulp_rpm_client/models/{rpm_package_category.rb → rpm_package_category_response.rb} +10 -63
- data/lib/pulp_rpm_client/models/{rpm_package_environment.rb → rpm_package_environment_response.rb} +11 -68
- data/lib/pulp_rpm_client/models/{rpm_package_group.rb → rpm_package_group_response.rb} +10 -63
- data/lib/pulp_rpm_client/models/{rpm_package_langpacks.rb → rpm_package_langpacks_response.rb} +8 -34
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +597 -0
- data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file.rb → rpm_repo_metadata_file_response.rb} +6 -96
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +4 -30
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +4 -85
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +279 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +6 -74
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +256 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +7 -214
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +379 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +14 -74
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +307 -0
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +10 -34
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +243 -0
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +18 -245
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +401 -0
- data/lib/pulp_rpm_client/models/{variant.rb → variant_response.rb} +6 -195
- data/lib/pulp_rpm_client/version.rb +3 -3
- data/lib/pulp_rpm_client.rb +30 -13
- data/pulp_rpm_client.gemspec +4 -4
- data/spec/api/content_advisories_api_spec.rb +21 -21
- data/spec/api/content_distribution_trees_api_spec.rb +9 -9
- data/spec/api/content_modulemd_defaults_api_spec.rb +13 -13
- data/spec/api/content_modulemds_api_spec.rb +13 -13
- data/spec/api/content_packagecategories_api_spec.rb +9 -9
- data/spec/api/content_packageenvironments_api_spec.rb +9 -9
- data/spec/api/content_packagegroups_api_spec.rb +9 -9
- data/spec/api/content_packagelangpacks_api_spec.rb +9 -9
- data/spec/api/content_packages_api_spec.rb +31 -31
- data/spec/api/content_repo_metadata_files_api_spec.rb +9 -9
- data/spec/api/distributions_rpm_api_spec.rb +39 -18
- data/spec/api/publications_rpm_api_spec.rb +14 -14
- data/spec/api/remotes_rpm_api_spec.rb +48 -21
- data/spec/api/repositories_rpm_api_spec.rb +28 -19
- data/spec/api/repositories_rpm_versions_api_spec.rb +38 -23
- data/spec/api/rpm_copy_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/{addon_spec.rb → addon_response_spec.rb} +8 -8
- data/spec/models/{artifact_spec.rb → artifact_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{checksum_spec.rb → checksum_response_spec.rb} +8 -8
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/copy_spec.rb +2 -2
- data/spec/models/{image_spec.rb → image_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 +2 -2
- 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/metadata_checksum_type_enum_spec.rb +35 -0
- data/spec/models/package_checksum_type_enum_spec.rb +35 -0
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +59 -0
- data/spec/models/patchedrpm_rpm_remote_spec.rb +107 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +65 -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_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{rpm_distribution_tree_spec.rb → rpm_distribution_tree_response_spec.rb} +8 -8
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +77 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +9 -9
- data/spec/models/rpm_modulemd_response_spec.rb +107 -0
- data/spec/models/rpm_modulemd_spec.rb +11 -11
- data/spec/models/{rpm_package_category_spec.rb → rpm_package_category_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_environment_spec.rb → rpm_package_environment_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_group_spec.rb → rpm_package_group_response_spec.rb} +8 -8
- data/spec/models/{rpm_package_langpacks_spec.rb → rpm_package_langpacks_response_spec.rb} +8 -8
- data/spec/models/rpm_package_response_spec.rb +275 -0
- data/spec/models/rpm_package_spec.rb +5 -221
- data/spec/models/{rpm_repo_metadata_file_spec.rb → rpm_repo_metadata_file_response_spec.rb} +8 -8
- data/spec/models/rpm_repository_sync_url_spec.rb +2 -6
- data/spec/models/rpm_rpm_distribution_response_spec.rb +77 -0
- data/spec/models/rpm_rpm_distribution_spec.rb +2 -20
- data/spec/models/rpm_rpm_publication_response_spec.rb +71 -0
- data/spec/models/rpm_rpm_publication_spec.rb +2 -22
- data/spec/models/rpm_rpm_remote_response_spec.rb +125 -0
- data/spec/models/rpm_rpm_remote_spec.rb +2 -24
- data/spec/models/rpm_rpm_repository_response_spec.rb +89 -0
- data/spec/models/rpm_rpm_repository_spec.rb +5 -23
- data/spec/models/rpm_update_collection_response_spec.rb +59 -0
- data/spec/models/rpm_update_collection_spec.rb +2 -8
- data/spec/models/rpm_update_record_response_spec.rb +155 -0
- data/spec/models/rpm_update_record_spec.rb +4 -112
- data/spec/models/{variant_spec.rb → variant_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +116 -48
@@ -0,0 +1,379 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# A Serializer for RpmRemote.
|
17
|
+
class RpmRpmRemoteResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# A unique name for this remote.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# The URL of an external content source.
|
27
|
+
attr_accessor :url
|
28
|
+
|
29
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
30
|
+
attr_accessor :ca_cert
|
31
|
+
|
32
|
+
# A PEM encoded client certificate used for authentication.
|
33
|
+
attr_accessor :client_cert
|
34
|
+
|
35
|
+
# A PEM encoded private key used for authentication.
|
36
|
+
attr_accessor :client_key
|
37
|
+
|
38
|
+
# If True, TLS peer validation must be performed.
|
39
|
+
attr_accessor :tls_validation
|
40
|
+
|
41
|
+
# The proxy URL. Format: scheme://user:password@host:port
|
42
|
+
attr_accessor :proxy_url
|
43
|
+
|
44
|
+
# The username to be used for authentication when syncing.
|
45
|
+
attr_accessor :username
|
46
|
+
|
47
|
+
# The password to be used for authentication when syncing.
|
48
|
+
attr_accessor :password
|
49
|
+
|
50
|
+
# Timestamp of the most recent update of the remote.
|
51
|
+
attr_accessor :pulp_last_updated
|
52
|
+
|
53
|
+
# Total number of simultaneous connections.
|
54
|
+
attr_accessor :download_concurrency
|
55
|
+
|
56
|
+
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
|
+
attr_accessor :policy
|
58
|
+
|
59
|
+
# Authentication token for SLES repositories.
|
60
|
+
attr_accessor :sles_auth_token
|
61
|
+
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
+
def self.attribute_map
|
64
|
+
{
|
65
|
+
:'pulp_href' => :'pulp_href',
|
66
|
+
:'pulp_created' => :'pulp_created',
|
67
|
+
:'name' => :'name',
|
68
|
+
:'url' => :'url',
|
69
|
+
:'ca_cert' => :'ca_cert',
|
70
|
+
:'client_cert' => :'client_cert',
|
71
|
+
:'client_key' => :'client_key',
|
72
|
+
:'tls_validation' => :'tls_validation',
|
73
|
+
:'proxy_url' => :'proxy_url',
|
74
|
+
:'username' => :'username',
|
75
|
+
:'password' => :'password',
|
76
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
77
|
+
:'download_concurrency' => :'download_concurrency',
|
78
|
+
:'policy' => :'policy',
|
79
|
+
:'sles_auth_token' => :'sles_auth_token'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# Attribute type mapping.
|
84
|
+
def self.openapi_types
|
85
|
+
{
|
86
|
+
:'pulp_href' => :'String',
|
87
|
+
:'pulp_created' => :'DateTime',
|
88
|
+
:'name' => :'String',
|
89
|
+
:'url' => :'String',
|
90
|
+
:'ca_cert' => :'String',
|
91
|
+
:'client_cert' => :'String',
|
92
|
+
:'client_key' => :'String',
|
93
|
+
:'tls_validation' => :'Boolean',
|
94
|
+
:'proxy_url' => :'String',
|
95
|
+
:'username' => :'String',
|
96
|
+
:'password' => :'String',
|
97
|
+
:'pulp_last_updated' => :'DateTime',
|
98
|
+
:'download_concurrency' => :'Integer',
|
99
|
+
:'policy' => :'PolicyEnum',
|
100
|
+
:'sles_auth_token' => :'String'
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
# List of attributes with nullable: true
|
105
|
+
def self.openapi_nullable
|
106
|
+
Set.new([
|
107
|
+
:'ca_cert',
|
108
|
+
:'client_cert',
|
109
|
+
:'client_key',
|
110
|
+
:'proxy_url',
|
111
|
+
:'username',
|
112
|
+
:'password',
|
113
|
+
:'sles_auth_token'
|
114
|
+
])
|
115
|
+
end
|
116
|
+
|
117
|
+
# Initializes the object
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
def initialize(attributes = {})
|
120
|
+
if (!attributes.is_a?(Hash))
|
121
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmRemoteResponse` initialize method"
|
122
|
+
end
|
123
|
+
|
124
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
125
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
126
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmRemoteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
128
|
+
end
|
129
|
+
h[k.to_sym] = v
|
130
|
+
}
|
131
|
+
|
132
|
+
if attributes.key?(:'pulp_href')
|
133
|
+
self.pulp_href = attributes[:'pulp_href']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'pulp_created')
|
137
|
+
self.pulp_created = attributes[:'pulp_created']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'name')
|
141
|
+
self.name = attributes[:'name']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'url')
|
145
|
+
self.url = attributes[:'url']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'ca_cert')
|
149
|
+
self.ca_cert = attributes[:'ca_cert']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'client_cert')
|
153
|
+
self.client_cert = attributes[:'client_cert']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'client_key')
|
157
|
+
self.client_key = attributes[:'client_key']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'tls_validation')
|
161
|
+
self.tls_validation = attributes[:'tls_validation']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'proxy_url')
|
165
|
+
self.proxy_url = attributes[:'proxy_url']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'username')
|
169
|
+
self.username = attributes[:'username']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'password')
|
173
|
+
self.password = attributes[:'password']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'pulp_last_updated')
|
177
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'download_concurrency')
|
181
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'policy')
|
185
|
+
self.policy = attributes[:'policy']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'sles_auth_token')
|
189
|
+
self.sles_auth_token = attributes[:'sles_auth_token']
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
194
|
+
# @return Array for valid properties with the reasons
|
195
|
+
def list_invalid_properties
|
196
|
+
invalid_properties = Array.new
|
197
|
+
if @name.nil?
|
198
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
199
|
+
end
|
200
|
+
|
201
|
+
if @url.nil?
|
202
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
203
|
+
end
|
204
|
+
|
205
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
206
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
207
|
+
end
|
208
|
+
|
209
|
+
invalid_properties
|
210
|
+
end
|
211
|
+
|
212
|
+
# Check to see if the all the properties in the model are valid
|
213
|
+
# @return true if the model is valid
|
214
|
+
def valid?
|
215
|
+
return false if @name.nil?
|
216
|
+
return false if @url.nil?
|
217
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
218
|
+
true
|
219
|
+
end
|
220
|
+
|
221
|
+
# Custom attribute writer method with validation
|
222
|
+
# @param [Object] download_concurrency Value to be assigned
|
223
|
+
def download_concurrency=(download_concurrency)
|
224
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
225
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
226
|
+
end
|
227
|
+
|
228
|
+
@download_concurrency = download_concurrency
|
229
|
+
end
|
230
|
+
|
231
|
+
# Checks equality by comparing each attribute.
|
232
|
+
# @param [Object] Object to be compared
|
233
|
+
def ==(o)
|
234
|
+
return true if self.equal?(o)
|
235
|
+
self.class == o.class &&
|
236
|
+
pulp_href == o.pulp_href &&
|
237
|
+
pulp_created == o.pulp_created &&
|
238
|
+
name == o.name &&
|
239
|
+
url == o.url &&
|
240
|
+
ca_cert == o.ca_cert &&
|
241
|
+
client_cert == o.client_cert &&
|
242
|
+
client_key == o.client_key &&
|
243
|
+
tls_validation == o.tls_validation &&
|
244
|
+
proxy_url == o.proxy_url &&
|
245
|
+
username == o.username &&
|
246
|
+
password == o.password &&
|
247
|
+
pulp_last_updated == o.pulp_last_updated &&
|
248
|
+
download_concurrency == o.download_concurrency &&
|
249
|
+
policy == o.policy &&
|
250
|
+
sles_auth_token == o.sles_auth_token
|
251
|
+
end
|
252
|
+
|
253
|
+
# @see the `==` method
|
254
|
+
# @param [Object] Object to be compared
|
255
|
+
def eql?(o)
|
256
|
+
self == o
|
257
|
+
end
|
258
|
+
|
259
|
+
# Calculates hash code according to all attributes.
|
260
|
+
# @return [Integer] Hash code
|
261
|
+
def hash
|
262
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, sles_auth_token].hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Builds the object from hash
|
266
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
267
|
+
# @return [Object] Returns the model itself
|
268
|
+
def self.build_from_hash(attributes)
|
269
|
+
new.build_from_hash(attributes)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Builds the object from hash
|
273
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
274
|
+
# @return [Object] Returns the model itself
|
275
|
+
def build_from_hash(attributes)
|
276
|
+
return nil unless attributes.is_a?(Hash)
|
277
|
+
self.class.openapi_types.each_pair do |key, type|
|
278
|
+
if type =~ /\AArray<(.*)>/i
|
279
|
+
# check to ensure the input is an array given that the attribute
|
280
|
+
# is documented as an array but the input is not
|
281
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
282
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
283
|
+
end
|
284
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
285
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
286
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
287
|
+
end
|
288
|
+
|
289
|
+
self
|
290
|
+
end
|
291
|
+
|
292
|
+
# Deserializes the data based on type
|
293
|
+
# @param string type Data type
|
294
|
+
# @param string value Value to be deserialized
|
295
|
+
# @return [Object] Deserialized data
|
296
|
+
def _deserialize(type, value)
|
297
|
+
case type.to_sym
|
298
|
+
when :DateTime
|
299
|
+
DateTime.parse(value)
|
300
|
+
when :Date
|
301
|
+
Date.parse(value)
|
302
|
+
when :String
|
303
|
+
value.to_s
|
304
|
+
when :Integer
|
305
|
+
value.to_i
|
306
|
+
when :Float
|
307
|
+
value.to_f
|
308
|
+
when :Boolean
|
309
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
310
|
+
true
|
311
|
+
else
|
312
|
+
false
|
313
|
+
end
|
314
|
+
when :Object
|
315
|
+
# generic object (usually a Hash), return directly
|
316
|
+
value
|
317
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
318
|
+
inner_type = Regexp.last_match[:inner_type]
|
319
|
+
value.map { |v| _deserialize(inner_type, v) }
|
320
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
321
|
+
k_type = Regexp.last_match[:k_type]
|
322
|
+
v_type = Regexp.last_match[:v_type]
|
323
|
+
{}.tap do |hash|
|
324
|
+
value.each do |k, v|
|
325
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
else # model
|
329
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
333
|
+
# Returns the string representation of the object
|
334
|
+
# @return [String] String presentation of the object
|
335
|
+
def to_s
|
336
|
+
to_hash.to_s
|
337
|
+
end
|
338
|
+
|
339
|
+
# to_body is an alias to to_hash (backward compatibility)
|
340
|
+
# @return [Hash] Returns the object in the form of hash
|
341
|
+
def to_body
|
342
|
+
to_hash
|
343
|
+
end
|
344
|
+
|
345
|
+
# Returns the object in the form of hash
|
346
|
+
# @return [Hash] Returns the object in the form of hash
|
347
|
+
def to_hash
|
348
|
+
hash = {}
|
349
|
+
self.class.attribute_map.each_pair do |attr, param|
|
350
|
+
value = self.send(attr)
|
351
|
+
if value.nil?
|
352
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
353
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
354
|
+
end
|
355
|
+
|
356
|
+
hash[param] = _to_hash(value)
|
357
|
+
end
|
358
|
+
hash
|
359
|
+
end
|
360
|
+
|
361
|
+
# Outputs non-array value in the form of hash
|
362
|
+
# For object, use to_hash. Otherwise, just return the value
|
363
|
+
# @param [Object] value Any valid value
|
364
|
+
# @return [Hash] Returns the value in the form of hash
|
365
|
+
def _to_hash(value)
|
366
|
+
if value.is_a?(Array)
|
367
|
+
value.compact.map { |v| _to_hash(v) }
|
368
|
+
elsif value.is_a?(Hash)
|
369
|
+
{}.tap do |hash|
|
370
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
371
|
+
end
|
372
|
+
elsif value.respond_to? :to_hash
|
373
|
+
value.to_hash
|
374
|
+
else
|
375
|
+
value
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|
379
|
+
end
|
@@ -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,22 +13,16 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
+
# Serializer for Rpm Repositories.
|
16
17
|
class RpmRpmRepository
|
17
|
-
attr_accessor :pulp_href
|
18
|
-
|
19
|
-
# Timestamp of creation.
|
20
|
-
attr_accessor :pulp_created
|
21
|
-
|
22
|
-
attr_accessor :versions_href
|
23
|
-
|
24
|
-
attr_accessor :latest_version_href
|
25
|
-
|
26
18
|
# A unique name for this repository.
|
27
19
|
attr_accessor :name
|
28
20
|
|
29
21
|
# An optional description.
|
30
22
|
attr_accessor :description
|
31
23
|
|
24
|
+
attr_accessor :remote
|
25
|
+
|
32
26
|
# A reference to an associated signing service.
|
33
27
|
attr_accessor :metadata_signing_service
|
34
28
|
|
@@ -38,12 +32,9 @@ module PulpRpmClient
|
|
38
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
33
|
def self.attribute_map
|
40
34
|
{
|
41
|
-
:'pulp_href' => :'pulp_href',
|
42
|
-
:'pulp_created' => :'pulp_created',
|
43
|
-
:'versions_href' => :'versions_href',
|
44
|
-
:'latest_version_href' => :'latest_version_href',
|
45
35
|
:'name' => :'name',
|
46
36
|
:'description' => :'description',
|
37
|
+
:'remote' => :'remote',
|
47
38
|
:'metadata_signing_service' => :'metadata_signing_service',
|
48
39
|
:'retain_package_versions' => :'retain_package_versions'
|
49
40
|
}
|
@@ -52,12 +43,9 @@ module PulpRpmClient
|
|
52
43
|
# Attribute type mapping.
|
53
44
|
def self.openapi_types
|
54
45
|
{
|
55
|
-
:'pulp_href' => :'String',
|
56
|
-
:'pulp_created' => :'DateTime',
|
57
|
-
:'versions_href' => :'String',
|
58
|
-
:'latest_version_href' => :'String',
|
59
46
|
:'name' => :'String',
|
60
47
|
:'description' => :'String',
|
48
|
+
:'remote' => :'String',
|
61
49
|
:'metadata_signing_service' => :'String',
|
62
50
|
:'retain_package_versions' => :'Integer'
|
63
51
|
}
|
@@ -67,6 +55,7 @@ module PulpRpmClient
|
|
67
55
|
def self.openapi_nullable
|
68
56
|
Set.new([
|
69
57
|
:'description',
|
58
|
+
:'remote',
|
70
59
|
:'metadata_signing_service',
|
71
60
|
])
|
72
61
|
end
|
@@ -86,22 +75,6 @@ module PulpRpmClient
|
|
86
75
|
h[k.to_sym] = v
|
87
76
|
}
|
88
77
|
|
89
|
-
if attributes.key?(:'pulp_href')
|
90
|
-
self.pulp_href = attributes[:'pulp_href']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'pulp_created')
|
94
|
-
self.pulp_created = attributes[:'pulp_created']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'versions_href')
|
98
|
-
self.versions_href = attributes[:'versions_href']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'latest_version_href')
|
102
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
103
|
-
end
|
104
|
-
|
105
78
|
if attributes.key?(:'name')
|
106
79
|
self.name = attributes[:'name']
|
107
80
|
end
|
@@ -110,6 +83,10 @@ module PulpRpmClient
|
|
110
83
|
self.description = attributes[:'description']
|
111
84
|
end
|
112
85
|
|
86
|
+
if attributes.key?(:'remote')
|
87
|
+
self.remote = attributes[:'remote']
|
88
|
+
end
|
89
|
+
|
113
90
|
if attributes.key?(:'metadata_signing_service')
|
114
91
|
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
115
92
|
end
|
@@ -127,14 +104,6 @@ module PulpRpmClient
|
|
127
104
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
128
105
|
end
|
129
106
|
|
130
|
-
if @name.to_s.length < 1
|
131
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
|
-
if !@description.nil? && @description.to_s.length < 1
|
135
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
136
|
-
end
|
137
|
-
|
138
107
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
139
108
|
invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
|
140
109
|
end
|
@@ -146,36 +115,10 @@ module PulpRpmClient
|
|
146
115
|
# @return true if the model is valid
|
147
116
|
def valid?
|
148
117
|
return false if @name.nil?
|
149
|
-
return false if @name.to_s.length < 1
|
150
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
151
118
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
152
119
|
true
|
153
120
|
end
|
154
121
|
|
155
|
-
# Custom attribute writer method with validation
|
156
|
-
# @param [Object] name Value to be assigned
|
157
|
-
def name=(name)
|
158
|
-
if name.nil?
|
159
|
-
fail ArgumentError, 'name cannot be nil'
|
160
|
-
end
|
161
|
-
|
162
|
-
if name.to_s.length < 1
|
163
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
164
|
-
end
|
165
|
-
|
166
|
-
@name = name
|
167
|
-
end
|
168
|
-
|
169
|
-
# Custom attribute writer method with validation
|
170
|
-
# @param [Object] description Value to be assigned
|
171
|
-
def description=(description)
|
172
|
-
if !description.nil? && description.to_s.length < 1
|
173
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
174
|
-
end
|
175
|
-
|
176
|
-
@description = description
|
177
|
-
end
|
178
|
-
|
179
122
|
# Custom attribute writer method with validation
|
180
123
|
# @param [Object] retain_package_versions Value to be assigned
|
181
124
|
def retain_package_versions=(retain_package_versions)
|
@@ -191,12 +134,9 @@ module PulpRpmClient
|
|
191
134
|
def ==(o)
|
192
135
|
return true if self.equal?(o)
|
193
136
|
self.class == o.class &&
|
194
|
-
pulp_href == o.pulp_href &&
|
195
|
-
pulp_created == o.pulp_created &&
|
196
|
-
versions_href == o.versions_href &&
|
197
|
-
latest_version_href == o.latest_version_href &&
|
198
137
|
name == o.name &&
|
199
138
|
description == o.description &&
|
139
|
+
remote == o.remote &&
|
200
140
|
metadata_signing_service == o.metadata_signing_service &&
|
201
141
|
retain_package_versions == o.retain_package_versions
|
202
142
|
end
|
@@ -210,7 +150,7 @@ module PulpRpmClient
|
|
210
150
|
# Calculates hash code according to all attributes.
|
211
151
|
# @return [Integer] Hash code
|
212
152
|
def hash
|
213
|
-
[
|
153
|
+
[name, description, remote, metadata_signing_service, retain_package_versions].hash
|
214
154
|
end
|
215
155
|
|
216
156
|
# Builds the object from hash
|