Class: PureCloud::SCIMApi

Inherits:
Object
  • Object
show all
Defined in:
lib/purecloudplatformclientv2/api/scim_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ SCIMApi

Returns a new instance of SCIMApi.



23
24
25
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 23

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



21
22
23
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 21

def api_client
  @api_client
end

Instance Method Details

#delete_scim_group(group_id, opts = {}) ⇒ nil

Delete a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups or GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId or GET /api/v2/scim/v2/groups/groupId. Example: "42". If the ETag is different from the version on the server, returns 400 with a "scimType" of "invalidVers".

Returns:

  • (nil)


33
34
35
36
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 33

def delete_scim_group(group_id, opts = {})
  delete_scim_group_with_http_info(group_id, opts)
  return nil
end

#delete_scim_group_with_http_info(group_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups or GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId or GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 44

def delete_scim_group_with_http_info(group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.delete_scim_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.delete_scim_group" if group_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#delete_scim_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_scim_user(user_id, opts = {}) ⇒ Empty

Delete a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



106
107
108
109
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 106

def delete_scim_user(user_id, opts = {})
  data, _status_code, _headers = delete_scim_user_with_http_info(user_id, opts)
  return data
end

#delete_scim_user_with_http_info(user_id, opts = {}) ⇒ Array<(Empty, Fixnum, Hash)>

Delete a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(Empty, Fixnum, Hash)>)

    Empty data, response status code and response headers



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 117

def delete_scim_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.delete_scim_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.delete_scim_user" if user_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Empty')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#delete_scim_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_scim_v2_group(group_id, opts = {}) ⇒ nil

Delete a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups or GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId or GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (nil)


180
181
182
183
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 180

def delete_scim_v2_group(group_id, opts = {})
  delete_scim_v2_group_with_http_info(group_id, opts)
  return nil
end

#delete_scim_v2_group_with_http_info(group_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups or GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId or GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 191

def delete_scim_v2_group_with_http_info(group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.delete_scim_v2_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.delete_scim_v2_group" if group_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#delete_scim_v2_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_scim_v2_user(user_id, opts = {}) ⇒ Empty

Delete a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



253
254
255
256
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 253

def delete_scim_v2_user(user_id, opts = {})
  data, _status_code, _headers = delete_scim_v2_user_with_http_info(user_id, opts)
  return data
end

#delete_scim_v2_user_with_http_info(user_id, opts = {}) ⇒ Array<(Empty, Fixnum, Hash)>

Delete a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(Empty, Fixnum, Hash)>)

    Empty data, response status code and response headers



264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 264

def delete_scim_v2_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.delete_scim_v2_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.delete_scim_v2_user" if user_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Empty')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#delete_scim_v2_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_group(group_id, opts = {}) ⇒ ScimV2Group

Get a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



329
330
331
332
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 329

def get_scim_group(group_id, opts = {})
  data, _status_code, _headers = get_scim_group_with_http_info(group_id, opts)
  return data
end

#get_scim_group_with_http_info(group_id, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Get a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 342

def get_scim_group_with_http_info(group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.get_scim_group" if group_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_groups(opts = {}) ⇒ ScimGroupListResponse

Get a list of groups

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result. (default to 1)

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills) (default to 25)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :filter (String)

    Filters results. If nothing is specified, returns all groups. Examples of valid values: &quot;id eq 5f4bc742-a019-4e38-8e2a-d39d5bc0b0f3&quot;, &quot;displayname eq Sales&quot;.

Returns:



422
423
424
425
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 422

def get_scim_groups(opts = {})
  data, _status_code, _headers = get_scim_groups_with_http_info(opts)
  return data
end

#get_scim_groups_with_http_info(opts = {}) ⇒ Array<(ScimGroupListResponse, Fixnum, Hash)>

Get a list of groups

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result.

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :filter (String)

    Filters results. If nothing is specified, returns all groups. Examples of valid values: &quot;id eq 5f4bc742-a019-4e38-8e2a-d39d5bc0b0f3&quot;, &quot;displayname eq Sales&quot;.

Returns:

  • (Array<(ScimGroupListResponse, Fixnum, Hash)>)

    ScimGroupListResponse data, response status code and response headers



436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 436

def get_scim_groups_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_groups ..."
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'startIndex'] = opts[:'start_index'] if opts[:'start_index']
  query_params[:'count'] = opts[:'count'] if opts[:'count']
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']
  query_params[:'filter'] = opts[:'filter'] if opts[:'filter']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimGroupListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_resourcetype(resource_type, opts = {}) ⇒ ScimConfigResourceType

Get a resource type

