class Azure::GraphRbac::V1_6::Users

The Graph RBAC Management Client

Attributes

client[R]

@return [GraphRbacClient] reference to the GraphRbacClient

Private Class Methods

new(client) click to toggle source

Creates and initializes a new instance of the Users class. @param client service class for accessing basic functionality.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 17
def initialize(client)
  @client = client
end

Private Instance Methods

create(parameters, custom_headers:nil) click to toggle source

Create a new user.

@param parameters [UserCreateParameters] Parameters to create a user. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [User] operation results.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 33
def create(parameters, custom_headers:nil)
  response = create_async(parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end
create_async(parameters, custom_headers:nil) click to toggle source

Create a new user.

@param parameters [UserCreateParameters] Parameters to create a user. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 60
def create_async(parameters, custom_headers:nil)
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::GraphRbac::V1_6::Models::UserCreateParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = '{tenantID}/users'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'tenantID' => @client.tenant_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 201
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 201
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::GraphRbac::V1_6::Models::User.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end
create_with_http_info(parameters, custom_headers:nil) click to toggle source

Create a new user.

@param parameters [UserCreateParameters] Parameters to create a user. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 47
def create_with_http_info(parameters, custom_headers:nil)
  create_async(parameters, custom_headers:custom_headers).value!
end
delete(upn_or_object_id, custom_headers:nil) click to toggle source

Delete a user.

@param upn_or_object_id [String] The object ID or principal name of the user to delete. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 400
def delete(upn_or_object_id, custom_headers:nil)
  response = delete_async(upn_or_object_id, custom_headers:custom_headers).value!
  nil
end
delete_async(upn_or_object_id, custom_headers:nil) click to toggle source

Delete a user.

@param upn_or_object_id [String] The object ID or principal name of the user to delete. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 429
def delete_async(upn_or_object_id, custom_headers:nil)
  fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{tenantID}/users/{upnOrObjectId}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'upnOrObjectId' => upn_or_object_id,'tenantID' => @client.tenant_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:delete, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 204
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end
delete_with_http_info(upn_or_object_id, custom_headers:nil) click to toggle source

Delete a user.

@param upn_or_object_id [String] The object ID or principal name of the user to delete. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 415
def delete_with_http_info(upn_or_object_id, custom_headers:nil)
  delete_async(upn_or_object_id, custom_headers:custom_headers).value!
end
get(upn_or_object_id, custom_headers:nil) click to toggle source

Gets user information from the directory.

@param upn_or_object_id [String] The object ID or principal name of the user for which to get information. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [User] operation results.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 216
def get(upn_or_object_id, custom_headers:nil)
  response = get_async(upn_or_object_id, custom_headers:custom_headers).value!
  response.body unless response.nil?
end
get_async(upn_or_object_id, custom_headers:nil) click to toggle source

Gets user information from the directory.

@param upn_or_object_id [String] The object ID or principal name of the user for which to get information. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 245
def get_async(upn_or_object_id, custom_headers:nil)
  fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{tenantID}/users/{upnOrObjectId}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'upnOrObjectId' => upn_or_object_id,'tenantID' => @client.tenant_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::GraphRbac::V1_6::Models::User.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end
get_member_groups(object_id, parameters, custom_headers:nil) click to toggle source

Gets a collection that contains the object IDs of the groups of which the user is a member.

@param object_id [String] The object ID of the user for which to get group membership. @param parameters [UserGetMemberGroupsParameters] User filtering parameters. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [UserGetMemberGroupsResult] operation results.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 483
def get_member_groups(object_id, parameters, custom_headers:nil)
  response = get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end
get_member_groups_async(object_id, parameters, custom_headers:nil) click to toggle source

Gets a collection that contains the object IDs of the groups of which the user is a member.

@param object_id [String] The object ID of the user for which to get group membership. @param parameters [UserGetMemberGroupsParameters] User filtering parameters. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 516
def get_member_groups_async(object_id, parameters, custom_headers:nil)
  fail ArgumentError, 'object_id is nil' if object_id.nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = '{tenantID}/users/{objectId}/getMemberGroups'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'objectId' => object_id,'tenantID' => @client.tenant_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end
get_member_groups_with_http_info(object_id, parameters, custom_headers:nil) click to toggle source

Gets a collection that contains the object IDs of the groups of which the user is a member.

@param object_id [String] The object ID of the user for which to get group membership. @param parameters [UserGetMemberGroupsParameters] User filtering parameters. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 500
def get_member_groups_with_http_info(object_id, parameters, custom_headers:nil)
  get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value!
end
get_with_http_info(upn_or_object_id, custom_headers:nil) click to toggle source

Gets user information from the directory.

@param upn_or_object_id [String] The object ID or principal name of the user for which to get information. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 231
def get_with_http_info(upn_or_object_id, custom_headers:nil)
  get_async(upn_or_object_id, custom_headers:custom_headers).value!
end
list(filter:nil, custom_headers:nil) click to toggle source

Gets list of users for the current tenant.

@param filter [String] The filter to apply to the operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Array<User>] operation results.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 128
def list(filter:nil, custom_headers:nil)
  first_page = list_as_lazy(filter:filter, custom_headers:custom_headers)
  first_page.get_all_items
