pulp_maven_client 0.24.0 → 0.25.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 +26 -4
- data/docs/ContentPackageApi.md +351 -0
- data/docs/DistributionsMavenApi.md +312 -0
- data/docs/MavenMavenPackageResponse.md +48 -0
- data/docs/MyPermissionsResponse.md +18 -0
- data/docs/NestedRole.md +22 -0
- data/docs/NestedRoleResponse.md +22 -0
- data/docs/ObjectRolesResponse.md +18 -0
- data/docs/PaginatedmavenMavenPackageResponseList.md +24 -0
- data/docs/RemotesMavenApi.md +312 -0
- data/docs/RepositoriesMavenApi.md +315 -3
- data/lib/pulp_maven_client/api/content_package_api.rb +369 -0
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +298 -0
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +298 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +304 -6
- data/lib/pulp_maven_client/models/maven_maven_package_response.rb +371 -0
- data/lib/pulp_maven_client/models/my_permissions_response.rb +223 -0
- data/lib/pulp_maven_client/models/nested_role.rb +263 -0
- data/lib/pulp_maven_client/models/nested_role_response.rb +244 -0
- data/lib/pulp_maven_client/models/object_roles_response.rb +223 -0
- data/lib/pulp_maven_client/models/paginatedmaven_maven_package_response_list.rb +257 -0
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +7 -0
- data/spec/api/content_package_api_spec.rb +109 -0
- data/spec/api/distributions_maven_api_spec.rb +58 -0
- data/spec/api/remotes_maven_api_spec.rb +58 -0
- data/spec/api/repositories_maven_api_spec.rb +61 -3
- data/spec/models/maven_maven_package_response_spec.rb +126 -0
- data/spec/models/my_permissions_response_spec.rb +36 -0
- data/spec/models/nested_role_response_spec.rb +48 -0
- data/spec/models/nested_role_spec.rb +48 -0
- data/spec/models/object_roles_response_spec.rb +36 -0
- data/spec/models/paginatedmaven_maven_package_response_list_spec.rb +54 -0
- metadata +56 -28
|
@@ -96,8 +96,85 @@ module PulpMavenClient
|
|
|
96
96
|
return data, status_code, headers
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# Add a role
|
|
100
|
+
# Add a role for this object to users/groups.
|
|
101
|
+
# @param maven_maven_repository_href [String]
|
|
102
|
+
# @param nested_role [NestedRole]
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
105
|
+
# @return [NestedRoleResponse]
|
|
106
|
+
def add_role(maven_maven_repository_href, nested_role, opts = {})
|
|
107
|
+
data, _status_code, _headers = add_role_with_http_info(maven_maven_repository_href, nested_role, opts)
|
|
108
|
+
data
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Add a role
|
|
112
|
+
# Add a role for this object to users/groups.
|
|
113
|
+
# @param maven_maven_repository_href [String]
|
|
114
|
+
# @param nested_role [NestedRole]
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
117
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
118
|
+
def add_role_with_http_info(maven_maven_repository_href, nested_role, opts = {})
|
|
119
|
+
if @api_client.config.debugging
|
|
120
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.add_role ...'
|
|
121
|
+
end
|
|
122
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
123
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
124
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.add_role"
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'nested_role' is set
|
|
127
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesMavenApi.add_role"
|
|
129
|
+
end
|
|
130
|
+
# resource path
|
|
131
|
+
local_var_path = '{maven_maven_repository_href}add_role/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
132
|
+
|
|
133
|
+
# query parameters
|
|
134
|
+
query_params = opts[:query_params] || {}
|
|
135
|
+
|
|
136
|
+
# header parameters
|
|
137
|
+
header_params = opts[:header_params] || {}
|
|
138
|
+
# HTTP header 'Accept' (if needed)
|
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
140
|
+
# HTTP header 'Content-Type'
|
|
141
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
142
|
+
if !content_type.nil?
|
|
143
|
+
header_params['Content-Type'] = content_type
|
|
144
|
+
end
|
|
145
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
146
|
+
|
|
147
|
+
# form parameters
|
|
148
|
+
form_params = opts[:form_params] || {}
|
|
149
|
+
|
|
150
|
+
# http body (model)
|
|
151
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
|
152
|
+
|
|
153
|
+
# return_type
|
|
154
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
|
155
|
+
|
|
156
|
+
# auth_names
|
|
157
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
158
|
+
|
|
159
|
+
new_options = opts.merge(
|
|
160
|
+
:operation => :"RepositoriesMavenApi.add_role",
|
|
161
|
+
:header_params => header_params,
|
|
162
|
+
:query_params => query_params,
|
|
163
|
+
:form_params => form_params,
|
|
164
|
+
:body => post_body,
|
|
165
|
+
:auth_names => auth_names,
|
|
166
|
+
:return_type => return_type
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
170
|
+
if @api_client.config.debugging
|
|
171
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
172
|
+
end
|
|
173
|
+
return data, status_code, headers
|
|
174
|
+
end
|
|
175
|
+
|
|
99
176
|
# Create a maven repository
|
|
100
|
-
# A ViewSet for
|
|
177
|
+
# A ViewSet for MavenRepository.
|
|
101
178
|
# @param maven_maven_repository [MavenMavenRepository]
|
|
102
179
|
# @param [Hash] opts the optional parameters
|
|
103
180
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -108,7 +185,7 @@ module PulpMavenClient
|
|
|
108
185
|
end
|
|
109
186
|
|
|
110
187
|
# Create a maven repository
|
|
111
|
-
# A ViewSet for
|
|
188
|
+
# A ViewSet for MavenRepository.
|
|
112
189
|
# @param maven_maven_repository [MavenMavenRepository]
|
|
113
190
|
# @param [Hash] opts the optional parameters
|
|
114
191
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -234,7 +311,7 @@ module PulpMavenClient
|
|
|
234
311
|
end
|
|
235
312
|
|
|
236
313
|
# List maven repositorys
|
|
237
|
-
# A ViewSet for
|
|
314
|
+
# A ViewSet for MavenRepository.
|
|
238
315
|
# @param [Hash] opts the optional parameters
|
|
239
316
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
240
317
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
|
@@ -282,7 +359,7 @@ module PulpMavenClient
|
|
|
282
359
|
end
|
|
283
360
|
|
|
284
361
|
# List maven repositorys
|
|
285
|
-
# A ViewSet for
|
|
362
|
+
# A ViewSet for MavenRepository.
|
|
286
363
|
# @param [Hash] opts the optional parameters
|
|
287
364
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
288
365
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
|
@@ -411,6 +488,78 @@ module PulpMavenClient
|
|
|
411
488
|
return data, status_code, headers
|
|
412
489
|
end
|
|
413
490
|
|
|
491
|
+
# List roles
|
|
492
|
+
# List roles assigned to this object.
|
|
493
|
+
# @param maven_maven_repository_href [String]
|
|
494
|
+
# @param [Hash] opts the optional parameters
|
|
495
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
496
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
497
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
498
|
+
# @return [ObjectRolesResponse]
|
|
499
|
+
def list_roles(maven_maven_repository_href, opts = {})
|
|
500
|
+
data, _status_code, _headers = list_roles_with_http_info(maven_maven_repository_href, opts)
|
|
501
|
+
data
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# List roles
|
|
505
|
+
# List roles assigned to this object.
|
|
506
|
+
# @param maven_maven_repository_href [String]
|
|
507
|
+
# @param [Hash] opts the optional parameters
|
|
508
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
509
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
510
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
511
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
512
|
+
def list_roles_with_http_info(maven_maven_repository_href, opts = {})
|
|
513
|
+
if @api_client.config.debugging
|
|
514
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.list_roles ...'
|
|
515
|
+
end
|
|
516
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
517
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
518
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.list_roles"
|
|
519
|
+
end
|
|
520
|
+
# resource path
|
|
521
|
+
local_var_path = '{maven_maven_repository_href}list_roles/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
522
|
+
|
|
523
|
+
# query parameters
|
|
524
|
+
query_params = opts[:query_params] || {}
|
|
525
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
526
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
527
|
+
|
|
528
|
+
# header parameters
|
|
529
|
+
header_params = opts[:header_params] || {}
|
|
530
|
+
# HTTP header 'Accept' (if needed)
|
|
531
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
532
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
533
|
+
|
|
534
|
+
# form parameters
|
|
535
|
+
form_params = opts[:form_params] || {}
|
|
536
|
+
|
|
537
|
+
# http body (model)
|
|
538
|
+
post_body = opts[:debug_body]
|
|
539
|
+
|
|
540
|
+
# return_type
|
|
541
|
+
return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
|
|
542
|
+
|
|
543
|
+
# auth_names
|
|
544
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
545
|
+
|
|
546
|
+
new_options = opts.merge(
|
|
547
|
+
:operation => :"RepositoriesMavenApi.list_roles",
|
|
548
|
+
:header_params => header_params,
|
|
549
|
+
:query_params => query_params,
|
|
550
|
+
:form_params => form_params,
|
|
551
|
+
:body => post_body,
|
|
552
|
+
:auth_names => auth_names,
|
|
553
|
+
:return_type => return_type
|
|
554
|
+
)
|
|
555
|
+
|
|
556
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
557
|
+
if @api_client.config.debugging
|
|
558
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
559
|
+
end
|
|
560
|
+
return data, status_code, headers
|
|
561
|
+
end
|
|
562
|
+
|
|
414
563
|
# Modify Repository Content
|
|
415
564
|
# Trigger an asynchronous task to create a new repository version.
|
|
416
565
|
# @param maven_maven_repository_href [String]
|
|
@@ -488,6 +637,78 @@ module PulpMavenClient
|
|
|
488
637
|
return data, status_code, headers
|
|
489
638
|
end
|
|
490
639
|
|
|
640
|
+
# List user permissions
|
|
641
|
+
# List permissions available to the current user on this object.
|
|
642
|
+
# @param maven_maven_repository_href [String]
|
|
643
|
+
# @param [Hash] opts the optional parameters
|
|
644
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
645
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
646
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
647
|
+
# @return [MyPermissionsResponse]
|
|
648
|
+
def my_permissions(maven_maven_repository_href, opts = {})
|
|
649
|
+
data, _status_code, _headers = my_permissions_with_http_info(maven_maven_repository_href, opts)
|
|
650
|
+
data
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# List user permissions
|
|
654
|
+
# List permissions available to the current user on this object.
|
|
655
|
+
# @param maven_maven_repository_href [String]
|
|
656
|
+
# @param [Hash] opts the optional parameters
|
|
657
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
658
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
659
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
660
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
661
|
+
def my_permissions_with_http_info(maven_maven_repository_href, opts = {})
|
|
662
|
+
if @api_client.config.debugging
|
|
663
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.my_permissions ...'
|
|
664
|
+
end
|
|
665
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
666
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
667
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.my_permissions"
|
|
668
|
+
end
|
|
669
|
+
# resource path
|
|
670
|
+
local_var_path = '{maven_maven_repository_href}my_permissions/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
671
|
+
|
|
672
|
+
# query parameters
|
|
673
|
+
query_params = opts[:query_params] || {}
|
|
674
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
675
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
676
|
+
|
|
677
|
+
# header parameters
|
|
678
|
+
header_params = opts[:header_params] || {}
|
|
679
|
+
# HTTP header 'Accept' (if needed)
|
|
680
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
681
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
682
|
+
|
|
683
|
+
# form parameters
|
|
684
|
+
form_params = opts[:form_params] || {}
|
|
685
|
+
|
|
686
|
+
# http body (model)
|
|
687
|
+
post_body = opts[:debug_body]
|
|
688
|
+
|
|
689
|
+
# return_type
|
|
690
|
+
return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
|
|
691
|
+
|
|
692
|
+
# auth_names
|
|
693
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
694
|
+
|
|
695
|
+
new_options = opts.merge(
|
|
696
|
+
:operation => :"RepositoriesMavenApi.my_permissions",
|
|
697
|
+
:header_params => header_params,
|
|
698
|
+
:query_params => query_params,
|
|
699
|
+
:form_params => form_params,
|
|
700
|
+
:body => post_body,
|
|
701
|
+
:auth_names => auth_names,
|
|
702
|
+
:return_type => return_type
|
|
703
|
+
)
|
|
704
|
+
|
|
705
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
706
|
+
if @api_client.config.debugging
|
|
707
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
708
|
+
end
|
|
709
|
+
return data, status_code, headers
|
|
710
|
+
end
|
|
711
|
+
|
|
491
712
|
# Update a maven repository
|
|
492
713
|
# Update the entity partially and trigger an asynchronous task if necessary
|
|
493
714
|
# @param maven_maven_repository_href [String]
|
|
@@ -566,7 +787,7 @@ module PulpMavenClient
|
|
|
566
787
|
end
|
|
567
788
|
|
|
568
789
|
# Inspect a maven repository
|
|
569
|
-
# A ViewSet for
|
|
790
|
+
# A ViewSet for MavenRepository.
|
|
570
791
|
# @param maven_maven_repository_href [String]
|
|
571
792
|
# @param [Hash] opts the optional parameters
|
|
572
793
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -579,7 +800,7 @@ module PulpMavenClient
|
|
|
579
800
|
end
|
|
580
801
|
|
|
581
802
|
# Inspect a maven repository
|
|
582
|
-
# A ViewSet for
|
|
803
|
+
# A ViewSet for MavenRepository.
|
|
583
804
|
# @param maven_maven_repository_href [String]
|
|
584
805
|
# @param [Hash] opts the optional parameters
|
|
585
806
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -637,6 +858,83 @@ module PulpMavenClient
|
|
|
637
858
|
return data, status_code, headers
|
|
638
859
|
end
|
|
639
860
|
|
|
861
|
+
# Remove a role
|
|
862
|
+
# Remove a role for this object from users/groups.
|
|
863
|
+
# @param maven_maven_repository_href [String]
|
|
864
|
+
# @param nested_role [NestedRole]
|
|
865
|
+
# @param [Hash] opts the optional parameters
|
|
866
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
867
|
+
# @return [NestedRoleResponse]
|
|
868
|
+
def remove_role(maven_maven_repository_href, nested_role, opts = {})
|
|
869
|
+
data, _status_code, _headers = remove_role_with_http_info(maven_maven_repository_href, nested_role, opts)
|
|
870
|
+
data
|
|
871
|
+
end
|
|
872
|
+
|
|
873
|
+
# Remove a role
|
|
874
|
+
# Remove a role for this object from users/groups.
|
|
875
|
+
# @param maven_maven_repository_href [String]
|
|
876
|
+
# @param nested_role [NestedRole]
|
|
877
|
+
# @param [Hash] opts the optional parameters
|
|
878
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
879
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
880
|
+
def remove_role_with_http_info(maven_maven_repository_href, nested_role, opts = {})
|
|
881
|
+
if @api_client.config.debugging
|
|
882
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.remove_role ...'
|
|
883
|
+
end
|
|
884
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
|
885
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
|
886
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.remove_role"
|
|
887
|
+
end
|
|
888
|
+
# verify the required parameter 'nested_role' is set
|
|
889
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
|
890
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesMavenApi.remove_role"
|
|
891
|
+
end
|
|
892
|
+
# resource path
|
|
893
|
+
local_var_path = '{maven_maven_repository_href}remove_role/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
|
894
|
+
|
|
895
|
+
# query parameters
|
|
896
|
+
query_params = opts[:query_params] || {}
|
|
897
|
+
|
|
898
|
+
# header parameters
|
|
899
|
+
header_params = opts[:header_params] || {}
|
|
900
|
+
# HTTP header 'Accept' (if needed)
|
|
901
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
902
|
+
# HTTP header 'Content-Type'
|
|
903
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
904
|
+
if !content_type.nil?
|
|
905
|
+
header_params['Content-Type'] = content_type
|
|
906
|
+
end
|
|
907
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
908
|
+
|
|
909
|
+
# form parameters
|
|
910
|
+
form_params = opts[:form_params] || {}
|
|
911
|
+
|
|
912
|
+
# http body (model)
|
|
913
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
|
914
|
+
|
|
915
|
+
# return_type
|
|
916
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
|
917
|
+
|
|
918
|
+
# auth_names
|
|
919
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
920
|
+
|
|
921
|
+
new_options = opts.merge(
|
|
922
|
+
:operation => :"RepositoriesMavenApi.remove_role",
|
|
923
|
+
:header_params => header_params,
|
|
924
|
+
:query_params => query_params,
|
|
925
|
+
:form_params => form_params,
|
|
926
|
+
:body => post_body,
|
|
927
|
+
:auth_names => auth_names,
|
|
928
|
+
:return_type => return_type
|
|
929
|
+
)
|
|
930
|
+
|
|
931
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
932
|
+
if @api_client.config.debugging
|
|
933
|
+
@api_client.config.logger.debug "API called: RepositoriesMavenApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
934
|
+
end
|
|
935
|
+
return data, status_code, headers
|
|
936
|
+
end
|
|
937
|
+
|
|
640
938
|
# Repair metadata
|
|
641
939
|
# Trigger an asynchronous task to regenerate all maven-metadata.xml files and their checksums for every artifact in the repository.
|
|
642
940
|
# @param maven_maven_repository_href [String]
|