Parameters:

  • resource_type

    The type of resource. Returned with GET /api/v2/scim/resourcetypes.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



518
519
520
521
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 518

def get_scim_resourcetype(resource_type, opts = {})
  data, _status_code, _headers = get_scim_resourcetype_with_http_info(resource_type, opts)
  return data
end

#get_scim_resourcetype_with_http_info(resource_type, opts = {}) ⇒ Array<(ScimConfigResourceType, Fixnum, Hash)>

Get a resource type

Parameters:

  • resource_type

    The type of resource. Returned with GET /api/v2/scim/resourcetypes.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimConfigResourceType, Fixnum, Hash)>)

    ScimConfigResourceType data, response status code and response headers



528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 528

def get_scim_resourcetype_with_http_info(resource_type, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_resourcetype ..."
  end
  
  
  # verify the required parameter 'resource_type' is set
  fail ArgumentError, "Missing the required parameter 'resource_type' when calling SCIMApi.get_scim_resourcetype" if resource_type.nil?
  
  # verify enum value
  unless ['User', 'Group', 'ServiceProviderConfig', 'ResourceType', 'Schema'].include?(resource_type)
    fail ArgumentError, "invalid value for 'resource_type', must be one of User, Group, ServiceProviderConfig, ResourceType, Schema"
  end
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/resourcetypes/{resourceType}".sub('{format}','json').sub('{' + 'resourceType' + '}', resource_type.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimConfigResourceType')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_resourcetype\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_resourcetypes(opts = {}) ⇒ ScimConfigResourceTypesListResponse

Get a list of resource types

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



587
588
589
590
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 587

def get_scim_resourcetypes(opts = {})
  data, _status_code, _headers = get_scim_resourcetypes_with_http_info(opts)
  return data
end

#get_scim_resourcetypes_with_http_info(opts = {}) ⇒ Array<(ScimConfigResourceTypesListResponse, Fixnum, Hash)>

Get a list of resource types

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 596

def get_scim_resourcetypes_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_resourcetypes ..."
  end
  
  # resource path
  local_var_path = "/api/v2/scim/resourcetypes".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimConfigResourceTypesListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_resourcetypes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_schema(schema_id, opts = {}) ⇒ ScimV2SchemaDefinition

Get a SCIM schema

Parameters:

  • schema_id

    The ID of a schema. Returned with GET /api/v2/scim/schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



643
644
645
646
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 643

def get_scim_schema(schema_id, opts = {})
  data, _status_code, _headers = get_scim_schema_with_http_info(schema_id, opts)
  return data
end

#get_scim_schema_with_http_info(schema_id, opts = {}) ⇒ Array<(ScimV2SchemaDefinition, Fixnum, Hash)>

Get a SCIM schema

Parameters:

  • schema_id

    The ID of a schema. Returned with GET /api/v2/scim/schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2SchemaDefinition, Fixnum, Hash)>)

    ScimV2SchemaDefinition data, response status code and response headers



653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 653

def get_scim_schema_with_http_info(schema_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_schema ..."
  end
  
  
  # verify the required parameter 'schema_id' is set
  fail ArgumentError, "Missing the required parameter 'schema_id' when calling SCIMApi.get_scim_schema" if schema_id.nil?
  
  # verify enum value
  unless ['urn:ietf:params:scim:schemas:core:2.0:User', 'urn:ietf:params:scim:schemas:core:2.0:Group', 'urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig', 'urn:ietf:params:scim:schemas:core:2.0:ResourceType', 'urn:ietf:params:scim:schemas:core:2.0:Schema', 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User', 'urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User'].include?(schema_id)
    fail ArgumentError, "invalid value for 'schema_id', must be one of urn:ietf:params:scim:schemas:core:2.0:User, urn:ietf:params:scim:schemas:core:2.0:Group, urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig, urn:ietf:params:scim:schemas:core:2.0:ResourceType, urn:ietf:params:scim:schemas:core:2.0:Schema, urn:ietf:params:scim:schemas:extension:enterprise:2.0:User, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User"
  end
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2SchemaDefinition')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_schemas(opts = {}) ⇒ ScimV2SchemaListResponse

Get a list of SCIM schemas

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filtered results are invalid and return 403 Unauthorized.

Returns:



713
714
715
716
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 713

def get_scim_schemas(opts = {})
  data, _status_code, _headers = get_scim_schemas_with_http_info(opts)
  return data
end

#get_scim_schemas_with_http_info(opts = {}) ⇒ Array<(ScimV2SchemaListResponse, Fixnum, Hash)>

Get a list of SCIM schemas

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filtered results are invalid and return 403 Unauthorized.

Returns:

  • (Array<(ScimV2SchemaListResponse, Fixnum, Hash)>)

    ScimV2SchemaListResponse data, response status code and response headers



723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 723

def get_scim_schemas_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_schemas ..."
  end
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/schemas".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'filter'] = opts[:'filter'] if opts[:'filter']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2SchemaListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_serviceproviderconfig(opts = {}) ⇒ ScimServiceProviderConfig

Get a service provider’s configuration

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/serviceproviderconfig. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



777
778
779
780
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 777

def get_scim_serviceproviderconfig(opts = {})
  data, _status_code, _headers = get_scim_serviceproviderconfig_with_http_info(opts)
  return data
end

#get_scim_serviceproviderconfig_with_http_info(opts = {}) ⇒ Array<(ScimServiceProviderConfig, Fixnum, Hash)>

Get a service provider&#39;s configuration

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/serviceproviderconfig. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimServiceProviderConfig, Fixnum, Hash)>)

    ScimServiceProviderConfig data, response status code and response headers



