docusign_admin 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72e8a3bb0982ac79a97d50a6d27942c31c41e019174b5cd9944179ab8ac7d082
4
- data.tar.gz: fc2398f179d10060c8e1f2737accf37ff3d93d2345ed43380a7f4150fc70b669
3
+ metadata.gz: a75b7925d145c75c275a2b3996530236c463f19f9bbf8777cc3e78578fc20fb4
4
+ data.tar.gz: 3b647d6894f3a76be14b224f66beb561ae446ea25f2edbf49aaac7aa9c0cc73c
5
5
  SHA512:
6
- metadata.gz: 733199c2ae62f4b164f5431bc353c2602572c8de730805ecfad1b05e63d2fdbc311c5abf55153a00b9af72cefebb93633a41aa2ef3793935599e94a6ce215fa9
7
- data.tar.gz: 3cfb640a64e5946d54912cf956f87085f79929c950bfc9745b18d192ecdca257419ada473e6e11c7220b100987f58f20f4af322727fafc5c84d5f1bf279edf6f
6
+ metadata.gz: 2e96da7b3ab0a4b5fa41e146e103f2a59a87265daa7c15de8af455d1c0624c1609125908a283603a69dd78895e749743ef24d146118e6d4aeef2822deaa42ed0
7
+ data.tar.gz: 03cf3a396e120a0195c16f369e205dfc3342067b5b4288d706ccbd38b7c6097cbd6fab98f2047049ceb30e20e3442f1e401ba6801a7e44377cfe102350099ef8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [v1.3.0] - Admin API v2.1-1.3.0 - 2023-08-02
2
+ ### Changed
3
+ - Added support for version v2.1-1.3.0 of the DocuSign Admin API.
4
+ - Updated the SDK release version.
5
+
6
+ New endpoints:
7
+ * `GET /v1/organizations/{organizationId}/assetGroups/accounts` Get asset group accounts for an organization.
8
+ * `POST /v1/organizations/{organizationId}/assetGroups/accountClone` Clone an existing DocuSign account.
9
+ * `GET /v1/organizations/{organizationId}/assetGroups/accountClones` Gets all asset group account clones for an organization.
10
+ * `GET /v1/organizations/{organizationId}/assetGroups/{assetGroupId}/accountClones/{assetGroupWorkId}` Gets information about a single cloned account.
11
+ ## [v1.2.0] - Admin API v2.1-1.2.0 - 2023-05-21
12
+ ### Changed
13
+ - Added support for version v2.1-1.2.0 of the DocuSign Admin API.
14
+ - Updated the SDK release version.
15
+
1
16
  ## [v1.1.0] - Admin API v2.1-1.1.0 - 2022-04-26
2
17
  ### Changed
3
18
  - Added support for version v2.1-1.1.0 of the DocuSign Admin API.
@@ -209,5 +209,60 @@ module DocuSign_Admin
209
209
  end
210
210
  return data, status_code, headers
211
211
  end
