pulp_maven_client 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/build/lib/pulpcore/client/pulp_maven/__init__.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/api_client.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/configuration.py +1 -1
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +31 -1
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +27 -1
- data/dist/pulp_maven-client-0.3.1.tar.gz +0 -0
- data/dist/{pulp_maven_client-0.3.0-py3-none-any.whl → pulp_maven_client-0.3.1-py3-none-any.whl} +0 -0
- data/docs/MavenMavenRepository.md +2 -0
- data/docs/MavenMavenRepositoryResponse.md +2 -0
- data/docs/PatchedmavenMavenRepository.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_maven_client.rb +1 -1
- data/lib/pulp_maven_client/api/content_artifact_api.rb +1 -1
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +1 -1
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +1 -1
- data/lib/pulp_maven_client/api_client.rb +12 -8
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +8 -1
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/content_summary.rb +1 -1
- data/lib/pulp_maven_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +28 -2
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +28 -2
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +28 -2
- data/lib/pulp_maven_client/models/policy_enum.rb +1 -1
- data/lib/pulp_maven_client/models/repository_version.rb +1 -1
- data/lib/pulp_maven_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_maven_client/version.rb +2 -2
- data/pulp_maven_client.egg-info/PKG-INFO +1 -1
- data/pulp_maven_client.gemspec +1 -1
- data/pulpcore/client/pulp_maven/__init__.py +1 -1
- data/pulpcore/client/pulp_maven/api_client.py +1 -1
- data/pulpcore/client/pulp_maven/configuration.py +1 -1
- data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +31 -1
- data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +31 -1
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +31 -1
- data/pulpcore/client/pulp_maven/models/repository_version_response.py +27 -1
- data/setup.py +1 -1
- data/spec/api/content_artifact_api_spec.rb +1 -1
- data/spec/api/distributions_maven_api_spec.rb +1 -1
- data/spec/api/remotes_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_api_spec.rb +1 -1
- data/spec/api/repositories_maven_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_response_spec.rb +1 -1
- data/spec/models/maven_maven_artifact_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_response_spec.rb +1 -1
- data/spec/models/maven_maven_distribution_spec.rb +1 -1
- data/spec/models/maven_maven_remote_response_spec.rb +1 -1
- data/spec/models/maven_maven_remote_spec.rb +1 -1
- data/spec/models/maven_maven_repository_response_spec.rb +7 -1
- data/spec/models/maven_maven_repository_spec.rb +7 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_distribution_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_remote_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/test/test_maven_maven_repository.py +1 -0
- data/test/test_maven_maven_repository_response.py +1 -0
- data/test/test_paginated_repository_version_response_list.py +1 -0
- data/test/test_paginatedmaven_maven_repository_response_list.py +1 -0
- data/test/test_patchedmaven_maven_repository.py +1 -0
- data/test/test_repository_version_response.py +1 -0
- metadata +22 -22
- data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,6 +23,9 @@ module PulpMavenClient
|
|
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. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
+
attr_accessor :retained_versions
|
28
|
+
|
26
29
|
attr_accessor :remote
|
27
30
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,6 +34,7 @@ module PulpMavenClient
|
|
31
34
|
:'pulp_labels' => :'pulp_labels',
|
32
35
|
:'name' => :'name',
|
33
36
|
:'description' => :'description',
|
37
|
+
:'retained_versions' => :'retained_versions',
|
34
38
|
:'remote' => :'remote'
|
35
39
|
}
|
36
40
|
end
|
@@ -41,6 +45,7 @@ module PulpMavenClient
|
|
41
45
|
:'pulp_labels' => :'Object',
|
42
46
|
:'name' => :'String',
|
43
47
|
:'description' => :'String',
|
48
|
+
:'retained_versions' => :'Integer',
|
44
49
|
:'remote' => :'String'
|
45
50
|
}
|
46
51
|
end
|
@@ -49,6 +54,7 @@ module PulpMavenClient
|
|
49
54
|
def self.openapi_nullable
|
50
55
|
Set.new([
|
51
56
|
:'description',
|
57
|
+
:'retained_versions',
|
52
58
|
:'remote'
|
53
59
|
])
|
54
60
|
end
|
@@ -80,6 +86,10 @@ module PulpMavenClient
|
|
80
86
|
self.description = attributes[:'description']
|
81
87
|
end
|
82
88
|
|
89
|
+
if attributes.key?(:'retained_versions')
|
90
|
+
self.retained_versions = attributes[:'retained_versions']
|
91
|
+
end
|
92
|
+
|
83
93
|
if attributes.key?(:'remote')
|
84
94
|
self.remote = attributes[:'remote']
|
85
95
|
end
|
@@ -89,15 +99,30 @@ module PulpMavenClient
|
|
89
99
|
# @return Array for valid properties with the reasons
|
90
100
|
def list_invalid_properties
|
91
101
|
invalid_properties = Array.new
|
102
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
103
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
104
|
+
end
|
105
|
+
|
92
106
|
invalid_properties
|
93
107
|
end
|
94
108
|
|
95
109
|
# Check to see if the all the properties in the model are valid
|
96
110
|
# @return true if the model is valid
|
97
111
|
def valid?
|
112
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
98
113
|
true
|
99
114
|
end
|
100
115
|
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] retained_versions Value to be assigned
|
118
|
+
def retained_versions=(retained_versions)
|
119
|
+
if !retained_versions.nil? && retained_versions < 1
|
120
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
121
|
+
end
|
122
|
+
|
123
|
+
@retained_versions = retained_versions
|
124
|
+
end
|
125
|
+
|
101
126
|
# Checks equality by comparing each attribute.
|
102
127
|
# @param [Object] Object to be compared
|
103
128
|
def ==(o)
|
@@ -106,6 +131,7 @@ module PulpMavenClient
|
|
106
131
|
pulp_labels == o.pulp_labels &&
|
107
132
|
name == o.name &&
|
108
133
|
description == o.description &&
|
134
|
+
retained_versions == o.retained_versions &&
|
109
135
|
remote == o.remote
|
110
136
|
end
|
111
137
|
|
@@ -118,7 +144,7 @@ module PulpMavenClient
|
|
118
144
|
# Calculates hash code according to all attributes.
|
119
145
|
# @return [Integer] Hash code
|
120
146
|
def hash
|
121
|
-
[pulp_labels, name, description, remote].hash
|
147
|
+
[pulp_labels, name, description, retained_versions, remote].hash
|
122
148
|
end
|
123
149
|
|
124
150
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,6 +22,8 @@ module PulpMavenClient
|
|
22
22
|
|
23
23
|
attr_accessor :number
|
24
24
|
|
25
|
+
attr_accessor :repository
|
26
|
+
|
25
27
|
# A repository version whose content was used as the initial set of content for this repository version
|
26
28
|
attr_accessor :base_version
|
27
29
|
|
@@ -34,6 +36,7 @@ module PulpMavenClient
|
|
34
36
|
:'pulp_href' => :'pulp_href',
|
35
37
|
:'pulp_created' => :'pulp_created',
|
36
38
|
:'number' => :'number',
|
39
|
+
:'repository' => :'repository',
|
37
40
|
:'base_version' => :'base_version',
|
38
41
|
:'content_summary' => :'content_summary'
|
39
42
|
}
|
@@ -45,6 +48,7 @@ module PulpMavenClient
|
|
45
48
|
:'pulp_href' => :'String',
|
46
49
|
:'pulp_created' => :'DateTime',
|
47
50
|
:'number' => :'Integer',
|
51
|
+
:'repository' => :'String',
|
48
52
|
:'base_version' => :'String',
|
49
53
|
:'content_summary' => :'ContentSummaryResponse'
|
50
54
|
}
|
@@ -83,6 +87,10 @@ module PulpMavenClient
|
|
83
87
|
self.number = attributes[:'number']
|
84
88
|
end
|
85
89
|
|
90
|
+
if attributes.key?(:'repository')
|
91
|
+
self.repository = attributes[:'repository']
|
92
|
+
end
|
93
|
+
|
86
94
|
if attributes.key?(:'base_version')
|
87
95
|
self.base_version = attributes[:'base_version']
|
88
96
|
end
|
@@ -113,6 +121,7 @@ module PulpMavenClient
|
|
113
121
|
pulp_href == o.pulp_href &&
|
114
122
|
pulp_created == o.pulp_created &&
|
115
123
|
number == o.number &&
|
124
|
+
repository == o.repository &&
|
116
125
|
base_version == o.base_version &&
|
117
126
|
content_summary == o.content_summary
|
118
127
|
end
|
@@ -126,7 +135,7 @@ module PulpMavenClient
|
|
126
135
|
# Calculates hash code according to all attributes.
|
127
136
|
# @return [Integer] Hash code
|
128
137
|
def hash
|
129
|
-
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
138
|
+
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
130
139
|
end
|
131
140
|
|
132
141
|
# Builds the object from hash
|
@@ -6,10 +6,10 @@
|
|
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
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpMavenClient
|
14
|
-
VERSION = '0.3.
|
14
|
+
VERSION = '0.3.1'
|
15
15
|
end
|
data/pulp_maven_client.gemspec
CHANGED
@@ -79,7 +79,7 @@ class ApiClient(object):
|
|
79
79
|
self.default_headers[header_name] = header_value
|
80
80
|
self.cookie = cookie
|
81
81
|
# Set default User-Agent.
|
82
|
-
self.user_agent = 'OpenAPI-Generator/0.3.
|
82
|
+
self.user_agent = 'OpenAPI-Generator/0.3.1/python'
|
83
83
|
self.client_side_validation = configuration.client_side_validation
|
84
84
|
|
85
85
|
def __enter__(self):
|
@@ -376,7 +376,7 @@ conf = pulpcore.client.pulp_maven.Configuration(
|
|
376
376
|
"OS: {env}\n"\
|
377
377
|
"Python Version: {pyversion}\n"\
|
378
378
|
"Version of the API: v3\n"\
|
379
|
-
"SDK Package Version: 0.3.
|
379
|
+
"SDK Package Version: 0.3.1".\
|
380
380
|
format(env=sys.platform, pyversion=sys.version)
|
381
381
|
|
382
382
|
def get_host_settings(self):
|
@@ -37,6 +37,7 @@ class MavenMavenRepository(object):
|
|
37
37
|
'pulp_labels': 'object',
|
38
38
|
'name': 'str',
|
39
39
|
'description': 'str',
|
40
|
+
'retained_versions': 'int',
|
40
41
|
'remote': 'str'
|
41
42
|
}
|
42
43
|
|
@@ -44,10 +45,11 @@ class MavenMavenRepository(object):
|
|
44
45
|
'pulp_labels': 'pulp_labels',
|
45
46
|
'name': 'name',
|
46
47
|
'description': 'description',
|
48
|
+
'retained_versions': 'retained_versions',
|
47
49
|
'remote': 'remote'
|
48
50
|
}
|
49
51
|
|
50
|
-
def __init__(self, pulp_labels=None, name=None, description=None, remote=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
def __init__(self, pulp_labels=None, name=None, description=None, retained_versions=None, remote=None, local_vars_configuration=None): # noqa: E501
|
51
53
|
"""MavenMavenRepository - a model defined in OpenAPI""" # noqa: E501
|
52
54
|
if local_vars_configuration is None:
|
53
55
|
local_vars_configuration = Configuration()
|
@@ -56,6 +58,7 @@ class MavenMavenRepository(object):
|
|
56
58
|
self._pulp_labels = None
|
57
59
|
self._name = None
|
58
60
|
self._description = None
|
61
|
+
self._retained_versions = None
|
59
62
|
self._remote = None
|
60
63
|
self.discriminator = None
|
61
64
|
|
@@ -63,6 +66,7 @@ class MavenMavenRepository(object):
|
|
63
66
|
self.pulp_labels = pulp_labels
|
64
67
|
self.name = name
|
65
68
|
self.description = description
|
69
|
+
self.retained_versions = retained_versions
|
66
70
|
self.remote = remote
|
67
71
|
|
68
72
|
@property
|
@@ -134,6 +138,32 @@ class MavenMavenRepository(object):
|
|
134
138
|
|
135
139
|
self._description = description
|
136
140
|
|
141
|
+
@property
|
142
|
+
def retained_versions(self):
|
143
|
+
"""Gets the retained_versions of this MavenMavenRepository. # noqa: E501
|
144
|
+
|
145
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
146
|
+
|
147
|
+
:return: The retained_versions of this MavenMavenRepository. # noqa: E501
|
148
|
+
:rtype: int
|
149
|
+
"""
|
150
|
+
return self._retained_versions
|
151
|
+
|
152
|
+
@retained_versions.setter
|
153
|
+
def retained_versions(self, retained_versions):
|
154
|
+
"""Sets the retained_versions of this MavenMavenRepository.
|
155
|
+
|
156
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
157
|
+
|
158
|
+
:param retained_versions: The retained_versions of this MavenMavenRepository. # noqa: E501
|
159
|
+
:type: int
|
160
|
+
"""
|
161
|
+
if (self.local_vars_configuration.client_side_validation and
|
162
|
+
retained_versions is not None and retained_versions < 1): # noqa: E501
|
163
|
+
raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
|
164
|
+
|
165
|
+
self._retained_versions = retained_versions
|
166
|
+
|
137
167
|
@property
|
138
168
|
def remote(self):
|
139
169
|
"""Gets the remote of this MavenMavenRepository. # noqa: E501
|
@@ -41,6 +41,7 @@ class MavenMavenRepositoryResponse(object):
|
|
41
41
|
'latest_version_href': 'str',
|
42
42
|
'name': 'str',
|
43
43
|
'description': 'str',
|
44
|
+
'retained_versions': 'int',
|
44
45
|
'remote': 'str'
|
45
46
|
}
|
46
47
|
|
@@ -52,10 +53,11 @@ class MavenMavenRepositoryResponse(object):
|
|
52
53
|
'latest_version_href': 'latest_version_href',
|
53
54
|
'name': 'name',
|
54
55
|
'description': 'description',
|
56
|
+
'retained_versions': 'retained_versions',
|
55
57
|
'remote': 'remote'
|
56
58
|
}
|
57
59
|
|
58
|
-
def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, remote=None, local_vars_configuration=None): # noqa: E501
|
60
|
+
def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retained_versions=None, remote=None, local_vars_configuration=None): # noqa: E501
|
59
61
|
"""MavenMavenRepositoryResponse - a model defined in OpenAPI""" # noqa: E501
|
60
62
|
if local_vars_configuration is None:
|
61
63
|
local_vars_configuration = Configuration()
|
@@ -68,6 +70,7 @@ class MavenMavenRepositoryResponse(object):
|
|
68
70
|
self._latest_version_href = None
|
69
71
|
self._name = None
|
70
72
|
self._description = None
|
73
|
+
self._retained_versions = None
|
71
74
|
self._remote = None
|
72
75
|
self.discriminator = None
|
73
76
|
|
@@ -83,6 +86,7 @@ class MavenMavenRepositoryResponse(object):
|
|
83
86
|
self.latest_version_href = latest_version_href
|
84
87
|
self.name = name
|
85
88
|
self.description = description
|
89
|
+
self.retained_versions = retained_versions
|
86
90
|
self.remote = remote
|
87
91
|
|
88
92
|
@property
|
@@ -240,6 +244,32 @@ class MavenMavenRepositoryResponse(object):
|
|
240
244
|
|
241
245
|
self._description = description
|
242
246
|
|
247
|
+
@property
|
248
|
+
def retained_versions(self):
|
249
|
+
"""Gets the retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
|
250
|
+
|
251
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
252
|
+
|
253
|
+
:return: The retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
|
254
|
+
:rtype: int
|
255
|
+
"""
|
256
|
+
return self._retained_versions
|
257
|
+
|
258
|
+
@retained_versions.setter
|
259
|
+
def retained_versions(self, retained_versions):
|
260
|
+
"""Sets the retained_versions of this MavenMavenRepositoryResponse.
|
261
|
+
|
262
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
263
|
+
|
264
|
+
:param retained_versions: The retained_versions of this MavenMavenRepositoryResponse. # noqa: E501
|
265
|
+
:type: int
|
266
|
+
"""
|
267
|
+
if (self.local_vars_configuration.client_side_validation and
|
268
|
+
retained_versions is not None and retained_versions < 1): # noqa: E501
|
269
|
+
raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
|
270
|
+
|
271
|
+
self._retained_versions = retained_versions
|
272
|
+
|
243
273
|
@property
|
244
274
|
def remote(self):
|
245
275
|
"""Gets the remote of this MavenMavenRepositoryResponse. # noqa: E501
|
@@ -37,6 +37,7 @@ class PatchedmavenMavenRepository(object):
|
|
37
37
|
'pulp_labels': 'object',
|
38
38
|
'name': 'str',
|
39
39
|
'description': 'str',
|
40
|
+
'retained_versions': 'int',
|
40
41
|
'remote': 'str'
|
41
42
|
}
|
42
43
|
|
@@ -44,10 +45,11 @@ class PatchedmavenMavenRepository(object):
|
|
44
45
|
'pulp_labels': 'pulp_labels',
|
45
46
|
'name': 'name',
|
46
47
|
'description': 'description',
|
48
|
+
'retained_versions': 'retained_versions',
|
47
49
|
'remote': 'remote'
|
48
50
|
}
|
49
51
|
|
50
|
-
def __init__(self, pulp_labels=None, name=None, description=None, remote=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
def __init__(self, pulp_labels=None, name=None, description=None, retained_versions=None, remote=None, local_vars_configuration=None): # noqa: E501
|
51
53
|
"""PatchedmavenMavenRepository - a model defined in OpenAPI""" # noqa: E501
|
52
54
|
if local_vars_configuration is None:
|
53
55
|
local_vars_configuration = Configuration()
|
@@ -56,6 +58,7 @@ class PatchedmavenMavenRepository(object):
|
|
56
58
|
self._pulp_labels = None
|
57
59
|
self._name = None
|
58
60
|
self._description = None
|
61
|
+
self._retained_versions = None
|
59
62
|
self._remote = None
|
60
63
|
self.discriminator = None
|
61
64
|
|
@@ -64,6 +67,7 @@ class PatchedmavenMavenRepository(object):
|
|
64
67
|
if name is not None:
|
65
68
|
self.name = name
|
66
69
|
self.description = description
|
70
|
+
self.retained_versions = retained_versions
|
67
71
|
self.remote = remote
|
68
72
|
|
69
73
|
@property
|
@@ -133,6 +137,32 @@ class PatchedmavenMavenRepository(object):
|
|
133
137
|
|
134
138
|
self._description = description
|
135
139
|
|
140
|
+
@property
|
141
|
+
def retained_versions(self):
|
142
|
+
"""Gets the retained_versions of this PatchedmavenMavenRepository. # noqa: E501
|
143
|
+
|
144
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
145
|
+
|
146
|
+
:return: The retained_versions of this PatchedmavenMavenRepository. # noqa: E501
|
147
|
+
:rtype: int
|
148
|
+
"""
|
149
|
+
return self._retained_versions
|
150
|
+
|
151
|
+
@retained_versions.setter
|
152
|
+
def retained_versions(self, retained_versions):
|
153
|
+
"""Sets the retained_versions of this PatchedmavenMavenRepository.
|
154
|
+
|
155
|
+
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
156
|
+
|
157
|
+
:param retained_versions: The retained_versions of this PatchedmavenMavenRepository. # noqa: E501
|
158
|
+
:type: int
|
159
|
+
"""
|
160
|
+
if (self.local_vars_configuration.client_side_validation and
|
161
|
+
retained_versions is not None and retained_versions < 1): # noqa: E501
|
162
|
+
raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
|
163
|
+
|
164
|
+
self._retained_versions = retained_versions
|
165
|
+
|
136
166
|
@property
|
137
167
|
def remote(self):
|
138
168
|
"""Gets the remote of this PatchedmavenMavenRepository. # noqa: E501
|