787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 787

def get_scim_serviceproviderconfig_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_serviceproviderconfig ..."
  end
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/serviceproviderconfig".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimServiceProviderConfig')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_serviceproviderconfig\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_user(user_id, opts = {}) ⇒ ScimV2User

Get a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :if_none_match (String)

    TThe ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



844
845
846
847
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 844

def get_scim_user(user_id, opts = {})
  data, _status_code, _headers = get_scim_user_with_http_info(user_id, opts)
  return data
end

#get_scim_user_with_http_info(user_id, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Get a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :if_none_match (String)

    TThe ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 857

def get_scim_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.get_scim_user" if user_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_users(opts = {}) ⇒ ScimUserListResponse

Get a list of users To return all active users, do not use the filter parameter. To return inactive users, set the filter parameter to "active eq false". By default, returns SCIM attributes "externalId", "enterprise-user:manager", and "roles". To exclude these attributes, set the attributes parameter to "id,active" or the excludeAttributes parameter to "externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division".

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result. (default to 1)

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills) (default to 25)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :filter (String)

    Filters results. If nothing is specified, returns all active users. Examples of valid values: &quot;id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9&quot;, &quot;userName eq [email protected]&quot;, &quot;manager eq 16e10e2f-1136-43fe-bb84-eac073168a49&quot;, &quot;email eq [email protected]&quot;, &quot;division eq divisionName&quot;, &quot;externalId eq 167844&quot;, &quot;active eq false&quot;, &quot;employeeNumber eq 9876543210&quot;.

Returns:



937
938
939
940
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 937

def get_scim_users(opts = {})
  data, _status_code, _headers = get_scim_users_with_http_info(opts)
  return data
end

#get_scim_users_with_http_info(opts = {}) ⇒ Array<(ScimUserListResponse, Fixnum, Hash)>

Get a list of users To return all active users, do not use the filter parameter. To return inactive users, set the filter parameter to &quot;active eq false&quot;. By default, returns SCIM attributes &quot;externalId&quot;, &quot;enterprise-user:manager&quot;, and &quot;roles&quot;. To exclude these attributes, set the attributes parameter to &quot;id,active&quot; or the excludeAttributes parameter to &quot;externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division&quot;.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result.

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :filter (String)

    Filters results. If nothing is specified, returns all active users. Examples of valid values: &quot;id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9&quot;, &quot;userName eq [email protected]&quot;, &quot;manager eq 16e10e2f-1136-43fe-bb84-eac073168a49&quot;, &quot;email eq [email protected]&quot;, &quot;division eq divisionName&quot;, &quot;externalId eq 167844&quot;, &quot;active eq false&quot;, &quot;employeeNumber eq 9876543210&quot;.

Returns:

  • (Array<(ScimUserListResponse, Fixnum, Hash)>)

    ScimUserListResponse data, response status code and response headers



951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 951

def get_scim_users_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_users ..."
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'startIndex'] = opts[:'start_index'] if opts[:'start_index']
  query_params[:'count'] = opts[:'count'] if opts[:'count']
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']
  query_params[:'filter'] = opts[:'filter'] if opts[:'filter']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimUserListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_group(group_id, opts = {}) ⇒ ScimV2Group

Get a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :if_none_match (String)

    TThe ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



1036
1037
1038
1039
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1036

def get_scim_v2_group(group_id, opts = {})
  data, _status_code, _headers = get_scim_v2_group_with_http_info(group_id, opts)
  return data
end

#get_scim_v2_group_with_http_info(group_id, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Get a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

  • :if_none_match (String)

    TThe ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1049

