@@ -24,7 +24,7 @@ def initialize(api_client = BulkImportsApi.default)
2424 # Creates a new account settings import request.
2525 # Required scopes: account_write
2626 # @param organization_id The organization ID Guid
27- # @param file_csv CSV file.
27+ # @param file_csv CSV file.
2828 # @return [OrganizationAccountSettingsImportResponse]
2929 def add_bulk_account_settings_import ( organization_id , file_csv )
3030 data , _status_code , _headers = add_bulk_account_settings_import_with_http_info ( organization_id , file_csv )
@@ -34,7 +34,7 @@ def add_bulk_account_settings_import(organization_id, file_csv)
3434 # Creates a new account settings import request.
3535 # Required scopes: account_write
3636 # @param organization_id The organization ID Guid
37- # @param file_csv CSV file.
37+ # @param file_csv CSV file.
3838 # @return [Array<(OrganizationAccountSettingsImportResponse, Fixnum, Hash)>] OrganizationAccountSettingsImportResponse data, response status code and response headers
3939 def add_bulk_account_settings_import_with_http_info ( organization_id , file_csv )
4040 if @api_client . config . debugging
@@ -80,7 +80,7 @@ def add_bulk_account_settings_import_with_http_info(organization_id, file_csv)
8080 # Import request for adding users to accounts within the organization.
8181 # Required scopes: user_write
8282 # @param organization_id The organization ID Guid
83- # @param file_csv CSV file.
83+ # @param file_csv CSV file.
8484 # @return [OrganizationImportResponse]
8585 def create_bulk_import_add_users_request ( organization_id , file_csv )
8686 data , _status_code , _headers = create_bulk_import_add_users_request_with_http_info ( organization_id , file_csv )
@@ -90,7 +90,7 @@ def create_bulk_import_add_users_request(organization_id, file_csv)
9090 # Import request for adding users to accounts within the organization.
9191 # Required scopes: user_write
9292 # @param organization_id The organization ID Guid
93- # @param file_csv CSV file.
93+ # @param file_csv CSV file.
9494 # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
9595 def create_bulk_import_add_users_request_with_http_info ( organization_id , file_csv )
9696 if @api_client . config . debugging
@@ -136,22 +136,26 @@ def create_bulk_import_add_users_request_with_http_info(organization_id, file_cs
136136 # Closes the Bulk User Import request
137137 # Required scopes: user_write
138138 # @param organization_id The organization ID Guid
139+ # @param file_csv CSV file.
139140 # @return [OrganizationImportResponse]
140- def create_bulk_import_close_users_request ( organization_id )
141- data , _status_code , _headers = create_bulk_import_close_users_request_with_http_info ( organization_id )
141+ def create_bulk_import_close_users_request ( organization_id , file_csv )
142+ data , _status_code , _headers = create_bulk_import_close_users_request_with_http_info ( organization_id , file_csv )
142143 return data
143144 end
144145
145146 # Closes the Bulk User Import request
146147 # Required scopes: user_write
147148 # @param organization_id The organization ID Guid
149+ # @param file_csv CSV file.
148150 # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
149- def create_bulk_import_close_users_request_with_http_info ( organization_id )
151+ def create_bulk_import_close_users_request_with_http_info ( organization_id , file_csv )
150152 if @api_client . config . debugging
151153 @api_client . config . logger . debug "Calling API: BulkImportsApi.create_bulk_import_close_users_request ..."
152154 end
153155 # verify the required parameter 'organization_id' is set
154156 fail ArgumentError , "Missing the required parameter 'organization_id' when calling BulkImportsApi.create_bulk_import_close_users_request" if organization_id . nil?
157+ # verify the required parameter 'file_csv' is set
158+ fail ArgumentError , "Missing the required parameter 'file_csv' when calling BulkImportsApi.create_bulk_import_close_users_request" if file_csv . nil?
155159 # resource path
156160 local_var_path = "/v2/organizations/{organizationId}/imports/bulk_users/close" . sub ( '{format}' , 'json' ) . sub ( '{' + 'organizationId' + '}' , organization_id . to_s )
157161
@@ -163,10 +167,11 @@ def create_bulk_import_close_users_request_with_http_info(organization_id)
163167 # HTTP header 'Accept' (if needed)
164168 header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
165169 # HTTP header 'Content-Type'
166- header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json ' ] )
170+ header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'multipart/form-data ' ] )
167171
168172 # form parameters
169173 form_params = { }
174+ form_params [ "file.csv" ] = file_csv
170175
171176 # http body (model)
172177 post_body = nil
@@ -239,18 +244,20 @@ def create_bulk_import_external_close_users_request_with_http_info(organization_
239244 # Required scopes: user_write
240245 # @param organization_id The organization ID Guid
241246 # @param account_id The account ID Guid
247+ # @param file_csv CSV file.
242248 # @return [OrganizationImportResponse]
243- def create_bulk_import_single_account_add_users_request ( organization_id , account_id )
244- data , _status_code , _headers = create_bulk_import_single_account_add_users_request_with_http_info ( organization_id , account_id )
249+ def create_bulk_import_single_account_add_users_request ( organization_id , account_id , file_csv )
250+ data , _status_code , _headers = create_bulk_import_single_account_add_users_request_with_http_info ( organization_id , account_id , file_csv )
245251 return data
246252 end
247253
248254 # Import request for adding user to a single account within the organization. Allows upload of user information without requiring an AccountId column
249255 # Required scopes: user_write
250256 # @param organization_id The organization ID Guid
251257 # @param account_id The account ID Guid
258+ # @param file_csv CSV file.
252259 # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
253- def create_bulk_import_single_account_add_users_request_with_http_info ( organization_id , account_id )
260+ def create_bulk_import_single_account_add_users_request_with_http_info ( organization_id , account_id , file_csv )
254261 if @api_client . config . debugging
255262 @api_client . config . logger . debug "Calling API: BulkImportsApi.create_bulk_import_single_account_add_users_request ..."
256263 end
@@ -297,18 +304,20 @@ def create_bulk_import_single_account_add_users_request_with_http_info(organizat
297304 # Required scopes: user_write
298305 # @param organization_id The organization ID Guid
299306 # @param account_id The account ID Guid
307+ # @param file_csv CSV file.
300308 # @return [OrganizationImportResponse]
301- def create_bulk_import_single_account_update_users_request ( organization_id , account_id )
302- data , _status_code , _headers = create_bulk_import_single_account_update_users_request_with_http_info ( organization_id , account_id )
309+ def create_bulk_import_single_account_update_users_request ( organization_id , account_id , file_csv )
310+ data , _status_code , _headers = create_bulk_import_single_account_update_users_request_with_http_info ( organization_id , account_id , file_csv )
303311 return data
304312 end
305313
306314 # Import request for updating users for a single account within the organization. Allows upload of user information without requiring an AccountId column
307315 # Required scopes: user_write
308316 # @param organization_id The organization ID Guid
309317 # @param account_id The account ID Guid
318+ # @param file_csv CSV file.
310319 # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
311- def create_bulk_import_single_account_update_users_request_with_http_info ( organization_id , account_id )
320+ def create_bulk_import_single_account_update_users_request_with_http_info ( organization_id , account_id , file_csv )
312321 if @api_client . config . debugging
313322 @api_client . config . logger . debug "Calling API: BulkImportsApi.create_bulk_import_single_account_update_users_request ..."
314323 end
@@ -354,17 +363,19 @@ def create_bulk_import_single_account_update_users_request_with_http_info(organi
354363 # Import request for updating users to accounts within the organization.
355364 # Required scopes: user_write
356365 # @param organization_id The organization ID Guid
366+ # @param file_csv CSV file.
357367 # @return [OrganizationImportResponse]
358- def create_bulk_import_update_users_request ( organization_id )
359- data , _status_code , _headers = create_bulk_import_update_users_request_with_http_info ( organization_id )
368+ def create_bulk_import_update_users_request ( organization_id , file_csv )
369+ data , _status_code , _headers = create_bulk_import_update_users_request_with_http_info ( organization_id , file_csv )
360370 return data
361371 end
362372
363373 # Import request for updating users to accounts within the organization.
364374 # Required scopes: user_write
365375 # @param organization_id The organization ID Guid
376+ # @param file_csv CSV file.
366377 # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
367- def create_bulk_import_update_users_request_with_http_info ( organization_id )
378+ def create_bulk_import_update_users_request_with_http_info ( organization_id , file_csv )
368379 if @api_client . config . debugging
369380 @api_client . config . logger . debug "Calling API: BulkImportsApi.create_bulk_import_update_users_request ..."
370381 end
0 commit comments