pulpcore_client 3.72.0 → 3.73.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 +8 -5
- data/docs/ArtifactDistributionResponse.md +14 -14
- data/docs/ContentApi.md +2 -0
- data/docs/ContentOpenpgpPublickeyApi.md +152 -2
- data/docs/ContentOpenpgpPublicsubkeyApi.md +4 -2
- data/docs/ContentOpenpgpSignatureApi.md +4 -2
- data/docs/ContentOpenpgpUserattributeApi.md +4 -2
- data/docs/ContentOpenpgpUseridApi.md +4 -2
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/GenericRemoteResponse.md +2 -2
- data/docs/GenericRemoteResponsePolicyEnum.md +15 -0
- data/docs/GroupRoleResponse.md +1 -1
- data/docs/MultipleArtifactContentResponse.md +2 -0
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
- data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
- data/docs/NestedOpenPGPUserIDResponse.md +1 -1
- data/docs/OpenPGPPublicKeyResponse.md +5 -3
- data/docs/OpenPGPPublicSubkeyResponse.md +3 -1
- data/docs/OpenPGPSignatureResponse.md +2 -0
- data/docs/OpenPGPUserAttributeResponse.md +3 -1
- data/docs/OpenPGPUserIDResponse.md +3 -1
- data/docs/PatchedUpstreamPulp.md +3 -1
- data/docs/{PolicyEnum.md → Policy357Enum.md} +2 -2
- data/docs/PulpExportResponse.md +1 -1
- data/docs/Purge.md +1 -1
- data/docs/RBACContentGuardResponse.md +2 -2
- data/docs/TaskGroupResponse.md +2 -2
- data/docs/TaskResponse.md +4 -4
- data/docs/UploadDetailResponse.md +1 -1
- data/docs/UpstreamPulp.md +3 -1
- data/docs/UpstreamPulpResponse.md +4 -2
- data/docs/UpstreamPulpsApi.md +2 -2
- data/docs/UserResponse.md +2 -2
- data/docs/UserRoleResponse.md +1 -1
- data/lib/pulpcore_client/api/content_api.rb +3 -0
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +157 -3
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +6 -3
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +6 -3
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +6 -3
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +6 -3
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +70 -70
- data/lib/pulpcore_client/models/generic_remote_response.rb +16 -1
- data/lib/pulpcore_client/models/{policy_enum.rb → generic_remote_response_policy_enum.rb} +3 -3
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +13 -1
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +9 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +13 -1
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +13 -1
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +28 -1
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +13 -1
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +13 -1
- data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_domain_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_group_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_import_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_task_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_upload_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_user_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +2 -0
- data/lib/pulpcore_client/models/paginated_worker_response_list.rb +2 -0
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +15 -0
- data/lib/pulpcore_client/models/patched_upstream_pulp.rb +37 -5
- data/lib/pulpcore_client/models/policy357_enum.rb +41 -0
- data/lib/pulpcore_client/models/purge.rb +0 -2
- data/lib/pulpcore_client/models/repository_response.rb +15 -0
- data/lib/pulpcore_client/models/storage_response.rb +45 -0
- data/lib/pulpcore_client/models/upstream_pulp.rb +37 -5
- data/lib/pulpcore_client/models/upstream_pulp_response.rb +36 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -1
- data/spec/api/content_api_spec.rb +1 -0
- data/spec/api/content_openpgp_publickey_api_spec.rb +29 -1
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +2 -1
- data/spec/api/content_openpgp_signature_api_spec.rb +2 -1
- data/spec/api/content_openpgp_userattribute_api_spec.rb +2 -1
- data/spec/api/content_openpgp_userid_api_spec.rb +2 -1
- data/spec/api/upstream_pulps_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +10 -10
- data/spec/models/generic_remote_response_policy_enum_spec.rb +30 -0
- data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
- data/spec/models/open_pgp_public_key_response_spec.rb +6 -0
- data/spec/models/open_pgp_public_subkey_response_spec.rb +6 -0
- data/spec/models/open_pgp_signature_response_spec.rb +6 -0
- data/spec/models/open_pgp_user_attribute_response_spec.rb +6 -0
- data/spec/models/open_pgp_user_id_response_spec.rb +6 -0
- data/spec/models/patched_upstream_pulp_spec.rb +6 -0
- data/spec/models/{policy_enum_spec.rb → policy357_enum_spec.rb} +6 -6
- data/spec/models/upstream_pulp_response_spec.rb +6 -0
- data/spec/models/upstream_pulp_spec.rb +6 -0
- metadata +194 -190
@@ -117,6 +117,10 @@ module PulpcoreClient
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
118
118
|
end
|
119
119
|
|
120
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
121
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
122
|
+
end
|
123
|
+
|
120
124
|
invalid_properties
|
121
125
|
end
|
122
126
|
|
@@ -126,6 +130,7 @@ module PulpcoreClient
|
|
126
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
127
131
|
return false if !@name.nil? && @name.to_s.length < 1
|
128
132
|
return false if !@description.nil? && @description.to_s.length < 1
|
133
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
129
134
|
true
|
130
135
|
end
|
131
136
|
|
@@ -153,6 +158,16 @@ module PulpcoreClient
|
|
153
158
|
@description = description
|
154
159
|
end
|
155
160
|
|
161
|
+
# Custom attribute writer method with validation
|
162
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
163
|
+
def retain_repo_versions=(retain_repo_versions)
|
164
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
165
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
166
|
+
end
|
167
|
+
|
168
|
+
@retain_repo_versions = retain_repo_versions
|
169
|
+
end
|
170
|
+
|
156
171
|
# Checks equality by comparing each attribute.
|
157
172
|
# @param [Object] Object to be compared
|
158
173
|
def ==(o)
|
@@ -49,6 +49,31 @@ module PulpcoreClient
|
|
49
49
|
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
50
50
|
attr_accessor :q_select
|
51
51
|
|
52
|
+
# Policy for how replicate will manage the local objects within the domain. * `all` - Replicate manages ALL local objects within the domain. * `labeled` - Replicate will only manage the objects created from a previous replication, unlabled local objects will be untouched. * `nodelete` - Replicate will not delete any local object whether they were created by replication or not.
|
53
|
+
attr_accessor :policy
|
54
|
+
|
55
|
+
class EnumAttributeValidator
|
56
|
+
attr_reader :datatype
|
57
|
+
attr_reader :allowable_values
|
58
|
+
|
59
|
+
def initialize(datatype, allowable_values)
|
60
|
+
@allowable_values = allowable_values.map do |value|
|
61
|
+
case datatype.to_s
|
62
|
+
when /Integer/i
|
63
|
+
value.to_i
|
64
|
+
when /Float/i
|
65
|
+
value.to_f
|
66
|
+
else
|
67
|
+
value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def valid?(value)
|
73
|
+
!value || allowable_values.include?(value)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
52
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
78
|
def self.attribute_map
|
54
79
|
{
|
@@ -62,7 +87,8 @@ module PulpcoreClient
|
|
62
87
|
:'tls_validation' => :'tls_validation',
|
63
88
|
:'username' => :'username',
|
64
89
|
:'password' => :'password',
|
65
|
-
:'q_select' => :'q_select'
|
90
|
+
:'q_select' => :'q_select',
|
91
|
+
:'policy' => :'policy'
|
66
92
|
}
|
67
93
|
end
|
68
94
|
|
@@ -84,7 +110,8 @@ module PulpcoreClient
|
|
84
110
|
:'tls_validation' => :'Boolean',
|
85
111
|
:'username' => :'String',
|
86
112
|
:'password' => :'String',
|
87
|
-
:'q_select' => :'String'
|
113
|
+
:'q_select' => :'String',
|
114
|
+
:'policy' => :'Policy357Enum'
|
88
115
|
}
|
89
116
|
end
|
90
117
|
|
@@ -97,7 +124,7 @@ module PulpcoreClient
|
|
97
124
|
:'client_key',
|
98
125
|
:'username',
|
99
126
|
:'password',
|
100
|
-
:'q_select'
|
127
|
+
:'q_select',
|
101
128
|
])
|
102
129
|
end
|
103
130
|
|
@@ -159,6 +186,10 @@ module PulpcoreClient
|
|
159
186
|
if attributes.key?(:'q_select')
|
160
187
|
self.q_select = attributes[:'q_select']
|
161
188
|
end
|
189
|
+
|
190
|
+
if attributes.key?(:'policy')
|
191
|
+
self.policy = attributes[:'policy']
|
192
|
+
end
|
162
193
|
end
|
163
194
|
|
164
195
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -338,7 +369,8 @@ module PulpcoreClient
|
|
338
369
|
tls_validation == o.tls_validation &&
|
339
370
|
username == o.username &&
|
340
371
|
password == o.password &&
|
341
|
-
q_select == o.q_select
|
372
|
+
q_select == o.q_select &&
|
373
|
+
policy == o.policy
|
342
374
|
end
|
343
375
|
|
344
376
|
# @see the `==` method
|
@@ -350,7 +382,7 @@ module PulpcoreClient
|
|
350
382
|
# Calculates hash code according to all attributes.
|
351
383
|
# @return [Integer] Hash code
|
352
384
|
def hash
|
353
|
-
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select].hash
|
385
|
+
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select, policy].hash
|
354
386
|
end
|
355
387
|
|
356
388
|
# Builds the object from hash
|
@@ -0,0 +1,41 @@
|
|
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
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module PulpcoreClient
|
17
|
+
class Policy357Enum
|
18
|
+
ALL = "all".freeze
|
19
|
+
LABELED = "labeled".freeze
|
20
|
+
NODELETE = "nodelete".freeze
|
21
|
+
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [ALL, LABELED, NODELETE].freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
return value if Policy357Enum.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #Policy357Enum"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -166,6 +166,10 @@ module PulpcoreClient
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
167
|
end
|
168
168
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
171
|
+
end
|
172
|
+
|
169
173
|
invalid_properties
|
170
174
|
end
|
171
175
|
|
@@ -174,9 +178,20 @@ module PulpcoreClient
|
|
174
178
|
def valid?
|
175
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
176
180
|
return false if @name.nil?
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
177
182
|
true
|
178
183
|
end
|
179
184
|
|
185
|
+
# Custom attribute writer method with validation
|
186
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
187
|
+
def retain_repo_versions=(retain_repo_versions)
|
188
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
189
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
190
|
+
end
|
191
|
+
|
192
|
+
@retain_repo_versions = retain_repo_versions
|
193
|
+
end
|
194
|
+
|
180
195
|
# Checks equality by comparing each attribute.
|
181
196
|
# @param [Object] Object to be compared
|
182
197
|
def ==(o)
|
@@ -96,6 +96,18 @@ module PulpcoreClient
|
|
96
96
|
def list_invalid_properties
|
97
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
98
98
|
invalid_properties = Array.new
|
99
|
+
if @total < 0
|
100
|
+
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @used < 0
|
104
|
+
invalid_properties.push('invalid value for "used", must be greater than or equal to 0.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if @free < 0
|
108
|
+
invalid_properties.push('invalid value for "free", must be greater than or equal to 0.')
|
109
|
+
end
|
110
|
+
|
99
111
|
invalid_properties
|
100
112
|
end
|
101
113
|
|
@@ -103,9 +115,42 @@ module PulpcoreClient
|
|
103
115
|
# @return true if the model is valid
|
104
116
|
def valid?
|
105
117
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
118
|
+
return false if @total < 0
|
119
|
+
return false if @used < 0
|
120
|
+
return false if @free < 0
|
106
121
|
true
|
107
122
|
end
|
108
123
|
|
124
|
+
# Custom attribute writer method with validation
|
125
|
+
# @param [Object] total Value to be assigned
|
126
|
+
def total=(total)
|
127
|
+
if !total.nil? && total < 0
|
128
|
+
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
129
|
+
end
|
130
|
+
|
131
|
+
@total = total
|
132
|
+
end
|
133
|
+
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] used Value to be assigned
|
136
|
+
def used=(used)
|
137
|
+
if !used.nil? && used < 0
|
138
|
+
fail ArgumentError, 'invalid value for "used", must be greater than or equal to 0.'
|
139
|
+
end
|
140
|
+
|
141
|
+
@used = used
|
142
|
+
end
|
143
|
+
|
144
|
+
# Custom attribute writer method with validation
|
145
|
+
# @param [Object] free Value to be assigned
|
146
|
+
def free=(free)
|
147
|
+
if !free.nil? && free < 0
|
148
|
+
fail ArgumentError, 'invalid value for "free", must be greater than or equal to 0.'
|
149
|
+
end
|
150
|
+
|
151
|
+
@free = free
|
152
|
+
end
|
153
|
+
|
109
154
|
# Checks equality by comparing each attribute.
|
110
155
|
# @param [Object] Object to be compared
|
111
156
|
def ==(o)
|
@@ -49,6 +49,31 @@ module PulpcoreClient
|
|
49
49
|
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
50
50
|
attr_accessor :q_select
|
51
51
|
|
52
|
+
# Policy for how replicate will manage the local objects within the domain. * `all` - Replicate manages ALL local objects within the domain. * `labeled` - Replicate will only manage the objects created from a previous replication, unlabled local objects will be untouched. * `nodelete` - Replicate will not delete any local object whether they were created by replication or not.
|
53
|
+
attr_accessor :policy
|
54
|
+
|
55
|
+
class EnumAttributeValidator
|
56
|
+
attr_reader :datatype
|
57
|
+
attr_reader :allowable_values
|
58
|
+
|
59
|
+
def initialize(datatype, allowable_values)
|
60
|
+
@allowable_values = allowable_values.map do |value|
|
61
|
+
case datatype.to_s
|
62
|
+
when /Integer/i
|
63
|
+
value.to_i
|
64
|
+
when /Float/i
|
65
|
+
value.to_f
|
66
|
+
else
|
67
|
+
value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def valid?(value)
|
73
|
+
!value || allowable_values.include?(value)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
52
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
78
|
def self.attribute_map
|
54
79
|
{
|
@@ -62,7 +87,8 @@ module PulpcoreClient
|
|
62
87
|
:'tls_validation' => :'tls_validation',
|
63
88
|
:'username' => :'username',
|
64
89
|
:'password' => :'password',
|
65
|
-
:'q_select' => :'q_select'
|
90
|
+
:'q_select' => :'q_select',
|
91
|
+
:'policy' => :'policy'
|
66
92
|
}
|
67
93
|
end
|
68
94
|
|
@@ -84,7 +110,8 @@ module PulpcoreClient
|
|
84
110
|
:'tls_validation' => :'Boolean',
|
85
111
|
:'username' => :'String',
|
86
112
|
:'password' => :'String',
|
87
|
-
:'q_select' => :'String'
|
113
|
+
:'q_select' => :'String',
|
114
|
+
:'policy' => :'Policy357Enum'
|
88
115
|
}
|
89
116
|
end
|
90
117
|
|
@@ -97,7 +124,7 @@ module PulpcoreClient
|
|
97
124
|
:'client_key',
|
98
125
|
:'username',
|
99
126
|
:'password',
|
100
|
-
:'q_select'
|
127
|
+
:'q_select',
|
101
128
|
])
|
102
129
|
end
|
103
130
|
|
@@ -165,6 +192,10 @@ module PulpcoreClient
|
|
165
192
|
if attributes.key?(:'q_select')
|
166
193
|
self.q_select = attributes[:'q_select']
|
167
194
|
end
|
195
|
+
|
196
|
+
if attributes.key?(:'policy')
|
197
|
+
self.policy = attributes[:'policy']
|
198
|
+
end
|
168
199
|
end
|
169
200
|
|
170
201
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -359,7 +390,8 @@ module PulpcoreClient
|
|
359
390
|
tls_validation == o.tls_validation &&
|
360
391
|
username == o.username &&
|
361
392
|
password == o.password &&
|
362
|
-
q_select == o.q_select
|
393
|
+
q_select == o.q_select &&
|
394
|
+
policy == o.policy
|
363
395
|
end
|
364
396
|
|
365
397
|
# @see the `==` method
|
@@ -371,7 +403,7 @@ module PulpcoreClient
|
|
371
403
|
# Calculates hash code according to all attributes.
|
372
404
|
# @return [Integer] Hash code
|
373
405
|
def hash
|
374
|
-
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select].hash
|
406
|
+
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select, policy].hash
|
375
407
|
end
|
376
408
|
|
377
409
|
# Builds the object from hash
|
@@ -57,6 +57,31 @@ module PulpcoreClient
|
|
57
57
|
# Timestamp of the last replication that occurred. Equals to 'null' if no replication task has been executed.
|
58
58
|
attr_accessor :last_replication
|
59
59
|
|
60
|
+
# Policy for how replicate will manage the local objects within the domain. * `all` - Replicate manages ALL local objects within the domain. * `labeled` - Replicate will only manage the objects created from a previous replication, unlabled local objects will be untouched. * `nodelete` - Replicate will not delete any local object whether they were created by replication or not.
|
61
|
+
attr_accessor :policy
|
62
|
+
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
60
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
86
|
def self.attribute_map
|
62
87
|
{
|
@@ -73,7 +98,8 @@ module PulpcoreClient
|
|
73
98
|
:'tls_validation' => :'tls_validation',
|
74
99
|
:'hidden_fields' => :'hidden_fields',
|
75
100
|
:'q_select' => :'q_select',
|
76
|
-
:'last_replication' => :'last_replication'
|
101
|
+
:'last_replication' => :'last_replication',
|
102
|
+
:'policy' => :'policy'
|
77
103
|
}
|
78
104
|
end
|
79
105
|
|
@@ -98,7 +124,8 @@ module PulpcoreClient
|
|
98
124
|
:'tls_validation' => :'Boolean',
|
99
125
|
:'hidden_fields' => :'Array<GenericRemoteResponseHiddenFieldsInner>',
|
100
126
|
:'q_select' => :'String',
|
101
|
-
:'last_replication' => :'Time'
|
127
|
+
:'last_replication' => :'Time',
|
128
|
+
:'policy' => :'Policy357Enum'
|
102
129
|
}
|
103
130
|
end
|
104
131
|
|
@@ -190,6 +217,10 @@ module PulpcoreClient
|
|
190
217
|
if attributes.key?(:'last_replication')
|
191
218
|
self.last_replication = attributes[:'last_replication']
|
192
219
|
end
|
220
|
+
|
221
|
+
if attributes.key?(:'policy')
|
222
|
+
self.policy = attributes[:'policy']
|
223
|
+
end
|
193
224
|
end
|
194
225
|
|
195
226
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -240,7 +271,8 @@ module PulpcoreClient
|
|
240
271
|
tls_validation == o.tls_validation &&
|
241
272
|
hidden_fields == o.hidden_fields &&
|
242
273
|
q_select == o.q_select &&
|
243
|
-
last_replication == o.last_replication
|
274
|
+
last_replication == o.last_replication &&
|
275
|
+
policy == o.policy
|
244
276
|
end
|
245
277
|
|
246
278
|
# @see the `==` method
|
@@ -252,7 +284,7 @@ module PulpcoreClient
|
|
252
284
|
# Calculates hash code according to all attributes.
|
253
285
|
# @return [Integer] Hash code
|
254
286
|
def hash
|
255
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, hidden_fields, q_select, last_replication].hash
|
287
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, hidden_fields, q_select, last_replication, policy].hash
|
256
288
|
end
|
257
289
|
|
258
290
|
# Builds the object from hash
|
data/lib/pulpcore_client.rb
CHANGED
@@ -43,6 +43,7 @@ require 'pulpcore_client/models/filesystem_exporter'
|
|
43
43
|
require 'pulpcore_client/models/filesystem_exporter_response'
|
44
44
|
require 'pulpcore_client/models/generic_remote_response'
|
45
45
|
require 'pulpcore_client/models/generic_remote_response_hidden_fields_inner'
|
46
|
+
require 'pulpcore_client/models/generic_remote_response_policy_enum'
|
46
47
|
require 'pulpcore_client/models/group'
|
47
48
|
require 'pulpcore_client/models/group_progress_report_response'
|
48
49
|
require 'pulpcore_client/models/group_response'
|
@@ -136,7 +137,7 @@ require 'pulpcore_client/models/patched_role'
|
|
136
137
|
require 'pulpcore_client/models/patched_task_cancel'
|
137
138
|
require 'pulpcore_client/models/patched_upstream_pulp'
|
138
139
|
require 'pulpcore_client/models/patched_user'
|
139
|
-
require 'pulpcore_client/models/
|
140
|
+
require 'pulpcore_client/models/policy357_enum'
|
140
141
|
require 'pulpcore_client/models/profile_artifact_response'
|
141
142
|
require 'pulpcore_client/models/progress_report_response'
|
142
143
|
require 'pulpcore_client/models/publication_response'
|
@@ -43,6 +43,7 @@ describe 'ContentApi' do
|
|
43
43
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
44
44
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
45
45
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
46
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
46
47
|
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
47
48
|
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
48
49
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|