end
list_as_lazy(filter:nil, custom_headers:nil) click to toggle source

Gets list of users for the current tenant.

@param filter [String] The filter to apply to the operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [UserListResult] which provide lazy access to pages of the response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 674
def list_as_lazy(filter:nil, custom_headers:nil)
  response = list_async(filter:filter, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_link|
      list_next_async(next_link, custom_headers:custom_headers)
    end
    page
  end
end
list_async(filter:nil, custom_headers:nil) click to toggle source

Gets list of users for the current tenant.

@param filter [String] The filter to apply to the operation. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 155
def list_async(filter:nil, custom_headers:nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{tenantID}/users'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'tenantID' => @client.tenant_id},
      query_params: {'$filter' => filter,'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::GraphRbac::V1_6::Models::UserListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end
list_next(next_link, custom_headers:nil) click to toggle source

Gets a list of users for the current tenant.

@param next_link [String] Next link for the list operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Array<User>] operation results.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 585
def list_next(next_link, custom_headers:nil)
  response = list_next_async(next_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end
list_next_async(next_link, custom_headers:nil) click to toggle source

Gets a list of users for the current tenant.

@param next_link [String] Next link for the list operation. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 612
def list_next_async(next_link, custom_headers:nil)
  fail ArgumentError, 'next_link is nil' if next_link.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{tenantID}/{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'tenantID' => @client.tenant_id},
      skip_encoding_path_params: {'nextLink' => next_link},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::GraphRbac::V1_6::Models::UserListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end
list_next_with_http_info(next_link, custom_headers:nil) click to toggle source

Gets a list of users for the current tenant.

@param next_link [String] Next link for the list operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 599
def list_next_with_http_info(next_link, custom_headers:nil)
  list_next_async(next_link, custom_headers:custom_headers).value!
end
list_with_http_info(filter:nil, custom_headers:nil) click to toggle source

Gets list of users for the current tenant.

@param filter [String] The filter to apply to the operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 142
def list_with_http_info(filter:nil, custom_headers:nil)
  list_async(filter:filter, custom_headers:custom_headers).value!
end
update(upn_or_object_id, parameters, custom_headers:nil) click to toggle source

Updates a user.

@param upn_or_object_id [String] The object ID or principal name of the user to update. @param parameters [UserUpdateParameters] Parameters to update an existing user. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 308
def update(upn_or_object_id, parameters, custom_headers:nil)
  response = update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value!
  nil
end
update_async(upn_or_object_id, parameters, custom_headers:nil) click to toggle source

Updates a user.

@param upn_or_object_id [String] The object ID or principal name of the user to update. @param parameters [UserUpdateParameters] Parameters to update an existing user. @param [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [Concurrent::Promise] Promise object which holds the HTTP response.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 341
def update_async(upn_or_object_id, parameters, custom_headers:nil)
  fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::GraphRbac::V1_6::Models::UserUpdateParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = '{tenantID}/users/{upnOrObjectId}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'upnOrObjectId' => upn_or_object_id,'tenantID' => @client.tenant_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:patch, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 204
      error_model = JSON.load(response_content)
      fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end
update_with_http_info(upn_or_object_id, parameters, custom_headers:nil) click to toggle source

Updates a user.

@param upn_or_object_id [String] The object ID or principal name of the user to update. @param parameters [UserUpdateParameters] Parameters to update an existing user. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.

@return [MsRestAzure::AzureOperationResponse] HTTP response information.

# File lib/1.6/generated/azure_graph_rbac/users.rb, line 325
def update_with_http_info(upn_or_object_id, parameters, custom_headers:nil)
  update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value!
end