212
+
213
+ # Redacts membership data for users with memberships in an account.
214
+ # Required scopes: user_data_redact
215
+ # @param account_id The account ID Guid
216
+ # @param request_model The request body describing the membership to be redacted
217
+ # @return [IndividualUserDataRedactionResponse]
218
+ def redact_individual_membership_data(account_id, request_model)
219
+ data, _status_code, _headers = redact_individual_membership_data_with_http_info(account_id, request_model)
220
+ return data
221
+ end
222
+
223
+ # Redacts membership data for users with memberships in an account.
224
+ # Required scopes: user_data_redact
225
+ # @param account_id The account ID Guid
226
+ # @param request_model The request body describing the membership to be redacted
227
+ # @return [Array<(IndividualUserDataRedactionResponse, Fixnum, Hash)>] IndividualUserDataRedactionResponse data, response status code and response headers
228
+ def redact_individual_membership_data_with_http_info(account_id, request_model)
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug "Calling API: AccountsApi.redact_individual_membership_data ..."
231
+ end
232
+ # verify the required parameter 'account_id' is set
233
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.redact_individual_membership_data" if account_id.nil?
234
+ # verify the required parameter 'request_model' is set
235
+ fail ArgumentError, "Missing the required parameter 'request_model' when calling AccountsApi.redact_individual_membership_data" if request_model.nil?
236
+ # resource path
237
+ local_var_path = "/v2/data_redaction/accounts/{accountId}/user".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s)
238
+
239
+ # query parameters
240
+ query_params = {}
241
+
242
+ # header parameters
243
+ header_params = {}
244
+ # HTTP header 'Accept' (if needed)
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
+ # HTTP header 'Content-Type'
247
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
248
+
249
+ # form parameters
250
+ form_params = {}
251
+
252
+ # http body (model)
253
+ post_body = @api_client.object_to_http_body(request_model)
254
+ auth_names = []
255
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
256
+ :header_params => header_params,
257
+ :query_params => query_params,
258
+ :form_params => form_params,
259
+ :body => post_body,
260
+ :auth_names => auth_names,
261
+ :return_type => 'IndividualUserDataRedactionResponse')
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug "API called: AccountsApi#redact_individual_membership_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
264
+ end
265
+ return data, status_code, headers
266
+ end
212
267
  end
213
268
  end
@@ -24,7 +24,7 @@ module DocuSign_Admin
24
24
  # Creates a new account settings import request.
25
25
  # Required scopes: account_write
26
26
  # @param organization_id The organization ID Guid
27
- # @param file_csv CSV file.
27
+ # @param file_csv CSV file.
28
28
  # @return [OrganizationAccountSettingsImportResponse]
29
29
  def add_bulk_account_settings_import(organization_id, file_csv)
30
30
  data, _status_code, _headers = add_bulk_account_settings_import_with_http_info(organization_id, file_csv)
@@ -34,7 +34,7 @@ module DocuSign_Admin
34
34
  # Creates a new account settings import request.
35
35
  # Required scopes: account_write
36
36
  # @param organization_id The organization ID Guid
37
- # @param file_csv CSV file.
37
+ # @param file_csv CSV file.
38
38
  # @return [Array<(OrganizationAccountSettingsImportResponse, Fixnum, Hash)>] OrganizationAccountSettingsImportResponse data, response status code and response headers
39
39
  def add_bulk_account_settings_import_with_http_info(organization_id, file_csv)
40
40
  if @api_client.config.debugging
@@ -80,7 +80,7 @@ module DocuSign_Admin
80
80
  # Import request for adding users to accounts within the organization.
81
81
  # Required scopes: user_write
82
82
  # @param organization_id The organization ID Guid
83
- # @param file_csv CSV file.
83
+ # @param file_csv CSV file.
84
84
  # @return [OrganizationImportResponse]
85
85
  def create_bulk_import_add_users_request(organization_id, file_csv)
86
86
  data, _status_code, _headers = create_bulk_import_add_users_request_with_http_info(organization_id, file_csv)
@@ -90,7 +90,7 @@ module DocuSign_Admin
90
90
  # Import request for adding users to accounts within the organization.
91
91
  # Required scopes: user_write
92
92
  # @param organization_id The organization ID Guid
93
- # @param file_csv CSV file.
93
+ # @param file_csv CSV file.
94
94
  # @return [Array<(OrganizationImportResponse, Fixnum, Hash)>] OrganizationImportResponse data, response status code and response headers
95
95
  def create_bulk_import_add_users_request_with_http_info(organization_id, file_csv)
96
96
  if @api_client.config.debugging
@@ -136,22 +136,26 @@ module DocuSign_Admin
136
136
  # Closes the Bulk User Import request
137
137
  # Required scopes: user_write
138
138
  # @param organization_id The organization ID Guid
139
+ # @param file_csv CSV file.
139
140
  # @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)