def get_scim_v2_group_with_http_info(group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.get_scim_v2_group" if group_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_groups(filter, opts = {}) ⇒ ScimGroupListResponse

Get a list of groups

Parameters:

  • filter

    Filters results. If nothing is specified, returns all groups. Examples of valid values: &quot;id eq 5f4bc742-a019-4e38-8e2a-d39d5bc0b0f3&quot;, &quot;displayname eq Sales&quot;.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result. (default to 1)

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills) (default to 25)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

Returns:



1129
1130
1131
1132
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1129

def get_scim_v2_groups(filter, opts = {})
  data, _status_code, _headers = get_scim_v2_groups_with_http_info(filter, opts)
  return data
end

#get_scim_v2_groups_with_http_info(filter, opts = {}) ⇒ Array<(ScimGroupListResponse, Fixnum, Hash)>

Get a list of groups

Parameters:

  • filter

    Filters results. If nothing is specified, returns all groups. Examples of valid values: &quot;id eq 5f4bc742-a019-4e38-8e2a-d39d5bc0b0f3&quot;, &quot;displayname eq Sales&quot;.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result.

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;active&#39;, and &#39;meta attributes . Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The&#39;id&#39;, &#39;active&#39;, and &#39;meta&#39; attributes will always be present in the output.

Returns:

  • (Array<(ScimGroupListResponse, Fixnum, Hash)>)

    ScimGroupListResponse data, response status code and response headers



1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1143

def get_scim_v2_groups_with_http_info(filter, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_groups ..."
  end
  
  
  # verify the required parameter 'filter' is set
  fail ArgumentError, "Missing the required parameter 'filter' when calling SCIMApi.get_scim_v2_groups" if filter.nil?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'filter'] = filter
  query_params[:'startIndex'] = opts[:'start_index'] if opts[:'start_index']
  query_params[:'count'] = opts[:'count'] if opts[:'count']
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimGroupListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_resourcetype(resource_type, opts = {}) ⇒ ScimConfigResourceType

Get a resource type

Parameters:

  • resource_type

    The type of resource. Returned with GET /api/v2/scim/v2/resourcetypes.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1227
1228
1229
1230
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1227

def get_scim_v2_resourcetype(resource_type, opts = {})
  data, _status_code, _headers = get_scim_v2_resourcetype_with_http_info(resource_type, opts)
  return data
end

#get_scim_v2_resourcetype_with_http_info(resource_type, opts = {}) ⇒ Array<(ScimConfigResourceType, Fixnum, Hash)>

Get a resource type

Parameters:

  • resource_type

    The type of resource. Returned with GET /api/v2/scim/v2/resourcetypes.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimConfigResourceType, Fixnum, Hash)>)

    ScimConfigResourceType data, response status code and response headers



1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1237

def get_scim_v2_resourcetype_with_http_info(resource_type, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_resourcetype ..."
  end
  
  
  # verify the required parameter 'resource_type' is set
  fail ArgumentError, "Missing the required parameter 'resource_type' when calling SCIMApi.get_scim_v2_resourcetype" if resource_type.nil?
  
  # verify enum value
  unless ['User', 'Group', 'ServiceProviderConfig', 'ResourceType', 'Schema'].include?(resource_type)
    fail ArgumentError, "invalid value for 'resource_type', must be one of User, Group, ServiceProviderConfig, ResourceType, Schema"
  end
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/resourcetypes/{resourceType}".sub('{format}','json').sub('{' + 'resourceType' + '}', resource_type.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimConfigResourceType')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_resourcetype\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_resourcetypes(opts = {}) ⇒ ScimConfigResourceTypesListResponse

Get a list of resource types

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1296
1297
1298
1299
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1296

def get_scim_v2_resourcetypes(opts = {})
  data, _status_code, _headers = get_scim_v2_resourcetypes_with_http_info(opts)
  return data
end

#get_scim_v2_resourcetypes_with_http_info(opts = {}) ⇒ Array<(ScimConfigResourceTypesListResponse, Fixnum, Hash)>

Get a list of resource types

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1305

def get_scim_v2_resourcetypes_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_resourcetypes ..."
  end
  
  # resource path
  local_var_path = "/api/v2/scim/v2/resourcetypes".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimConfigResourceTypesListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_resourcetypes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_schema(schema_id, opts = {}) ⇒ ScimV2SchemaDefinition

Get a SCIM schema

Parameters:

  • schema_id

    The ID of a schema. Returned with GET /api/v2/scim/v2/schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1352
1353
1354
1355
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1352

def get_scim_v2_schema(schema_id, opts = {})
  data, _status_code, _headers = get_scim_v2_schema_with_http_info(schema_id, opts)
  return data
end

#get_scim_v2_schema_with_http_info(schema_id, opts = {}) ⇒ Array<(ScimV2SchemaDefinition, Fixnum, Hash)>

Get a SCIM schema

Parameters:

  • schema_id

    The ID of a schema. Returned with GET /api/v2/scim/v2/schemas.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2SchemaDefinition, Fixnum, Hash)>)

    ScimV2SchemaDefinition data, response status code and response headers



