pulp_rpm_client 3.22.3 → 3.22.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -29
- data/docs/AcsRpmApi.md +19 -9
- data/docs/ContentAdvisoriesApi.md +3 -1
- data/docs/ContentDistributionTreesApi.md +3 -1
- data/docs/ContentModulemdDefaultsApi.md +3 -1
- data/docs/ContentModulemdObsoletesApi.md +3 -1
- data/docs/ContentModulemdsApi.md +3 -1
- data/docs/ContentPackagecategoriesApi.md +3 -1
- data/docs/ContentPackageenvironmentsApi.md +3 -1
- data/docs/ContentPackagegroupsApi.md +3 -1
- data/docs/ContentPackagelangpacksApi.md +3 -1
- data/docs/ContentPackagesApi.md +3 -1
- data/docs/ContentRepoMetadataFilesApi.md +3 -1
- data/docs/DistributionsRpmApi.md +132 -10
- data/docs/PublicationsRpmApi.md +15 -9
- data/docs/RemotesRpmApi.md +131 -9
- data/docs/RemotesUlnApi.md +131 -9
- data/docs/RepositoriesRpmApi.md +132 -10
- data/docs/RepositoriesRpmVersionsApi.md +3 -1
- data/docs/RpmCompsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +17 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -0
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/set_label.rb +252 -0
- data/lib/pulp_rpm_client/models/set_label_response.rb +243 -0
- data/lib/pulp_rpm_client/models/unset_label.rb +242 -0
- data/lib/pulp_rpm_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +7 -0
- data/spec/api/content_advisories_api_spec.rb +1 -0
- data/spec/api/content_distribution_trees_api_spec.rb +1 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -0
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -0
- data/spec/api/content_modulemds_api_spec.rb +1 -0
- data/spec/api/content_packagecategories_api_spec.rb +1 -0
- data/spec/api/content_packageenvironments_api_spec.rb +1 -0
- data/spec/api/content_packagegroups_api_spec.rb +1 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -0
- data/spec/api/distributions_rpm_api_spec.rb +33 -0
- data/spec/api/publications_rpm_api_spec.rb +5 -0
- data/spec/api/remotes_rpm_api_spec.rb +33 -0
- data/spec/api/remotes_uln_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +97 -81
@@ -33,6 +33,7 @@ describe 'DistributionsRpmApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param rpm_rpm_distribution_href
|
38
39
|
# @param nested_role
|
@@ -80,13 +81,16 @@ describe 'DistributionsRpmApi' do
|
|
80
81
|
# @option opts [String] :name Filter results where name matches value
|
81
82
|
# @option opts [String] :name__contains Filter results where name contains value
|
82
83
|
# @option opts [String] :name__icontains Filter results where name contains value
|
84
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
83
85
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
86
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
84
87
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
85
88
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
86
89
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
87
90
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
88
91
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
89
92
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
93
|
+
# @option opts [String] :q
|
90
94
|
# @option opts [String] :repository Filter results where repository matches value
|
91
95
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
92
96
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -100,6 +104,7 @@ describe 'DistributionsRpmApi' do
|
|
100
104
|
end
|
101
105
|
|
102
106
|
# unit tests for list_roles
|
107
|
+
# List roles
|
103
108
|
# List roles assigned to this object.
|
104
109
|
# @param rpm_rpm_distribution_href
|
105
110
|
# @param [Hash] opts the optional parameters
|
@@ -113,6 +118,7 @@ describe 'DistributionsRpmApi' do
|
|
113
118
|
end
|
114
119
|
|
115
120
|
# unit tests for my_permissions
|
121
|
+
# List user permissions
|
116
122
|
# List permissions available to the current user on this object.
|
117
123
|
# @param rpm_rpm_distribution_href
|
118
124
|
# @param [Hash] opts the optional parameters
|
@@ -153,6 +159,7 @@ describe 'DistributionsRpmApi' do
|
|
153
159
|
end
|
154
160
|
|
155
161
|
# unit tests for remove_role
|
162
|
+
# Remove a role
|
156
163
|
# Remove a role for this object from users/groups.
|
157
164
|
# @param rpm_rpm_distribution_href
|
158
165
|
# @param nested_role
|
@@ -164,6 +171,32 @@ describe 'DistributionsRpmApi' do
|
|
164
171
|
end
|
165
172
|
end
|
166
173
|
|
174
|
+
# unit tests for set_label
|
175
|
+
# Set a label
|
176
|
+
# Set a single pulp_label on the object to a specific value or null.
|
177
|
+
# @param rpm_rpm_distribution_href
|
178
|
+
# @param set_label
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @return [SetLabelResponse]
|
181
|
+
describe 'set_label test' do
|
182
|
+
it 'should work' do
|
183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# unit tests for unset_label
|
188
|
+
# Unset a label
|
189
|
+
# Unset a single pulp_label on the object.
|
190
|
+
# @param rpm_rpm_distribution_href
|
191
|
+
# @param unset_label
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @return [UnsetLabelResponse]
|
194
|
+
describe 'unset_label test' do
|
195
|
+
it 'should work' do
|
196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
167
200
|
# unit tests for update
|
168
201
|
# Update a rpm distribution
|
169
202
|
# Trigger an asynchronous update task
|
@@ -33,6 +33,7 @@ describe 'PublicationsRpmApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param rpm_rpm_publication_href
|
38
39
|
# @param nested_role
|
@@ -85,6 +86,7 @@ describe 'PublicationsRpmApi' do
|
|
85
86
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
86
87
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
87
88
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
89
|
+
# @option opts [String] :q
|
88
90
|
# @option opts [String] :repository Repository referenced by HREF
|
89
91
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
90
92
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -97,6 +99,7 @@ describe 'PublicationsRpmApi' do
|
|
97
99
|
end
|
98
100
|
|
99
101
|
# unit tests for list_roles
|
102
|
+
# List roles
|
100
103
|
# List roles assigned to this object.
|
101
104
|
# @param rpm_rpm_publication_href
|
102
105
|
# @param [Hash] opts the optional parameters
|
@@ -110,6 +113,7 @@ describe 'PublicationsRpmApi' do
|
|
110
113
|
end
|
111
114
|
|
112
115
|
# unit tests for my_permissions
|
116
|
+
# List user permissions
|
113
117
|
# List permissions available to the current user on this object.
|
114
118
|
# @param rpm_rpm_publication_href
|
115
119
|
# @param [Hash] opts the optional parameters
|
@@ -137,6 +141,7 @@ describe 'PublicationsRpmApi' do
|
|
137
141
|
end
|
138
142
|
|
139
143
|
# unit tests for remove_role
|
144
|
+
# Remove a role
|
140
145
|
# Remove a role for this object from users/groups.
|
141
146
|
# @param rpm_rpm_publication_href
|
142
147
|
# @param nested_role
|
@@ -33,6 +33,7 @@ describe 'RemotesRpmApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param rpm_rpm_remote_href
|
38
39
|
# @param nested_role
|
@@ -76,7 +77,9 @@ describe 'RemotesRpmApi' do
|
|
76
77
|
# @option opts [String] :name Filter results where name matches value
|
77
78
|
# @option opts [String] :name__contains Filter results where name contains value
|
78
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
80
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
79
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
82
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
80
83
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
81
84
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
82
85
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -89,6 +92,7 @@ describe 'RemotesRpmApi' do
|
|
89
92
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
90
93
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
91
94
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
95
|
+
# @option opts [String] :q
|
92
96
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
93
97
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
94
98
|
# @return [PaginatedrpmRpmRemoteResponseList]
|
@@ -99,6 +103,7 @@ describe 'RemotesRpmApi' do
|
|
99
103
|
end
|
100
104
|
|
101
105
|
# unit tests for list_roles
|
106
|
+
# List roles
|
102
107
|
# List roles assigned to this object.
|
103
108
|
# @param rpm_rpm_remote_href
|
104
109
|
# @param [Hash] opts the optional parameters
|
@@ -112,6 +117,7 @@ describe 'RemotesRpmApi' do
|
|
112
117
|
end
|
113
118
|
|
114
119
|
# unit tests for my_permissions
|
120
|
+
# List user permissions
|
115
121
|
# List permissions available to the current user on this object.
|
116
122
|
# @param rpm_rpm_remote_href
|
117
123
|
# @param [Hash] opts the optional parameters
|
@@ -152,6 +158,7 @@ describe 'RemotesRpmApi' do
|
|
152
158
|
end
|
153
159
|
|
154
160
|
# unit tests for remove_role
|
161
|
+
# Remove a role
|
155
162
|
# Remove a role for this object from users/groups.
|
156
163
|
# @param rpm_rpm_remote_href
|
157
164
|
# @param nested_role
|
@@ -163,6 +170,32 @@ describe 'RemotesRpmApi' do
|
|
163
170
|
end
|
164
171
|
end
|
165
172
|
|
173
|
+
# unit tests for set_label
|
174
|
+
# Set a label
|
175
|
+
# Set a single pulp_label on the object to a specific value or null.
|
176
|
+
# @param rpm_rpm_remote_href
|
177
|
+
# @param set_label
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [SetLabelResponse]
|
180
|
+
describe 'set_label test' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# unit tests for unset_label
|
187
|
+
# Unset a label
|
188
|
+
# Unset a single pulp_label on the object.
|
189
|
+
# @param rpm_rpm_remote_href
|
190
|
+
# @param unset_label
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @return [UnsetLabelResponse]
|
193
|
+
describe 'unset_label test' do
|
194
|
+
it 'should work' do
|
195
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
166
199
|
# unit tests for update
|
167
200
|
# Update a rpm remote
|
168
201
|
# Trigger an asynchronous update task
|
@@ -33,6 +33,7 @@ describe 'RemotesUlnApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param rpm_uln_remote_href
|
38
39
|
# @param nested_role
|
@@ -76,7 +77,9 @@ describe 'RemotesUlnApi' do
|
|
76
77
|
# @option opts [String] :name Filter results where name matches value
|
77
78
|
# @option opts [String] :name__contains Filter results where name contains value
|
78
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
80
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
79
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
82
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
80
83
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
81
84
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
82
85
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -89,6 +92,7 @@ describe 'RemotesUlnApi' do
|
|
89
92
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
90
93
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
91
94
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
95
|
+
# @option opts [String] :q
|
92
96
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
93
97
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
94
98
|
# @return [PaginatedrpmUlnRemoteResponseList]
|
@@ -99,6 +103,7 @@ describe 'RemotesUlnApi' do
|
|
99
103
|
end
|
100
104
|
|
101
105
|
# unit tests for list_roles
|
106
|
+
# List roles
|
102
107
|
# List roles assigned to this object.
|
103
108
|
# @param rpm_uln_remote_href
|
104
109
|
# @param [Hash] opts the optional parameters
|
@@ -112,6 +117,7 @@ describe 'RemotesUlnApi' do
|
|
112
117
|
end
|
113
118
|
|
114
119
|
# unit tests for my_permissions
|
120
|
+
# List user permissions
|
115
121
|
# List permissions available to the current user on this object.
|
116
122
|
# @param rpm_uln_remote_href
|
117
123
|
# @param [Hash] opts the optional parameters
|
@@ -152,6 +158,7 @@ describe 'RemotesUlnApi' do
|
|
152
158
|
end
|
153
159
|
|
154
160
|
# unit tests for remove_role
|
161
|
+
# Remove a role
|
155
162
|
# Remove a role for this object from users/groups.
|
156
163
|
# @param rpm_uln_remote_href
|
157
164
|
# @param nested_role
|
@@ -163,6 +170,32 @@ describe 'RemotesUlnApi' do
|
|
163
170
|
end
|
164
171
|
end
|
165
172
|
|
173
|
+
# unit tests for set_label
|
174
|
+
# Set a label
|
175
|
+
# Set a single pulp_label on the object to a specific value or null.
|
176
|
+
# @param rpm_uln_remote_href
|
177
|
+
# @param set_label
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [SetLabelResponse]
|
180
|
+
describe 'set_label test' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# unit tests for unset_label
|
187
|
+
# Unset a label
|
188
|
+
# Unset a single pulp_label on the object.
|
189
|
+
# @param rpm_uln_remote_href
|
190
|
+
# @param unset_label
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @return [UnsetLabelResponse]
|
193
|
+
describe 'unset_label test' do
|
194
|
+
it 'should work' do
|
195
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
166
199
|
# unit tests for update
|
167
200
|
# Update an uln remote
|
168
201
|
# Trigger an asynchronous update task
|
@@ -33,6 +33,7 @@ describe 'RepositoriesRpmApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for add_role
|
36
|
+
# Add a role
|
36
37
|
# Add a role for this object to users/groups.
|
37
38
|
# @param rpm_rpm_repository_href
|
38
39
|
# @param nested_role
|
@@ -77,13 +78,16 @@ describe 'RepositoriesRpmApi' do
|
|
77
78
|
# @option opts [String] :name Filter results where name matches value
|
78
79
|
# @option opts [String] :name__contains Filter results where name contains value
|
79
80
|
# @option opts [String] :name__icontains Filter results where name contains value
|
81
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
80
82
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
83
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
81
84
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
82
85
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
83
86
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
84
87
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
85
88
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
86
89
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
90
|
+
# @option opts [String] :q
|
87
91
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
88
92
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
89
93
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -104,6 +108,7 @@ describe 'RepositoriesRpmApi' do
|
|
104
108
|
end
|
105
109
|
|
106
110
|
# unit tests for list_roles
|
111
|
+
# List roles
|
107
112
|
# List roles assigned to this object.
|
108
113
|
# @param rpm_rpm_repository_href
|
109
114
|
# @param [Hash] opts the optional parameters
|
@@ -130,6 +135,7 @@ describe 'RepositoriesRpmApi' do
|
|
130
135
|
end
|
131
136
|
|
132
137
|
# unit tests for my_permissions
|
138
|
+
# List user permissions
|
133
139
|
# List permissions available to the current user on this object.
|
134
140
|
# @param rpm_rpm_repository_href
|
135
141
|
# @param [Hash] opts the optional parameters
|
@@ -170,6 +176,7 @@ describe 'RepositoriesRpmApi' do
|
|
170
176
|
end
|
171
177
|
|
172
178
|
# unit tests for remove_role
|
179
|
+
# Remove a role
|
173
180
|
# Remove a role for this object from users/groups.
|
174
181
|
# @param rpm_rpm_repository_href
|
175
182
|
# @param nested_role
|
@@ -181,6 +188,19 @@ describe 'RepositoriesRpmApi' do
|
|
181
188
|
end
|
182
189
|
end
|
183
190
|
|
191
|
+
# unit tests for set_label
|
192
|
+
# Set a label
|
193
|
+
# Set a single pulp_label on the object to a specific value or null.
|
194
|
+
# @param rpm_rpm_repository_href
|
195
|
+
# @param set_label
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @return [SetLabelResponse]
|
198
|
+
describe 'set_label test' do
|
199
|
+
it 'should work' do
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
184
204
|
# unit tests for sync
|
185
205
|
# Sync from remote
|
186
206
|
# Trigger an asynchronous task to sync RPM content.
|
@@ -194,6 +214,19 @@ describe 'RepositoriesRpmApi' do
|
|
194
214
|
end
|
195
215
|
end
|
196
216
|
|
217
|
+
# unit tests for unset_label
|
218
|
+
# Unset a label
|
219
|
+
# Unset a single pulp_label on the object.
|
220
|
+
# @param rpm_rpm_repository_href
|
221
|
+
# @param unset_label
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [UnsetLabelResponse]
|
224
|
+
describe 'unset_label test' do
|
225
|
+
it 'should work' do
|
226
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
197
230
|
# unit tests for update
|
198
231
|
# Update a rpm repository
|
199
232
|
# Trigger an asynchronous update task
|
@@ -67,6 +67,7 @@ describe 'RepositoriesRpmVersionsApi' do
|
|
67
67
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
68
68
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
69
69
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
70
|
+
# @option opts [String] :q
|
70
71
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
71
72
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
72
73
|
# @return [PaginatedRepositoryVersionResponseList]
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpRpmClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# PulpRpmClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpRpmClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::SetLabelResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SetLabelResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::SetLabelResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SetLabelResponse' do
|
31
|
+
it 'should create an instance of SetLabelResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::SetLabelResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "key"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "value"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::SetLabel
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SetLabel' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::SetLabel.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SetLabel' do
|
31
|
+
it 'should create an instance of SetLabel' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::SetLabel)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "key"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "value"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::UnsetLabelResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UnsetLabelResponse' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::UnsetLabelResponse.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UnsetLabelResponse' do
|
31
|
+
it 'should create an instance of UnsetLabelResponse' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::UnsetLabelResponse)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "key"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "value"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -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
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::UnsetLabel
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UnsetLabel' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::UnsetLabel.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UnsetLabel' do
|
31
|
+
it 'should create an instance of UnsetLabel' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::UnsetLabel)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "key"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|