142
143
  return data
143
144
  end
144
145
 
145
146
  # Closes the Bulk User Import request
146
147
  # Required scopes: user_write
147
148
  # @param organization_id The organization ID Guid
149
+ # @param file_csv CSV file.
148
150
  # @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)
150
152
  if @api_client.config.debugging
151
153
  @api_client.config.logger.debug "Calling API: BulkImportsApi.create_bulk_import_close_users_request ..."
152
154
  end
153
155
  # verify the required parameter 'organization_id' is set
154
156
  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?
155
159
  # resource path
156
160
  local_var_path = "/v2/organizations/{organizationId}/imports/bulk_users/close".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s)
157
161
 
@@ -163,10 +167,11 @@ module DocuSign_Admin
163
167
  # HTTP header 'Accept' (if needed)
164
168
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
165
169
  # 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'])
167
171
 
168
172
  # form parameters
169
173
  form_params = {}
174
+ form_params["file.csv"] = file_csv
170
175
 
171
176
  # http body (model)
172
177
  post_body = nil
@@ -239,9 +244,10 @@ module DocuSign_Admin
239
244
  # Required scopes: user_write
240
245
  # @param organization_id The organization ID Guid
241
246
  # @param account_id The account ID Guid
247
+ # @param file_csv CSV file.
242
248
  # @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)
245
251
  return data
246
252
  end
247
253
 
@@ -249,8 +255,9 @@ module DocuSign_Admin
249
255
  # Required scopes: user_write
250
256
  # @param organization_id The organization ID Guid
251
257
  # @param account_id The account ID Guid
258
+ # @param file_csv CSV file.
252
259
  # @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)
254
261
  if @api_client.config.debugging
255
262
  @api_client.config.logger.debug "Calling API: BulkImportsApi.create_bulk_import_single_account_add_users_request ..."
256
263
  end
@@ -297,9 +304,10 @@ module DocuSign_Admin
297
304
  # Required scopes: user_write
298
305
  # @param organization_id The organization ID Guid
299
306
  # @param account_id The account ID Guid
307
+ # @param file_csv CSV file.
300
308
  # @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)
303
311
  return data
304
312
  end
305
313
 
@@ -307,8 +315,9 @@ module DocuSign_Admin
307
315
  # Required scopes: user_write
308
316
  # @param organization_id The organization ID Guid
309
317
  # @param account_id The account ID Guid
318
+ # @param file_csv CSV file.
310
319
  # @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)
312
321
  if @api_client.config.debugging
313
322
  @api_client.config.logger.debug "Calling API: BulkImportsApi.create_bulk_import_single_account_update_users_request ..."
314
323
  end
@@ -354,17 +363,19 @@ module DocuSign_Admin
354
363
  # Import request for updating users to accounts within the organization.
355
364
  # Required scopes: user_write
356
365
  # @param organization_id The organization ID Guid
366
+ # @param file_csv CSV file.
357
367
  # @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)
360
370
  return data
361
371
  end
362
372
 
363
373
  # Import request for updating users to accounts within the organization.
364
374
  # Required scopes: user_write
365
375
  # @param organization_id The organization ID Guid
376
+ # @param file_csv CSV file.
366
377
  # @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)
368
379
  if @api_client.config.debugging
369
380
  @api_client.config.logger.debug "Calling API: BulkImportsApi.create_bulk_import_update_users_request ..."
370
381
  end