1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1362

def get_scim_v2_schema_with_http_info(schema_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_schema ..."
  end
  
  
  # verify the required parameter 'schema_id' is set
  fail ArgumentError, "Missing the required parameter 'schema_id' when calling SCIMApi.get_scim_v2_schema" if schema_id.nil?
  
  # verify enum value
  unless ['urn:ietf:params:scim:schemas:core:2.0:User', 'urn:ietf:params:scim:schemas:core:2.0:Group', 'urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig', 'urn:ietf:params:scim:schemas:core:2.0:ResourceType', 'urn:ietf:params:scim:schemas:core:2.0:Schema', 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User', 'urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User'].include?(schema_id)
    fail ArgumentError, "invalid value for 'schema_id', must be one of urn:ietf:params:scim:schemas:core:2.0:User, urn:ietf:params:scim:schemas:core:2.0:Group, urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig, urn:ietf:params:scim:schemas:core:2.0:ResourceType, urn:ietf:params:scim:schemas:core:2.0:Schema, urn:ietf:params:scim:schemas:extension:enterprise:2.0:User, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User"
  end
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/schemas/{schemaId}".sub('{format}','json').sub('{' + 'schemaId' + '}', schema_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2SchemaDefinition')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_schemas(opts = {}) ⇒ ScimV2SchemaListResponse

Get a list of SCIM schemas

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filtered results are invalid and return 403 Unauthorized.

Returns:



1422
1423
1424
1425
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1422

def get_scim_v2_schemas(opts = {})
  data, _status_code, _headers = get_scim_v2_schemas_with_http_info(opts)
  return data
end

#get_scim_v2_schemas_with_http_info(opts = {}) ⇒ Array<(ScimV2SchemaListResponse, Fixnum, Hash)>

Get a list of SCIM schemas

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filtered results are invalid and return 403 Unauthorized.

Returns:

  • (Array<(ScimV2SchemaListResponse, Fixnum, Hash)>)

    ScimV2SchemaListResponse data, response status code and response headers



1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1432

def get_scim_v2_schemas_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_schemas ..."
  end
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/schemas".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'filter'] = opts[:'filter'] if opts[:'filter']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2SchemaListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_serviceproviderconfig(opts = {}) ⇒ ScimServiceProviderConfig

Get a service provider’s configuration

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/serviceproviderconfig. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



1486
1487
1488
1489
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1486

def get_scim_v2_serviceproviderconfig(opts = {})
  data, _status_code, _headers = get_scim_v2_serviceproviderconfig_with_http_info(opts)
  return data
end

#get_scim_v2_serviceproviderconfig_with_http_info(opts = {}) ⇒ Array<(ScimServiceProviderConfig, Fixnum, Hash)>

Get a service provider&#39;s configuration

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/serviceproviderconfig. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimServiceProviderConfig, Fixnum, Hash)>)

    ScimServiceProviderConfig data, response status code and response headers



1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1496

def get_scim_v2_serviceproviderconfig_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_serviceproviderconfig ..."
  end
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/serviceproviderconfig".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimServiceProviderConfig')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_serviceproviderconfig\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_user(user_id, opts = {}) ⇒ ScimV2User

Get a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:



1553
1554
1555
1556
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1553

def get_scim_v2_user(user_id, opts = {})
  data, _status_code, _headers = get_scim_v2_user_with_http_info(user_id, opts)
  return data
end

#get_scim_v2_user_with_http_info(user_id, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Get a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :if_none_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns the current configuration of the resource. If the ETag is current, returns 304 Not Modified.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1566

def get_scim_v2_user_with_http_info(user_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.get_scim_v2_user" if user_id.nil?
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-None-Match'] = opts[:'if_none_match'] if opts[:'if_none_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_scim_v2_users(opts = {}) ⇒ ScimUserListResponse

Get a list of users To return all active users, do not use the filter parameter. To return inactive users, set the filter parameter to "active eq false". By default, returns SCIM attributes "externalId", "enterprise-user:manager", and "roles". To exclude these attributes, set the attributes parameter to "id,active" or the excludeAttributes parameter to "externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division".

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result. (default to 1)

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills) (default to 25)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :filter (String)

    Filters results. If nothing is specified, returns all active users. Examples of valid values: &quot;id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9&quot;, &quot;userName eq [email protected]&quot;, &quot;manager eq 16e10e2f-1136-43fe-bb84-eac073168a49&quot;, &quot;email eq [email protected]&quot;, &quot;division eq divisionName&quot;, &quot;externalId eq 167844&quot;, &quot;active eq false&quot;, &quot;employeeNumber eq 9876543210&quot;.

