pulp_ansible_client 0.19.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -32
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -1
- data/docs/AnsibleCollectionVersion.md +6 -6
- data/docs/AnsibleCollectionsApi.md +15 -9
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionVersionListResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +3 -1
- data/docs/ContentCollectionMarksApi.md +4 -2
- data/docs/ContentCollectionSignaturesApi.md +5 -3
- data/docs/ContentCollectionVersionsApi.md +7 -7
- data/docs/ContentNamespacesApi.md +19 -1
- data/docs/ContentRolesApi.md +3 -1
- data/docs/DistributionsAnsibleApi.md +136 -10
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +24 -24
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +135 -9
- data/docs/RemotesGitApi.md +135 -9
- data/docs/RemotesRoleApi.md +135 -9
- data/docs/RepositoriesAnsibleApi.md +136 -10
- data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +163 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +195 -195
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +24 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +186 -186
- data/lib/pulp_ansible_client/models/{progress_report_response.rb → set_label.rb} +52 -59
- data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +24 -0
- data/lib/pulp_ansible_client/models/{task.rb → unset_label.rb} +31 -55
- data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -3
- data/spec/api/ansible_collections_api_spec.rb +5 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
- data/spec/api/content_collection_marks_api_spec.rb +1 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/api/content_namespaces_api_spec.rb +9 -0
- data/spec/api/content_roles_api_spec.rb +1 -0
- data/spec/api/distributions_ansible_api_spec.rb +35 -0
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
- data/spec/api/remotes_collection_api_spec.rb +35 -0
- data/spec/api/remotes_git_api_spec.rb +35 -0
- data/spec/api/remotes_role_api_spec.rb +35 -0
- data/spec/api/repositories_ansible_api_spec.rb +35 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/{task_spec.rb → set_label_spec.rb} +8 -8
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +147 -143
- data/docs/ProgressReportResponse.md +0 -27
- data/docs/Task.md +0 -19
- data/docs/TaskResponse.md +0 -47
- data/lib/pulp_ansible_client/models/task_response.rb +0 -376
- data/spec/models/progress_report_response_spec.rb +0 -71
- data/spec/models/task_response_spec.rb +0 -131
@@ -19,6 +19,7 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param ansible_git_remote_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpAnsibleClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param ansible_git_remote_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -220,7 +222,11 @@ module PulpAnsibleClient
|
|
220
222
|
# @option opts [String] :name Filter results where name matches value
|
221
223
|
# @option opts [String] :name__contains Filter results where name contains value
|
222
224
|
# @option opts [String] :name__icontains Filter results where name contains value
|
225
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
223
226
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
227
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
228
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
229
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
224
230
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
232
|
# @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)
|
@@ -233,6 +239,7 @@ module PulpAnsibleClient
|
|
233
239
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
234
240
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
235
241
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
242
|
+
# @option opts [String] :q
|
236
243
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
237
244
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
238
245
|
# @return [PaginatedansibleGitRemoteResponseList]
|
@@ -248,7 +255,11 @@ module PulpAnsibleClient
|
|
248
255
|
# @option opts [String] :name Filter results where name matches value
|
249
256
|
# @option opts [String] :name__contains Filter results where name contains value
|
250
257
|
# @option opts [String] :name__icontains Filter results where name contains value
|
258
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
251
259
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
260
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
261
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
262
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
252
263
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
253
264
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
265
|
# @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)
|
@@ -261,6 +272,7 @@ module PulpAnsibleClient
|
|
261
272
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
262
273
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
263
274
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
275
|
+
# @option opts [String] :q
|
264
276
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
265
277
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
266
278
|
# @return [Array<(PaginatedansibleGitRemoteResponseList, Integer, Hash)>] PaginatedansibleGitRemoteResponseList data, response status code and response headers
|
@@ -281,7 +293,11 @@ module PulpAnsibleClient
|
|
281
293
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
282
294
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
283
295
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
296
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
284
297
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
298
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
299
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
300
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
285
301
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
286
302
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
287
303
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -294,6 +310,7 @@ module PulpAnsibleClient
|
|
294
310
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
295
311
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
296
312
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
313
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
297
314
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
298
315
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
299
316
|
|
@@ -330,6 +347,7 @@ module PulpAnsibleClient
|
|
330
347
|
return data, status_code, headers
|
331
348
|
end
|
332
349
|
|
350
|
+
# List roles
|
333
351
|
# List roles assigned to this object.
|
334
352
|
# @param ansible_git_remote_href [String]
|
335
353
|
# @param [Hash] opts the optional parameters
|
@@ -341,6 +359,7 @@ module PulpAnsibleClient
|
|
341
359
|
data
|
342
360
|
end
|
343
361
|
|
362
|
+
# List roles
|
344
363
|
# List roles assigned to this object.
|
345
364
|
# @param ansible_git_remote_href [String]
|
346
365
|
# @param [Hash] opts the optional parameters
|
@@ -396,6 +415,7 @@ module PulpAnsibleClient
|
|
396
415
|
return data, status_code, headers
|
397
416
|
end
|
398
417
|
|
418
|
+
# List user permissions
|
399
419
|
# List permissions available to the current user on this object.
|
400
420
|
# @param ansible_git_remote_href [String]
|
401
421
|
# @param [Hash] opts the optional parameters
|
@@ -407,6 +427,7 @@ module PulpAnsibleClient
|
|
407
427
|
data
|
408
428
|
end
|
409
429
|
|
430
|
+
# List user permissions
|
410
431
|
# List permissions available to the current user on this object.
|
411
432
|
# @param ansible_git_remote_href [String]
|
412
433
|
# @param [Hash] opts the optional parameters
|
@@ -600,6 +621,7 @@ module PulpAnsibleClient
|
|
600
621
|
return data, status_code, headers
|
601
622
|
end
|
602
623
|
|
624
|
+
# Remove a role
|
603
625
|
# Remove a role for this object from users/groups.
|
604
626
|
# @param ansible_git_remote_href [String]
|
605
627
|
# @param nested_role [NestedRole]
|
@@ -610,6 +632,7 @@ module PulpAnsibleClient
|
|
610
632
|
data
|
611
633
|
end
|
612
634
|
|
635
|
+
# Remove a role
|
613
636
|
# Remove a role for this object from users/groups.
|
614
637
|
# @param ansible_git_remote_href [String]
|
615
638
|
# @param nested_role [NestedRole]
|
@@ -668,6 +691,146 @@ module PulpAnsibleClient
|
|
668
691
|
return data, status_code, headers
|
669
692
|
end
|
670
693
|
|
694
|
+
# Set a label
|
695
|
+
# Set a single pulp_label on the object to a specific value or null.
|
696
|
+
# @param ansible_git_remote_href [String]
|
697
|
+
# @param set_label [SetLabel]
|
698
|
+
# @param [Hash] opts the optional parameters
|
699
|
+
# @return [SetLabelResponse]
|
700
|
+
def set_label(ansible_git_remote_href, set_label, opts = {})
|
701
|
+
data, _status_code, _headers = set_label_with_http_info(ansible_git_remote_href, set_label, opts)
|
702
|
+
data
|
703
|
+
end
|
704
|
+
|
705
|
+
# Set a label
|
706
|
+
# Set a single pulp_label on the object to a specific value or null.
|
707
|
+
# @param ansible_git_remote_href [String]
|
708
|
+
# @param set_label [SetLabel]
|
709
|
+
# @param [Hash] opts the optional parameters
|
710
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
711
|
+
def set_label_with_http_info(ansible_git_remote_href, set_label, opts = {})
|
712
|
+
if @api_client.config.debugging
|
713
|
+
@api_client.config.logger.debug 'Calling API: RemotesGitApi.set_label ...'
|
714
|
+
end
|
715
|
+
# verify the required parameter 'ansible_git_remote_href' is set
|
716
|
+
if @api_client.config.client_side_validation && ansible_git_remote_href.nil?
|
717
|
+
fail ArgumentError, "Missing the required parameter 'ansible_git_remote_href' when calling RemotesGitApi.set_label"
|
718
|
+
end
|
719
|
+
# verify the required parameter 'set_label' is set
|
720
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
721
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesGitApi.set_label"
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '{ansible_git_remote_href}set_label/'.sub('{' + 'ansible_git_remote_href' + '}', CGI.escape(ansible_git_remote_href.to_s).gsub('%2F', '/'))
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
|
729
|
+
# header parameters
|
730
|
+
header_params = opts[:header_params] || {}
|
731
|
+
# HTTP header 'Accept' (if needed)
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
733
|
+
# HTTP header 'Content-Type'
|
734
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
735
|
+
|
736
|
+
# form parameters
|
737
|
+
form_params = opts[:form_params] || {}
|
738
|
+
|
739
|
+
# http body (model)
|
740
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
741
|
+
|
742
|
+
# return_type
|
743
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
744
|
+
|
745
|
+
# auth_names
|
746
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
747
|
+
|
748
|
+
new_options = opts.merge(
|
749
|
+
:header_params => header_params,
|
750
|
+
:query_params => query_params,
|
751
|
+
:form_params => form_params,
|
752
|
+
:body => post_body,
|
753
|
+
:auth_names => auth_names,
|
754
|
+
:return_type => return_type
|
755
|
+
)
|
756
|
+
|
757
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
758
|
+
if @api_client.config.debugging
|
759
|
+
@api_client.config.logger.debug "API called: RemotesGitApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
760
|
+
end
|
761
|
+
return data, status_code, headers
|
762
|
+
end
|
763
|
+
|
764
|
+
# Unset a label
|
765
|
+
# Unset a single pulp_label on the object.
|
766
|
+
# @param ansible_git_remote_href [String]
|
767
|
+
# @param unset_label [UnsetLabel]
|
768
|
+
# @param [Hash] opts the optional parameters
|
769
|
+
# @return [UnsetLabelResponse]
|
770
|
+
def unset_label(ansible_git_remote_href, unset_label, opts = {})
|
771
|
+
data, _status_code, _headers = unset_label_with_http_info(ansible_git_remote_href, unset_label, opts)
|
772
|
+
data
|
773
|
+
end
|
774
|
+
|
775
|
+
# Unset a label
|
776
|
+
# Unset a single pulp_label on the object.
|
777
|
+
# @param ansible_git_remote_href [String]
|
778
|
+
# @param unset_label [UnsetLabel]
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
781
|
+
def unset_label_with_http_info(ansible_git_remote_href, unset_label, opts = {})
|
782
|
+
if @api_client.config.debugging
|
783
|
+
@api_client.config.logger.debug 'Calling API: RemotesGitApi.unset_label ...'
|
784
|
+
end
|
785
|
+
# verify the required parameter 'ansible_git_remote_href' is set
|
786
|
+
if @api_client.config.client_side_validation && ansible_git_remote_href.nil?
|
787
|
+
fail ArgumentError, "Missing the required parameter 'ansible_git_remote_href' when calling RemotesGitApi.unset_label"
|
788
|
+
end
|
789
|
+
# verify the required parameter 'unset_label' is set
|
790
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
791
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesGitApi.unset_label"
|
792
|
+
end
|
793
|
+
# resource path
|
794
|
+
local_var_path = '{ansible_git_remote_href}unset_label/'.sub('{' + 'ansible_git_remote_href' + '}', CGI.escape(ansible_git_remote_href.to_s).gsub('%2F', '/'))
|
795
|
+
|
796
|
+
# query parameters
|
797
|
+
query_params = opts[:query_params] || {}
|
798
|
+
|
799
|
+
# header parameters
|
800
|
+
header_params = opts[:header_params] || {}
|
801
|
+
# HTTP header 'Accept' (if needed)
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
803
|
+
# HTTP header 'Content-Type'
|
804
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
805
|
+
|
806
|
+
# form parameters
|
807
|
+
form_params = opts[:form_params] || {}
|
808
|
+
|
809
|
+
# http body (model)
|
810
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
811
|
+
|
812
|
+
# return_type
|
813
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
814
|
+
|
815
|
+
# auth_names
|
816
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
817
|
+
|
818
|
+
new_options = opts.merge(
|
819
|
+
:header_params => header_params,
|
820
|
+
:query_params => query_params,
|
821
|
+
:form_params => form_params,
|
822
|
+
:body => post_body,
|
823
|
+
:auth_names => auth_names,
|
824
|
+
:return_type => return_type
|
825
|
+
)
|
826
|
+
|
827
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
828
|
+
if @api_client.config.debugging
|
829
|
+
@api_client.config.logger.debug "API called: RemotesGitApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
830
|
+
end
|
831
|
+
return data, status_code, headers
|
832
|
+
end
|
833
|
+
|
671
834
|
# Update a git remote
|
672
835
|
# Trigger an asynchronous update task
|
673
836
|
# @param ansible_git_remote_href [String]
|
@@ -19,6 +19,7 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param ansible_role_remote_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpAnsibleClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param ansible_role_remote_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -220,7 +222,11 @@ module PulpAnsibleClient
|
|
220
222
|
# @option opts [String] :name Filter results where name matches value
|
221
223
|
# @option opts [String] :name__contains Filter results where name contains value
|
222
224
|
# @option opts [String] :name__icontains Filter results where name contains value
|
225
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
223
226
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
227
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
228
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
229
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
224
230
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
225
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
232
|
# @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)
|
@@ -233,6 +239,7 @@ module PulpAnsibleClient
|
|
233
239
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
234
240
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
235
241
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
242
|
+
# @option opts [String] :q
|
236
243
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
237
244
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
238
245
|
# @return [PaginatedansibleRoleRemoteResponseList]
|
@@ -248,7 +255,11 @@ module PulpAnsibleClient
|
|
248
255
|
# @option opts [String] :name Filter results where name matches value
|
249
256
|
# @option opts [String] :name__contains Filter results where name contains value
|
250
257
|
# @option opts [String] :name__icontains Filter results where name contains value
|
258
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
251
259
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
260
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
261
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
262
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
252
263
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
253
264
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
265
|
# @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)
|
@@ -261,6 +272,7 @@ module PulpAnsibleClient
|
|
261
272
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
262
273
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
263
274
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
275
|
+
# @option opts [String] :q
|
264
276
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
265
277
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
266
278
|
# @return [Array<(PaginatedansibleRoleRemoteResponseList, Integer, Hash)>] PaginatedansibleRoleRemoteResponseList data, response status code and response headers
|
@@ -281,7 +293,11 @@ module PulpAnsibleClient
|
|
281
293
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
282
294
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
283
295
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
296
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
284
297
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
298
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
299
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
300
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
285
301
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
286
302
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
287
303
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -294,6 +310,7 @@ module PulpAnsibleClient
|
|
294
310
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
295
311
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
296
312
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
313
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
297
314
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
298
315
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
299
316
|
|
@@ -330,6 +347,7 @@ module PulpAnsibleClient
|
|
330
347
|
return data, status_code, headers
|
331
348
|
end
|
332
349
|
|
350
|
+
# List roles
|
333
351
|
# List roles assigned to this object.
|
334
352
|
# @param ansible_role_remote_href [String]
|
335
353
|
# @param [Hash] opts the optional parameters
|
@@ -341,6 +359,7 @@ module PulpAnsibleClient
|
|
341
359
|
data
|
342
360
|
end
|
343
361
|
|
362
|
+
# List roles
|
344
363
|
# List roles assigned to this object.
|
345
364
|
# @param ansible_role_remote_href [String]
|
346
365
|
# @param [Hash] opts the optional parameters
|
@@ -396,6 +415,7 @@ module PulpAnsibleClient
|
|
396
415
|
return data, status_code, headers
|
397
416
|
end
|
398
417
|
|
418
|
+
# List user permissions
|
399
419
|
# List permissions available to the current user on this object.
|
400
420
|
# @param ansible_role_remote_href [String]
|
401
421
|
# @param [Hash] opts the optional parameters
|
@@ -407,6 +427,7 @@ module PulpAnsibleClient
|
|
407
427
|
data
|
408
428
|
end
|
409
429
|
|
430
|
+
# List user permissions
|
410
431
|
# List permissions available to the current user on this object.
|
411
432
|
# @param ansible_role_remote_href [String]
|
412
433
|
# @param [Hash] opts the optional parameters
|
@@ -600,6 +621,7 @@ module PulpAnsibleClient
|
|
600
621
|
return data, status_code, headers
|
601
622
|
end
|
602
623
|
|
624
|
+
# Remove a role
|
603
625
|
# Remove a role for this object from users/groups.
|
604
626
|
# @param ansible_role_remote_href [String]
|
605
627
|
# @param nested_role [NestedRole]
|
@@ -610,6 +632,7 @@ module PulpAnsibleClient
|
|
610
632
|
data
|
611
633
|
end
|
612
634
|
|
635
|
+
# Remove a role
|
613
636
|
# Remove a role for this object from users/groups.
|
614
637
|
# @param ansible_role_remote_href [String]
|
615
638
|
# @param nested_role [NestedRole]
|
@@ -668,6 +691,146 @@ module PulpAnsibleClient
|
|
668
691
|
return data, status_code, headers
|
669
692
|
end
|
670
693
|
|
694
|
+
# Set a label
|
695
|
+
# Set a single pulp_label on the object to a specific value or null.
|
696
|
+
# @param ansible_role_remote_href [String]
|
697
|
+
# @param set_label [SetLabel]
|
698
|
+
# @param [Hash] opts the optional parameters
|
699
|
+
# @return [SetLabelResponse]
|
700
|
+
def set_label(ansible_role_remote_href, set_label, opts = {})
|
701
|
+
data, _status_code, _headers = set_label_with_http_info(ansible_role_remote_href, set_label, opts)
|
702
|
+
data
|
703
|
+
end
|
704
|
+
|
705
|
+
# Set a label
|
706
|
+
# Set a single pulp_label on the object to a specific value or null.
|
707
|
+
# @param ansible_role_remote_href [String]
|
708
|
+
# @param set_label [SetLabel]
|
709
|
+
# @param [Hash] opts the optional parameters
|
710
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
711
|
+
def set_label_with_http_info(ansible_role_remote_href, set_label, opts = {})
|
712
|
+
if @api_client.config.debugging
|
713
|
+
@api_client.config.logger.debug 'Calling API: RemotesRoleApi.set_label ...'
|
714
|
+
end
|
715
|
+
# verify the required parameter 'ansible_role_remote_href' is set
|
716
|
+
if @api_client.config.client_side_validation && ansible_role_remote_href.nil?
|
717
|
+
fail ArgumentError, "Missing the required parameter 'ansible_role_remote_href' when calling RemotesRoleApi.set_label"
|
718
|
+
end
|
719
|
+
# verify the required parameter 'set_label' is set
|
720
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
721
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesRoleApi.set_label"
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '{ansible_role_remote_href}set_label/'.sub('{' + 'ansible_role_remote_href' + '}', CGI.escape(ansible_role_remote_href.to_s).gsub('%2F', '/'))
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
|
729
|
+
# header parameters
|
730
|
+
header_params = opts[:header_params] || {}
|
731
|
+
# HTTP header 'Accept' (if needed)
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
733
|
+
# HTTP header 'Content-Type'
|
734
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
735
|
+
|
736
|
+
# form parameters
|
737
|
+
form_params = opts[:form_params] || {}
|
738
|
+
|
739
|
+
# http body (model)
|
740
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
741
|
+
|
742
|
+
# return_type
|
743
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
744
|
+
|
745
|
+
# auth_names
|
746
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
747
|
+
|
748
|
+
new_options = opts.merge(
|
749
|
+
:header_params => header_params,
|
750
|
+
:query_params => query_params,
|
751
|
+
:form_params => form_params,
|
752
|
+
:body => post_body,
|
753
|
+
:auth_names => auth_names,
|
754
|
+
:return_type => return_type
|
755
|
+
)
|
756
|
+
|
757
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
758
|
+
if @api_client.config.debugging
|
759
|
+
@api_client.config.logger.debug "API called: RemotesRoleApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
760
|
+
end
|
761
|
+
return data, status_code, headers
|
762
|
+
end
|
763
|
+
|
764
|
+
# Unset a label
|
765
|
+
# Unset a single pulp_label on the object.
|
766
|
+
# @param ansible_role_remote_href [String]
|
767
|
+
# @param unset_label [UnsetLabel]
|
768
|
+
# @param [Hash] opts the optional parameters
|
769
|
+
# @return [UnsetLabelResponse]
|
770
|
+
def unset_label(ansible_role_remote_href, unset_label, opts = {})
|
771
|
+
data, _status_code, _headers = unset_label_with_http_info(ansible_role_remote_href, unset_label, opts)
|
772
|
+
data
|
773
|
+
end
|
774
|
+
|
775
|
+
# Unset a label
|
776
|
+
# Unset a single pulp_label on the object.
|
777
|
+
# @param ansible_role_remote_href [String]
|
778
|
+
# @param unset_label [UnsetLabel]
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
781
|
+
def unset_label_with_http_info(ansible_role_remote_href, unset_label, opts = {})
|
782
|
+
if @api_client.config.debugging
|
783
|
+
@api_client.config.logger.debug 'Calling API: RemotesRoleApi.unset_label ...'
|
784
|
+
end
|
785
|
+
# verify the required parameter 'ansible_role_remote_href' is set
|
786
|
+
if @api_client.config.client_side_validation && ansible_role_remote_href.nil?
|
787
|
+
fail ArgumentError, "Missing the required parameter 'ansible_role_remote_href' when calling RemotesRoleApi.unset_label"
|
788
|
+
end
|
789
|
+
# verify the required parameter 'unset_label' is set
|
790
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
791
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesRoleApi.unset_label"
|
792
|
+
end
|
793
|
+
# resource path
|
794
|
+
local_var_path = '{ansible_role_remote_href}unset_label/'.sub('{' + 'ansible_role_remote_href' + '}', CGI.escape(ansible_role_remote_href.to_s).gsub('%2F', '/'))
|
795
|
+
|
796
|
+
# query parameters
|
797
|
+
query_params = opts[:query_params] || {}
|
798
|
+
|
799
|
+
# header parameters
|
800
|
+
header_params = opts[:header_params] || {}
|
801
|
+
# HTTP header 'Accept' (if needed)
|
802
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
803
|
+
# HTTP header 'Content-Type'
|
804
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
805
|
+
|
806
|
+
# form parameters
|
807
|
+
form_params = opts[:form_params] || {}
|
808
|
+
|
809
|
+
# http body (model)
|
810
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
811
|
+
|
812
|
+
# return_type
|
813
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
814
|
+
|
815
|
+
# auth_names
|
816
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
817
|
+
|
818
|
+
new_options = opts.merge(
|
819
|
+
:header_params => header_params,
|
820
|
+
:query_params => query_params,
|
821
|
+
:form_params => form_params,
|
822
|
+
:body => post_body,
|
823
|
+
:auth_names => auth_names,
|
824
|
+
:return_type => return_type
|
825
|
+
)
|
826
|
+
|
827
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
828
|
+
if @api_client.config.debugging
|
829
|
+
@api_client.config.logger.debug "API called: RemotesRoleApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
830
|
+
end
|
831
|
+
return data, status_code, headers
|
832
|
+
end
|
833
|
+
|
671
834
|
# Update a role remote
|
672
835
|
# Trigger an asynchronous update task
|
673
836
|
# @param ansible_role_remote_href [String]
|