def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
      # Send request
      promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers)

      promise = promise.then do |response|
        # Defining deserialization method.
        deserialize_method = lambda do |parsed_response|
          result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::AccessUri.mapper()
          parsed_response = @client.deserialize(result_mapper, parsed_response)
        end

        # Waiting for response.
        @client.get_long_running_operation_result(response, deserialize_method)
      end

      promise
    end
def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
      # Send request
      promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers)

      promise = promise.then do |response|
        # Defining deserialization method.
        deserialize_method = lambda do |parsed_response|
          result_mapper = Azure::Compute::Mgmt::V2016_04_30_preview::Models::AccessUri.mapper()
          parsed_response = @client.deserialize(result_mapper, parsed_response)
        end

        # Waiting for response.
        @client.get_long_running_operation_result(response, deserialize_method)
      end

      promise
    end
@param resource_group_name [String] The name of the resource group.
 @param disk_name [String] The name of the managed disk that is being created.
 The name can't be changed after the disk is created. Supported characters for
 the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
 @param grant_access_data [GrantAccessData] Access data object supplied in the
 body of the get disk access operation.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [Concurrent::Promise] promise which provides async access to http
 response.