Returns:



1646
1647
1648
1649
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1646

def get_scim_v2_users(opts = {})
  data, _status_code, _headers = get_scim_v2_users_with_http_info(opts)
  return data
end

#get_scim_v2_users_with_http_info(opts = {}) ⇒ Array<(ScimUserListResponse, Fixnum, Hash)>

Get a list of users To return all active users, do not use the filter parameter. To return inactive users, set the filter parameter to &quot;active eq false&quot;. By default, returns SCIM attributes &quot;externalId&quot;, &quot;enterprise-user:manager&quot;, and &quot;roles&quot;. To exclude these attributes, set the attributes parameter to &quot;id,active&quot; or the excludeAttributes parameter to &quot;externalId,roles,urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:division&quot;.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :start_index (Integer)

    The 1-based index of the first query result.

  • :count (Integer)

    The requested number of items per page. A value of 0 returns &quot;totalResults&quot;. Note that a page size over 25 will likely cause a 429 error by exceeding internal resource limits. Page sizes over 25 will require using excludedAttributes and includeAttributes query parameters to exclude secondary lookup values – (i.e. externalId, roles, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingLanguages, urn:ietf:params:scim:schemas:extension:genesys:purecloud:2.0:User:routingSkills)

  • :attributes (Array<String>)

    Indicates which attributes to include. Returns these attributes and the &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, and &#39;meta&#39; attributes. Use &quot;attributes&quot; to avoid expensive secondary calls for the default attributes.

  • :excluded_attributes (Array<String>)

    Indicates which attributes to exclude. Returns the default attributes minus &quot;excludedAttributes&quot;. Use &quot;excludedAttributes&quot; to avoid expensive secondary calls for the default attributes. The &#39;id&#39;, &#39;userName&#39;, &#39;active&#39;, &#39;meta&#39; attributes will always be present in output.

  • :filter (String)

    Filters results. If nothing is specified, returns all active users. Examples of valid values: &quot;id eq 857449b0-d9e7-4cd0-acbf-a6adfb9ef1e9&quot;, &quot;userName eq [email protected]&quot;, &quot;manager eq 16e10e2f-1136-43fe-bb84-eac073168a49&quot;, &quot;email eq [email protected]&quot;, &quot;division eq divisionName&quot;, &quot;externalId eq 167844&quot;, &quot;active eq false&quot;, &quot;employeeNumber eq 9876543210&quot;.

Returns:

  • (Array<(ScimUserListResponse, Fixnum, Hash)>)

    ScimUserListResponse data, response status code and response headers



1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1660

def get_scim_v2_users_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.get_scim_v2_users ..."
  end
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'startIndex'] = opts[:'start_index'] if opts[:'start_index']
  query_params[:'count'] = opts[:'count'] if opts[:'count']
  query_params[:'attributes'] = @api_client.build_collection_param(opts[:'attributes'], :multi) if opts[:'attributes']
  query_params[:'excludedAttributes'] = @api_client.build_collection_param(opts[:'excluded_attributes'], :multi) if opts[:'excluded_attributes']
  query_params[:'filter'] = opts[:'filter'] if opts[:'filter']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimUserListResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#get_scim_v2_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#patch_scim_group(group_id, body, opts = {}) ⇒ ScimV2Group

Modify a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • body

    The information used to modify a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



1744
1745
1746
1747
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1744

def patch_scim_group(group_id, body, opts = {})
  data, _status_code, _headers = patch_scim_group_with_http_info(group_id, body, opts)
  return data
end

#patch_scim_group_with_http_info(group_id, body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Modify a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • body

    The information used to modify a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1756