@@ -0,0 +1,79 @@
1
+ =begin
2
+ #DocuSign Admin API
3
+
4
+ #An API for an organization administrator to manage organizations, accounts and users
5
+
6
+ OpenAPI spec version: v2.1
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require "uri"
13
+
14
+ module DocuSign_Admin
15
+
16
+
17
+ class OrganizationsApi
18
+ attr_accessor :api_client
19
+
20
+ def initialize(api_client = OrganizationsApi.default)
21
+ @api_client = api_client
22
+ end
23
+
24
+ # Redacts membership and user data for users in an organization.
25
+ # Required scopes: user_data_redact
26
+ # @param organization_id The organization ID Guid
27
+ # @param request_model The request body describing the users and memberships to be redacted
28
+ # @return [IndividualUserDataRedactionResponse]
29
+ def redact_individual_user_data(organization_id, request_model)
30
+ data, _status_code, _headers = redact_individual_user_data_with_http_info(organization_id, request_model)
31
+ return data
32
+ end
33
+
34
+ # Redacts membership and user data for users in an organization.
35
+ # Required scopes: user_data_redact
36
+ # @param organization_id The organization ID Guid
37
+ # @param request_model The request body describing the users and memberships to be redacted
38
+ # @return [Array<(IndividualUserDataRedactionResponse, Fixnum, Hash)>] IndividualUserDataRedactionResponse data, response status code and response headers
39
+ def redact_individual_user_data_with_http_info(organization_id, request_model)
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug "Calling API: OrganizationsApi.redact_individual_user_data ..."
42
+ end
43
+ # verify the required parameter 'organization_id' is set
44
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.redact_individual_user_data" if organization_id.nil?
45
+ # verify the required parameter 'request_model' is set
46
+ fail ArgumentError, "Missing the required parameter 'request_model' when calling OrganizationsApi.redact_individual_user_data" if request_model.nil?
47
+ # resource path
48
+ local_var_path = "/v2/data_redaction/organizations/{organizationId}/user".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s)
49
+
50
+ # query parameters
51
+ query_params = {}
52
+
53
+ # header parameters
54
+ header_params = {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
+ # HTTP header 'Content-Type'
58
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = {}
62
+
63
+ # http body (model)
64
+ post_body = @api_client.object_to_http_body(request_model)
65
+ auth_names = []
66
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => 'IndividualUserDataRedactionResponse')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: OrganizationsApi#redact_individual_user_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,280 @@
1
+ =begin
2
+ #DocuSign Admin API
3
+
4
+ #An API for an organization administrator to manage organizations, accounts and users
5
+
6
+ OpenAPI spec version: v2.1
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require "uri"
13
+
14
+ module DocuSign_Admin
15
+
16
+ class GetAssetGroupAccountCloneOptions
17
+ # When true, include details for the asset group account clone.
18
+ attr_accessor :include_details
19
+
20
+ def self.default
21
+ @@default ||= GetAssetGroupAccountCloneOptions.new
22
+ end
23
+ end
24
+
25
+ class GetAssetGroupAccountClonesByOrgIdOptions
26
+ # When provided and is in the past, only return asset group account clone(s) that is updated after the date.
27
+ attr_accessor :since_updated_date
28
+
29
+ # When true, include details for the asset group account clone(s).
30
+ attr_accessor :include_details
31
+
32
+ def self.default
33
+ @@default ||= GetAssetGroupAccountClonesByOrgIdOptions.new
34
+ end
35
+ end
36
+
37
+ class GetAssetGroupAccountsOptions
38
+ # Whether to return accounts that are compliant. When provided, account responses will not include compliant field.
39
+ attr_accessor :compliant
40
+
41
+ def self.default
42
+ @@default ||= GetAssetGroupAccountsOptions.new
43
+ end
44
+ end
45
+
46
+
47
+ class ProvisionAssetGroupApi
48
+ attr_accessor :api_client
49
+
50
+ def initialize(api_client = ProvisionAssetGroupApi.default)
51
+ @api_client = api_client
52
+ end
53
+
54
+ # Clones an existing DocuSign account to a new DocuSign account.
55
+ # Currently this only clones eSign settings and asset group information. Required scopes: asset_group_account_clone_write
56
+ # @param organization_id The Guid representing the organization id.
57
+ # @param request The request defails for the new asset group account clone.
58
+ # @return [AssetGroupAccountClone]
59
+ def clone_asset_group_account(organization_id, request)
60
+ data, _status_code, _headers = clone_asset_group_account_with_http_info(organization_id, request)
61
+ return data
62
+ end
63
+
64
+ # Clones an existing DocuSign account to a new DocuSign account.
65
+ # Currently this only clones eSign settings and asset group information. Required scopes: asset_group_account_clone_write
66
+ # @param organization_id The Guid representing the organization id.
67
+ # @param request The request defails for the new asset group account clone.
68
+ # @return [Array<(AssetGroupAccountClone, Fixnum, Hash)>] AssetGroupAccountClone data, response status code and response headers
69
+ def clone_asset_group_account_with_http_info(organization_id, request)
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "Calling API: ProvisionAssetGroupApi.clone_asset_group_account ..."
72
+ end
73
+ # verify the required parameter 'organization_id' is set
74
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProvisionAssetGroupApi.clone_asset_group_account" if organization_id.nil?
75
+ # verify the required parameter 'request' is set
76
+ fail ArgumentError, "Missing the required parameter 'request' when calling ProvisionAssetGroupApi.clone_asset_group_account" if request.nil?
77
+ # resource path
78
+ local_var_path = "/v1/organizations/{organizationId}/assetGroups/accountClone".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s)
79
+
80
+ # query parameters
81
+ query_params = {}
82
+
83
+ # header parameters
84
+ header_params = {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
87
+ # HTTP header 'Content-Type'
88
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
89
+
90
+ # form parameters
91
+ form_params = {}
92
+
93
+ # http body (model)
94
+ post_body = @api_client.object_to_http_body(request)
95
+ auth_names = []
96
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
97
+ :header_params => header_params,
98
+ :query_params => query_params,
99
+ :form_params => form_params,
100
+ :body => post_body,
101
+ :auth_names => auth_names,
102
+ :return_type => 'AssetGroupAccountClone')
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug "API called: ProvisionAssetGroupApi#clone_asset_group_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
+ end
106
+ return data, status_code, headers
107
+ end
108
+
109
+ # Gets an asset group account clone by the asset group work id.
110
+ # Required scopes: asset_group_account_clone_read
111
+ # @param organization_id The Guid representing the organization id.
112
+ # @param asset_group_id The Guid representing the asset group id.
113
+ # @param asset_group_work_id The Guid representing the asset group account clone id
114
+ # @param DocuSign_Admin::GetAssetGroupAccountCloneOptions Options for modifying the behavior of the function.
115
+ # @return [AssetGroupAccountClone]
116
+ def get_asset_group_account_clone(organization_id, asset_group_id, asset_group_work_id, options = DocuSign_Admin::GetAssetGroupAccountCloneOptions.default)
117
+ data, _status_code, _headers = get_asset_group_account_clone_with_http_info(organization_id, asset_group_id, asset_group_work_id, options)
118
+ return data
119
+ end
120
+
121
+ # Gets an asset group account clone by the asset group work id.
122
+ # Required scopes: asset_group_account_clone_read
123
+ # @param organization_id The Guid representing the organization id.
124
+ # @param asset_group_id The Guid representing the asset group id.
125
+ # @param asset_group_work_id The Guid representing the asset group account clone id
126
+ # @param DocuSign_Admin::GetAssetGroupAccountCloneOptions Options for modifying the behavior of the function.
127
+ # @return [Array<(AssetGroupAccountClone, Fixnum, Hash)>] AssetGroupAccountClone data, response status code and response headers
128
+ def get_asset_group_account_clone_with_http_info(organization_id, asset_group_id, asset_group_work_id, options = DocuSign_Admin::GetAssetGroupAccountCloneOptions.default)
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug "Calling API: ProvisionAssetGroupApi.get_asset_group_account_clone ..."
131
+ end
132
+ # verify the required parameter 'organization_id' is set
133
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProvisionAssetGroupApi.get_asset_group_account_clone" if organization_id.nil?
134
+ # verify the required parameter 'asset_group_id' is set
135
+ fail ArgumentError, "Missing the required parameter 'asset_group_id' when calling ProvisionAssetGroupApi.get_asset_group_account_clone" if asset_group_id.nil?
136
+ # verify the required parameter 'asset_group_work_id' is set
137
+ fail ArgumentError, "Missing the required parameter 'asset_group_work_id' when calling ProvisionAssetGroupApi.get_asset_group_account_clone" if asset_group_work_id.nil?
138
+ # resource path
139
+ local_var_path = "/v1/organizations/{organizationId}/assetGroups/{assetGroupId}/accountClones/{assetGroupWorkId}".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s).sub('{' + 'assetGroupId' + '}', asset_group_id.to_s).sub('{' + 'assetGroupWorkId' + '}', asset_group_work_id.to_s)
140
+
141
+ # query parameters
142
+ query_params = {}
143
+ query_params[:'include_details'] = options.include_details if !options.include_details.nil?
144
+
145
+ # header parameters
146
+ header_params = {}
147
+ # HTTP header 'Accept' (if needed)
148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
151
+
152
+ # form parameters
153
+ form_params = {}
154
+
155
+ # http body (model)
156
+ post_body = nil
157
+ auth_names = []
158
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => 'AssetGroupAccountClone')
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug "API called: ProvisionAssetGroupApi#get_asset_group_account_clone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ return data, status_code, headers
169
+ end
170
+
171
+ # Gets all asset group account clone(s) for an organization id.
172
+ # Required scopes: asset_group_account_clone_read
173
+ # @param organization_id The Guid representing the organization id.
174
+ # @param DocuSign_Admin::GetAssetGroupAccountClonesByOrgIdOptions Options for modifying the behavior of the function.
175
+ # @return [AssetGroupAccountClones]
176
+ def get_asset_group_account_clones_by_org_id(organization_id, options = DocuSign_Admin::GetAssetGroupAccountClonesByOrgIdOptions.default)
177
+ data, _status_code, _headers = get_asset_group_account_clones_by_org_id_with_http_info(organization_id, options)
178
+ return data
179
+ end
180
+
181
+ # Gets all asset group account clone(s) for an organization id.
182
+ # Required scopes: asset_group_account_clone_read
183
+ # @param organization_id The Guid representing the organization id.
184
+ # @param DocuSign_Admin::GetAssetGroupAccountClonesByOrgIdOptions Options for modifying the behavior of the function.
185
+ # @return [Array<(AssetGroupAccountClones, Fixnum, Hash)>] AssetGroupAccountClones data, response status code and response headers
186
+ def get_asset_group_account_clones_by_org_id_with_http_info(organization_id, options = DocuSign_Admin::GetAssetGroupAccountClonesByOrgIdOptions.default)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "Calling API: ProvisionAssetGroupApi.get_asset_group_account_clones_by_org_id ..."
189
+ end
190
+ # verify the required parameter 'organization_id' is set
191
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProvisionAssetGroupApi.get_asset_group_account_clones_by_org_id" if organization_id.nil?
192
+ # resource path
193
+ local_var_path = "/v1/organizations/{organizationId}/assetGroups/accountClones".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s)
194
+
195
+ # query parameters
196
+ query_params = {}
197
+ query_params[:'since_updated_date'] = options.since_updated_date if !options.since_updated_date.nil?
198
+ query_params[:'include_details'] = options.include_details if !options.include_details.nil?
199
+
200
+ # header parameters
201
+ header_params = {}
202
+ # HTTP header 'Accept' (if needed)
203
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
204
+ # HTTP header 'Content-Type'
205
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
206
+
207
+ # form parameters
208
+ form_params = {}
209
+
210
+ # http body (model)
211
+ post_body = nil
212
+ auth_names = []
213
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => 'AssetGroupAccountClones')
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: ProvisionAssetGroupApi#get_asset_group_account_clones_by_org_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
225
+
226
+ # Get all accounts in asset groups for the organization.
227
+ # Required scopes: asset_group_account_read
228
+ # @param organization_id The Guid representing the organization id.
229
+ # @param DocuSign_Admin::GetAssetGroupAccountsOptions Options for modifying the behavior of the function.
230
+ # @return [AssetGroupAccountsResponse]
231
+ def get_asset_group_accounts(organization_id, options = DocuSign_Admin::GetAssetGroupAccountsOptions.default)
232
+ data, _status_code, _headers = get_asset_group_accounts_with_http_info(organization_id, options)
233
+ return data
234
+ end
235
+
236
+ # Get all accounts in asset groups for the organization.
237
+ # Required scopes: asset_group_account_read
238
+ # @param organization_id The Guid representing the organization id.
239
+ # @param DocuSign_Admin::GetAssetGroupAccountsOptions Options for modifying the behavior of the function.
240
+ # @return [Array<(AssetGroupAccountsResponse, Fixnum, Hash)>] AssetGroupAccountsResponse data, response status code and response headers
241
+ def get_asset_group_accounts_with_http_info(organization_id, options = DocuSign_Admin::GetAssetGroupAccountsOptions.default)
242
+ if @api_client.config.debugging
243
+ @api_client.config.logger.debug "Calling API: ProvisionAssetGroupApi.get_asset_group_accounts ..."
244
+ end
245
+ # verify the required parameter 'organization_id' is set
246
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling ProvisionAssetGroupApi.get_asset_group_accounts" if organization_id.nil?
247
+ # resource path
248
+ local_var_path = "/v1/organizations/{organizationId}/assetGroups/accounts".sub('{format}','json').sub('{' + 'organizationId' + '}', organization_id.to_s)
249
+
250
+ # query parameters
251
+ query_params = {}
252
+ query_params[:'compliant'] = options.compliant if !options.compliant.nil?
253
+
254
+ # header parameters
255
+ header_params = {}
256
+ # HTTP header 'Accept' (if needed)
257
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
258
+ # HTTP header 'Content-Type'
259
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
260
+
261
+ # form parameters
262
+ form_params = {}
263
+
264
+ # http body (model)
265
+ post_body = nil
266
+ auth_names = []
267
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
268
+ :header_params => header_params,
269
+ :query_params => query_params,
270
+ :form_params => form_params,
271
+ :body => post_body,
272
+ :auth_names => auth_names,
273
+ :return_type => 'AssetGroupAccountsResponse')
274
+ if @api_client.config.debugging
275
+ @api_client.config.logger.debug "API called: ProvisionAssetGroupApi#get_asset_group_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
276
+ end
277
+ return data, status_code, headers
278
+ end
279
+ end
280
+ end
@@ -35,7 +35,7 @@ module DocuSign_Admin
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/1.1.0/ruby"
38
+ @user_agent = "Swagger-Codegen/1.3.0/ruby"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent
@@ -107,10 +107,6 @@ module DocuSign_Admin
107
107
  # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
108
108
  _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
109
109
 
110
- if header_params['Content-Type'] == 'multipart/form-data'
111
- header_params['Content-Disposition'] = 'form-data; name=file; filename=file.csv'
112
- end
113
-
114
110
  req_opts = {
115
111
  :method => http_method,
116
112
  :headers => header_params,
@@ -285,7 +281,8 @@ module DocuSign_Admin
285
281
  # let typhoeus handle File, Array and nil parameters
286
282
  data[key] = value
287
283
  else
288
- if key == 'file.csv'
284
+ if header_params['Content-Type'] == 'multipart/form-data'
285
+ header_params['Content-Disposition'] = 'form-data; name=file; filename=' + key
289
286
  data = value
290
287
  else
291
288
  data[key] = value.to_s