def patch_scim_group_with_http_info(group_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.patch_scim_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.patch_scim_group" if group_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.patch_scim_group" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#patch_scim_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#patch_scim_user(user_id, body, opts = {}) ⇒ ScimV2User

Modify a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • body

    The information used to modify a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



1828
1829
1830
1831
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1828

def patch_scim_user(user_id, body, opts = {})
  data, _status_code, _headers = patch_scim_user_with_http_info(user_id, body, opts)
  return data
end

#patch_scim_user_with_http_info(user_id, body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Modify a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • body

    The information used to modify a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1840

def patch_scim_user_with_http_info(user_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.patch_scim_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.patch_scim_user" if user_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.patch_scim_user" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#patch_scim_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#patch_scim_v2_group(group_id, body, opts = {}) ⇒ ScimV2Group

Modify a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • body

    The information used to modify a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



1912
1913
1914
1915
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1912

def patch_scim_v2_group(group_id, body, opts = {})
  data, _status_code, _headers = patch_scim_v2_group_with_http_info(group_id, body, opts)
  return data
end

#patch_scim_v2_group_with_http_info(group_id, body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Modify a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • body

    The information used to modify a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1924

def patch_scim_v2_group_with_http_info(group_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.patch_scim_v2_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.patch_scim_v2_group" if group_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.patch_scim_v2_group" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#patch_scim_v2_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#patch_scim_v2_user(user_id, body, opts = {}) ⇒ ScimV2User

Modify a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • body

    The information used to modify a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



1996
1997
1998
1999
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 1996

def patch_scim_v2_user(user_id, body, opts = {})
  data, _status_code, _headers = patch_scim_v2_user_with_http_info(user_id, body, opts)
  return data
end

#patch_scim_v2_user_with_http_info(user_id, body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Modify a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • body

    The information used to modify a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2008

def patch_scim_v2_user_with_http_info(user_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.patch_scim_v2_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.patch_scim_v2_user" if user_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.patch_scim_v2_user" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#patch_scim_v2_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_scim_groups(body, opts = {}) ⇒ ScimV2Group

Creates a group Creates a Genesys Cloud group with group visibility set to "public" and rules visibility set to "true". Auto-creates an "externalId". "externalId" is used to determine if DELETE /api/v2/scim/groups/groupId or DELETE /api/v2/scim/v2/groups/groupId should be allowed.

Parameters:

  • body

    The information used to create a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2078
2079
2080
2081
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2078

def post_scim_groups(body, opts = {})
  data, _status_code, _headers = post_scim_groups_with_http_info(body, opts)
  return data
end

#post_scim_groups_with_http_info(body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Creates a group Creates a Genesys Cloud group with group visibility set to &quot;public&quot; and rules visibility set to &quot;true&quot;. Auto-creates an &quot;externalId&quot;. &quot;externalId&quot; is used to determine if DELETE /api/v2/scim/groups/groupId or DELETE /api/v2/scim/v2/groups/groupId should be allowed.

Parameters:

  • body

    The information used to create a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2088

def post_scim_groups_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.post_scim_groups ..."
  end
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.post_scim_groups" if body.nil?
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#post_scim_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_scim_users(body, opts = {}) ⇒ ScimV2User

Create a user

Parameters:

  • body

    The information used to create a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2143
2144
2145
2146
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2143

def post_scim_users(body, opts = {})
  data, _status_code, _headers = post_scim_users_with_http_info(body, opts)
  return data
end

#post_scim_users_with_http_info(body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Create a user

Parameters:

  • body

    The information used to create a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2153

def post_scim_users_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.post_scim_users ..."
  end
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.post_scim_users" if body.nil?
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#post_scim_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_scim_v2_groups(body, opts = {}) ⇒ ScimV2Group

Create a group Creates an "official" Genesys Cloud group with group visibility set to "public" and rules visibility set to "true". Auto-creates an "externalId". "externalId" is used to determine if DELETE /api/v2/scim/groups/groupId or DELETE /api/v2/scim/v2/groups/groupId should be allowed.

Parameters:

  • body

    Creates a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2208
2209
2210
2211
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2208

def post_scim_v2_groups(body, opts = {})
  data, _status_code, _headers = post_scim_v2_groups_with_http_info(body, opts)
  return data
end

#post_scim_v2_groups_with_http_info(body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Create a group Creates an &quot;official&quot; Genesys Cloud group with group visibility set to &quot;public&quot; and rules visibility set to &quot;true&quot;. Auto-creates an &quot;externalId&quot;. &quot;externalId&quot; is used to determine if DELETE /api/v2/scim/groups/groupId or DELETE /api/v2/scim/v2/groups/groupId should be allowed.

Parameters:

  • body

    Creates a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2218

def post_scim_v2_groups_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.post_scim_v2_groups ..."
  end
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.post_scim_v2_groups" if body.nil?
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#post_scim_v2_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_scim_v2_users(body, opts = {}) ⇒ ScimV2User

Create a user

Parameters:

  • body

    The information used to create a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2273
2274
2275
2276
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2273

def post_scim_v2_users(body, opts = {})
  data, _status_code, _headers = post_scim_v2_users_with_http_info(body, opts)
  return data
end

#post_scim_v2_users_with_http_info(body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Create a user

Parameters:

  • body

    The information used to create a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2283

def post_scim_v2_users_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.post_scim_v2_users ..."
  end
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.post_scim_v2_users" if body.nil?
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users".sub('{format}','json')

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#post_scim_v2_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_scim_group(group_id, body, opts = {}) ⇒ ScimV2Group

Replace a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • body

    The information used to replace a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



2340
2341
2342
2343
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2340

def put_scim_group(group_id, body, opts = {})
  data, _status_code, _headers = put_scim_group_with_http_info(group_id, body, opts)
  return data
end

#put_scim_group_with_http_info(group_id, body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Replace a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/groups.

  • body

    The information used to replace a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2352

def put_scim_group_with_http_info(group_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.put_scim_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.put_scim_group" if group_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.put_scim_group" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#put_scim_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_scim_user(user_id, body, opts = {}) ⇒ ScimV2User

Replace a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • body

    The information used to replace a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



2424
2425
2426
2427
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2424

def put_scim_user(user_id, body, opts = {})
  data, _status_code, _headers = put_scim_user_with_http_info(user_id, body, opts)
  return data
end

#put_scim_user_with_http_info(user_id, body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Replace a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/users.

  • body

    The information used to replace a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2436

def put_scim_user_with_http_info(user_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.put_scim_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.put_scim_user" if user_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.put_scim_user" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#put_scim_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_scim_v2_group(group_id, body, opts = {}) ⇒ ScimV2Group

Replace a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • body

    The information used to replace a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



2508
2509
2510
2511
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2508

def put_scim_v2_group(group_id, body, opts = {})
  data, _status_code, _headers = put_scim_v2_group_with_http_info(group_id, body, opts)
  return data
end

#put_scim_v2_group_with_http_info(group_id, body, opts = {}) ⇒ Array<(ScimV2Group, Fixnum, Hash)>

Replace a group

Parameters:

  • group_id

    The ID of a group. Returned with GET /api/v2/scim/v2/groups.

  • body

    The information used to replace a group.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/groups/groupId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2Group, Fixnum, Hash)>)

    ScimV2Group data, response status code and response headers



2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2520

def put_scim_v2_group_with_http_info(group_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.put_scim_v2_group ..."
  end
  
  
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling SCIMApi.put_scim_v2_group" if group_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.put_scim_v2_group" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/groups/{groupId}".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#put_scim_v2_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_scim_v2_user(user_id, body, opts = {}) ⇒ ScimV2User

Replace a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • body

    The information used to replace a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:



2592
2593
2594
2595
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2592

def put_scim_v2_user(user_id, body, opts = {})
  data, _status_code, _headers = put_scim_v2_user_with_http_info(user_id, body, opts)
  return data
end

#put_scim_v2_user_with_http_info(user_id, body, opts = {}) ⇒ Array<(ScimV2User, Fixnum, Hash)>

Replace a user

Parameters:

  • user_id

    The ID of a user. Returned with GET /api/v2/scim/v2/users.

  • body

    The information used to replace a user.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :if_match (String)

    The ETag of a resource in double quotes. Returned as header and meta.version with initial call to GET /api/v2/scim/v2/users/userId. Example: &quot;42&quot;. If the ETag is different from the version on the server, returns 400 with a &quot;scimType&quot; of &quot;invalidVers&quot;.

Returns:

  • (Array<(ScimV2User, Fixnum, Hash)>)

    ScimV2User data, response status code and response headers



2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
# File 'lib/purecloudplatformclientv2/api/scim_api.rb', line 2604

def put_scim_v2_user_with_http_info(user_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: SCIMApi.put_scim_v2_user ..."
  end
  
  
  # verify the required parameter 'user_id' is set
  fail ArgumentError, "Missing the required parameter 'user_id' when calling SCIMApi.put_scim_v2_user" if user_id.nil?
  
  
  
  
  
  
  # verify the required parameter 'body' is set
  fail ArgumentError, "Missing the required parameter 'body' when calling SCIMApi.put_scim_v2_user" if body.nil?
  
  
  
  
  
  
  
  
  
  
  
  # resource path
  local_var_path = "/api/v2/scim/v2/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  local_header_accept = ['application/json', 'application/scim+json']
  local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result

  # HTTP header 'Content-Type'
  local_header_content_type = ['application/json', 'application/scim+json']
  header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
  header_params[:'If-Match'] = opts[:'if_match'] if opts[:'if_match']

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  
  auth_names = ['PureCloud OAuth']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ScimV2User')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SCIMApi#put_scim_v2_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end